mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-13 00:30:29 +08:00
Update docs to show new @fontAwesomePath variable.
This commit is contained in:
parent
3aa4f2be5c
commit
095db36d37
14
index.html
14
index.html
@ -685,15 +685,17 @@
|
||||
<li>Copy font-awesome.less into your bootstrap/less directory.</li>
|
||||
<li>Open bootstrap.less and replace <code>@import "sprites.less";</code> with <code>@import "font-awesome.less";</code></li>
|
||||
<li>
|
||||
Open your project's font-awesome.less and edit the font url to ensure it points to the right place.
|
||||
Open your project's font-awesome.less and edit the <code>@fontAwesomePath</code> variable to ensure it points to the right place.
|
||||
<pre class="prettyprint linenums">
|
||||
@fontAwesomePath: '../font';
|
||||
|
||||
@font-face {
|
||||
font-family: 'FontAwesome';
|
||||
src: url('../font/fontawesome-webfont.eot');
|
||||
src: url('../font/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('../font/fontawesome-webfont.woff') format('woff'),
|
||||
url('../font/fontawesome-webfont.ttf') format('truetype'),
|
||||
url('../font/fontawesome-webfont.svg#FontAwesome') format('svg');
|
||||
src: url('@{fontAwesomePath}/fontawesome-webfont.eot');
|
||||
src: url('@{fontAwesomePath}/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('@{fontAwesomePath}/fontawesome-webfont.woff') format('woff'),
|
||||
url('@{fontAwesomePath}/fontawesome-webfont.ttf') format('truetype'),
|
||||
url('@{fontAwesomePath}/fontawesome-webfont.svg#FontAwesome') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user