Skip to content

Commit

Permalink
Udate DateRangePicker styles
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyTripleA committed Oct 21, 2024
1 parent b077914 commit adbf02a
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions packages/frontend/src/components/calendar/DateRangePicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

$border-radius: 10px;
$font-color: #fff;
$range-background-color: rgba(var(--chakra-colors-gray-800-rgb), .5);

.DateRangePicker {
display: flex;
Expand Down Expand Up @@ -70,7 +71,7 @@ $font-color: #fff;
margin: 5px;

&:hover {
background-color: rgba(var(--chakra-colors-gray-800-rgb), .5)
background-color: $range-background-color;
}

&:disabled {
Expand Down Expand Up @@ -134,7 +135,7 @@ $font-color: #fff;
}

&--hover, &--range {
background-color: rgba(var(--chakra-colors-gray-800-rgb), .5) !important;
background-color: $range-background-color !important;
border-radius: 0;
}

Expand All @@ -144,7 +145,7 @@ $font-color: #fff;
color: $font-color;

&:hover {
background-color: $color-brand-light !important;
background-color: $color-brand-light !important;
}
}

Expand Down Expand Up @@ -174,7 +175,7 @@ $font-color: #fff;
&:enabled {
&:hover,
&:focus {
background-color: rgba(var(--chakra-colors-gray-800-rgb), .5);
background-color: $range-background-color;
border-radius: $border-radius;
overflow: hidden;
}
Expand All @@ -193,14 +194,31 @@ $font-color: #fff;

&__days {
&__day {
&--weekend, &--neighboringMonth {
&--weekend:not(.react-calendar__month-view__days__day--neighboringMonth) {
color: $font-color;
}
}
}
}
}

&:not(&--SingleCalendar) {
.react-calendar {
&__month-view {
&__days {
&__day {
&--neighboringMonth {
&.react-calendar__tile--rangeEnd,
&.react-calendar__tile--rangeStart {
background: $range-background-color !important;
}
}
}
}
}
}
}

@media screen and (max-width: $breakpoint-xl) {
.react-calendar {
&__tile {
Expand Down

0 comments on commit adbf02a

Please sign in to comment.