From 5cf89e70b70de008d5b91e89ce015522616e96cb Mon Sep 17 00:00:00 2001 From: Phil Hughes <me@iamphill.com> Date: Thu, 14 Jul 2016 09:12:10 +0100 Subject: [PATCH] Uses white-space instead of setting font size to 0 --- app/assets/stylesheets/framework/highlight.scss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/framework/highlight.scss b/app/assets/stylesheets/framework/highlight.scss index 51ae9df9685..11b2a4cbf89 100644 --- a/app/assets/stylesheets/framework/highlight.scss +++ b/app/assets/stylesheets/framework/highlight.scss @@ -10,7 +10,7 @@ border: none; border-radius: 0; font-family: $monospace_font; - font-size: 0; + font-size: $code_font_size; line-height: $code_line_height !important; margin: 0; overflow: auto; @@ -21,18 +21,16 @@ code { font-family: $monospace_font; - font-size: 0; - white-space: pre; + white-space: normal; word-wrap: normal; padding: 0; .line { - display: inline-block; + display: block; width: 100%; min-height: 19px; padding-left: 10px; padding-right: 10px; - font-size: $code_font_size; } } } -- GitLab