Icon fonts are webfonts containing symbols and glyphs, instead of letters or numbers. You can customize these scalable vector icons with CSS in the same way you customize regular text which has made them a popular choice on the web.
Icon-Works is used specifically in these sections of the HTML files:
Font Awesome is used for all other icons.
Changing and Adding Icon-Works
This webfont has already been embedded in the icon-works.css file and imported into the style.css file. However, you will need a list of the icons if you wish to change or add new ones.
For further information, please follow the instructions at Icon-Works.
We have already completed steps 1-2 of the instructions for you. All you will need to do is download the file to get the list of icons and perform step 3 of the instructions.
Changing and Adding Font Awesome
Font Awesome has already been embedded in the font-awesome.css file.
Here is the code which you need to modify to change or add an icon:
<i class="icons fa fa-envelope"></i>
Hydro uses Font Awesome for the icons in buttons. If you need more information on the list of available icons and class names, open the font-awesome.min.css file and look through the list of class names.
To learn more, please refer to the Font Awesome Cheatsheet.
Adding an Icon in a Button
Hydro has button styles that allow you to add an icon to the left or right of the text in a button by adding the class name in the index.html file.
Here is the code which you need to modify to add an icon to the left of the text:
<a href="#section-contact" class="button-call-to-action"> <i class="icons tiny fa fa-envelope">Email Us</i> </a>
Here is the code which you need to modify to add an icon to the right of the text:
<a href="#section-contact" class="button-call-to-action"> Email Us<i class="icons tiny fa fa-envelope"></i> </a>
Styling Font Awesome Icons
To style Font Awesome icons, we have provided several pre-configured options:
To use these styles, simply add the class name into the HTML code.
Here is the code which you need to modify to style an icon:
<a href="http://twitter.com"><i class="icons medium fa fa-twitter"></i></a>