mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-11-20 11:14:28 +00:00
102 lines
4.1 KiB
HTML
102 lines
4.1 KiB
HTML
|
<section id="integration">
|
||
|
<h2 class="page-header">Integration</h2>
|
||
|
<p>It's easy to integrate Font Awesome into Twitter Bootstrap, or even use it on its own.</p>
|
||
|
<div class="row">
|
||
|
<div class="span12">
|
||
|
<h4>Easy Bootstrap + Font Awesome Integration</h4>
|
||
|
</div>
|
||
|
<div class="span3">
|
||
|
<p>Use this method to integrate Font Awesome with the default Bootstrap CSS.</p>
|
||
|
</div>
|
||
|
<div class="span9">
|
||
|
<ol>
|
||
|
<li>Copy the Font Awesome font directory into your project.</li>
|
||
|
<li>Copy font-awesome.min.css into your project.</li>
|
||
|
<li>
|
||
|
Open your project's font-awesome.min.css and edit the font paths to ensure they point to the right place.
|
||
|
<p class="alert alert-info"><i class="icon-info-sign"></i> The font path is relative from your CSS directory.</p>
|
||
|
</li>
|
||
|
<li>
|
||
|
In the <code><head></code> of your html, reference the location to your font-awesome.min.css.
|
||
|
<pre class="prettyprint linenums">
|
||
|
<link rel="stylesheet" href="../css/bootstrap.min.css">
|
||
|
<link rel="stylesheet" href="../css/font-awesome.min.css">
|
||
|
</pre>
|
||
|
</li>
|
||
|
<li>Check out the examples to start using Font Awesome!</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="span12">
|
||
|
<h4>Custom Bootstrap + Font Awesome Integration using LESS</h4>
|
||
|
</div>
|
||
|
<div class="span3">
|
||
|
<p>Use this method to integrate Font Awesome with Twitter Bootstrap using LESS.</p>
|
||
|
</div>
|
||
|
<div class="span9">
|
||
|
<ol>
|
||
|
<li>Copy the Font Awesome font directory into your project.</li>
|
||
|
<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 <code>@FontAwesomePath</code> variable to point to your font directory.
|
||
|
<pre class="prettyprint linenums">
|
||
|
@FontAwesomePath: "../font";
|
||
|
</pre>
|
||
|
<p class="alert alert-info"><i class="icon-info-sign"></i> The font path is relative from your compiled CSS directory.</p>
|
||
|
</li>
|
||
|
<li>Re-compile your LESS if using a static compiler. Otherwise, you should be good to go.</li>
|
||
|
<li>Check out the examples to start using Font Awesome!</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="span12">
|
||
|
<h4>Custom Bootstrap + Font Awesome Integration using SASS or SCSS</h4>
|
||
|
<p>I have never used either, so let me know if the included SCSS or SASS files have issues.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="span12">
|
||
|
<h4>Not using Bootstrap?</h4>
|
||
|
</div>
|
||
|
<div class="span3">
|
||
|
<p>Font Awesome works just as well without Twitter Bootstrap.</p>
|
||
|
</div>
|
||
|
<div class="span9">
|
||
|
<ol>
|
||
|
<li>Copy the Font Awesome font directory into your project.</li>
|
||
|
<li>Copy font-awesome.less or font-awesome.min.css into your project.</li>
|
||
|
<li>Open your project's font-awesome.less or font-awesome.min.css and edit the font location to point it to your font directory (see above examples).</li>
|
||
|
<li>Check out the examples to start using Font Awesome!</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="span12">
|
||
|
<h4>Need IE7 Support?</h4>
|
||
|
</div>
|
||
|
<div class="span3">
|
||
|
<p>Font Awesome supports IE7. If you need it, you have my condolences.</p>
|
||
|
</div>
|
||
|
<div class="span9">
|
||
|
<ol>
|
||
|
<li>Get Font Awesome working properly in a modern browser.</li>
|
||
|
<li>Copy font-awesome-ie7.min.css into your project.</li>
|
||
|
<li>
|
||
|
In the <code><head></code> of your html, reference the location to your font-awesome-ie7.min.css.
|
||
|
<pre class="prettyprint linenums">
|
||
|
<link rel="stylesheet" href="../css/bootstrap.min.css">
|
||
|
<link rel="stylesheet" href="../css/font-awesome.min.css">
|
||
|
<!--[if IE 7]>
|
||
|
<link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css">
|
||
|
<![endif]-->
|
||
|
</pre>
|
||
|
</li>
|
||
|
<li>Go complain to whoever decided your project needs IE7 support.</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
</div>
|
||
|
</section>
|