Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(NcDateTimePicker): change styling to look more like the native picker #6095

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
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;
GretaD marked this conversation as resolved.
Show resolved Hide resolved
}

.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>
Loading