Skip to content

Commit

Permalink
relocate Icon helper mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
raulghm committed Sep 2, 2014
1 parent 6a39d79 commit 9eb2387
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions stylus/mixins.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,21 @@

fa-icon-rotate($degrees, $rotation)
filter unquote("progid:DXImageTransform.Microsoft.BasicImage(rotation=" + $rotation + ")")
transform rotate($degrees)
transform: rotate($degrees)

fa-icon-flip($horiz, $vert, $rotation)
filter unquote("progid:DXImageTransform.Microsoft.BasicImage(rotation=" + $rotation + ", mirror=1)")
transform scale($horiz, $vert)
transform: scale($horiz, $vert)

// Icon helper mixin
fa($icon)
display inline-block
font-family FontAwesome
font-style normal
font-weight normal
line-height 1
-webkit-font-smoothing antialiased
-moz-osx-font-smoothing grayscale

&:before
content $fa-var- + $icon

0 comments on commit 9eb2387

Please sign in to comment.