This commit is contained in:
2025-09-19 14:25:20 +08:00
parent 269893a435
commit fbf3f77229
24949 changed files with 2839404 additions and 0 deletions

View File

@@ -0,0 +1,117 @@
@use '../common/var' as *;
@use '../mixins/mixins' as *;
@use '../mixins/var' as *;
@use './picker-panel.scss';
@use './utils.scss' as *;
@include b(date-picker) {
@include set-component-css-var('datepicker', $datepicker);
}
@include b(date-picker) {
width: 322px;
&.has-sidebar.has-time {
width: 434px;
}
&.has-sidebar {
width: 438px;
}
&.has-time .#{$namespace}-picker-panel__body-wrapper {
position: relative;
}
.#{$namespace}-picker-panel__content {
width: 292px;
}
table {
table-layout: fixed;
width: 100%;
}
@include e(editor-wrap) {
position: relative;
display: table-cell;
padding: 0 5px;
}
@include e(time-header) {
position: relative;
border-bottom: 1px solid getCssVar('datepicker-inner-border-color');
font-size: 12px;
padding: 8px 5px 5px;
display: table;
width: 100%;
box-sizing: border-box;
}
@include e(header) {
padding: 12px 12px 0;
text-align: center;
@include m(bordered) {
margin-bottom: 0;
padding-bottom: 12px;
border-bottom: solid 1px getCssVar('border-color-lighter');
& + .#{$namespace}-picker-panel__content {
margin-top: 0;
}
}
}
@include e(header-label) {
font-size: 16px;
font-weight: 500;
padding: 0 5px;
line-height: 22px;
text-align: center;
cursor: pointer;
color: getCssVar('text-color', 'regular');
&:hover {
color: getCssVar('datepicker-hover-text-color');
}
&:focus-visible {
outline: none;
color: getCssVar('datepicker-hover-text-color');
}
&.active {
color: getCssVar('datepicker-active-color');
}
}
@include e(prev-btn) {
float: left;
}
@include e(next-btn) {
float: right;
}
@include e(time-wrap) {
padding: 10px;
text-align: center;
}
@include e(time-label) {
float: left;
cursor: pointer;
line-height: 30px;
margin-left: 10px;
}
.#{$namespace}-time-panel {
position: absolute;
}
@include when(disabled) {
@include e(header-label) {
@include disable;
}
}
}

View File

@@ -0,0 +1,141 @@
@use '../mixins/mixins' as *;
@use '../common/var' as *;
@use '../mixins/var' as *;
@use './utils.scss' as *;
@include b(date-range-picker) {
@include set-component-css-var('datepicker', $datepicker);
}
@include b(date-range-picker) {
width: 646px;
&.has-sidebar {
width: 756px;
}
&.has-time .#{$namespace}-picker-panel__body-wrapper {
position: relative;
}
table {
table-layout: fixed;
width: 100%;
}
.#{$namespace}-picker-panel__body {
min-width: 513px;
}
.#{$namespace}-picker-panel__content {
margin: 0;
}
@include e(header) {
position: relative;
text-align: center;
height: 28px;
[class*='arrow-left'] {
float: left;
}
[class*='arrow-right'] {
float: right;
}
div {
font-size: 16px;
font-weight: 500;
margin-right: 50px;
}
}
@include e(header-label) {
font-size: 16px;
font-weight: 500;
padding: 0 5px;
line-height: 22px;
text-align: center;
cursor: pointer;
color: getCssVar('text-color', 'regular');
&:hover {
color: getCssVar('datepicker-hover-text-color');
}
&:focus-visible {
outline: none;
color: getCssVar('datepicker-hover-text-color');
}
&.active {
color: getCssVar('datepicker-active-color');
}
}
@include e(content) {
float: left;
width: 50%;
box-sizing: border-box;
margin: 0;
padding: 16px;
@include when(left) {
border-right: 1px solid getCssVar('datepicker-inner-border-color');
}
.#{$namespace}-date-range-picker__header {
div {
margin-left: 50px;
margin-right: 50px;
}
}
}
@include e(editors-wrap) {
box-sizing: border-box;
display: table-cell;
@include when(right) {
text-align: right;
}
}
@include e(time-header) {
position: relative;
border-bottom: 1px solid getCssVar('datepicker-inner-border-color');
font-size: 12px;
padding: 8px 5px 5px 5px;
display: table;
width: 100%;
box-sizing: border-box;
> .#{$namespace}-icon-arrow-right {
font-size: 20px;
vertical-align: middle;
display: table-cell;
color: getCssVar('datepicker-icon-color');
}
}
@include e(time-picker-wrap) {
position: relative;
display: table-cell;
padding: 0 5px;
.#{$namespace}-picker-panel {
position: absolute;
top: 13px;
right: 0;
z-index: 1;
background: $color-white;
}
.#{$namespace}-time-panel {
position: absolute;
}
}
@include when(disabled) {
@include e(header-label) {
@include disable;
}
}
}

