mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
remove warning from icons section about :after labels, add section to explain spacing
This commit is contained in:
parent
1a781a707e
commit
dd94f8d509
Binary file not shown.
@ -1516,9 +1516,6 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alert alert-info">
|
|
||||||
<strong>Heads up!</strong> Icon classes are echoed via CSS <code>:after</code>. In the docs, we show a light red background color on hover to highlight the icon's size.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
@ -1531,7 +1528,7 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>How to use</h3>
|
<h3>How to use</h3>
|
||||||
<p>With v2.0.1, we have opted to use an <code><i></code> tag for all our icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:</p>
|
<p>Bootstrap uses an <code><i></code> tag for all icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<i class="icon-search"></i>
|
<i class="icon-search"></i>
|
||||||
</pre>
|
</pre>
|
||||||
@ -1540,6 +1537,7 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<i class="icon-search icon-white"></i>
|
<i class="icon-search icon-white"></i>
|
||||||
</pre>
|
</pre>
|
||||||
<p>There are 120 classes to choose from for your icons. Just add an <code><i></code> tag with the right classes and you're set. You can find the full list in <strong>sprites.less</strong> or right here in this document.</p>
|
<p>There are 120 classes to choose from for your icons. Just add an <code><i></code> tag with the right classes and you're set. You can find the full list in <strong>sprites.less</strong> or right here in this document.</p>
|
||||||
|
<p>When using beside strings of text, as in buttons or nav links, be sure to leave a space after the <code><i></code> tag for proper spacing.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Use cases</h3>
|
<h3>Use cases</h3>
|
||||||
|
6
docs/templates/pages/base-css.mustache
vendored
6
docs/templates/pages/base-css.mustache
vendored
@ -1440,9 +1440,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alert alert-info">
|
|
||||||
{{_i}}<strong>Heads up!</strong> Icon classes are echoed via CSS <code>:after</code>. In the docs, we show a light red background color on hover to highlight the icon's size.{{/i}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
@ -1455,7 +1452,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}How to use{{/i}}</h3>
|
<h3>{{_i}}How to use{{/i}}</h3>
|
||||||
<p>{{_i}}With v2.0.1, we have opted to use an <code><i></code> tag for all our icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:{{/i}}</p>
|
<p>{{_i}}Bootstrap uses an <code><i></code> tag for all icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<i class="icon-search"></i>
|
<i class="icon-search"></i>
|
||||||
</pre>
|
</pre>
|
||||||
@ -1464,6 +1461,7 @@
|
|||||||
<i class="icon-search icon-white"></i>
|
<i class="icon-search icon-white"></i>
|
||||||
</pre>
|
</pre>
|
||||||
<p>{{_i}}There are 120 classes to choose from for your icons. Just add an <code><i></code> tag with the right classes and you're set. You can find the full list in <strong>sprites.less</strong> or right here in this document.{{/i}}</p>
|
<p>{{_i}}There are 120 classes to choose from for your icons. Just add an <code><i></code> tag with the right classes and you're set. You can find the full list in <strong>sprites.less</strong> or right here in this document.{{/i}}</p>
|
||||||
|
<p>{{_i}}When using beside strings of text, as in buttons or nav links, be sure to leave a space after the <code><i></code> tag for proper spacing.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Use cases{{/i}}</h3>
|
<h3>{{_i}}Use cases{{/i}}</h3>
|
||||||
|
Loading…
Reference in New Issue
Block a user