]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Move inline properties to variables.less
authorsyed <syed.sayal.shah@gmail.com>
Sat, 20 Jul 2013 07:56:20 +0000 (12:56 +0500)
committersyed <syed.sayal.shah@gmail.com>
Sat, 20 Jul 2013 07:56:20 +0000 (12:56 +0500)
moved buttons.less, carousel.less & close.less in this commit

less/buttons.less
less/carousel.less
less/close.less
less/variables.less

index 3cc7da00d1bf92abd8a80673882184b685760f7b..ad3c7ac6130bdd26e216d397a9b74197ea9ec2ee 100644 (file)
@@ -27,7 +27,7 @@
 
   &:hover,
   &:focus {
-    color: #fff;
+    color: @btn-hover-color;
     text-decoration: none;
   }
 
index 7d134ca629dc0928f5f15dfa459c82c8435d9afe..d7dfdf9f66be1bea0cc2971c764d14f4a461b3c1 100644 (file)
@@ -72,9 +72,9 @@
   width: 15%;
   .opacity(.5);
   font-size: 20px;
-  color: #fff;
+  color: @carousel-control-color;
   text-align: center;
-  text-shadow: 0 1px 2px rgba(0,0,0,.6);
+  text-shadow: @carousel-control-text-shadow;
   // We can't have this transition here because webkit cancels the carousel
   // animation if you trip this while in the middle of another animation.
 
@@ -93,7 +93,7 @@
   // Hover/focus state
   &:hover,
   &:focus {
-    color: #fff;
+    color: @carousel-control-hover-color;
     text-decoration: none;
     .opacity(.9);
   }
     height: 10px;
     margin: 1px;
     text-indent: -999px;
-    border: 1px solid #fff;
+    border: 1px solid @carousel-indicators-li-border-color;
     border-radius: 10px;
     cursor: pointer;
   }
     margin: 0;
     width:  12px;
     height: 12px;
-    background-color: #fff;
+    background-color: @carousel-indicators-active-bg;
   }
 }
 
   z-index: 10;
   padding-top: 20px;
   padding-bottom: 20px;
-  color: #fff;
+  color: @carousel-caption-color;
   text-align: center;
-  text-shadow: 0 1px 2px rgba(0,0,0,.6);
+  text-shadow: @carousel-caption-text-shadow;
   & .btn {
     text-shadow: none; // No shadow for button elements in carousel-caption
   }
index 5fe23b3dc81dd363e85f1fe19ef0f5a1cbbb8615..454a73fdcb458e25235c83d65920934a023ff522 100644 (file)
@@ -8,13 +8,13 @@
   font-size: (@font-size-base * 1.5);
   font-weight: bold;
   line-height: 1;
-  color: #000;
-  text-shadow: 0 1px 0 rgba(255,255,255,1);
+  color: @close-color;
+  text-shadow: @close-text-shadow;
   .opacity(.2);
 
   &:hover,
   &:focus {
-    color: #000;
+    color: @close-hover-color;
     text-decoration: none;
     cursor: pointer;
     .opacity(.5);
index 321590f5383e3d182f1bc8fa609dd15be7feba69..ed5051df7f4a47d8cc39c68e1756ab3ac3ca25ac 100644 (file)
 @btn-info-bg:                    @brand-info;
 @btn-info-border:                @btn-info-bg;
 
+@btn-hover-color:                #fff;
+
 
 
 // Forms
 @breadcrumb-color:            #ccc;
 @breadcrumb-active-color:     @gray-light;
 
+// Carousel
+// ------------------------
+@carousel-control-color:                      #fff;
+@carousel-control-hover-color:                #fff;
+@carousel-control-text-shadow:                0 1px 2px rgba(0,0,0,.6);
+
+@carousel-indicators-active-bg:               #fff;
+@carousel-indicators-li-border-color:         #fff;
+
+@carousel-caption-color:                      #fff;
+@carousel-caption-text-shadow:                0 1px 2px rgba(0,0,0,.6);
+
+// Close
+// ------------------------
+@close-color:                 #000;
+@close-hover-color:           #000;
+@close-text-shadow:           0 1px 0 rgba(255,255,255,1);
 
 // Miscellaneous
 // -------------------------