Skip to content

Commit

Permalink
Merge pull request #13768 from twbs/font_files_docs
Browse files Browse the repository at this point in the history
Simpler and updated docs copy for icon font file paths
  • Loading branch information
mdo committed Jun 10, 2014
2 parents 2213a5b + d2061e8 commit 12aeeac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
13 changes: 7 additions & 6 deletions docs/_includes/components/glyphicons.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ <h4>Only for use on empty elements</h4>
</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>
<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 the relative paths in our <code>url(...)</code>s work.</p>
<p>Bootstrap assumes icon font files will be located in the <code>../fonts/</code> directory, relative to the compiled CSS files. Moving or renaming those font files means updating the CSS in one of three ways:</p>
<ul>
<li>Change the <code>@icon-font-path</code> and/or <code>@icon-font-name</code> variables in the source Less files.</li>
<li>Utilize the <a href="http://lesscss.org/usage/#command-line-usage-relative-urls">relative URLs option</a> provided by the Less compiler.</li>
<li>Change the <code>url()</code> paths in the compiled CSS.</li>
</ul>
<p>Use whatever option best suits your specific development setup.</p>
</div>
{% highlight html %}
<span class="glyphicon glyphicon-search"></span>
Expand Down
4 changes: 4 additions & 0 deletions docs/assets/css/_src/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -1060,10 +1060,14 @@ h1[id] {
}

/* Example dropdowns */
.bs-example > .dropdown > .dropdown-toggle {
float: left;
}
.bs-example > .dropdown > .dropdown-menu {
position: static;
display: block;
margin-bottom: 5px;
clear: left;
}

/* Example tabbable tabs */
Expand Down
Loading

0 comments on commit 12aeeac

Please sign in to comment.