index.html 15 KB

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