Skip to content

Commit

Permalink
feat: change the datepicker styling to look more like the native picker
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Sep 16, 2024
1 parent 73ee73b commit 8bdcab4
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion src/components/NcDateTimePicker/NcDateTimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,53 @@ export default {
}
}
}
.v-select.select {
min-width: 246px;
left: -8px !important;
}
// TODO: This should be scoped or targeted by a specific selector, but the NcSelect component does not allow this yet.
.vs__dropdown-menu--floating {
// Higher z-index than the popover in which the NcSelect is located.
z-index: 100001 !important;
}
.mx-datepicker-main .mx-table .cell.disabled {
border-radius: var(--border-radius-small);
background-color: var(--color-background-dark);
color: var(--color-text-maxcontrast);
opacity: 1;
}
.mx-datepicker-main .mx-table .cell {
border-radius: var(--border-radius-small);
min-height: 30px !important;
}
.mx-datepicker-main .mx-calendar-header button {
opacity: 1 !important;
background-color: transparent;
}
.mx-datepicker-main .mx-calendar-header .mx-calendar-header-label {
color: var(--color-main-text);
}
.mx-datepicker-main .mx-table .mx-table thead > tr > th {
color: var(--color-text-maxcontrast);
}
.mx-datepicker-main .mx-table .cell.not-current-month {
color: var(--color-text-maxcontrast);
}
.mx-datepicker-main .mx-table .cell.today {
background-color: transparent;
color: var(--color-primary-element);
border-radius: var(--border-radius-small);
}
.mx-datepicker-main .mx-table .cell {
border-radius: var(--border-radius-small);
}
.mx-datepicker-main {
left: 0 !important;
}
</style>

0 comments on commit 8bdcab4

Please sign in to comment.