diff options
| author | Chris Rebert <[email protected]> | 2014-04-27 20:45:35 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-04-27 20:45:35 -0700 |
| commit | 686a45a84be19a07e8cdab7975145417c0bd58d4 (patch) | |
| tree | 6dcf1b893b84cacb85cd401a368035f7bd8314df /docs/_includes/components | |
| parent | d66a15154efbe3ee239846f93c60189bac5808e3 (diff) | |
| parent | 31f01c1abbe9a5c5aa3dc94da424ff99d60c45a7 (diff) | |
| download | bootstrap-686a45a84be19a07e8cdab7975145417c0bd58d4.tar.xz bootstrap-686a45a84be19a07e8cdab7975145417c0bd58d4.zip | |
Merge pull request #13435 from twbs/doc-less-import-glyphicons
Document that @import-ing Bootstrap can break the icon font path
Diffstat (limited to 'docs/_includes/components')
| -rw-r--r-- | docs/_includes/components/glyphicons.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/_includes/components/glyphicons.html b/docs/_includes/components/glyphicons.html index 18f202372..f93d0ec6a 100644 --- a/docs/_includes/components/glyphicons.html +++ b/docs/_includes/components/glyphicons.html @@ -30,6 +30,10 @@ <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> + <div class="bs-callout bs-callout-info"> + <h4><code>@import</code>ing Bootstrap via Less may require adjusting the icon font location</h4> + <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> + </div> {% highlight html %} <span class="glyphicon glyphicon-search"></span> {% endhighlight %} |
