Commit graph

7 commits

Author SHA1 Message Date
2d22420f3d Make sure border color of site header and footer match
Consolidate styles of site header and site footer components since they're so
closely related.
2024-10-31 10:53:59 -07:00
50dc3c45c1 Allow the menu to specify a style for the item
Style changes the trailing character, a la ls -F. The default is 'dir', appending
a slash `/`. You can also specify 'file' to append a '*'.
2024-10-20 09:18:34 -07:00
deefba4192 SiteHeader: Make the font sizes bigger and bolder 2024-08-02 15:48:07 -07:00
1b463e35d8 Use trailing / for sections in the site header
Just like `ls`.
2024-08-01 18:22:25 -07:00
8a00cc6de9 Colors: Allow setting the color scheme explicitly
In addition to the color scheme changing based on the system setting, enable
setting the color scheme explicitly by adding a color-scheme="light | dark" attribute
on the <html> element.

Doing this was a bit tricky. I originally implemented the grayscale ramp by
reversing it when prefers-color-scheme: dark. This was convenient, but meant that
setting the color scheme explicitly didn't work.

Along the way I discovered the light-dark() CSS function. Deploy that as the preferred
style if the browser supports it. Otherwise, fall back on the prefers-color-scheme
media queries. This function only works if color-scheme: light dark is set on the
:root element.
2024-07-27 23:01:31 -07:00
1ffbee8850 Structure: Collapse the outer grid columns (margins and gutters) on small screens
Let the border of the site header and footer touch the edges of the screen too.
2024-07-25 09:55:51 -07:00
36bee20ec4 Move site_header.css from 099 to 080 2024-07-23 08:42:25 -07:00