Skip to content

Commit

Permalink
Fixes twbs#6148: Icons in mini buttons properly aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Dec 7, 2012
1 parent cc6fda2 commit be45a82
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
5 changes: 5 additions & 0 deletions docs/assets/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -3258,6 +3258,11 @@ button.close {
margin-top: 0;
}

.btn-mini [class^="icon-"],
.btn-mini [class*=" icon-"] {
margin-top: -1px;
}

.btn-mini {
padding: 0 6px;
font-size: 10.5px;
Expand Down
15 changes: 5 additions & 10 deletions docs/base-css.html
Original file line number Diff line number Diff line change
Expand Up @@ -2078,23 +2078,18 @@ <h5>Dropdown in a button group</h5>
&lt;/div&gt;
</pre>

<h5>Large button</h5>
<h5>Button sizes</h5>
<div class="bs-docs-example">
<a class="btn btn-large" href="#"><i class="icon-star"></i> Star</a>
<a class="btn btn-small" href="#"><i class="icon-star"></i> Star</a>
<a class="btn btn-mini" href="#"><i class="icon-star"></i> Star</a>
</div>
<pre class="prettyprint linenums">
&lt;a class="btn btn-large" href="#"&gt;&lt;i class="icon-star"&gt;&lt;/i&gt; Star&lt;/a&gt;
&lt;a class="btn btn-small" href="#"&gt;&lt;i class="icon-star"&gt;&lt;/i&gt; Star&lt;/a&gt;
&lt;a class="btn btn-mini" href="#"&gt;&lt;i class="icon-star"&gt;&lt;/i&gt; Star&lt;/a&gt;
</pre>

<h5>Small button</h5>
<div class="bs-docs-example">
<a class="btn btn-small" href="#"><i class="icon-star"></i></a>
</div>
<pre class="prettyprint linenums">
&lt;a class="btn btn-small" href="#"&gt;&lt;i class="icon-star"&gt;&lt;/i&gt;&lt;/a&gt;
</pre>


<h4>Navigation</h4>
<div class="bs-docs-example">
<div class="well" style="padding: 8px 0; margin-bottom: 0;">
Expand Down
15 changes: 5 additions & 10 deletions docs/templates/pages/base-css.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -2015,23 +2015,18 @@
&lt;/div&gt;
</pre>

<h5>{{_i}}Large button{{/i}}</h5>
<h5>{{_i}}Button sizes{{/i}}</h5>
<div class="bs-docs-example">
<a class="btn btn-large" href="#"><i class="icon-star"></i> Star</a>
<a class="btn btn-small" href="#"><i class="icon-star"></i> Star</a>
<a class="btn btn-mini" href="#"><i class="icon-star"></i> Star</a>
</div>{{! /bs-docs-example }}
<pre class="prettyprint linenums">
&lt;a class="btn btn-large" href="#"&gt;&lt;i class="icon-star"&gt;&lt;/i&gt; Star&lt;/a&gt;
&lt;a class="btn btn-small" href="#"&gt;&lt;i class="icon-star"&gt;&lt;/i&gt; Star&lt;/a&gt;
&lt;a class="btn btn-mini" href="#"&gt;&lt;i class="icon-star"&gt;&lt;/i&gt; Star&lt;/a&gt;
</pre>

<h5>{{_i}}Small button{{/i}}</h5>
<div class="bs-docs-example">
<a class="btn btn-small" href="#"><i class="icon-star"></i></a>
</div>{{! /bs-docs-example }}
<pre class="prettyprint linenums">
&lt;a class="btn btn-small" href="#"&gt;&lt;i class="icon-star"&gt;&lt;/i&gt;&lt;/a&gt;
</pre>


<h4>{{_i}}Navigation{{/i}}</h4>
<div class="bs-docs-example">
<div class="well" style="padding: 8px 0; margin-bottom: 0;">
Expand Down
4 changes: 4 additions & 0 deletions less/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
.btn-small [class*=" icon-"] {
margin-top: 0;
}
.btn-mini [class^="icon-"],
.btn-mini [class*=" icon-"] {
margin-top: -1px;
}

// Mini
.btn-mini {
Expand Down

0 comments on commit be45a82

Please sign in to comment.