font_awesome_rails_sass 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,42 @@
1
+ // Mixins
2
+ // --------------------------
3
+
4
+ =icon($icon)
5
+ +icon-FontAwesome
6
+ content: $icon
7
+
8
+ =icon-FontAwesome
9
+ font-family: FontAwesome
10
+ font-weight: normal
11
+ font-style: normal
12
+ text-decoration: inherit
13
+ -webkit-font-smoothing: antialiased
14
+ *margin-right: .3em
15
+ // fixes ie7 issues
16
+
17
+ =border-radius($radius)
18
+ -webkit-border-radius: $radius
19
+ -moz-border-radius: $radius
20
+ border-radius: $radius
21
+
22
+ =icon-stack($width: 2em, $height: 2em, $top-font-size: 1em, $base-font-size: 2em)
23
+ .icon-stack
24
+ position: relative
25
+ display: inline-block
26
+ width: $width
27
+ height: $height
28
+ line-height: $width
29
+ vertical-align: -35%
30
+ [class^="icon-"],
31
+ [class*=" icon-"]
32
+ display: block
33
+ text-align: center
34
+ position: absolute
35
+ width: 100%
36
+ height: 100%
37
+ font-size: $top-font-size
38
+ line-height: inherit
39
+ *line-height: $height
40
+ .icon-stack-base
41
+ font-size: $base-font-size
42
+ *line-height: #{$height / $base-font-size}em
@@ -0,0 +1,11 @@
1
+ /* FONT PATH
2
+ * -------------------------- */
3
+
4
+ @font-face
5
+ font-family: 'FontAwesome'
6
+ src: font-url("font-awesome/fontawesome-webfont.eot?v=#{$FontAwesomeVersion}")
7
+ src: font-url("font-awesome/fontawesome-webfont.eot?v=#{$FontAwesomeVersion}")
8
+ src: font-url("font-awesome/fontawesome-webfont.eot?#iefix&v=#{$FontAwesomeVersion}") format("embedded-opentype"), font-url("font-awesome/fontawesome-webfont.woff?v=#{$FontAwesomeVersion}") format("woff"), font-url("font-awesome/fontawesome-webfont.ttf?v=#{$FontAwesomeVersion}") format("truetype"), font-url("font-awesome/fontawesome-webfont.svg#fontawesomeregular?v=#{$FontAwesomeVersion}") format("svg")
9
+ // src: font-url('font-awesome/FontAwesome.otf') format('opentype'); // used when developing fonts
10
+ font-weight: normal
11
+ font-style: normal