[Rt-commit] rt branch 5.0/fix-pre-block-style created. rt-5.0.5-95-g4af2942ed8

BPS Git Server git at git.bestpractical.com
Thu Dec 21 12:27:06 UTC 2023


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 at 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


More information about the rt-commit mailing list