]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
addressing #9189 manually, part 1: code and pre vars
authorMark Otto <otto@github.com>
Mon, 12 Aug 2013 00:23:19 +0000 (17:23 -0700)
committerMark Otto <otto@github.com>
Mon, 12 Aug 2013 00:23:19 +0000 (17:23 -0700)
less/code.less
less/variables.less

index cd6132560a488c86487ccdc8a44527c340667ada..74a3a7a3931800f589d660db0ee5ed7499b5cab6 100644 (file)
@@ -16,7 +16,7 @@ code {
   color: @code-color;
   background-color: @code-bg;
   white-space: nowrap;
-  border-radius: 4px;
+  border-radius: @border-radius-base;
 }
 
 // Blocks of code
@@ -28,7 +28,7 @@ pre {
   line-height: @line-height-base;
   word-break: break-all;
   word-wrap: break-word;
-  color: @gray-dark;
+  color: @pre-color;
   background-color: @pre-bg;
   border: 1px solid @pre-border-color;
   border-radius: @border-radius-base;
@@ -50,6 +50,6 @@ pre {
 
 // Enable scrollable blocks of code
 .pre-scrollable {
-  max-height: 340px;
+  max-height: @pre-scrollable-max-height;
   overflow-y: scroll;
 }
index 012f486b1c97827400ac657e6e5f19512f7c8984..991e6587cf2a5fcba11806883e2812ab9d51bb3c 100644 (file)
 @code-bg:                     #f9f2f4;
 
 @pre-bg:                      #f5f5f5;
+@pre-color:                   @gray-dark;
 @pre-border-color:            #ccc;
+@pre-scrollable-max-height:   340px;
 
 // Type
 // ------------------------