aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-08-27 15:39:55 -0700
committerMark Otto <[email protected]>2012-08-27 15:39:55 -0700
commit3b67ece2d10aaf573ffb93fc804dc4e382a50837 (patch)
tree70a6ee98b1c4d9e55b97e44915e47cb087db0933 /less
parent4674945fa83ce7459d5bad45d1d574a6496ec3be (diff)
downloadbootstrap-3b67ece2d10aaf573ffb93fc804dc4e382a50837.tar.xz
bootstrap-3b67ece2d10aaf573ffb93fc804dc4e382a50837.zip
fixes #4666: overrides for input types with .btn-block
Diffstat (limited to 'less')
-rw-r--r--less/buttons.less15
1 files changed, 15 insertions, 0 deletions
diff --git a/less/buttons.less b/less/buttons.less
index 59653c1bf..08ece791c 100644
--- a/less/buttons.less
+++ b/less/buttons.less
@@ -99,7 +99,10 @@
line-height: @baseLineHeight - 3px;
}
+
// Block button
+// -------------------------
+
.btn-block {
display: block;
width: 100%;
@@ -107,10 +110,22 @@
padding-right: 0;
.box-sizing(border-box);
}
+
+// Vertically space out multiple block buttons
.btn-block + .btn-block {
margin-top: 5px;
}
+// Specificity overrides
+input[type="submit"],
+input[type="reset"],
+input[type="button"] {
+ &.btn-block {
+ width: 100%;
+ }
+}
+
+
// Alternate buttons
// --------------------------------------------------