View File

@@ -0,0 +1,164 @@
@use '../common/var' as *;
@use '../mixins/mixins' as *;
@include b(date-table) {
font-size: 12px;
user-select: none;
@include when(week-mode) {
.#{$namespace}-date-table__row {
&:hover {
.#{$namespace}-date-table-cell {
background-color: getCssVar('datepicker-inrange-bg-color');
}
td.available:hover {
color: getCssVar('datepicker-text-color');
}
td:first-child .#{$namespace}-date-table-cell {
margin-left: 5px;
border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
}
td:last-child .#{$namespace}-date-table-cell {
margin-right: 5px;
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
}
}
&.current .#{$namespace}-date-table-cell {
background-color: getCssVar('datepicker-inrange-bg-color');
}
}
}
td {
width: 32px;
height: 30px;
padding: 4px 0;
box-sizing: border-box;
text-align: center;
cursor: pointer;
position: relative;
@include b(date-table-cell) {
height: 30px;
padding: 3px 0;
box-sizing: border-box;
@include b(date-table-cell__text) {
width: 24px;
height: 24px;
display: block;
margin: 0 auto;
line-height: 24px;
position: absolute;
left: 50%;
transform: translateX(-50%);
border-radius: 50%;
}
}
&.next-month,
&.prev-month {
color: getCssVar('datepicker-off-text-color');
}
&.today {
position: relative;
.#{$namespace}-date-table-cell__text {
color: getCssVar('color-primary');
font-weight: bold;
}
&.start-date .#{$namespace}-date-table-cell__text,
&.end-date .#{$namespace}-date-table-cell__text {
color: $color-white;
}
}
&.available:hover {
color: getCssVar('datepicker-hover-text-color');
}
&.in-range .#{$namespace}-date-table-cell {
background-color: getCssVar('datepicker-inrange-bg-color');
&:hover {
background-color: getCssVar('datepicker-inrange-hover-bg-color');
}
}
&.current:not(.disabled) {
.#{$namespace}-date-table-cell__text {
color: $color-white;
background-color: getCssVar('datepicker-active-color');
}
&:focus-visible {
.#{$namespace}-date-table-cell__text {
outline: 2px solid getCssVar('datepicker-active-color');
outline-offset: 1px;
}
}
}
&.start-date .#{$namespace}-date-table-cell,
&.end-date .#{$namespace}-date-table-cell {
color: $color-white;
}
&.start-date .#{$namespace}-date-table-cell__text,
&.end-date .#{$namespace}-date-table-cell__text {
background-color: getCssVar('datepicker-active-color');
}
&.start-date .#{$namespace}-date-table-cell {
margin-left: 5px;
border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
}
&.end-date .#{$namespace}-date-table-cell {
margin-right: 5px;
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
}
&.disabled .#{$namespace}-date-table-cell {
background-color: getCssVar('fill-color', 'light');
opacity: 1;
cursor: not-allowed;
color: getCssVar('text-color', 'placeholder');
}
&.selected .#{$namespace}-date-table-cell {
margin-left: 5px;
margin-right: 5px;
border-radius: 15px;
}
&.selected .#{$namespace}-date-table-cell__text {
background-color: getCssVar('datepicker-active-color');
color: $color-white;
border-radius: 15px;
}
&.week {
font-size: 80%;
color: getCssVar('datepicker-off-text-color');
cursor: default;
}
&:focus {
outline: none;
}
}
th {
padding: 5px;
color: getCssVar('datepicker-header-text-color');
font-weight: 400;
border-bottom: solid 1px getCssVar('border-color-lighter');
&.#{$namespace}-date-table__week-header {
padding: 0;
width: 24px;
}
}
}

View File

