]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add well-border variable 11286/head
authorBas Bosman <sbg.bosman@mindef.nl>
Wed, 30 Oct 2013 13:10:16 +0000 (14:10 +0100)
committerBas Bosman <sbg.bosman@mindef.nl>
Wed, 30 Oct 2013 13:10:16 +0000 (14:10 +0100)
Add a variable to allow the well border color to be specified.

The reason I'd like to see this included is that my companies styleguide
requires an explicit border color on well-like constructs. This variable
allows me to easily override the default to use that color.

customize.html
less/variables.less
less/wells.less

index 5b6a09c40db23cd9b46407334d77dbff51461d95..794f1c3f45e04480e7664a6a26282c8d84a7b818 100644 (file)
@@ -1147,6 +1147,8 @@ base_url: "../"
     <h3>Wells</h3>
     <label>@well-bg</label>
     <input type="text" class="form-control" placeholder="#f5f5f5" data-var="@well-bg">
+    <label>@well-border</label>
+    <input type="text" class="form-control" placeholder="darken(@well-bg, 7%)" data-var="@well-border">
 
 
     <h2 id="variables-accordion">Accordion</h2>
index e596215d06f0ade037deae3ca7ffaf1fe3ead1c9..758116763d353a29f1093531331d7d63fe77861c 100644 (file)
 // Wells
 // -------------------------
 @well-bg:                     #f5f5f5;
+@well-border:                 darken(@well-bg, 7%);
 
 
 // Badges
index 865abc2eb6fe94405ff8308c3f64308f91a12aef..15d072b0cd0e31d6bd40fad5aa1cb8fb1fbdefd9 100644 (file)
@@ -9,7 +9,7 @@
   padding: 19px;
   margin-bottom: 20px;
   background-color: @well-bg;
-  border: 1px solid darken(@well-bg, 7%);
+  border: 1px solid @well-border;
   border-radius: @border-radius-base;
   .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
   blockquote {