diff options
author | Phil Hughes <me@iamphill.com> | 2016-07-14 11:12:10 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-07-20 10:42:59 +0300 |
commit | 5cf89e70b70de008d5b91e89ce015522616e96cb (patch) | |
tree | 14de70df73b5533b3f1807dcffe8c82b9bf6b218 /app/assets/stylesheets/framework/highlight.scss | |
parent | 26055b16b58afd73e31f7aaacb9aaa79ba3794c2 (diff) |
Uses white-space instead of setting font size to 0
Diffstat (limited to 'app/assets/stylesheets/framework/highlight.scss')
-rw-r--r-- | app/assets/stylesheets/framework/highlight.scss | 8 |
1 files 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; } } } |