Remove weekend background tint — cross-browser compositing unreliable

After 10+ attempts, semi-transparent HSL values on near-black backgrounds
produce visible teal artifacts in Firefox due to compositor divergence.
Weekday/weekend frames now use identical --fc-neutral-bg-color. FC's own
weekend td background is neutralised with transparent !important.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Kyle 2026-03-13 20:30:08 +08:00
parent a0ccaaa4bc
commit a0533ee0a7

View File

@ -164,20 +164,13 @@
} }
} }
/* Weekend column tint */ /* Weekend columns: neutralise FullCalendar's built-in weekend td background.
/* Month view: paint the fc-daygrid-day-frame (FC6 inner div) with 5% white overlay. The frame inherits --fc-neutral-bg-color identically to weekdays.
The parent <td> bg is hidden behind the frame painted by --fc-neutral-bg-color, so Weekend tint removed after 10+ attempts cross-browser compositing divergence
the tint must target the frame itself, not the td. */ (Firefox produces teal artifact from semi-transparent HSL on near-black bg). */
.fc .fc-day-sat .fc-daygrid-day-frame, .fc .fc-day-sat,
.fc .fc-day-sun .fc-daygrid-day-frame { .fc .fc-day-sun {
background-color: hsl(0 0% 9% / 0.65) !important; background-color: transparent !important;
}
/* Weekend tint: timegrid column cells (week/day view) */
.fc .fc-timegrid-col.fc-day-sat,
.fc .fc-timegrid-col.fc-day-sun {
background-color: hsl(0 0% 5.5%) !important;
} }