From 3b67ece2d10aaf573ffb93fc804dc4e382a50837 Mon Sep 17 00:00:00 2001
From: Mark Otto <markotto@twitter.com>
Date: Mon, 27 Aug 2012 15:39:55 -0700
Subject: [PATCH] fixes #4666: overrides for input types with .btn-block

---
 docs/assets/css/bootstrap.css |  6 ++++++
 less/buttons.less             | 15 +++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index ce6d27a56b..7603b7a1c7 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -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,
diff --git a/less/buttons.less b/less/buttons.less
index 59653c1bf5..08ece791c4 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
 // --------------------------------------------------
-- 
GitLab