shlink-web-client/shlink-web-component/utils/dates/DateInput.scss

112 lines
3 KiB
SCSS
Raw Normal View History

@import '../../../src/utils/mixins/vertical-align';
@import '../../../src/utils/base';
2018-07-31 22:24:34 +03:00
2018-08-09 21:13:46 +03:00
.react-datepicker__close-icon.react-datepicker__close-icon {
@include vertical-align();
2018-08-25 16:59:51 +03:00
2018-08-09 21:13:46 +03:00
right: 0;
}
2018-08-25 16:59:51 +03:00
.react-datepicker__close-icon.react-datepicker__close-icon:after {
2018-08-09 21:13:46 +03:00
right: .75rem;
line-height: 11px;
2020-09-06 11:17:46 +03:00
background-color: #333333;
2018-08-09 21:13:46 +03:00
font-size: 14px;
}
.react-datepicker__input-container,
.react-datepicker-wrapper {
display: block !important;
}
.react-datepicker__day--keyboard-selected {
background-color: $mainColor;
&:hover {
background-color: darken($mainColor, 12%);
}
}
2022-10-23 11:13:53 +03:00
.react-datepicker__time.react-datepicker__time,
.react-datepicker.react-datepicker {
2022-10-23 11:13:53 +03:00
background-color: var(--primary-color) !important;
color: var(--text-color);
border-color: var(--border-color);
}
.react-datepicker__header.react-datepicker__header {
background-color: var(--secondary-color);
border-color: var(--border-color);
}
.react-datepicker__current-month.react-datepicker__current-month,
.react-datepicker-time__header.react-datepicker-time__header,
.react-datepicker-year-header.react-datepicker-year-header,
.react-datepicker__day-name.react-datepicker__day-name,
2022-10-23 11:13:53 +03:00
.react-datepicker__day.react-datepicker__day:not(:hover):not(.react-datepicker__day--selected),
.react-datepicker__time-name.react-datepicker__time-name {
color: inherit;
}
.react-datepicker__day--disabled.react-datepicker__day--disabled {
cursor: default;
color: var(--border-color) !important;
}
.react-datepicker__day--keyboard-selected.react-datepicker__day--keyboard-selected,
.react-datepicker__month-text--keyboard-selected.react-datepicker__month-text--keyboard-selected,
.react-datepicker__quarter-text--keyboard-selected.react-datepicker__quarter-text--keyboard-selected,
.react-datepicker__year-text--keyboard-selected.react-datepicker__year-text--keyboard-selected {
background-color: var(--brand-color) !important;
color: white !important;
}
2022-10-23 11:13:53 +03:00
.react-datepicker__time-list-item.react-datepicker__time-list-item:hover {
color: #232323;
}
.react-datepicker__time-container.react-datepicker__time-container {
border-color: var(--border-color);
}
.react-datepicker__time-list.react-datepicker__time-list {
/* Forefox scrollbar */
scrollbar-color: rgba(0, 0, 0, 0.5) var(--secondary-color);
scrollbar-width: thin;
/* Chrome webkit scrollbar */
&::-webkit-scrollbar {
width: 10px;
background-color: var(--secondary-color);
}
2022-10-23 11:13:53 +03:00
&::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.5);
border-radius: 0.5rem;
}
2022-10-23 11:13:53 +03:00
}
.react-datepicker-popper.react-datepicker-popper {
z-index: 2;
&[data-placement^='top'] .react-datepicker__triangle.react-datepicker__triangle {
&::after {
border-top-color: var(--primary-color);
}
&::before {
border-top-color: var(--border-color);
}
}
&[data-placement^='bottom'] .react-datepicker__triangle.react-datepicker__triangle {
&::after {
border-bottom-color: var(--secondary-color);
}
&::before {
border-bottom-color: var(--border-color);
}
}
}