dfyx / font-awesome-sass-mixins

For those of us who want to use Font Awesome without the non-semantic class names FontAwesome provides and without loading every single icon class definition when you only use some of the icons.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

font-awesome-sass-mixins

For those of us who want to use Font Awesome without class tags and without loading every single class definition.

Installation

gem install font-awesome-sass-mixins

then

@import font-awesome-mixins
  • Make sure you have the @font-face declaration somewhere in your SASS already. I may add that automatically in the near future.
  • Make sure your fonts directory is also setup and that your @font-face points at it. This gem cannot really help you with that, it's out of scope.
  • Make sure you set the $fa-font-size-base variable somewhere before you @import this extension.

Usage

.my-element
	+fa-icon(pencil)

Compilation

(no Rails or Compass hooks yet sorry)
sass -r font-awesome-sass-mixins my/sass/dir/styles.sass

Current Feature

  • Basic icon inclusion

Future Feature

  • Convenience parameters for controlling attributes like color, size etc...

About

For those of us who want to use Font Awesome without the non-semantic class names FontAwesome provides and without loading every single icon class definition when you only use some of the icons.

License:MIT License


Languages

Language:CSS 93.0%Language:Shell 3.7%Language:Ruby 3.3%