@@ -0,0 +1,112 @@
@use '../mixins/mixins' as *;
@use '../common/var' as *;
@include b(month-table) {
font-size: 12px;
margin: -1px;
border-collapse: collapse;
td {
width: 68px;
text-align: center;
padding: 8px 0;
cursor: pointer;
position: relative;
@include b(date-table-cell) {
height: 48px;
padding: 6px 0;
box-sizing: border-box;
}
&.today {
.#{$namespace}-date-table-cell__text {
color: getCssVar('color-primary');
font-weight: bold;
}
&.start-date .#{$namespace}-date-table-cell__text,
&.end-date .#{$namespace}-date-table-cell__text {
color: $color-white;
}
}
&.disabled .#{$namespace}-date-table-cell__text {
background-color: getCssVar('fill-color', 'light');
cursor: not-allowed;
color: getCssVar('text-color', 'placeholder');
&:hover {
color: getCssVar('text-color', 'placeholder');
}
}
@include b(date-table-cell__text) {
width: 54px;
height: 36px;
display: block;
line-height: 36px;
color: getCssVar('datepicker-text-color');
margin: 0 auto;
border-radius: 18px;
position: absolute;
left: 50%;
transform: translateX(-50%);
&:hover {
color: getCssVar('datepicker-hover-text-color');
}
}
&.in-range .#{$namespace}-date-table-cell {
background-color: getCssVar('datepicker-inrange-bg-color');
&:hover {
background-color: getCssVar('datepicker-inrange-hover-bg-color');
}
}
&.start-date .#{$namespace}-date-table-cell,
&.end-date .#{$namespace}-date-table-cell {
color: $color-white;
}
&.start-date .#{$namespace}-date-table-cell__text,
&.end-date .#{$namespace}-date-table-cell__text {
color: $color-white;
background-color: getCssVar('datepicker-active-color');
}
&.start-date .#{$namespace}-date-table-cell {
margin-left: 3px;
border-top-left-radius: 24px;
border-bottom-left-radius: 24px;
}
&.end-date .#{$namespace}-date-table-cell {
margin-right: 3px;
border-top-right-radius: 24px;
border-bottom-right-radius: 24px;
}
&.current:not(.disabled) .#{$namespace}-date-table-cell {
border-radius: 24px;
margin-left: 3px;
margin-right: 3px;
}
&.current:not(.disabled) .#{$namespace}-date-table-cell__text {
color: $color-white;
background-color: getCssVar('datepicker-active-color');
}
&:focus-visible {
outline: none;
.#{$namespace}-date-table-cell__text {
outline: 2px solid getCssVar('datepicker-active-color');
outline-offset: 1px;
}
}
}
}

View File

@@ -0,0 +1,146 @@
@use '../mixins/mixins' as *;
@use '../common/var' as *;
@use './utils.scss' as *;
@include b(picker-panel) {
color: getCssVar('text-color', 'regular');
background: getCssVar('bg-color', 'overlay');
border-radius: getCssVarWithDefault(
('popper', 'border-radius'),
getCssVar('border-radius-base')
);
line-height: 30px;
.#{$namespace}-time-panel {
margin: 5px 0;
border: solid 1px getCssVar('datepicker-border-color');
background-color: getCssVar('bg-color', 'overlay');
box-shadow: getCssVar('box-shadow-light');
}
@include e((body, body-wrapper)) {
&::after {
content: '';
display: table;
clear: both;
}
}
@include e(content) {
position: relative;
margin: 15px;
}
@include e(footer) {
border-top: 1px solid getCssVar('datepicker-inner-border-color');
padding: 4px 12px;
text-align: right;
background-color: getCssVar('bg-color', 'overlay');
position: relative;
font-size: 0;
}
@include e(shortcut) {
display: block;
width: 100%;
border: 0;
background-color: transparent;
line-height: 28px;
font-size: 14px;
color: getCssVar('datepicker-text-color');
padding-left: 12px;
text-align: left;
outline: none;
cursor: pointer;
&:hover {
color: getCssVar('datepicker-hover-text-color');
}
&.active {
background-color: #e6f1fe;
color: getCssVar('datepicker-active-color');
}
}
@include e(btn) {
border: 1px solid getCssVar('fill-color', 'darker');
color: getCssVar('text-color', 'primary');
line-height: 24px;
border-radius: 2px;
padding: 0 20px;
cursor: pointer;
background-color: transparent;
outline: none;
font-size: 12px;
&[disabled] {
color: getCssVar('text-color', 'disabled');
cursor: not-allowed;
}
}
@include e(icon-btn) {
font-size: 12px;
color: getCssVar('datepicker-icon-color');
border: 0;
background: transparent;
cursor: pointer;
outline: none;
margin-top: 8px;
&:hover {
color: getCssVar('datepicker-hover-text-color');
}
&:focus-visible {
color: getCssVar('datepicker-hover-text-color');
}
@include when(disabled) {
@include disable;
}
& .#{$namespace}-icon {
cursor: pointer;
font-size: inherit;
}
}
@include e(link-btn) {
vertical-align: middle;
}
@include when(disabled) {
@include e(prev-btn) {
@include disable;
}
@include e(next-btn) {
@include disable;
}
@include e(icon-btn) {
@include disable;
}
@include e(shortcut) {
@include disable;
}
}
}
.#{$namespace}-picker-panel *[slot='sidebar'],
.#{$namespace}-picker-panel__sidebar {
position: absolute;
top: 0;
bottom: 0;
width: 110px;
border-right: 1px solid getCssVar('datepicker-inner-border-color');
box-sizing: border-box;
padding-top: 6px;
overflow: auto;
}
.#{$namespace}-picker-panel
*[slot='sidebar']
+ .#{$namespace}-picker-panel__body,
.#{$namespace}-picker-panel__sidebar + .#{$namespace}-picker-panel__body {
margin-left: 110px;
}

