OSDN Git Service

Fix CSS for code highlighting
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>
Tue, 27 Nov 2012 21:50:24 +0000 (22:50 +0100)
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>
Tue, 27 Nov 2012 21:51:10 +0000 (22:51 +0100)
app/assets/stylesheets/gitlab_bootstrap/files.scss
app/assets/stylesheets/highlight/dark.scss
app/assets/stylesheets/highlight/white.scss

index 4887d1c..e4a3614 100644 (file)
@@ -95,8 +95,8 @@
         pre {
           padding:0;
           margin:0;
-          background:none;
           border:none;
+          border-radius: 0;
         }
       }
     }
         table-layout: fixed;
 
         pre {
-          background: none;
           border: none;
+          border-radius: 0;
           font-family: 'Menlo', 'Liberation Mono', 'Consolas', 'Courier New', 'andale mono','lucida console',monospace;
           font-size: 12px !important;
           line-height: 16px !important;
index 0996cc7..398d814 100644 (file)
@@ -1,6 +1,8 @@
-.black .lines .highlight {
-  background: #333;
-  pre { color: #eee; }
+.black .highlight {
+  pre {
+    background-color: #333;
+    color: #eee;
+  }
 
   .hll { display: block; background-color: darken($hover, 65%) }
   .c { color: #888888; font-style: italic } /* Comment */
index d6792b3..2a43e9f 100644 (file)
@@ -1,6 +1,8 @@
-.white .lines .highlight {
-  background: white;
-  pre { color: #333; }
+.white .highlight {
+  pre {
+    background-color: #fff;
+    color: #333;
+  }
 
   .hll { display: block; background-color: $hover }
   .c { color: #888888; font-style: italic } /* Comment */