Skip to content

Commit

Permalink
Add CSS definition for "pre" blocks
Browse files Browse the repository at this point in the history
Bootstrap sets the "pre" font-face to "Inter" before "monospace", which
ends up using the "Inter" font for "pre" blocks.  This is not ideal for
code blocks because it is not a monospaced font and will render code
or inline tables misaligned.

This commit adds a CSS definition for "pre" blocks that sets the
font-face to "monospace" with a fallback to "Courier".
  • Loading branch information
richieri-bps committed Dec 21, 2023
1 parent d45c955 commit 4af2942
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions share/static/css/elevator-light/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ dl {
dd {
margin-bottom: .6rem;
}

pre {
font-family: monospace, Courier;
font-size: 100%;
}

0 comments on commit 4af2942

Please sign in to comment.