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
15 changes: 15 additions & 0 deletions src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ html[data-theme='dark'] {
html {
box-sizing: border-box;
scroll-padding-block-start: var(--scroll-pad);
/* Search and the mobile nav lock scrolling by hiding the body's overflow,
which takes the scrollbar with it. Holding the gutter open keeps the
viewport a constant width, so the fixed header stays put. */
scrollbar-gutter: stable;
}

*,
Expand Down Expand Up @@ -2434,6 +2438,17 @@ a[data-youtube] {
visibility: visible;
}

/* The overlay is fixed, so it stops at the reserved scrollbar gutter and leaves
that strip showing the undimmed page color once the scrollbar goes. Painting
the same wash onto the canvas carries the dimming across it. */
html:has(.site-search__wrapper.is-active) {
background-color: var(--color-base-primary);
background-image: linear-gradient(
var(--search-overlay),
var(--search-overlay)
);
}

.site-search__icon path {
fill: var(--blue-grey-light);
}
Expand Down