mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Date / date range (flatpickr) colors customization
This commit is contained in:
@@ -7,7 +7,7 @@ input.datetimepicker {
|
||||
.container input[readonly].flatpickr-input,
|
||||
.container input[readonly].datepicker,
|
||||
.container input[readonly].datetimepicker {
|
||||
background-color: $white;
|
||||
background-color: $lighter-grey;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$background-grey: #eceef1;
|
||||
$background-grey: $lighter-grey;
|
||||
$background-blue: $color-3;
|
||||
|
||||
// scss-lint:disable SelectorFormat
|
||||
@@ -33,6 +33,7 @@ $background-blue: $color-3;
|
||||
|
||||
.flatpickr-weekday {
|
||||
background: $background-blue;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,3 +67,23 @@ $background-blue: $color-3;
|
||||
justify-content: space-between;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
// material-ui colors customization ("~flatpickr/dist/themes/material_blue")
|
||||
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n + 1)),
|
||||
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n + 1)),
|
||||
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n + 1)) {
|
||||
box-shadow: -10px 0 0 #e2e2e2;
|
||||
}
|
||||
|
||||
.flatpickr-months .flatpickr-prev-month:hover svg,
|
||||
.flatpickr-months #admin-menu ul li.selected a.flatpickr-prev-month svg,
|
||||
#admin-menu ul li.selected .flatpickr-months a.flatpickr-prev-month svg,
|
||||
.flatpickr-months #sub-menu ul li.selected a.flatpickr-prev-month svg,
|
||||
#sub-menu ul li.selected .flatpickr-months a.flatpickr-prev-month svg,
|
||||
.flatpickr-months .flatpickr-next-month:hover svg,
|
||||
.flatpickr-months #admin-menu ul li.selected a.flatpickr-next-month svg,
|
||||
#admin-menu ul li.selected .flatpickr-months a.flatpickr-next-month svg,
|
||||
.flatpickr-months #sub-menu ul li.selected a.flatpickr-next-month svg,
|
||||
#sub-menu ul li.selected .flatpickr-months a.flatpickr-next-month svg {
|
||||
fill: white;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user