hugo-theme-termlite/assets/css
Eryn Wells 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
..
000_reset.css
010_anchors.css Meta: Remove all the block comments at the top of CSS assets 2024-07-25 13:11:40 -07:00
010_colors.css Colors: Allow setting the color scheme explicitly 2024-07-27 23:01:31 -07:00
010_spacing.css Meta: Remove all the block comments at the top of CSS assets 2024-07-25 13:11:40 -07:00
010_structure.css Structure: Make the gutters smaller on screens <= 480px 2024-07-25 13:12:45 -07:00
010_typography.css Colors: Allow setting the color scheme explicitly 2024-07-27 23:01:31 -07:00
050_figures.css Colors: Allow setting the color scheme explicitly 2024-07-27 23:01:31 -07:00
050_lists.css Meta: Remove all the block comments at the top of CSS assets 2024-07-25 13:11:40 -07:00
050_quotations.css Colors: Allow setting the color scheme explicitly 2024-07-27 23:01:31 -07:00
080_site_footer.css Colors: Allow setting the color scheme explicitly 2024-07-27 23:01:31 -07:00
080_site_header.css Colors: Allow setting the color scheme explicitly 2024-07-27 23:01:31 -07:00
090_content_headers.css Headings: Move the anchor # 2024-07-27 09:30:03 -07:00
099_content.css Colors: Allow setting the color scheme explicitly 2024-07-27 23:01:31 -07:00
099_footnotes.css
099_page_footer.css Add the page footer stylesheet 2024-07-23 08:54:30 -07:00
099_page_header.css Colors: Allow setting the color scheme explicitly 2024-07-27 23:01:31 -07:00
099_page_summary.css Clean up page summary and update styles 2024-07-23 09:04:22 -07:00
099_table_of_contents.css Add a table of contents to the single template 2024-07-23 08:57:21 -07:00
099_taxonomy_list.css