diff --git a/resources/js/Shared/Widgets/VacationCalendar.vue b/resources/js/Shared/Widgets/VacationCalendar.vue index 7d9de57..9733341 100644 --- a/resources/js/Shared/Widgets/VacationCalendar.vue +++ b/resources/js/Shared/Widgets/VacationCalendar.vue @@ -123,12 +123,12 @@
@@ -226,6 +226,7 @@ const customCalendar = { dayNumber: day.day, isCurrentMonth: isInCurrentMonth(day), isToday: isToday(day), + isWeekend: isWeekend(day), } }, } @@ -317,6 +318,10 @@ function isInCurrentMonth(date) { return calendar.currents.month === date.month } +function isWeekend(date) { + return date.weekday === 6 || date.weekday === 7 +} + function isToday(date) { return date.toISODate() === DateTime.local().toISODate() } @@ -343,11 +348,6 @@ function isToday(date) { content: "Pt"; } -.day:nth-of-type(7n - 1):before, -.day:nth-of-type(7n):before { - color: #991b1b; -} - .day:nth-of-type(7n - 1):before { content: "Sb"; } @@ -355,8 +355,4 @@ function isToday(date) { .day:nth-of-type(7n):before { content: "Nd"; } - -.month-day:nth-of-type(7n - 1), .month-day:nth-of-type(7n) { - background-color: #fee2e2; -}