Skip to content

Commit

Permalink
Fixed partially in history own reservation styles in overnight calend…
Browse files Browse the repository at this point in the history
…ar (#327)

Special style rules for own reservation in history when editing were missing. This change fixes the missing styles issue.
  • Loading branch information
SanttuA authored May 22, 2024
1 parent d3d4d2a commit 8e729ed
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions app/shared/overnight-calendar/_overnight-calendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
}
}

&--highlighted:not(.DayPicker-Day--disabled) {
&--highlighted {
background-color: $highlighted-color;

&.DayPicker-Day--selected {
Expand Down Expand Up @@ -192,6 +192,10 @@
@include add-focus(2px, $black) {}
}

.DayPicker-Day--start.DayPicker-Day--disabled:not(.DayPicker-Day--booked):not(.DayPicker-Day--prevBooked) {
background: linear-gradient($half-day-angle, $medium-gray 49%, $highlighted-color 50%);
}

.DayPicker-Day--nextClosed.DayPicker-Day--prevBooked {
background: linear-gradient($half-day-angle, $booked-color 49%, $medium-gray 50%);
color: $black;
Expand All @@ -210,11 +214,16 @@
color: $black;
}

.DayPicker-Day--prevBooked.DayPicker-Day--disabled:not(.DayPicker-Day--booked) {
.DayPicker-Day--prevBooked.DayPicker-Day--disabled:not(.DayPicker-Day--booked):not(.DayPicker-Day--start) {
background: linear-gradient($half-day-angle, $booked-color 49%, $medium-gray 50%);
color: $black;
}

.DayPicker-Day--prevBooked.DayPicker-Day--disabled.DayPicker-Day--start:not(.DayPicker-Day--booked) {
background: linear-gradient($half-day-angle, $booked-color 49%, $highlighted-color 50%);
color: $black;
}

.DayPicker-Day--booked.DayPicker-Day--prevClosed {
background: linear-gradient($half-day-angle, $medium-gray 49%, $booked-color 50%);
}
Expand Down

0 comments on commit 8e729ed

Please sign in to comment.