Skip to content

Commit

Permalink
fixup! feat: change the datepicker styling to look more like the nati…
Browse files Browse the repository at this point in the history
…ve picker

Signed-off-by: greta <gretadoci@gmail.com>
  • Loading branch information
GretaD committed Sep 26, 2024
1 parent ab17d4f commit d12b950
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/components/NcDateTimePicker/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

$cell_height: 32px;
$opacity_full: 1;

@import 'vue2-datepicker/scss/index';

Expand Down Expand Up @@ -144,7 +145,7 @@
text-align: center;
opacity: $opacity_normal;
border-radius: var(--border-radius-small);
min-height: 30px !important;
min-height: var(--clickable-area-small) !important;

// force pointer on all content
> * {
Expand All @@ -167,7 +168,7 @@
&.disabled {
border-radius: var(--border-radius-small);
background-color: var(--color-background-dark);
color: var(--color-text-maxcontrast);
color: var(--color-main-text);
opacity: 1;
}
&.in-range {
Expand Down Expand Up @@ -195,7 +196,7 @@
}
&.disabled {
opacity: $opacity_disabled;
color: var(--color-text-maxcontrast);
color: var(--color-main-text);
border-radius: var(--border-radius-small);
background-color: var(--color-background-darker);
}
Expand Down Expand Up @@ -229,7 +230,7 @@
flex: 1 1 $cell_height;
justify-content: space-around;
min-height: $cell_height;
color: var(--color-text-maxcontrast);
color: var(--color-main-text);
}
// Default cell style
th,
Expand All @@ -244,7 +245,7 @@
height: 95%;
min-height: $cell_height;
transition: background 100ms ease-in-out;
color: var(--color-text-maxcontrast);
color: var(--color-main-text);
}
}
&.mx-table-year {
Expand All @@ -271,7 +272,7 @@
padding: 7px 10px;
cursor: pointer;
text-decoration: none;
opacity: $opacity_disabled;
opacity: $opacity_full;
color: var(--color-main-text);
border-radius: var(--border-radius-small);
line-height: $cell_height - 12px; // padding minus 2px for better visual
Expand Down Expand Up @@ -340,11 +341,14 @@
line-height: initial;
}
}

.mx-calendar-header-label {
display: flex;
color: var(--color-main-text);
}
.mx-btn-icon-double-left,
.mx-btn-icon-double-right {
display: none;
}

.mx-btn-icon-left > i {
background-image: url('./chevron-left.svg');
Expand Down

0 comments on commit d12b950

Please sign in to comment.