]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
clean up variable usage with colors
authorJon Stevens <latchkey@gmail.com>
Sat, 21 Jan 2012 23:24:06 +0000 (15:24 -0800)
committerJon Stevens <latchkey@gmail.com>
Sat, 21 Jan 2012 23:24:06 +0000 (15:24 -0800)
lib/breadcrumbs.less
lib/button-groups.less
lib/buttons.less
lib/carousel.less
lib/dropdowns.less
lib/navbar.less
lib/navs.less
lib/tables.less
lib/tooltip.less
lib/type.less
lib/variables.less

index 2fa9921ac8a172daebc78b61811ca5e0b463f023..19b8081e1b6ad812e59c2ddb894273e411986b2c 100644 (file)
@@ -4,7 +4,7 @@
 .breadcrumb {
   padding: 7px 14px;
   margin: 0 0 @baseLineHeight;
-  #gradient > .vertical(#ffffff, #f5f5f5);
+  #gradient > .vertical(@white, #f5f5f5);
   border: 1px solid #ddd;
   .border-radius(3px);
   .box-shadow(inset 0 1px 0 @white);
index e9724ba8c200cdd296da4eeb772b1095e72d71ba..253469f88a8f0bb8a319a626513e8e1afe177df2 100644 (file)
 .info,
 .success {
   .caret {
-    border-top-color: #fff;
+    border-top-color: @white;
     .opacity(75);
   }
 }
index e53dce7af5286fa24a4bd2273ba48dc2197b4525..5da34a525750f1f6423fb9f4e947009a911f193e 100644 (file)
@@ -34,9 +34,9 @@
   padding: 5px 10px 6px;
   font-size: @baseFontSize;
   line-height: normal;
-  color: #333;
+  color: @grayDark;
   text-shadow: 0 1px 1px rgba(255,255,255,.75);
-  #gradient > .vertical-three-colors(#ffffff, #ffffff, 25%, darken(#ffffff, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
+  #gradient > .vertical-three-colors(@white, @white, 25%, darken(@white, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
   border: 1px solid #ccc;
   border-bottom-color: #bbb;
   .border-radius(4px);
index a9399ef63c1a36a3d2cfa34b7a6a0a12d6ef5150..1a18d44b6a9a3716249a055956316f76327acf8f 100644 (file)
@@ -70,7 +70,7 @@
   line-height: 30px;
   color: #ccc;
   text-align: center;
-  background: #999;
+  background: @grayLight;
   background: rgba(0,0,0,.5);
   .border-radius(20px);
 
@@ -82,9 +82,9 @@
 
   // Hover state
   &:hover {
-    color: #fff;
+    color: @white;
     text-decoration: none;
-    background: #333;
+    background: @grayDark;
     background: rgba(0,0,0,.75);
   }
 }
   right: 0;
   bottom: 0;
   padding: 10px 15px 5px;
-  background: #333;
+  background: @grayDark;
   background: rgba(0,0,0,.75);
 }
 .carousel-caption h4,
 .carousel-caption p {
-  color: #fff;
+  color: @white;
 }
index 08054713ce1f06817d43bd73352a38124d11a0d4..40b4d7e875113e60b7a430b570594d25c2208e43 100644 (file)
@@ -14,7 +14,7 @@
   vertical-align: top;
   border-left:  4px solid transparent;
   border-right: 4px solid transparent;
-  border-top:   4px solid #000;
+  border-top:   4px solid @black;
   .opacity(30);
   content: "\2193";
 }
@@ -79,7 +79,7 @@
 .dropdown-menu li > a:hover,
 .dropdown-menu .active > a,
 .dropdown-menu .active > a:hover {
-  color: #fff;
+  color: @white;
   text-decoration: none;
   background-color: @linkColor;
 }
index 94bc652410b989e2764a7af35817059232018b74..8064490f76295a8098fa8d9e2839498a44658076 100644 (file)
 .navbar .nav .active > a {
   color: @white;
   text-decoration: none;
-  background-color: #222;
+  background-color: @grayDarker;
   background-color: rgba(0,0,0,.5);
 }
 
   width: 1px;
   margin: 0 5px;
   overflow: hidden;
-  background-color: #222;
+  background-color: @grayDarker;
   border-right: 1px solid #444;
 }
 
     display: inline-block;
     border-left:   6px solid transparent;
     border-right:  6px solid transparent;
-    border-bottom: 6px solid #fff;
+    border-bottom: 6px solid @white;
     position: absolute;
     top: -6px;
     left: 10px;
 // Dropdown toggle caret
 .navbar .nav .dropdown-toggle .caret,
 .navbar .nav .open.dropdown .caret {
-  border-top-color: #fff;
+  border-top-color: @white;
 }
 .navbar .nav .active .caret {
   .opacity(100);
 
 // Dropdown link on hover
 .navbar .nav .active > .dropdown-toggle:hover {
-  color: #fff;
+  color: @white;
 }
 
 // Right aligned menus need alt position
index 432ab3cbd1d464ca65ed9abf3ca9549c9378faef..4db77af4f21aaf0a8ccfad90d08ffbf2ded1419f 100644 (file)
@@ -18,7 +18,7 @@
 }
 .nav > li > a:hover {
   text-decoration: none;
-  background-color: #eee;
+  background-color: @grayLighter;
 }
 
 
