index.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <!DOCTYPE html>
  2. <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
  3. <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
  4. <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
  5. <!--[if (gte IE 9)|!(IE)]><!-->
  6. <html lang="en" xmlns="http://www.w3.org/1999/html"> <!--<![endif]-->
  7. <head>
  8. <!-- Basic Page Needs
  9. ================================================== -->
  10. <meta charset="utf-8" />
  11. <title>Get Started with Font Awesome</title>
  12. <meta name="description" content="Font Awesome, the iconic font designed for use with Bootstrap">
  13. <meta name="author" content="Dave Gandy">
  14. <!--<meta name="viewport" content="initial-scale=1; maximum-scale=1">-->
  15. <!--[if lt IE 9]>
  16. <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  17. <![endif]-->
  18. <!-- CSS
  19. ================================================== -->
  20. <link rel="stylesheet" href="../assets/css/site.css">
  21. <link rel="stylesheet" href="../assets/css/pygments.css">
  22. <link rel="stylesheet" href="../assets/font-awesome/css/font-awesome.min.css">
  23. <!--[if IE 7]>
  24. <link rel="stylesheet" href="../assets/font-awesome/css/font-awesome-ie7.min.css">
  25. <![endif]-->
  26. <!-- Le fav and touch icons -->
  27. <link rel="shortcut icon" href="../assets/ico/favicon.ico">
  28. <script type="text/javascript" src="//use.typekit.net/wnc7ioh.js"></script>
  29. <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
  30. <script type="text/javascript">
  31. var _gaq = _gaq || [];
  32. _gaq.push(['_setAccount', 'UA-30136587-1']);
  33. _gaq.push(['_trackPageview']);
  34. (function() {
  35. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  36. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  37. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  38. })();
  39. </script>
  40. </head>
  41. <body data-spy="scroll" data-target=".navbar">
  42. <div class="wrapper"> <!-- necessary for sticky footer. wrap all content except footer -->
  43. <div class="navbar navbar-inverse navbar-static-top hidden-print">
  44. <div class="navbar-inner">
  45. <div class="container">
  46. <a class="brand" href="../"><i class="icon-flag"></i> Font Awesome</a>
  47. <ul class="nav">
  48. <li><a href="../">Home</a></li>
  49. <li class="active"><a href="../get-started/">Get Started</a></li>
  50. <li class="dropdown-split-left"><a href="../icons/">Icons</a></li>
  51. <li class="dropdown dropdown-split-right">
  52. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  53. <i class="icon-caret-down"></i>
  54. </a>
  55. <ul class="dropdown-menu pull-right">
  56. <li><a href="../icons/"><i class="icon-flag icon-fixed-width"></i>&nbsp; Icons</a></li>
  57. <li class="divider"></li>
  58. <li><a href="../icons/#new"><i class="icon-shield icon-fixed-width"></i>&nbsp; New Icons in 3.1.1</a></li>
  59. <li><a href="../icons/#web-application"><i class="icon-camera-retro icon-fixed-width"></i>&nbsp; Web Application Icons</a></li>
  60. <li><a href="../icons/#text-editor"><i class="icon-file-alt icon-fixed-width"></i>&nbsp; Text Editor Icons</a></li>
  61. <li><a href="../icons/#directional"><i class="icon-hand-right icon-fixed-width"></i>&nbsp; Directional Icons</a></li>
  62. <li><a href="../icons/#video-player"><i class="icon-play-sign icon-fixed-width"></i>&nbsp; Video Player Icons</a></li>
  63. <li><a href="../icons/#brand"><i class="icon-github icon-fixed-width"></i>&nbsp; Brand Icons</a></li>
  64. <li><a href="../icons/#medical"><i class="icon-medkit icon-fixed-width"></i>&nbsp; Medical Icons</a></li>
  65. </ul>
  66. </li>
  67. <li class="dropdown-split-left"><a href="../examples/">Examples</a></li>
  68. <li class="dropdown dropdown-split-right">
  69. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  70. <i class="icon-caret-down"></i>
  71. </a>
  72. <ul class="dropdown-menu pull-right">
  73. <li><a href="../examples/">Examples</a></li>
  74. <li class="divider"></li>
  75. <li><a href="../examples/#new-styles">New Styles</a></li>
  76. <li><a href="../examples/#inline-icons">Inline Icons</a></li>
  77. <li><a href="../examples/#larger-icons">Larger Icons</a></li>
  78. <li><a href="../examples/#bordered-pulled">Bordered & Pulled</a></li>
  79. <li><a href="../examples/#buttons">Buttons</a></li>
  80. <li><a href="../examples/#button-groups">Button Groups</a></li>
  81. <li><a href="../examples/#button-dropdowns">Button Dropdowns</a></li>
  82. <li><a href="../examples/#bulleted-lists">Bulleted Lists</a></li>
  83. <li><a href="../examples/#navigation">Navigation</a></li>
  84. <li><a href="../examples/#form-inputs">Form Inputs</a></li>
  85. <li><a href="../examples/#animated-spinner">Animated Spinner</a></li>
  86. <li><a href="../examples/#rotated-flipped">Rotated &amp; Flipped</a></li>
  87. <li><a href="../examples/#stacked">Stacked</a></li>
  88. <li><a href="../examples/#custom">Custom CSS</a></li>
  89. </ul>
  90. </li>
  91. <li><a href="../whats-new/">What's New</a></li>
  92. <li><a href="../community/">Community</a></li>
  93. <li><a href="../license/">License</a></li>
  94. </ul>
  95. <ul class="nav pull-right">
  96. <li><a href="mailto:dave@fontawesome.io"><i class="icon-envelope"></i>&nbsp; Me</a></li>
  97. </ul>
  98. </div>
  99. </div>
  100. </div>
  101. <div class="jumbotron jumbotron-ad hidden-print">
  102. <div class="container">
  103. <h1><i class="icon-cogs icon-large"></i>&nbsp; Get Started</h1>
  104. <p>Easy ways to get Font Awesome 3.1.1 onto your website</p>
  105. </div>
  106. </div>
  107. <div id="social-buttons" class="hidden-print">
  108. <div class="container">
  109. <ul class="unstyled inline">
  110. <li>
  111. <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=FortAwesome&repo=Font-Awesome&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
  112. </li>
  113. <li>
  114. <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=FortAwesome&repo=Font-Awesome&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="102px" height="20px"></iframe>
  115. </li>
  116. <li class="follow-btn">
  117. <a href="https://twitter.com/fontawesome" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @fontawesome</a>
  118. </li>
  119. <li class="tweet-btn">
  120. <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://fontawesome.io" data-text="Font Awesome, the iconic font designed for Bootstrap" data-counturl="http://fortawesome.github.com/Font-Awesome/" data-count="horizontal" data-via="fontawesome" data-related="byscuits:Creator of Font Awesome">Tweet</a>
  121. </li>
  122. </ul>
  123. </div>
  124. </div>
  125. <div class="container">
  126. <section class="hidden-print">
  127. <div class="row stripe-ad">
  128. <div class="span8">
  129. <p class="lead">
  130. Setting up Font Awesome can be as simple as adding two lines of code to your website, or you can be a pro and
  131. customize the LESS yourself! Font Awesome even plays nicely with
  132. <a href="http://getbootstrap.com">Bootstrap</a>!
  133. </p>
  134. </div>
  135. <div class="span4">
  136. <div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script type="text/javascript">var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = "http://engine.carbonads.com/z/32291/azcarbon_2_1_0_HORIZ"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div>
  137. </div>
  138. </div>
  139. </section>
  140. <div id="bootstrapcdn">
  141. <h2 class="page-header">EASIEST: <a href="http://www.bootstrapcdn.com/#tab_fontawesome">BootstrapCDN</a></h2>
  142. <p>Add Font Awesome + Bootstrap into your website with two lines of code. You don't even have to download or install anything!</p>
  143. <ol>
  144. <li>
  145. Paste the following code into the <code>&lt;head&gt;</code> section of your site's HTML.
  146. <div class="highlight"><pre><code class="html"><span class="nt">&lt;link</span> <span class="na">href=</span><span class="s">&quot;//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.no-icons.min.css&quot;</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span><span class="nt">&gt;</span>
  147. <span class="nt">&lt;link</span> <span class="na">href=</span><span class="s">&quot;//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css&quot;</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span><span class="nt">&gt;</span>
  148. </code></pre></div>
  149. <div class="alert alert-info margin-top">
  150. <i class="icon-info-sign"></i> Want to use Font Awesome by itself without Bootstrap? Just don't include the first line.
  151. </div>
  152. </li>
  153. <li>
  154. Pat yourself on the back for your scalable-vector-icons-on-the-website
  155. <a href="http://37signals.com/svn/posts/312-lingo-judo">judo solution</a> in two lines of code.
  156. </li>
  157. <li>
  158. Check out the <a href="../examples/">examples</a> to start using Font Awesome!
  159. </li>
  160. </ol>
  161. </div>
  162. <section id="default-css">
  163. <h2 class="page-header">EASY: Default CSS</h2>
  164. <p>Use this method to get the default Font Awesome CSS with the default Bootstrap CSS.</p>
  165. <ol>
  166. <li>Copy the <code>font-awesome</code> directory into your project.</li>
  167. <li>
  168. In the <code>&lt;head&gt;</code> of your html, reference the location to your font-awesome.min.css.
  169. <div class="highlight"><pre><code class="html"><span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span> <span class="na">href=</span><span class="s">&quot;path/to/bootstrap/css/bootstrap.min.css&quot;</span><span class="nt">&gt;</span>
  170. <span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span> <span class="na">href=</span><span class="s">&quot;path/to/font-awesome/css/font-awesome.min.css&quot;</span><span class="nt">&gt;</span>
  171. </code></pre></div>
  172. </li>
  173. <li>Check out the <a href="../examples/">examples</a> to start using Font Awesome!</li>
  174. </ol>
  175. </section>
  176. <section id="custom-less">
  177. <h2 class="page-header">PRO: Custom LESS</h2>
  178. <p>Use this method to customize Font Awesome and Bootstrap 2.3.1 using LESS.</p>
  179. <ol>
  180. <li>Copy the <code>font-awesome</code> directory into your project.</li>
  181. <li>Open bootstrap.less and replace <code>@import "sprites.less";</code> with <code>@import "path/to/font-awesome/less/font-awesome.less";</code></li>
  182. <li>
  183. Open your project's font-awesome.less and edit the <code>@FontAwesomePath</code> variable to point to your font directory.
  184. <div class="highlight"><pre><code class="html">@FontAwesomePath: &quot;../font&quot;;
  185. </code></pre></div>
  186. <p class="alert alert-info"><i class="icon-info-sign"></i> The font path is relative from your compiled CSS directory.</p>
  187. </li>
  188. <li>Re-compile your LESS if using a static compiler. Otherwise, you should be good to go.</li>
  189. <li>Check out the <a href="../examples/">examples</a> to start using Font Awesome!</li>
  190. </ol>
  191. </section>
  192. <section id="not-using-bootstrap">
  193. <h2 class="page-header">Not using Bootstrap?</h2>
  194. <p>Font Awesome works just as well without Bootstrap.</p>
  195. <ol>
  196. <li>Copy the <code>font-awesome</code> directory into your project.</li>
  197. <li>Follow the above directions and skip the Bootstrap parts.</li>
  198. <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>
  199. <li>Check out the <a href="../examples/">examples</a> to start using Font Awesome!</li>
  200. </ol>
  201. </section>
  202. <section class="need-ie7">
  203. <h2 class="page-header">Need IE7 Support?</h2>
  204. <p>Font Awesome supports IE7. If you need it, you have my condolences.</p>
  205. <ol>
  206. <li>Get Font Awesome working properly in a modern browser.</li>
  207. <li>Copy font-awesome-ie7.min.css into your project.</li>
  208. <li>
  209. In the <code>&lt;head&gt;</code> of your html, reference the location to your font-awesome-ie7.min.css.
  210. <div class="highlight"><pre><code class="html"><span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span> <span class="na">href=</span><span class="s">&quot;path/to/bootstrap/css/bootstrap.min.css&quot;</span><span class="nt">&gt;</span>
  211. <span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span> <span class="na">href=</span><span class="s">&quot;path/to/font-awesome/css/font-awesome.min.css&quot;</span><span class="nt">&gt;</span>
  212. <span class="c">&lt;!--[if IE 7]&gt;</span>
  213. <span class="c"> &lt;link rel=&quot;stylesheet&quot; href=&quot;path/to/font-awesome/css/font-awesome-ie7.min.css&quot;&gt;</span>
  214. <span class="c">&lt;![endif]--&gt;</span>
  215. </code></pre></div>
  216. </li>
  217. <li>Go complain to whoever decided your project needs IE7 support.</li>
  218. </ol>
  219. </section>
  220. </div>
  221. <div class="push"><!-- necessary for sticky footer --></div>
  222. </div>
  223. <footer class="footer hidden-print">
  224. <div class="container text-center">
  225. <div>
  226. <i class="icon-flag"></i> Font Awesome 3.1.1 &middot;
  227. Created and Maintained by Dave Gandy &middot;
  228. <a href="http://twitter.com/byscuits">@byscuits</a>
  229. </div>
  230. <div>
  231. Font Awesome font licensed under <a href="http://scripts.sil.org/OFL">SIL OFL 1.1</a> &middot;
  232. Code licensed under <a href="http://opensource.org/licenses/mit-license.html">MIT License</a> &middot;
  233. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>
  234. </div>
  235. <div>
  236. Thanks to <a href="http://maxcdn.com"><i class="icon-maxcdn"></i> MaxCDN</a> for providing the excellent <a href="http://www.bootstrapcdn.com/#tab_fontawesome">BootstrapCDN for Font Awesome</a>
  237. </div>
  238. <div class="project">
  239. <a href="https://github.com/FortAwesome/Font-Awesome">GitHub Project</a> &middot;
  240. <a href="https://github.com/FortAwesome/Font-Awesome/issues">Issues</a>
  241. </div>
  242. </div>
  243. </footer>
  244. <script src="http://platform.twitter.com/widgets.js"></script>
  245. <script src="../assets/js/jquery-1.7.1.min.js"></script>
  246. <script src="../assets/js/underscore.min.js"></script>
  247. <script src="../assets/js/backbone.min.js"></script>
  248. <!--<script src="../assets/js/prettify.min.js"></script>-->
  249. <script src="../assets/js/bootstrap-2.3.1.min.js"></script>
  250. <script src="../assets/js/site.js"></script>
  251. </body>
  252. </html>