Skip to content

Commit 31f01c1

Browse files
committed
Document that @import-ing Bootstrap can break the icon font path
Addresses part of #13429.
1 parent d42b1a2 commit 31f01c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/_includes/components/glyphicons.html

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ <h4>Changing the icon font location</h4>
3030
<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>
3131
<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>
3232
</div>
33+
<div class="bs-callout bs-callout-info">
34+
<h4><code>@import</code>ing Bootstrap via Less may require adjusting the icon font location</h4>
35+
<p>If you <code>@import</code> Bootstrap's Less source into your own Less file, you may need to adjust the <code>@icon-font-path</code> Less variable due to the way that relative paths in <code>url(...)</code>s work in Less.</p>
36+
</div>
3337
{% highlight html %}
3438
<span class="glyphicon glyphicon-search"></span>
3539
{% endhighlight %}

0 commit comments

Comments
 (0)