# HG changeset patch
# User Thomas De Schampheleire <[email protected]>
# Date 1525609875 -7200
# Sun May 06 14:31:15 2018 +0200
# Node ID 9005c37dbe21a96ef514bf6f786a5f679b3cacf9
# Parent 52544ad8a946b45ebac691d7980c03c15d947a4f
style: use monospace for 'formatted-fixed' class
The 'formatted-fixed' class is applied to PR comments, PR descriptions and
repository descriptions. It already preserves whitespace via 'whitespace:
pre-wrap', but the font is not monospace. As a result, diagrams or other
ASCII art do not display well.
Use monospace on this class to fix that.
diff --git a/kallithea/public/less/style.less b/kallithea/public/less/style.less
--- a/kallithea/public/less/style.less
+++ b/kallithea/public/less/style.less
@@ -9,6 +9,7 @@ body {
/* class for texts where newlines should be preserved, for very light-weight
ascii art markup (like pull request descriptions) */
.formatted-fixed {
+ font-family: @font-family-monospace;
white-space: pre-wrap;
}
_______________________________________________
kallithea-general mailing list
[email protected]
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general