Skip to content

Commit 268e7d6

Browse files
committed
add mini buttons per twbs#1971
1 parent 61e2201 commit 268e7d6

File tree

5 files changed

+22
-2
lines changed

5 files changed

+22
-2
lines changed

docs/assets/bootstrap.zip

29 Bytes
Binary file not shown.

docs/assets/css/bootstrap.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,6 +1791,11 @@ table .span12 {
17911791
.btn-small [class^="icon-"] {
17921792
margin-top: -1px;
17931793
}
1794+
.btn-mini {
1795+
padding: 2px 6px;
1796+
font-size: 11px;
1797+
line-height: 14px;
1798+
}
17941799
.btn-primary,
17951800
.btn-primary:hover,
17961801
.btn-warning,

docs/base-css.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ <h3>Cross browser compatibility</h3>
13131313
</div>
13141314
<div class="span4">
13151315
<h3>Multiple sizes</h3>
1316-
<p>Fancy larger or smaller buttons? Add <code>.btn-large</code> or <code>.btn-small</code> for two additional sizes.</p>
1316+
<p>Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for two additional sizes.</p>
13171317
<p>
13181318
<button class="btn btn-large btn-primary">Primary action</button>
13191319
<button class="btn btn-large">Action</button>
@@ -1322,6 +1322,10 @@ <h3>Multiple sizes</h3>
13221322
<button class="btn btn-small btn-primary">Primary action</button>
13231323
<button class="btn btn-small">Action</button>
13241324
</p>
1325+
<p>
1326+
<button class="btn btn-mini btn-primary">Primary action</button>
1327+
<button class="btn btn-mini">Action</button>
1328+
</p>
13251329
<br>
13261330
<h3>Disabled state</h3>
13271331
<p>For disabled buttons, add the <code>.disabled</code> class to links and the <code>disabled</code> attribute for <code>&lt;button&gt;</code> elements.</p>

docs/templates/pages/base-css.mustache

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@
12371237
</div>
12381238
<div class="span4">
12391239
<h3>{{_i}}Multiple sizes{{/i}}</h3>
1240-
<p>{{_i}}Fancy larger or smaller buttons? Add <code>.btn-large</code> or <code>.btn-small</code> for two additional sizes.{{/i}}</p>
1240+
<p>{{_i}}Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for two additional sizes.{{/i}}</p>
12411241
<p>
12421242
<button class="btn btn-large btn-primary">{{_i}}Primary action{{/i}}</button>
12431243
<button class="btn btn-large">{{_i}}Action{{/i}}</button>
@@ -1246,6 +1246,10 @@
12461246
<button class="btn btn-small btn-primary">{{_i}}Primary action{{/i}}</button>
12471247
<button class="btn btn-small">{{_i}}Action{{/i}}</button>
12481248
</p>
1249+
<p>
1250+
<button class="btn btn-mini btn-primary">{{_i}}Primary action{{/i}}</button>
1251+
<button class="btn btn-mini">{{_i}}Action{{/i}}</button>
1252+
</p>
12491253
<br>
12501254
<h3>{{_i}}Disabled state{{/i}}</h3>
12511255
<p>{{_i}}For disabled buttons, add the <code>.disabled</code> class to links and the <code>disabled</code> attribute for <code>&lt;button&gt;</code> elements.{{/i}}</p>

less/buttons.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@
9292
margin-top: -1px;
9393
}
9494

95+
// Mini
96+
.btn-mini {
97+
padding: 2px 6px;
98+
font-size: @baseFontSize - 2px;
99+
line-height: @baseLineHeight - 4px;
100+
}
101+
95102

96103
// Alternate buttons
97104
// --------------------------------------------------

0 commit comments

Comments
 (0)