Fork-Awesome/build/_includes/integration.html

102 lines
4.1 KiB
HTML
Raw Normal View History

<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>&lt;head&gt;</code> of your html, reference the location to your font-awesome.min.css.
<pre class="prettyprint linenums">
&lt;link rel="stylesheet" href="../css/bootstrap.min.css"&gt;
&lt;link rel="stylesheet" href="../css/font-awesome.min.css"&gt;
</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>&lt;head&gt;</code> of your html, reference the location to your font-awesome-ie7.min.css.
<pre class="prettyprint linenums">
&lt;link rel="stylesheet" href="../css/bootstrap.min.css"&gt;
&lt;link rel="stylesheet" href="../css/font-awesome.min.css"&gt;
&lt;!--[if IE 7]&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;assets/css/font-awesome-ie7.min.css&quot;&gt;
&lt;![endif]--&gt;
</pre>
</li>
<li>Go complain to whoever decided your project needs IE7 support.</li>
</ol>
</div>
</div>
</section>