get-started.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <section id="integration">
  2. <div class="row margin-bottom">
  3. <div class="span8">
  4. <h2 class="page-header">Integration</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. <br>
  9. {% include ads/carbon-light-horizontal.html %}
  10. </div>
  11. </div>
  12. <div class="row">
  13. <div class="span12">
  14. <h4>Easy Bootstrap + Font Awesome Integration</h4>
  15. </div>
  16. <div class="span3">
  17. <p>Use this method to integrate Font Awesome with the default Bootstrap CSS.</p>
  18. </div>
  19. <div class="span9">
  20. <ol>
  21. <li>Copy the Font Awesome font directory into your project.</li>
  22. <li>Copy font-awesome.min.css into your project.</li>
  23. <li>
  24. Open your project's font-awesome.min.css and edit the font paths to ensure they point to the right place.
  25. <p class="alert alert-info"><i class="icon-info-sign"></i> The font path is relative from your CSS directory.</p>
  26. </li>
  27. <li>
  28. In the <code>&lt;head&gt;</code> of your html, reference the location to your font-awesome.min.css.
  29. <pre class="prettyprint linenums">
  30. &lt;link rel="stylesheet" href="../css/bootstrap.min.css"&gt;
  31. &lt;link rel="stylesheet" href="../css/font-awesome.min.css"&gt;
  32. </pre>
  33. </li>
  34. <li>Check out the examples to start using Font Awesome!</li>
  35. </ol>
  36. </div>
  37. </div>
  38. <div class="row">
  39. <div class="span12">
  40. <h4>Custom Bootstrap + Font Awesome Integration using LESS</h4>
  41. </div>
  42. <div class="span3">
  43. <p>Use this method to integrate Font Awesome with Twitter Bootstrap using LESS.</p>
  44. </div>
  45. <div class="span9">
  46. <ol>
  47. <li>Copy the Font Awesome font directory into your project.</li>
  48. <li>Copy font-awesome.less into your bootstrap/less directory.</li>
  49. <li>Open bootstrap.less and replace <code>@import "sprites.less";</code> with <code>@import "font-awesome.less";</code></li>
  50. <li>
  51. Open your project's font-awesome.less and edit the <code>@FontAwesomePath</code> variable to point to your font directory.
  52. <pre class="prettyprint linenums">
  53. @FontAwesomePath: "../font";
  54. </pre>
  55. <p class="alert alert-info"><i class="icon-info-sign"></i> The font path is relative from your compiled CSS directory.</p>
  56. </li>
  57. <li>Re-compile your LESS if using a static compiler. Otherwise, you should be good to go.</li>
  58. <li>Check out the examples to start using Font Awesome!</li>
  59. </ol>
  60. </div>
  61. </div>
  62. <div class="row">
  63. <div class="span12">
  64. <h4>Custom Bootstrap + Font Awesome Integration using SASS or SCSS</h4>
  65. <p>I have never used either, so let me know if the included SCSS or SASS files have issues.</p>
  66. </div>
  67. </div>
  68. <div class="row">
  69. <div class="span12">
  70. <h4>Not using Bootstrap?</h4>
  71. </div>
  72. <div class="span3">
  73. <p>Font Awesome works just as well without Twitter Bootstrap.</p>
  74. </div>
  75. <div class="span9">
  76. <ol>
  77. <li>Copy the Font Awesome font directory into your project.</li>
  78. <li>Copy font-awesome.less or font-awesome.min.css into your project.</li>
  79. <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>
  80. <li>Check out the examples to start using Font Awesome!</li>
  81. </ol>
  82. </div>
  83. </div>
  84. <div class="row">
  85. <div class="span12">
  86. <h4>Need IE7 Support?</h4>
  87. </div>
  88. <div class="span3">
  89. <p>Font Awesome supports IE7. If you need it, you have my condolences.</p>
  90. </div>
  91. <div class="span9">
  92. <ol>
  93. <li>Get Font Awesome working properly in a modern browser.</li>
  94. <li>Copy font-awesome-ie7.min.css into your project.</li>
  95. <li>
  96. In the <code>&lt;head&gt;</code> of your html, reference the location to your font-awesome-ie7.min.css.
  97. <pre class="prettyprint linenums">
  98. &lt;link rel="stylesheet" href="../css/bootstrap.min.css"&gt;
  99. &lt;link rel="stylesheet" href="../css/font-awesome.min.css"&gt;
  100. &lt;!--[if IE 7]&gt;
  101. &lt;link rel=&quot;stylesheet&quot; href=&quot;assets/css/font-awesome-ie7.min.css&quot;&gt;
  102. &lt;![endif]--&gt;
  103. </pre>
  104. </li>
  105. <li>Go complain to whoever decided your project needs IE7 support.</li>
  106. </ol>
  107. </div>
  108. </div>
  109. </section>