0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

fix #13340 by documenting @icon-font-path & @icon-font-name more

This commit is contained in:
Chris Rebert 2014-04-15 20:03:44 -07:00
parent 2127eb563f
commit aec366c591

View File

@ -25,6 +25,11 @@
<h4>Only for use on empty elements</h4> <h4>Only for use on empty elements</h4>
<p>Icon classes should only be used on elements that contain no text content and have no child elements.</p> <p>Icon classes should only be used on elements that contain no text content and have no child elements.</p>
</div> </div>
<div class="bs-callout bs-callout-info">
<h4>Changing the icon font location</h4>
<p>By default, Bootstrap assumes that the icon font files will be located in the <code>../fonts/</code> directory relative to your deployed CSS. For example, if your CSS file is at <code>http://example.com/foobar/css/bootstrap.css</code>, then your font files should be at <code>http://example.com/foobar/fonts/glyphicons-halflings-regular.woff</code>, etc.</p>
<p>If you are placing the icon font files elsewhere or changing their filenames, you will need to adjust the <code>@icon-font-path</code> and/or <code>@icon-font-name</code> Less variables accordingly.</p>
</div>
{% highlight html %} {% highlight html %}
<span class="glyphicon glyphicon-search"></span> <span class="glyphicon glyphicon-search"></span>
{% endhighlight %} {% endhighlight %}