get-started.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <section>
  2. <div class="row">
  3. <div class="span8">
  4. <h2 class="page-header">Ways to use Font Awesome</h2>
  5. <p>It's easy to get started with Font Awesome. And it plays really nicely with <a href="{{ site.bootstrap.url }}">Bootstrap</a>!</p>
  6. </div>
  7. <div class="span4">
  8. <div>
  9. <br>
  10. {% include ads/carbon-light-horizontal.html %}
  11. </div>
  12. </div>
  13. </div>
  14. </section>
  15. <section>
  16. <h3>EASIEST: <a href="http://www.bootstrapcdn.com/#tab_fontawesome">BootstrapCDN</a></h3>
  17. <p>Add Font Awesome + Bootstrap into your website with two lines of code. You don't even have to download or install anything!</p>
  18. <ol>
  19. <li>
  20. Paste the following code into the <code>&lt;head&gt;</code> section of your site's HTML.
  21. {% highlight html %}
  22. <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
  23. <link href="//netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css" rel="stylesheet">
  24. {% endhighlight %}
  25. <div class="alert alert-info margin-top">
  26. <i class="icon-info-sign"></i> Want to use Font Awesome by itself without Bootstrap? Just skip pasting in the first line.
  27. </div>
  28. </li>
  29. <li>
  30. Pat yourself on the back for your scalable-vector-icons-on-the-website
  31. <a href="http://37signals.com/svn/posts/312-lingo-judo">judo solution</a> in two lines of code.
  32. </li>
  33. <li>
  34. Check out the <a href="{{ site.baseurl }}examples/">examples</a> to start using Font Awesome!
  35. </li>
  36. </ol>
  37. </section>
  38. <section>
  39. <h3>EASY: Default CSS</h3>
  40. <p>Use this method to get the default Font Awesome CSS with the default Bootstrap CSS.</p>
  41. <ol>
  42. <li>Copy the Font Awesome font directory into your project.</li>
  43. <li>Copy font-awesome.min.css into your project.</li>
  44. <li>
  45. Open your project's font-awesome.min.css and edit the font paths to ensure they point to the right place.
  46. <p class="alert alert-info"><i class="icon-info-sign"></i> The font path is relative from your CSS directory.</p>
  47. </li>
  48. <li>
  49. In the <code>&lt;head&gt;</code> of your html, reference the location to your font-awesome.min.css.
  50. {% highlight html %}
  51. <link rel="stylesheet" href="../css/bootstrap.min.css">
  52. <link rel="stylesheet" href="../css/font-awesome.min.css">
  53. {% endhighlight %}
  54. </li>
  55. <li>Check out the <a href="{{ site.baseurl }}examples/">examples</a> to start using Font Awesome!</li>
  56. </ol>
  57. </section>
  58. <section>
  59. <h3>PRO: Custom LESS</h3>
  60. <p>Use this method to customize Font Awesome and Bootstrap using LESS.</p>
  61. <ol>
  62. <li>Copy the Font Awesome font directory into your project.</li>
  63. <li>Copy font-awesome.less into your bootstrap/less directory.</li>
  64. <li>Open bootstrap.less and replace <code>@import "sprites.less";</code> with <code>@import "font-awesome.less";</code></li>
  65. <li>
  66. Open your project's font-awesome.less and edit the <code>@FontAwesomePath</code> variable to point to your font directory.
  67. {% highlight html %}
  68. @FontAwesomePath: "../font";
  69. {% endhighlight %}
  70. <p class="alert alert-info"><i class="icon-info-sign"></i> The font path is relative from your compiled CSS directory.</p>
  71. </li>
  72. <li>Re-compile your LESS if using a static compiler. Otherwise, you should be good to go.</li>
  73. <li>Check out the <a href="{{ site.baseurl }}examples/">examples</a> to start using Font Awesome!</li>
  74. </ol>
  75. </section>
  76. <section>
  77. <h3>Not using Bootstrap?</h3>
  78. <p>Font Awesome works just as well without Bootstrap.</p>
  79. <ol>
  80. <li>Copy the Font Awesome font directory into your project.</li>
  81. <li>Copy font-awesome.less or font-awesome.min.css into your project.</li>
  82. <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>
  83. <li>Check out the <a href="{{ site.baseurl }}examples/">examples</a> to start using Font Awesome!</li>
  84. </ol>
  85. </section>
  86. <section>
  87. <h3>Need IE7 Support?</h3>
  88. <p>Font Awesome supports IE7. If you need it, you have my condolences.</p>
  89. <ol>
  90. <li>Get Font Awesome working properly in a modern browser.</li>
  91. <li>Copy font-awesome-ie7.min.css into your project.</li>
  92. <li>
  93. In the <code>&lt;head&gt;</code> of your html, reference the location to your font-awesome-ie7.min.css.
  94. {% highlight html %}
  95. <link rel="stylesheet" href="../css/bootstrap.min.css">
  96. <link rel="stylesheet" href="../css/font-awesome.min.css">
  97. <!--[if IE 7]>
  98. <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css">
  99. <![endif]-->{% endhighlight %}
  100. </li>
  101. <li>Go complain to whoever decided your project needs IE7 support.</li>
  102. </ol>
  103. </section>