Mailing List Archive

rt branch 5.0/fix-pre-block-style created. rt-5.0.5-95-g4af2942ed8
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/fix-pre-block-style has been created
at 4af2942ed8dbb9e61376d465beb8c3bd267ed6e6 (commit)

- Log -----------------------------------------------------------------
commit 4af2942ed8dbb9e61376d465beb8c3bd267ed6e6
Author: Ronaldo Richieri <ronaldo@bestpractical.com>
Date: Thu Dec 21 09:26:41 2023 -0300

Add CSS definition for "pre" blocks

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".

diff --git a/share/static/css/elevator-light/base.css b/share/static/css/elevator-light/base.css
index 5938f2977b..7df9fdcef8 100644
--- a/share/static/css/elevator-light/base.css
+++ b/share/static/css/elevator-light/base.css
@@ -14,3 +14,8 @@ dl {
dd {
margin-bottom: .6rem;
}
+
+pre {
+ font-family: monospace, Courier;
+ font-size: 100%;
+}

-----------------------------------------------------------------------


hooks/post-receive
--
rt
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
https://lists.bestpractical.com/mailman/listinfo/rt-commit