Files
everything/EveryThing/wwwroot/vendor/libs/bootstrap-datepicker/_mixins.scss
David Štaleker db0cc8d3de prvi
2025-07-18 05:33:16 +02:00

37 lines
862 B
SCSS

@import "../../css/_appwork/functions";
@mixin bs-datepicker-theme($background, $color: null) {
$color: if($color, $color, yiq($background));
$range-bg: rgba-to-hex(rgba($background, .15), #fff);
$range-color: yiq($range-bg);
.datepicker table tr td {
&.active,
&.active.highlighted,
&.active.today,
span.active,
span.active.disabled,
&.range-start,
&.range-end {
background: $background !important;
color: $color !important;
}
&.range,
&.range.highlighted,
&.range.today {
background: $range-bg !important;
color: $range-color !important;
&.focused {
background: darken($range-bg, 6%) !important;
}
&.disabled {
background: transparentize($range-bg, .5) !important;
color: transparentize($range-color, .5) !important;
}
}
}
}