Files
book/theme/semantic-notes.css
Chris Krycho da7a20f2fc Emit semantic HTML instead of blockquotes for notes
Use the newly-introduced `mdbook-trpl-note` to render accessible and
semantic HTML for the notes/callouts in the book. This currently applies
to the nostarch version as well, so a follow-on change will update the
build process to undo that. Add CSS so the new note rendering matches
the existing rendering of blockquotes. (We might want to change that at
some point, but for now the goal is to maximizing continuity.)
2024-04-29 16:18:34 -06:00

14 lines
431 B
CSS

/*
This is copied directly from the styles for blockquotes, because notes were
historically rendered *as* blockquotes. This keeps the presentation of them
identical while updating the presentation.
*/
.note {
margin: 20px 0;
padding: 0 20px;
color: var(--fg);
background-color: var(--quote-bg);
border-block-start: 0.1em solid var(--quote-border);
border-block-end: 0.1em solid var(--quote-border);
}