add darkmode for daterangepicker

pull/3950/head
REJack 2021-09-18 02:02:39 +02:00
parent 3b46ba874f
commit a2cf3e1a63
2 changed files with 70 additions and 0 deletions

View File

@ -13,4 +13,5 @@
@import "../plugins/toastr";
@import "../plugins/pace";
@import "../plugins/bootstrap-switch";
@import "../plugins/daterangepicker";
@import "../plugins/miscellaneous";

View File

@ -0,0 +1,69 @@
@include dark-mode() {
.daterangepicker {
background-color: lighten($dark, 5%);
border: inherit;
&::before,
&::after {
border-bottom-color: lighten($dark, 5%);
}
td.available:hover,
th.available:hover {
background-color: lighten($dark, 5%);
}
td.in-range {
background-color: lighten($dark, 10%);
color: $white;
}
td.off,
td.off.in-range,
td.off.start-date,
td.off.end-date {
background-color: darken($dark, 5%);
color: $white;
}
.ranges li:hover {
background-color: $dark;
}
&.show-ranges.ltr .drp-calendar {
border-color: lighten($dark, 10%);
&.left,
&.right {
border-color: lighten($dark, 10%);
padding-top: 0;
}
}
.drp-buttons {
border-color: lighten($dark, 10%);
}
.calendar-table {
background-color: $dark;
border-color: lighten($dark, 10%);
th,
td {
color: $white;
}
.next span,
.prev span {
border-color: $white;
}
}
select.hourselect,
select.minuteselect,
select.secondselect,
select.ampmselect {
background-color: $dark;
border-color: lighten($dark, 10%);
}
}
}