View File

@@ -0,0 +1,217 @@
@use 'sass:map';
@use '../mixins/mixins' as *;
@use '../mixins/var' as *;
@use '../common/var' as *;
@use '../common/transition' as *;
@include b(picker) {
@include e(popper) {
@include set-css-var-type('datepicker', 'border-color', $datepicker);
@include picker-popper(
getCssVar('bg-color', 'overlay'),
1px solid getCssVar('datepicker', 'border-color'),
getCssVar('box-shadow', 'light')
);
}
}
@include b(date-editor) {
@include set-component-css-var('date-editor', $date-editor);
@include set-component-css-var('input', $input);
position: relative;
text-align: left;
vertical-align: middle;
&.#{$namespace}-input__wrapper {
@include inset-input-border(
var(
#{getCssVarName('input-border-color')},
map.get($input, 'border-color')
)
);
&:hover {
@include inset-input-border(#{getCssVar('input', 'hover-border-color')});
}
}
@include when(focus) {
.#{$namespace}-input__wrapper {
@include inset-input-border(#{getCssVar('input', 'focus-border-color')});
}
}
&.#{$namespace}-input,
&.#{$namespace}-input__wrapper {
width: getCssVar('date-editor-width');
height: var(#{getCssVarName('input-height')}, getCssVar('component-size'));
}
@include m((monthrange)) {
@include css-var-from-global(
'date-editor-width',
'date-editor-monthrange-width'
);
}
@include m((daterange, timerange)) {
@include css-var-from-global(
'date-editor-width',
'date-editor-daterange-width'
);
}
@include m(datetimerange) {
@include css-var-from-global(
'date-editor-width',
'date-editor-datetimerange-width'
);
}
@include m(dates) {
.#{$namespace}-input__wrapper {
text-overflow: ellipsis;
white-space: nowrap;
}
}
.close-icon {
cursor: pointer;
}
.clear-icon {
cursor: pointer;
&:hover {
color: getCssVar('input-clear-hover-color');
}
}
.#{$namespace}-range__icon {
height: inherit;
font-size: 14px;
color: getCssVar('text-color', 'placeholder');
float: left;
svg {
vertical-align: middle;
}
}
.#{$namespace}-range-input {
appearance: none;
border: none;
outline: none;
display: inline-block;
height: #{map.get($input-height, 'default') - 2};
line-height: #{map.get($input-height, 'default') - 2};
margin: 0;
padding: 0;
width: 39%;
text-align: center;
font-size: getCssVar('font-size', 'base');
color: getCssVar('text-color', 'regular');
background-color: transparent;
&::placeholder {
color: getCssVar('text-color', 'placeholder');
}
}
.#{$namespace}-range-separator {
flex: 1;
display: inline-flex;
justify-content: center;
align-items: center;
height: 100%;
padding: 0 5px;
margin: 0;
font-size: 14px;
overflow-wrap: break-word;
color: getCssVar('text-color', 'primary');
}
.#{$namespace}-range__close-icon {
font-size: 14px;
color: getCssVar('text-color', 'placeholder');
height: inherit;
width: unset;
cursor: pointer;
&:hover {
color: getCssVar('input-clear-hover-color');
}
svg {
vertical-align: middle;
}
&--hidden {
opacity: 0;
visibility: hidden;
}
}
}
@include b(range-editor) {
&.#{$namespace}-input__wrapper {
display: inline-flex;
align-items: center;
padding: 0 10px;
vertical-align: middle;
}
@include when(active) {
@include inset-input-border(#{getCssVar('input', 'focus-border-color')});
&:hover {
@include inset-input-border(#{getCssVar('input', 'focus-border-color')});
}
}
@each $size in (large, small) {
@include m($size) {
line-height: getCssVar('component-size', $size);
&.#{$namespace}-input__wrapper {
height: getCssVar('component-size', $size);
}
.#{$namespace}-range-separator {
line-height: map.get($input-line-height, $size);
font-size: map.get($input-font-size, $size);
}
.#{$namespace}-range-input {
height: #{map.get($input-height, $size) - 2};
line-height: #{map.get($input-height, $size) - 2};
font-size: map.get($input-font-size, $size);
}
}
}
@include when(disabled) {
background-color: map.get($input-disabled, 'fill');
border-color: map.get($input-disabled, 'border');
color: map.get($input-disabled, 'text-color');
cursor: not-allowed;
&:hover,
&:focus {
border-color: map.get($input-disabled, 'border');
}
input {
background-color: map.get($input-disabled, 'fill');
color: map.get($input-disabled, 'text-color');
cursor: not-allowed;
&::placeholder {
color: map.get($input-disabled, 'placeholder-color');
}
}
.#{$namespace}-range-separator {
color: map.get($input-disabled, 'text-color');
}
}
}

