diff --git a/11ty/CustomLiquid.ts b/11ty/CustomLiquid.ts index b8f550f022..d2577cdd24 100644 --- a/11ty/CustomLiquid.ts +++ b/11ty/CustomLiquid.ts @@ -243,7 +243,7 @@ export class CustomLiquid extends Liquid { $("figcaption").each((i, el) => { const $el = $(el); if (!$el.find("p").length) $el.wrapInner("
"); - $el.prepend(`Figure ${i + 1}`); + $el.find("p").first().prepend(`Figure ${i + 1}. `); }); // Remove spurious copy-pasted content in 2.5.3 that doesn't belong there diff --git a/css/base.css b/css/base.css index 25a82c2c1f..be7d1dd2e0 100644 --- a/css/base.css +++ b/css/base.css @@ -430,6 +430,26 @@ margin-right:.8em; margin-left: 2em; } +/* overrides for restyled figures and captions */ + +figure { + margin: 2em 0; + padding-left: 1em; + border-left: 2px solid var(--cloudy); +} + +figure img, +figure video, +figure svg { + border: 1px solid var(--line-grey); +} + +figcaption { + font-weight: initial; + border-bottom: initial; + font-size: 0.9rem; +} + @media (max-width: 35em) { .nav-container { padding: 0; @@ -438,7 +458,7 @@ margin-right:.8em; display: inline-block; width: calc(100% - 2em); } - @supports (display:gred) { + @supports (display:grid) { #site-header { padding-left: 0; }