aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas Bosman <[email protected]>2013-10-30 14:10:16 +0100
committerBas Bosman <[email protected]>2013-10-30 14:10:16 +0100
commitb8f9f82d182d8300246ba9c4e75a5db6e77f62d3 (patch)
treed765f8d9ac47f16973c021d09a88cc4dc09094be
parent77bf572cba342f69d66f75c9b1c42c2451dae32f (diff)
downloadbootstrap-b8f9f82d182d8300246ba9c4e75a5db6e77f62d3.tar.xz
bootstrap-b8f9f82d182d8300246ba9c4e75a5db6e77f62d3.zip
Add well-border variable
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.
-rw-r--r--customize.html2
-rw-r--r--less/variables.less1
-rw-r--r--less/wells.less2
3 files changed, 4 insertions, 1 deletions
diff --git a/customize.html b/customize.html
index 5b6a09c40..794f1c3f4 100644
--- a/customize.html
+++ b/customize.html
@@ -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>
diff --git a/less/variables.less b/less/variables.less
index e596215d0..758116763 100644
--- a/less/variables.less
+++ b/less/variables.less
@@ -545,6 +545,7 @@
// Wells
// -------------------------
@well-bg: #f5f5f5;
+@well-border: darken(@well-bg, 7%);
// Badges
diff --git a/less/wells.less b/less/wells.less
index 865abc2eb..15d072b0c 100644
--- a/less/wells.less
+++ b/less/wells.less
@@ -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 {