[PATCH 1 of 3] style: use monospace for 'formatted-fixed' class

Thomas De Schampheleire thomas.de_schampheleire at nokia.com
Sun May 6 12:45:25 UTC 2018


# HG changeset patch
# User Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
# 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;
 }
 


More information about the kallithea-general mailing list