Commit dc99b19af7d56644784bcf5edc4bd09112dd45a5

Authored by Riyad Preukschas
1 parent d2767221

Fix CSS for code highlighting

app/assets/stylesheets/gitlab_bootstrap/files.scss
@@ -95,8 +95,8 @@ @@ -95,8 +95,8 @@
95 pre { 95 pre {
96 padding:0; 96 padding:0;
97 margin:0; 97 margin:0;
98 - background:none;  
99 border:none; 98 border:none;
  99 + border-radius: 0;
100 } 100 }
101 } 101 }
102 } 102 }
@@ -142,8 +142,8 @@ @@ -142,8 +142,8 @@
142 table-layout: fixed; 142 table-layout: fixed;
143 143
144 pre { 144 pre {
145 - background: none;  
146 border: none; 145 border: none;
  146 + border-radius: 0;
147 font-family: 'Menlo', 'Liberation Mono', 'Consolas', 'Courier New', 'andale mono','lucida console',monospace; 147 font-family: 'Menlo', 'Liberation Mono', 'Consolas', 'Courier New', 'andale mono','lucida console',monospace;
148 font-size: 12px !important; 148 font-size: 12px !important;
149 line-height: 16px !important; 149 line-height: 16px !important;
app/assets/stylesheets/highlight/dark.scss
1 -.black .lines .highlight {  
2 - background: #333;  
3 - pre { color: #eee; } 1 +.black .highlight {
  2 + pre {
  3 + background-color: #333;
  4 + color: #eee;
  5 + }
4 6
5 .hll { display: block; background-color: darken($hover, 65%) } 7 .hll { display: block; background-color: darken($hover, 65%) }
6 .c { color: #888888; font-style: italic } /* Comment */ 8 .c { color: #888888; font-style: italic } /* Comment */
app/assets/stylesheets/highlight/white.scss
1 -.white .lines .highlight {  
2 - background: white;  
3 - pre { color: #333; } 1 +.white .highlight {
  2 + pre {
  3 + background-color: #fff;
  4 + color: #333;
  5 + }
4 6
5 .hll { display: block; background-color: $hover } 7 .hll { display: block; background-color: $hover }
6 .c { color: #888888; font-style: italic } /* Comment */ 8 .c { color: #888888; font-style: italic } /* Comment */