mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
update the docs for icons
This commit is contained in:
parent
8da1c176ec
commit
3807a88ee9
10
docs/assets/css/bootstrap.css
vendored
10
docs/assets/css/bootstrap.css
vendored
@ -6,7 +6,7 @@
|
|||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
||||||
* Date: Fri Jan 27 13:43:19 PST 2012
|
* Date: Fri Jan 27 13:54:49 PST 2012
|
||||||
*/
|
*/
|
||||||
article,
|
article,
|
||||||
aside,
|
aside,
|
||||||
@ -1327,9 +1327,6 @@ table .span12 {
|
|||||||
.icon.chevron-right {
|
.icon.chevron-right {
|
||||||
background-position: -456px -72px;
|
background-position: -456px -72px;
|
||||||
}
|
}
|
||||||
.icon.arrow-left {
|
|
||||||
background-position: -240px -96px;
|
|
||||||
}
|
|
||||||
.icon.plus-sign {
|
.icon.plus-sign {
|
||||||
background-position: 0 -96px;
|
background-position: 0 -96px;
|
||||||
}
|
}
|
||||||
@ -1360,6 +1357,9 @@ table .span12 {
|
|||||||
.icon.ban-circle {
|
.icon.ban-circle {
|
||||||
background-position: -216px -96px;
|
background-position: -216px -96px;
|
||||||
}
|
}
|
||||||
|
.icon.arrow-left {
|
||||||
|
background-position: -240px -96px;
|
||||||
|
}
|
||||||
.icon.arrow-right {
|
.icon.arrow-right {
|
||||||
background-position: -264px -96px;
|
background-position: -264px -96px;
|
||||||
}
|
}
|
||||||
@ -1439,7 +1439,7 @@ table .span12 {
|
|||||||
background-position: -384px -120px;
|
background-position: -384px -120px;
|
||||||
}
|
}
|
||||||
.icon.folder-open {
|
.icon.folder-open {
|
||||||
background-position: -409px -120px;
|
background-position: -408px -120px;
|
||||||
}
|
}
|
||||||
.icon.resize-vertical {
|
.icon.resize-vertical {
|
||||||
background-position: -432px -119px;
|
background-position: -432px -119px;
|
||||||
|
@ -1454,7 +1454,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<strong>Heads up!</strong> On hover we show a light red background color to highlight the size of the icon. This won't appear in normal usage of icons.
|
<strong>Heads up!</strong> Icon classes are echoed via CSS <code>:after</code> and on hover in the docs we show a light red background color show the icon's size.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
@ -1470,6 +1470,10 @@
|
|||||||
<p>With v2.0.0, we have opted to use an <code><i></code> tag for all our icons with a base class of <code>.icon</code>. To use, place the following code just about anywhere:</p>
|
<p>With v2.0.0, we have opted to use an <code><i></code> tag for all our icons with a base class of <code>.icon</code>. 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>
|
||||||
|
<p>There are also styles available for inverted (white) icons, made ready with one extra class:</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<i class="icon white search"></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>
|
||||||
</div>
|
</div>
|
||||||
@ -1488,10 +1492,11 @@
|
|||||||
|
|
||||||
<h3>Examples</h3>
|
<h3>Examples</h3>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span6">
|
||||||
<p>Use them in buttons, or in button groups for a toolbar style presentation.</p>
|
<p>Use them in buttons, or in button groups for a toolbar style presentation.</p>
|
||||||
<p>
|
<p>
|
||||||
<a class="btn" href="#"><i class="icon refresh"></i> Refresh</a>
|
<a class="btn" href="#"><i class="icon refresh"></i> Refresh</a>
|
||||||
|
<a class="btn success" href="#"><i class="icon white shopping-cart"></i> Checkout</a>
|
||||||
<a class="btn danger" href="#"><i class="icon white trash"></i> Delete</a>
|
<a class="btn danger" href="#"><i class="icon white trash"></i> Delete</a>
|
||||||
</p>
|
</p>
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
|
9
docs/templates/pages/base-css.mustache
vendored
9
docs/templates/pages/base-css.mustache
vendored
@ -1389,7 +1389,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
{{_i}}<strong>Heads up!</strong> On hover we show a light red background color to highlight the size of the icon. This won't appear in normal usage of icons.{{/i}}
|
{{_i}}<strong>Heads up!</strong> Icon classes are echoed via CSS <code>:after</code> and on hover in the docs we show a light red background color show the icon's size.{{/i}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
@ -1405,6 +1405,10 @@
|
|||||||
<p>{{_i}}With v2.0.0, we have opted to use an <code><i></code> tag for all our icons with a base class of <code>.icon</code>. To use, place the following code just about anywhere:{{/i}}</p>
|
<p>{{_i}}With v2.0.0, we have opted to use an <code><i></code> tag for all our icons with a base class of <code>.icon</code>. 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>
|
||||||
|
<p>There are also styles available for inverted (white) icons, made ready with one extra class:</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<i class="icon white search"></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>
|
||||||
</div>
|
</div>
|
||||||
@ -1423,10 +1427,11 @@
|
|||||||
|
|
||||||
<h3>{{_i}}Examples{{/i}}</h3>
|
<h3>{{_i}}Examples{{/i}}</h3>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span6">
|
||||||
<p>{{_i}}Use them in buttons, or in button groups for a toolbar style presentation.{{/i}}</p>
|
<p>{{_i}}Use them in buttons, or in button groups for a toolbar style presentation.{{/i}}</p>
|
||||||
<p>
|
<p>
|
||||||
<a class="btn" href="#"><i class="icon refresh"></i> {{_i}}Refresh{{/i}}</a>
|
<a class="btn" href="#"><i class="icon refresh"></i> {{_i}}Refresh{{/i}}</a>
|
||||||
|
<a class="btn success" href="#"><i class="icon white shopping-cart"></i> {{_i}}Checkout{{/i}}</a>
|
||||||
<a class="btn danger" href="#"><i class="icon white trash"></i> {{_i}}Delete{{/i}}</a>
|
<a class="btn danger" href="#"><i class="icon white trash"></i> {{_i}}Delete{{/i}}</a>
|
||||||
</p>
|
</p>
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
|
Loading…
Reference in New Issue
Block a user