Skip to content
2 changes: 1 addition & 1 deletion 11ty/CustomLiquid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class CustomLiquid extends Liquid {
$("figcaption").each((i, el) => {
const $el = $(el);
if (!$el.find("p").length) $el.wrapInner("<p></p>");
$el.prepend(`Figure ${i + 1}`);
$el.find("p").first().prepend(`<span>Figure ${i + 1}.</span> `);
});

// Remove spurious copy-pasted content in 2.5.3 that doesn't belong there
Expand Down
22 changes: 21 additions & 1 deletion css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down