@@ -97,7 +97,7 @@
   border: 1px solid transparent;
   .border-radius(4px 4px 0 0);
   &:hover {
-    border-color: #eee #eee #ddd;
+    border-color: @grayLighter @grayLighter #ddd;
   }
 }
 // Active state, and it's :hover to override normal :hover
 // -------------------------
 .tabs .active .dropdown-toggle .caret,
 .pills .active .dropdown-toggle .caret {
-  border-top-color: #333;
+  border-top-color: @grayDark;
 }
 
 // Active:hover dropdown links
 // -------------------------
 .nav > .dropdown.active > a:hover {
-  color: #000;
+  color: @black;
   cursor: pointer;
 }
 
 .tabs .open .dropdown-toggle,
 .pills .open .dropdown-toggle,
 .nav > .open.active > a:hover {
-  color: #fff;
-  background-color: #999;
-  border-color: #999;
+  color: @white;
+  background-color: @grayLight;
+  border-color: @grayLight;
 }
 .nav .open .caret,
 .nav .open.active .caret,
 .nav .open a:hover .caret {
-  border-top-color: #fff;
+  border-top-color: @white;
   .opacity(100);
 }
 
 // Dropdowns in stacked tabs
 .tabs.stacked .open > a:hover {
-  border-color: #999;
+  border-color: @grayLight;
 }
 
 
   .border-radius(4px 0 0 4px);
 }
 .tabs-left .tabs > li > a:hover {
-  border-color: #eee #ddd #eee #eee;
+  border-color: @grayLighter #ddd @grayLighter @grayLighter;
 }
 .tabs-left .tabs .active > a,
 .tabs-left .tabs .active > a:hover {
   .border-radius(0 4px 4px 0);
 }
 .tabs-right .tabs > li > a:hover {
-  border-color: #eee #eee #eee #ddd;
+  border-color: @grayLighter @grayLighter @grayLighter #ddd;
 }
 .tabs-right .tabs .active > a,
 .tabs-right .tabs .active > a:hover {
index 5dad3e896f8f7ea48fb4fbfff1c6b9d3f1a9847a..14e4ea44a3ca2dff637551599b345efc41f357bb 100644 (file)
@@ -144,7 +144,7 @@ table {
       margin-top: 7px;
       border-width: 0 4px 4px;
       border-style: solid;
-      border-color: #000 transparent;
+      border-color: @black transparent;
       visibility: hidden;
     }
   }
@@ -174,7 +174,7 @@ table {
       border-bottom: none;
       border-left: 4px solid transparent;
       border-right: 4px solid transparent;
-      border-top: 4px solid #000;
+      border-top: 4px solid @black;
       visibility:visible;
       .box-shadow(none); //can't add boxshadow to downward facing arrow :(
       .opacity(60);
index b21c6bb7a5e7088fe0b731ce0eb73cbd275b37d8..5111a193f0393966667cde5474b19e97f82c0ec6 100644 (file)
@@ -22,7 +22,7 @@
 .tooltip-inner {
   max-width: 200px;
   padding: 3px 8px;
-  color: white;
+  color: @white;
   text-align: center;
   text-decoration: none;
   background-color: @black;
index 707d2215de26879a240a3a026e4569e457131b91..a94a4956ed54dbdc1117ec6a711c60ef3662b6e0 100644 (file)
@@ -119,7 +119,7 @@ hr {
   margin: @baseLineHeight 0;
   border: 0;
   border-top: 1px solid #e5e5e5;
-  border-bottom: 1px solid #fff;
+  border-bottom: 1px solid @white;
 }
 
 // Emphasis
@@ -148,7 +148,7 @@ abbr {
 blockquote {
   padding-left: 15px;
   margin-bottom: @baseLineHeight;
-  border-left: 5px solid #eee;
+  border-left: 5px solid @grayLighter;
   p {
     margin-bottom: 0;
     #font > .shorthand(16px,300,@baseLineHeight * 1.25);
@@ -168,7 +168,7 @@ blockquote {
     padding-left: 0;
     padding-right: 15px;
     border-left: 0;
-    border-right: 5px solid #eee;
+    border-right: 5px solid @grayLighter;
     p,
     small {
       text-align: right;
index 807a9ea0d5079d869f832fe99329c0699cdc6d6a..df0d2255d7ecb097edc3666cdf8bf441566a24a1 100644 (file)
@@ -13,6 +13,7 @@
 
 // Grays
 @black:                 #000;
+@grayDarker:                   #222;
 @grayDark:              #333;
 @gray:                  #555;
 @grayLight:             #999;
@@ -65,7 +66,7 @@
 
 // Navbar
 @navBarHeight:                    40px;
-@navbarBackground:                #222;
-@navbarBackgroundHighlight:       #333;
+@navbarBackground:                @grayDarker;
+@navbarBackgroundHighlight:       @grayDark;