]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #4666: overrides for input types with .btn-block
authorMark Otto <markotto@twitter.com>
Mon, 27 Aug 2012 22:39:55 +0000 (15:39 -0700)
committerMark Otto <markotto@twitter.com>
Mon, 27 Aug 2012 22:39:55 +0000 (15:39 -0700)
docs/assets/css/bootstrap.css
less/buttons.less

index ce6d27a56b976a62456cb6047a748f0694c450d1..7603b7a1c7fbfd6e975e2884feafe02c66cc4af3 100644 (file)
@@ -3125,6 +3125,12 @@ button.close {
   margin-top: 5px;
 }
 
+input[type="submit"].btn-block,
+input[type="reset"].btn-block,
+input[type="button"].btn-block {
+  width: 100%;
+}
+
 .btn-primary.active,
 .btn-warning.active,
 .btn-danger.active,
index 59653c1bf596205c33c8254598eccb3c651cbce9..08ece791c4770fc84100225e3bae48eefe52ff28 100644 (file)
   line-height: @baseLineHeight - 3px;
 }
 
+
 // Block button
+// -------------------------
+
 .btn-block {
   display: block;
   width: 100%;
   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
 // --------------------------------------------------