Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions src/components/LinearCalendar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
background-color: var(--cal-header-cell-bg);
/* Stick to top */
z-index: 510;
box-shadow: 0 0 0 4px var(--cal-header-cell-bg);
/* Band fill across the 4px gaps, plus a 1px line that peeks out at the bottom
to separate the header from the calendar content. The line is removed by
.hideSeparators (it belongs to the "separators" view setting). */
box-shadow: 0 0 0 4px var(--cal-header-cell-bg), 0 1px 0 4px var(--border-color);
}

.headerCell.sunday {
Expand Down Expand Up @@ -285,19 +288,18 @@
display: none;
}

/* Gridlines toggle also clears the header underline, so the weekday header
stays consistent with the (now line-less) grid instead of keeping a fixed
line regardless of the toggle. */
/* Separators off -> keep the header band but drop its bottom separator line. */
.hideSeparators .headerCell {
box-shadow: 0 0 0 4px var(--cal-header-cell-bg);
}

/* Gridlines toggle clears the day-cell borders only; the weekday header band is
independent of it (its separator line is controlled by .hideSeparators). */
.hideGridlines .dayCell {
border: 1px solid transparent !important;
box-shadow: none !important;
}

.hideGridlines .headerCell {
background-color: var(--bg-primary);
box-shadow: 0 0 0 4px var(--bg-primary);
}

/* Ensure explicit removal of old border override attempts if any remain */
.container:not(.hideSeparators) .weekSeparator {
border-left: 1px solid var(--border-color);
Expand Down
Loading