Skip to content

Commit 5716355

Browse files
committed
Restore mini button (fixes twbs#8644)
1 parent 2dcfa00 commit 5716355

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

css.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,6 +1694,10 @@ <h2 id="buttons-sizes">Button sizes</h2>
16941694
<button type="button" class="btn btn-primary btn-small">Small button</button>
16951695
<button type="button" class="btn btn-default btn-small">Small button</button>
16961696
</p>
1697+
<p>
1698+
<button type="button" class="btn btn-primary btn-mini">Mini button</button>
1699+
<button type="button" class="btn btn-default btn-mini">Mini button</button>
1700+
</p>
16971701
</div>
16981702
{% highlight html %}
16991703
<p>
@@ -1708,6 +1712,10 @@ <h2 id="buttons-sizes">Button sizes</h2>
17081712
<button type="button" class="btn btn-primary btn-small">Small button</button>
17091713
<button type="button" class="btn btn-default btn-small">Small button</button>
17101714
</p>
1715+
<p>
1716+
<button type="button" class="btn btn-primary btn-mini">Mini button</button>
1717+
<button type="button" class="btn btn-default btn-mini">Mini button</button>
1718+
</p>
17111719
{% endhighlight %}
17121720

17131721
<p>Create block level buttons&mdash;those that span the full width of a parent&mdash; by adding <code>.btn-block</code>.</p>

dist/css/bootstrap.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1833,13 +1833,18 @@ fieldset[disabled] .btn-link:focus {
18331833
border-radius: 6px;
18341834
}
18351835

1836-
.btn-small {
1836+
.btn-small,
1837+
.btn-mini {
18371838
padding: 5px 10px;
18381839
font-size: 12px;
18391840
line-height: 1.5;
18401841
border-radius: 3px;
18411842
}
18421843

1844+
.btn-mini {
1845+
padding: 3px 5px;
1846+
}
1847+
18431848
.btn-block {
18441849
display: block;
18451850
width: 100%;

dist/css/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

less/buttons.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,16 @@
125125
font-size: @font-size-large;
126126
border-radius: @border-radius-large;
127127
}
128-
.btn-small {
128+
.btn-small,
129+
.btn-mini {
129130
padding: @padding-small-vertical @padding-small-horizontal;
130131
font-size: @font-size-small;
131132
line-height: 1.5; // ensure proper height of button next to small input
132133
border-radius: @border-radius-small;
133134
}
135+
.btn-mini {
136+
padding: 3px 5px;
137+
}
134138

135139

136140
// Block button

0 commit comments

Comments
 (0)