Commit graph

22 commits

Author SHA1 Message Date
efae2acdea Simplify figure styles and markup
Remove the .figure__container element. According to Tess, putting a <figcaption>
inside a child of a <figure> "doesn't obey the content model" or some shit.
Fiiiiine.

Getting small figures to lay out the way I want them to without the container
was a bit of a trick. Instead of letting the figure span the entire width of the
grid column, let it fit the size of its contents, and then set margin-inline to
auto so it centers.

Doing this also allowed me to remove the .figure--image, etc styles because the
styles and markup are a lot more similar among figures containing different
kinds of elements. Nice!
2024-11-25 15:48:04 -08:00
e8daeda08b Convert elementsWithXLBlockMargins to a slice that's joined with ", " 2024-11-24 10:18:45 -08:00
b7ae6211ce Tweak <hr> so it looks good in dark mode 2024-11-19 20:53:28 -08:00
c5cc95052d Spacing refinements for lists and paragraphs
Add list elements to the paragraph spacing styles so they're all consistent.
2024-11-16 09:38:53 -08:00
ba9d309e1e Set spacing between paragraphs and lists to standard paragraph spacing 2024-11-15 20:43:27 -08:00
e04e7dafa3 Render blockquotes in a figure
Render cite and caption too.
2024-11-06 09:31:16 -08:00
f29f409642 A few miscellaneous style fixes
- Add some padding to the top of the footnotes block
- Add .figure--video to the list of elements that get XL block margins
2024-10-31 08:02:50 -07:00
4c689f0f5c Reduce the depth of the DOM and simplify the CSS a bit
Remove the main intermediate container. It wasn't acutally serving a purpose.
Remove some of the BEM-style classes that also weren't really doing anything.
2024-10-13 23:13:16 -07:00
b112558914 Add some styles for code and image figures
These elements are created with the figures/image shortcodes from the old site.
Make them wide, and give them XL block margins.

Along the way, make sure that any element with only an <img> child has a line height
of 1 to avoid a weird gap below the image.
2024-10-11 16:37:24 -07:00
6c59f940be Add <table> to the list of elements that use XXL block margins 2024-10-10 23:02:27 -07:00
e1ad32ab12 Add styles for youtube figures
Bring over the youtube shortcode from the old theme, and add styles for the figures
it creates. Add the .figure--youtube class to the <figure> element.
2024-10-08 22:24:39 -07:00
9baf615ebd Clean up the spacing of content header elements stacked next to each other 2024-10-08 22:24:16 -07:00
737ec20e3c Meta: Remove all the block comments at the top of CSS assets 2024-07-25 13:11:40 -07:00
0e32ba9759 Remove a bunch of styles from the spacing stylesheet
These have mostly been disbursed to the stylesheets for individual components.
2024-07-23 09:09:05 -07:00
234acb08b8 Move blockquote styles to a new quotations stylesheet 2024-07-23 09:03:23 -07:00
67cd4277c0 Add extra margin around the <hr> in the footnotes styles 2024-07-06 11:08:20 -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
5cf12c7a39 Spacing: Add .figure--image to the list of blocks with large vertical margins 2024-07-03 07:41:23 -07:00
b50f4c6a92 Move styles for content elements to 099_content.css 2024-07-03 07:41:23 -07:00
0ff918898b Set heading spacing to L above and M below 2024-06-29 10:30:17 -07:00
45b0c117e0 Reimplement the size_scale partial as base/_size_scale.html
I accidentally deleted it. Move it here and reimplement it.
2024-06-29 10:29:49 -07:00
4bc1390b3c CSS Checkpoint
- Add the system_css template
- Name the CSS files in the css directory with a numeric prefix so they sort by
  priority.
2024-06-28 09:03:28 -07:00