mirror of
https://github.com/rust-lang/book.git
synced 2026-04-02 09:24:13 -04:00
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.)
14 lines
431 B
CSS
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);
|
|
}
|