Commit 5716355c authored by Mark Otto's avatar Mark Otto

Restore mini button (fixes #8644)

parent 2dcfa00e
...@@ -1694,6 +1694,10 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline. ...@@ -1694,6 +1694,10 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<button type="button" class="btn btn-primary btn-small">Small button</button> <button type="button" class="btn btn-primary btn-small">Small button</button>
<button type="button" class="btn btn-default btn-small">Small button</button> <button type="button" class="btn btn-default btn-small">Small button</button>
</p> </p>
<p>
<button type="button" class="btn btn-primary btn-mini">Mini button</button>
<button type="button" class="btn btn-default btn-mini">Mini button</button>
</p>
</div> </div>
{% highlight html %} {% highlight html %}
<p> <p>
...@@ -1708,6 +1712,10 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline. ...@@ -1708,6 +1712,10 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<button type="button" class="btn btn-primary btn-small">Small button</button> <button type="button" class="btn btn-primary btn-small">Small button</button>
<button type="button" class="btn btn-default btn-small">Small button</button> <button type="button" class="btn btn-default btn-small">Small button</button>
</p> </p>
<p>
<button type="button" class="btn btn-primary btn-mini">Mini button</button>
<button type="button" class="btn btn-default btn-mini">Mini button</button>
</p>
{% endhighlight %} {% endhighlight %}
<p>Create block level buttons&mdash;those that span the full width of a parent&mdash; by adding <code>.btn-block</code>.</p> <p>Create block level buttons&mdash;those that span the full width of a parent&mdash; by adding <code>.btn-block</code>.</p>
......
...@@ -1833,13 +1833,18 @@ fieldset[disabled] .btn-link:focus { ...@@ -1833,13 +1833,18 @@ fieldset[disabled] .btn-link:focus {
border-radius: 6px; border-radius: 6px;
} }
.btn-small { .btn-small,
.btn-mini {
padding: 5px 10px; padding: 5px 10px;
font-size: 12px; font-size: 12px;
line-height: 1.5; line-height: 1.5;
border-radius: 3px; border-radius: 3px;
} }
.btn-mini {
padding: 3px 5px;
}
.btn-block { .btn-block {
display: block; display: block;
width: 100%; width: 100%;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -125,12 +125,16 @@ ...@@ -125,12 +125,16 @@
font-size: @font-size-large; font-size: @font-size-large;
border-radius: @border-radius-large; border-radius: @border-radius-large;
} }
.btn-small { .btn-small,
.btn-mini {
padding: @padding-small-vertical @padding-small-horizontal; padding: @padding-small-vertical @padding-small-horizontal;
font-size: @font-size-small; font-size: @font-size-small;
line-height: 1.5; // ensure proper height of button next to small input line-height: 1.5; // ensure proper height of button next to small input
border-radius: @border-radius-small; border-radius: @border-radius-small;
} }
.btn-mini {
padding: 3px 5px;
}
// Block button // Block button
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment