vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
1.23k stars 108 forks source link

Is there any way to highlight the Saturday and Sunday columns? #156

Closed vkurko closed 1 year ago

vkurko commented 1 year ago

Discussed in https://github.com/vkurko/calendar/discussions/154

Originally posted by **ademaro** July 11, 2023 Done so far, but it's not the best option, I suspect (my week starts on Monday). I would be grateful if you could tell me how to do it more correctly. ```css .ec-month .ec-content .ec-day:nth-last-of-type(1), .ec-month .ec-content .ec-day:nth-last-of-type(2), .ec-week .ec-content .ec-day:nth-last-of-type(1), .ec-week .ec-content .ec-day:nth-last-of-type(2) { background-color: #ececec; } ```
vkurko commented 1 year ago

Currently, only the highlightedDates option is available for this purpose.

It looks like I need to add separate classes for each day of the week in order to be able to use the css.

vkurko commented 1 year ago

@ademaro Version 2.3.0 introduced separate CSS classes for each day of the week. Please check.

vkurko commented 1 year ago

I hope I can close this issue.