From 268e7d67abb32ed5cfc575c71f03d635672e781c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 16 Feb 2012 21:28:16 -0800 Subject: add mini buttons per #1971 --- docs/assets/bootstrap.zip | Bin 53198 -> 53227 bytes docs/assets/css/bootstrap.css | 5 +++++ docs/base-css.html | 6 +++++- docs/templates/pages/base-css.mustache | 6 +++++- less/buttons.less | 7 +++++++ 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 71552e7f8..5d59b6d7f 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index e16383b1c..d6441d133 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1791,6 +1791,11 @@ table .span12 { .btn-small [class^="icon-"] { margin-top: -1px; } +.btn-mini { + padding: 2px 6px; + font-size: 11px; + line-height: 14px; +} .btn-primary, .btn-primary:hover, .btn-warning, diff --git a/docs/base-css.html b/docs/base-css.html index 7ab18108c..c04dc7daa 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -1313,7 +1313,7 @@ For example, <code>section</code> should be wrapped as inline.

Multiple sizes

-

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

+

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

@@ -1322,6 +1322,10 @@ For example, <code>section</code> should be wrapped as inline.

+

+ + +


Disabled state

For disabled buttons, add the .disabled class to links and the disabled attribute for <button> elements.

diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index f3d18ffd0..acb9cdcb2 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1237,7 +1237,7 @@

{{_i}}Multiple sizes{{/i}}

-

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

+

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

@@ -1246,6 +1246,10 @@

+

+ + +


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

{{_i}}For disabled buttons, add the .disabled class to links and the disabled attribute for <button> elements.{{/i}}

diff --git a/less/buttons.less b/less/buttons.less index 292e04626..55e9fbf1c 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -92,6 +92,13 @@ margin-top: -1px; } +// Mini +.btn-mini { + padding: 2px 6px; + font-size: @baseFontSize - 2px; + line-height: @baseLineHeight - 4px; +} + // Alternate buttons // -------------------------------------------------- -- cgit v1.2.3