View File

@@ -0,0 +1,90 @@
@use '../mixins/mixins' as *;
@use '../common/var' as *;
@include b(time-panel) {
border-radius: 2px;
position: relative;
width: 180px;
left: 0;
z-index: getCssVar('index-top');
user-select: none;
box-sizing: content-box;
@include e(content) {
font-size: 0;
position: relative;
overflow: hidden;
&::after,
&::before {
content: '';
top: 50%;
position: absolute;
margin-top: -16px;
height: 32px;
z-index: -1;
left: 0;
right: 0;
box-sizing: border-box;
padding-top: 6px;
text-align: left;
}
&::after {
left: 50%;
margin-left: 12%;
margin-right: 12%;
}
&::before {
padding-left: 50%;
margin-right: 12%;
margin-left: 12%;
border-top: 1px solid getCssVar('border-color-light');
border-bottom: 1px solid getCssVar('border-color-light');
}
&.has-seconds {
&::after {
left: calc(100% / 3 * 2);
}
&::before {
padding-left: calc(100% / 3);
}
}
}
@include e(footer) {
border-top: 1px solid
var(
#{getCssVarName('timepicker-inner-border-color')},
#{getCssVar('border-color-light')}
);
padding: 4px;
height: 36px;
line-height: 25px;
text-align: right;
box-sizing: border-box;
}
@include e(btn) {
border: none;
line-height: 28px;
padding: 0 5px;
margin: 0 5px;
cursor: pointer;
background-color: transparent;
outline: none;
font-size: 12px;
color: getCssVar('text-color', 'primary');
&.confirm {
font-weight: 800;
color: var(
#{getCssVarName('timepicker-active-color')},
#{getCssVar('color-primary')}
);
}
}
}

View File

@@ -0,0 +1,33 @@
@use '../mixins/mixins' as *;
@use '../common/var' as *;
@include b(time-range-picker) {
width: 354px;
overflow: visible;
@include e(content) {
position: relative;
text-align: center;
padding: 10px;
z-index: 1;
}
@include e(cell) {
box-sizing: border-box;
margin: 0;
padding: 4px 7px 7px;
width: 50%;
display: inline-block;
}
@include e(header) {
margin-bottom: 5px;
text-align: center;
font-size: 14px;
}
@include e(body) {
border-radius: 2px;
border: 1px solid getCssVar('datepicker-border-color');
}
}

View File

