summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/highlight.scss
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-07-14 09:12:10 +0100
committerPhil Hughes <me@iamphill.com>2016-07-20 08:42:59 +0100
commit5cf89e70b70de008d5b91e89ce015522616e96cb (patch)
tree14de70df73b5533b3f1807dcffe8c82b9bf6b218 /app/assets/stylesheets/framework/highlight.scss
parent26055b16b58afd73e31f7aaacb9aaa79ba3794c2 (diff)
downloadgitlab-ce-5cf89e70b70de008d5b91e89ce015522616e96cb.tar.gz
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.scss8
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;
}
}
}