diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index c59a7fd974..700d92d785 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -3019,6 +3019,16 @@ button.close { line-height: 16px; } +.btn-block { + display: block; + width: 100%; + padding-right: 0; + padding-left: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + .btn-primary.active, .btn-warning.active, .btn-danger.active, diff --git a/docs/base-css.html b/docs/base-css.html index 4f0df407d7..f827380ac4 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -1439,26 +1439,34 @@ For example, <code>section</code> should be wrapped as inline.

IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled button elements, rendering text gray with a nasty text-shadow that we cannot fix.

-
- -

Button sizes

Fancy larger or smaller buttons? Add .btn-large, .btn-small, or .btn-mini for two additional sizes.

-

- - -

-

- - -

-

- - -

- - -
+
+

+ + +

+

+ + +

+

+ + +

+
+
+<button class="btn btn-large" type="button">Large button</button>
+<button class="btn btn-small" type="button">Small button</button>
+<button class="btn btn-mini" type="button">Mini button</button>
+
+

Create block level buttons—those that span the full width of a parent— by adding .btn-block.

+
+
+ +
+
+
<button class="btn btn-large btn-block" type="button">Block level button</button>

Disabled state

@@ -1491,9 +1499,6 @@ For example, <code>section</code> should be wrapped as inline. -
- -

One class, multiple tags

Use the .btn class on an <a>, <button>, or <input> element.

diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index a2685aab37..248ffa0420 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1376,26 +1376,34 @@

{{_i}}IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled button elements, rendering text gray with a nasty text-shadow that we cannot fix.{{/i}}

-
- -

{{_i}}Button sizes{{/i}}

{{_i}}Fancy larger or smaller buttons? Add .btn-large, .btn-small, or .btn-mini for two additional sizes.{{/i}}

-

- - -

-

- - -

-

- - -

- - -
+
+

+ + +

+

+ + +

+

+ + +

+
+
+<button class="btn btn-large" type="button">{{_i}}Large button{{/i}}</button>
+<button class="btn btn-small" type="button">{{_i}}Small button{{/i}}</button>
+<button class="btn btn-mini" type="button">{{_i}}Mini button{{/i}}</button>
+
+

{{_i}}Create block level buttons—those that span the full width of a parent— by adding .btn-block.{{/i}}

+
+
+ +
+
+
<button class="btn btn-large btn-block" type="button">{{_i}}Block level button{{/i}}</button>

{{_i}}Disabled state{{/i}}

@@ -1428,9 +1436,6 @@ -
- -

{{_i}}One class, multiple tags{{/i}}

{{_i}}Use the .btn class on an <a>, <button>, or <input> element.{{/i}}

diff --git a/less/buttons.less b/less/buttons.less index 8bdf34b20a..b6c78ce360 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -99,6 +99,15 @@ line-height: @baseLineHeight - 4px; } +// Block button +.btn-block { + display: block; + width: 100%; + padding-left: 0; + padding-right: 0; + .box-sizing(border-box); +} + // Alternate buttons // --------------------------------------------------