]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
moving forms, labels and list-group to variables.less 8534/head
authorsyed <syed.sayal.shah@gmail.com>
Sat, 20 Jul 2013 08:38:27 +0000 (13:38 +0500)
committersyed <syed.sayal.shah@gmail.com>
Sat, 20 Jul 2013 08:38:27 +0000 (13:38 +0500)
less/forms.less
less/labels.less
less/list-group.less
less/variables.less

index bafe1cac6e3de897923c8660e58bc6782b4a3c85..d5d411571074c3c48a0ba929fd08026ba4a73724 100644 (file)
@@ -25,7 +25,7 @@ legend {
   line-height: inherit;
   color: @gray-dark;
   border: 0;
-  border-bottom: 1px solid #e5e5e5;
+  border-bottom: 1px solid @legend-border-color;
 }
 
 label {
@@ -354,9 +354,9 @@ select {
   font-weight: normal;
   line-height: @line-height-base;
   text-align: center;
-  text-shadow: 0 1px 0 #fff;
+  text-shadow: @input-group-addon-text-shadow;
   background-color: @gray-lighter;
-  border: 1px solid #ccc;
+  border: 1px solid @input-group-addon-border-color;
   border-radius: @border-radius-base;
 
   &.input-small {
index d7852d107757f9c0520365df38455c00a0b228f3..7ee7ee68a41e03ef997c0dffbf1ae7b0fad78620 100644 (file)
@@ -8,7 +8,7 @@
   font-size: 75%;
   font-weight: 500;
   line-height: 1;
-  color: #fff;
+  color: @label-color;
   text-align: center;
   white-space: nowrap;
   vertical-align: middle;
@@ -19,7 +19,7 @@
   &[href] {
     &:hover,
     &:focus {
-      color: #fff;
+      color: @label-link-hover-color;
       text-decoration: none;
       cursor: pointer;
       background-color: darken(@gray-light, 10%);
index 34718633ac528a6acce0ed8ac790650a3bd0b46f..abfb957e119f61bba9c774b601217377c09d292c 100644 (file)
 a.list-group-item {
   // Colorize content accordingly
   .list-group-item-heading {
-    color: #333;
+    color: @link-list-group-heading-color;
   }
   .list-group-item-text {
-    color: #555;
+    color: @link-list-group-color;
   }
 
   // Hover state
index c30c0232cc31ba590b039cc8b3a24e68bdc83516..438a276f9137c032f2bc4c54a6793bf76b56fa1e 100644 (file)
 @input-height-large:             (ceil(@font-size-large * @line-height-base) + (@padding-large-vertical * 2) + 2);
 @input-height-small:             (ceil(@font-size-small * @line-height-base) + (@padding-small-vertical * 2) + 2);
 
+@legend-border-color:            #e5e5e5;
+
+@input-group-addon-text-shadow:  0 1px 0 #fff;
+@input-group-addon-border-color: #ccc;
+
 
 // Dropdowns
 // -------------------------
 @label-warning-bg:            @brand-warning;
 @label-danger-bg:             @brand-danger;
 
+@label-color:                 #fff;
+@label-link-hover-color:      #fff;
+
 
 // Modals
 // -------------------------
 @list-group-active-bg:        @component-active-bg;
 @list-group-active-border:    @list-group-active-bg;
 
+@link-list-group-color:       #555;
+@link-list-group-heading-color:#333;
+
 // Panels
 // -------------------------
 @panel-bg:                    #fff;
 @code-bg:                     #f9f2f4;
 @code-color:                  #c7254e;
 
-
 @pre-bg:                      #f5f5f5;
 @pre-border-color:            rgba(0,0,0,.15);
 @pre-fallback-border-color:   #ccc;