@@ -0,0 +1,111 @@
@use '../mixins/mixins' as *;
@use '../common/var' as *;
@include b(time-spinner) {
&.has-seconds {
.#{$namespace}-time-spinner__wrapper {
width: 33.3%;
}
}
@include e(wrapper) {
max-height: 192px;
overflow: auto;
display: inline-block;
width: 50%;
vertical-align: top;
position: relative;
&.#{$namespace}-scrollbar__wrap:not(.#{$namespace}-scrollbar__wrap--hidden-default) {
padding-bottom: 15px;
}
@include when(arrow) {
box-sizing: border-box;
text-align: center;
overflow: hidden;
.#{$namespace}-time-spinner__list {
transform: translateY(-32px);
}
.#{$namespace}-time-spinner__item:hover:not(.is-disabled):not(.is-active) {
background: getCssVar('fill-color', 'light');
cursor: default;
}
}
}
@include e(arrow) {
font-size: 12px;
color: getCssVar('text-color', 'secondary');
position: absolute;
left: 0;
width: 100%;
z-index: getCssVar('index-normal');
text-align: center;
height: 30px;
line-height: 30px;
cursor: pointer;
&:hover {
color: getCssVar('color-primary');
}
&.arrow-up {
top: 10px;
}
&.arrow-down {
bottom: 10px;
}
}
@include e(input) {
&.#{$namespace}-input {
width: 70%;
.#{$namespace}-input__inner {
padding: 0;
text-align: center;
}
}
}
@include e(list) {
padding: 0;
margin: 0;
list-style: none;
text-align: center;
&::after,
&::before {
content: '';
display: block;
width: 100%;
height: 80px;
}
}
@include e(item) {
height: 32px;
line-height: 32px;
font-size: 12px;
color: getCssVar('text-color', 'regular');
&:hover:not(.is-disabled):not(.is-active) {
background: getCssVar('fill-color', 'light');
cursor: pointer;
}
&.is-active:not(.is-disabled) {
color: getCssVar('text-color', 'primary');
font-weight: bold;
}
&.is-disabled {
color: getCssVar('text-color', 'placeholder');
cursor: not-allowed;
}
}
}

View File

@@ -0,0 +1,14 @@
@use '../mixins/mixins' as *;
@use '../common/var' as *;
@mixin disable {
color: getCssVar('text-color-disabled');
&:hover {
cursor: not-allowed;
}
& .#{$namespace}-icon {
cursor: inherit;
}
}

View File

@@ -0,0 +1,108 @@
@use '../mixins/mixins' as *;
@use '../common/var' as *;
@include b(year-table) {
font-size: 12px;
margin: -1px;
border-collapse: collapse;
.#{$namespace}-icon {
color: getCssVar('datepicker', 'icon-color');
}
td {
width: 68px;
text-align: center;
padding: 8px 0px;
cursor: pointer;
position: relative;
@include b(date-table-cell) {
height: 48px;
padding: 6px 0;
box-sizing: border-box;
}
&.today {
.#{$namespace}-date-table-cell__text {
color: getCssVar('color', 'primary');
font-weight: bold;
}
&.start-date .#{$namespace}-date-table-cell__text,
&.end-date .#{$namespace}-date-table-cell__text {
color: $color-white;
}
}
&.disabled .#{$namespace}-date-table-cell__text {
background-color: getCssVar('fill-color', 'light');
cursor: not-allowed;
color: getCssVar('text-color', 'placeholder');
&:hover {
color: getCssVar('text-color', 'placeholder');
}
}
@include b(date-table-cell__text) {
width: 60px;
height: 36px;
display: block;
line-height: 36px;
color: getCssVar('datepicker-text-color');
border-radius: 18px;
margin: 0 auto;
position: absolute;
left: 50%;
transform: translateX(-50%);
&:hover {
color: getCssVar('datepicker-hover-text-color');
}
}
&.in-range .#{$namespace}-date-table-cell {
background-color: getCssVar('datepicker-inrange-bg-color');
&:hover {
background-color: getCssVar('datepicker-inrange-hover-bg-color');
}
}
&.start-date .#{$namespace}-date-table-cell,
&.end-date .#{$namespace}-date-table-cell {
color: $color-white;
}
&.start-date .#{$namespace}-date-table-cell__text,
&.end-date .#{$namespace}-date-table-cell__text {
color: $color-white;
background-color: getCssVar('datepicker-active-color');
}
&.start-date .#{$namespace}-date-table-cell {
border-top-left-radius: 24px;
border-bottom-left-radius: 24px;
}
&.end-date .#{$namespace}-date-table-cell {
border-top-right-radius: 24px;
border-bottom-right-radius: 24px;
}
&.current:not(.disabled) .#{$namespace}-date-table-cell__text {
color: $color-white;
background-color: getCssVar('datepicker-active-color');
}
&:focus-visible {
outline: none;
.#{$namespace}-date-table-cell__text {
outline: 2px solid getCssVar('datepicker-active-color');
outline-offset: 1px;
}
}
}
}