vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views

Home Page:https://vkurko.github.io/calendar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

vkurko opened this issue · comments

Discussed in #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.

.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;
}
```</div>

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.

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

I hope I can close this issue.