Commit graph

11 commits

Author SHA1 Message Date
f353336c9e Content: Add .page-footer to the list of main content elements 2024-08-08 10:23:08 -10:00
c97b24977d Codeblocks: Move codeblock styles to their own stylesheet 2024-08-02 16:10:43 -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
cb8ad426d5 Headings: Move the anchor #
Draw only one hash for headings, and place them in the gutter in wide layouts,
or trailing the heading text in narrow layouts. Do this with grid in the wide
version, and flexbox in the narrow layout.

Add a --text-color-light CSS variable for content that should be lighter than
--text-color-secondary.
2024-07-27 09:30:03 -07:00
8d1ce0208a Structure: Place footnotes in the main column
Add .footnotes to the list of selectors that are put in the main content column.
2024-07-25 10:13:06 -07:00
97f088e99f Implement content styles 2024-07-23 09:11:41 -07:00
961efba654 Remove letter spacing from the heading anchor 2024-07-23 09:07:55 -07:00
cce432fe0b RenderHooks: Reconfigure the heading hashes
Instead of a single hash in the left gutter, draw <n> hashes where <n> is the
heading level. All of these hashes are part of the anchor text.
2024-07-20 17:29:49 -07:00
3cbce149ba Build the page scaffolding with CSS grid
Grid columns are symmetrical. From the outside in, they are:

- outer margin
- inner margin
- wide gutter
- inner gutter
- main content
2024-07-06 11:07:52 -07:00
f0bc94fdb2 The .content-date style is given by text--small now 2024-07-06 11:03:29 -07:00
b50f4c6a92 Move styles for content elements to 099_content.css 2024-07-03 07:41:23 -07:00