font_awesome_rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/.gitignore +18 -0
  2. data/.rspec +2 -0
  3. data/Gemfile +2 -0
  4. data/LICENSE.md +26 -0
  5. data/README.md +69 -0
  6. data/Rakefile +6 -0
  7. data/app/assets/stylesheets/_font-awesome.scss +2 -0
  8. data/app/assets/stylesheets/font-awesome/_font.scss +13 -0
  9. data/app/assets/stylesheets/font-awesome/_icons.scss +210 -0
  10. data/app/assets/stylesheets/font-awesome/_mixins.scss +58 -0
  11. data/app/assets/stylesheets/font-awesome/_styles.scss +53 -0
  12. data/font_awesome_rails.gemspec +25 -0
  13. data/lib/font_awesome/font.rb +52 -0
  14. data/lib/font_awesome/hex_code.rb +39 -0
  15. data/lib/font_awesome/icon.rb +80 -0
  16. data/lib/font_awesome/nokogiri.rb +17 -0
  17. data/lib/font_awesome/sass_extensions/functions.rb +26 -0
  18. data/lib/font_awesome/sass_extensions.rb +6 -0
  19. data/lib/font_awesome.rb +10 -0
  20. data/lib/font_awesome_rails/engine.rb +4 -0
  21. data/lib/font_awesome_rails/version.rb +3 -0
  22. data/lib/font_awesome_rails.rb +10 -0
  23. data/spec/font_awesome/font_spec.rb +103 -0
  24. data/spec/font_awesome/hex_code_spec.rb +66 -0
  25. data/spec/font_awesome/icon_spec.rb +92 -0
  26. data/spec/font_awesome/sass_extensions/functions_spec.rb +69 -0
  27. data/spec/spec_helper.rb +14 -0
  28. data/spec/tasks/update_classic_sass_task_spec.rb +33 -0
  29. data/spec/tasks/update_hex_codes_task_spec.rb +44 -0
  30. data/spec/tasks/update_metrics_task_spec.rb +34 -0
  31. data/spec/tasks/update_sass_task_spec.rb +20 -0
  32. data/tasks/gem_dir.rb +12 -0
  33. data/tasks/spec.rake +3 -0
  34. data/tasks/task.rb +5 -0
  35. data/tasks/update/classic.rake +27 -0
  36. data/tasks/update/font.rake +13 -0
  37. data/tasks/update/font_awesome.rake +20 -0
  38. data/tasks/update/hex_codes.rake +9 -0
  39. data/tasks/update/metrics.rake +8 -0
  40. data/tasks/update/metrics.rb +62 -0
  41. data/tasks/update/sass.rake +6 -0
  42. data/tasks/update/update_classic_sass_task.rb +21 -0
  43. data/tasks/update/update_hex_codes_task.rb +34 -0
  44. data/tasks/update/update_metrics_task.rb +25 -0
  45. data/tasks/update/update_sass_task.rb +20 -0
  46. data/tasks/update.rake +8 -0
  47. data/vendor/assets/font/fontawesome-webfont.eot +0 -0
  48. data/vendor/assets/font/fontawesome-webfont.svg +255 -0
  49. data/vendor/assets/font/fontawesome-webfont.ttf +0 -0
  50. data/vendor/assets/font/fontawesome-webfont.woff +0 -0
  51. data/vendor/assets/stylesheets/font-awesome/_classic.scss +292 -0
  52. data/vendor/assets/stylesheets/font-awesome/ie7.css +645 -0
  53. metadata +225 -0
@@ -0,0 +1,292 @@
1
+ /* Font Awesome styles
2
+ ------------------------------------------------------- */
3
+ [class^="icon-"]:before,
4
+ [class*=" icon-"]:before {
5
+ font-family: FontAwesome;
6
+ font-weight: normal;
7
+ font-style: normal;
8
+ display: inline-block;
9
+ text-decoration: inherit;
10
+ }
11
+
12
+ a [class^="icon-"],
13
+ a [class*=" icon-"] {
14
+ display: inline-block;
15
+ text-decoration: inherit;
16
+ }
17
+
18
+ /* makes the font 33% larger relative to the icon container */
19
+ .icon-large:before {
20
+ vertical-align: middle;
21
+ font-size: 4/3em;
22
+ }
23
+
24
+ .btn, .nav-tabs {
25
+ [class^="icon-"],
26
+ [class*=" icon-"] {
27
+ /* keeps button heights with and without icons the same */
28
+ line-height: .9em;
29
+ }
30
+ }
31
+
32
+ li {
33
+ [class^="icon-"],
34
+ [class*=" icon-"] {
35
+ display: inline-block;
36
+ width: 1.25em;
37
+ text-align: center;
38
+ }
39
+ .icon-large:before,
40
+ .icon-large:before {
41
+ /* 1.5 increased font size for icon-large * 1.25 width */
42
+ width: 1.5*1.25em;
43
+ }
44
+ }
45
+
46
+ ul.icons {
47
+ list-style-type: none;
48
+ margin-left: 2em;
49
+ text-indent: -.8em;
50
+
51
+ li {
52
+ [class^="icon-"],
53
+ [class*=" icon-"] {
54
+ width: .8em;
55
+ }
56
+ .icon-large:before,
57
+ .icon-large:before {
58
+ /* 1.5 increased font size for icon-large * 1.25 width */
59
+ vertical-align: initial;
60
+ // width: 1.5*1.25em;
61
+ }
62
+ }
63
+ }
64
+
65
+ /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
66
+ readers do not read off random characters that represent icons */
67
+ .icon-glass:before { content: "\f000"; }
68
+ .icon-music:before { content: "\f001"; }
69
+ .icon-search:before { content: "\f002"; }
70
+ .icon-envelope:before { content: "\f003"; }
71
+ .icon-heart:before { content: "\f004"; }
72
+ .icon-star:before { content: "\f005"; }
73
+ .icon-star-empty:before { content: "\f006"; }
74
+ .icon-user:before { content: "\f007"; }
75
+ .icon-film:before { content: "\f008"; }
76
+ .icon-th-large:before { content: "\f009"; }
77
+ .icon-th:before { content: "\f00a"; }
78
+ .icon-th-list:before { content: "\f00b"; }
79
+ .icon-ok:before { content: "\f00c"; }
80
+ .icon-remove:before { content: "\f00d"; }
81
+ .icon-zoom-in:before { content: "\f00e"; }
82
+
83
+ .icon-zoom-out:before { content: "\f010"; }
84
+ .icon-off:before { content: "\f011"; }
85
+ .icon-signal:before { content: "\f012"; }
86
+ .icon-cog:before { content: "\f013"; }
87
+ .icon-trash:before { content: "\f014"; }
88
+ .icon-home:before { content: "\f015"; }
89
+ .icon-file:before { content: "\f016"; }
90
+ .icon-time:before { content: "\f017"; }
91
+ .icon-road:before { content: "\f018"; }
92
+ .icon-download-alt:before { content: "\f019"; }
93
+ .icon-download:before { content: "\f01a"; }
94
+ .icon-upload:before { content: "\f01b"; }
95
+ .icon-inbox:before { content: "\f01c"; }
96
+ .icon-play-circle:before { content: "\f01d"; }
97
+ .icon-repeat:before { content: "\f01e"; }
98
+
99
+ /* \f020 doesn't work in Safari. all shifted one down */
100
+ .icon-refresh:before { content: "\f021"; }
101
+ .icon-list-alt:before { content: "\f022"; }
102
+ .icon-lock:before { content: "\f023"; }
103
+ .icon-flag:before { content: "\f024"; }
104
+ .icon-headphones:before { content: "\f025"; }
105
+ .icon-volume-off:before { content: "\f026"; }
106
+ .icon-volume-down:before { content: "\f027"; }
107
+ .icon-volume-up:before { content: "\f028"; }
108
+ .icon-qrcode:before { content: "\f029"; }
109
+ .icon-barcode:before { content: "\f02a"; }
110
+ .icon-tag:before { content: "\f02b"; }
111
+ .icon-tags:before { content: "\f02c"; }
112
+ .icon-book:before { content: "\f02d"; }
113
+ .icon-bookmark:before { content: "\f02e"; }
114
+ .icon-print:before { content: "\f02f"; }
115
+
116
+ .icon-camera:before { content: "\f030"; }
117
+ .icon-font:before { content: "\f031"; }
118
+ .icon-bold:before { content: "\f032"; }
119
+ .icon-italic:before { content: "\f033"; }
120
+ .icon-text-height:before { content: "\f034"; }
121
+ .icon-text-width:before { content: "\f035"; }
122
+ .icon-align-left:before { content: "\f036"; }
123
+ .icon-align-center:before { content: "\f037"; }
124
+ .icon-align-right:before { content: "\f038"; }
125
+ .icon-align-justify:before { content: "\f039"; }
126
+ .icon-list:before { content: "\f03a"; }
127
+ .icon-indent-left:before { content: "\f03b"; }
128
+ .icon-indent-right:before { content: "\f03c"; }
129
+ .icon-facetime-video:before { content: "\f03d"; }
130
+ .icon-picture:before { content: "\f03e"; }
131
+
132
+ .icon-pencil:before { content: "\f040"; }
133
+ .icon-map-marker:before { content: "\f041"; }
134
+ .icon-adjust:before { content: "\f042"; }
135
+ .icon-tint:before { content: "\f043"; }
136
+ .icon-edit:before { content: "\f044"; }
137
+ .icon-share:before { content: "\f045"; }
138
+ .icon-check:before { content: "\f046"; }
139
+ .icon-move:before { content: "\f047"; }
140
+ .icon-step-backward:before { content: "\f048"; }
141
+ .icon-fast-backward:before { content: "\f049"; }
142
+ .icon-backward:before { content: "\f04a"; }
143
+ .icon-play:before { content: "\f04b"; }
144
+ .icon-pause:before { content: "\f04c"; }
145
+ .icon-stop:before { content: "\f04d"; }
146
+ .icon-forward:before { content: "\f04e"; }
147
+
148
+ .icon-fast-forward:before { content: "\f050"; }
149
+ .icon-step-forward:before { content: "\f051"; }
150
+ .icon-eject:before { content: "\f052"; }
151
+ .icon-chevron-left:before { content: "\f053"; }
152
+ .icon-chevron-right:before { content: "\f054"; }
153
+ .icon-plus-sign:before { content: "\f055"; }
154
+ .icon-minus-sign:before { content: "\f056"; }
155
+ .icon-remove-sign:before { content: "\f057"; }
156
+ .icon-ok-sign:before { content: "\f058"; }
157
+ .icon-question-sign:before { content: "\f059"; }
158
+ .icon-info-sign:before { content: "\f05a"; }
159
+ .icon-screenshot:before { content: "\f05b"; }
160
+ .icon-remove-circle:before { content: "\f05c"; }
161
+ .icon-ok-circle:before { content: "\f05d"; }
162
+ .icon-ban-circle:before { content: "\f05e"; }
163
+
164
+ .icon-arrow-left:before { content: "\f060"; }
165
+ .icon-arrow-right:before { content: "\f061"; }
166
+ .icon-arrow-up:before { content: "\f062"; }
167
+ .icon-arrow-down:before { content: "\f063"; }
168
+ .icon-share-alt:before { content: "\f064"; }
169
+ .icon-resize-full:before { content: "\f065"; }
170
+ .icon-resize-small:before { content: "\f066"; }
171
+ .icon-plus:before { content: "\f067"; }
172
+ .icon-minus:before { content: "\f068"; }
173
+ .icon-asterisk:before { content: "\f069"; }
174
+ .icon-exclamation-sign:before { content: "\f06a"; }
175
+ .icon-gift:before { content: "\f06b"; }
176
+ .icon-leaf:before { content: "\f06c"; }
177
+ .icon-fire:before { content: "\f06d"; }
178
+ .icon-eye-open:before { content: "\f06e"; }
179
+
180
+ .icon-eye-close:before { content: "\f070"; }
181
+ .icon-warning-sign:before { content: "\f071"; }
182
+ .icon-plane:before { content: "\f072"; }
183
+ .icon-calendar:before { content: "\f073"; }
184
+ .icon-random:before { content: "\f074"; }
185
+ .icon-comment:before { content: "\f075"; }
186
+ .icon-magnet:before { content: "\f076"; }
187
+ .icon-chevron-up:before { content: "\f077"; }
188
+ .icon-chevron-down:before { content: "\f078"; }
189
+ .icon-retweet:before { content: "\f079"; }
190
+ .icon-shopping-cart:before { content: "\f07a"; }
191
+ .icon-folder-close:before { content: "\f07b"; }
192
+ .icon-folder-open:before { content: "\f07c"; }
193
+ .icon-resize-vertical:before { content: "\f07d"; }
194
+ .icon-resize-horizontal:before { content: "\f07e"; }
195
+
196
+ .icon-bar-chart:before { content: "\f080"; }
197
+ .icon-twitter-sign:before { content: "\f081"; }
198
+ .icon-facebook-sign:before { content: "\f082"; }
199
+ .icon-camera-retro:before { content: "\f083"; }
200
+ .icon-key:before { content: "\f084"; }
201
+ .icon-cogs:before { content: "\f085"; }
202
+ .icon-comments:before { content: "\f086"; }
203
+ .icon-thumbs-up:before { content: "\f087"; }
204
+ .icon-thumbs-down:before { content: "\f088"; }
205
+ .icon-star-half:before { content: "\f089"; }
206
+ .icon-heart-empty:before { content: "\f08a"; }
207
+ .icon-signout:before { content: "\f08b"; }
208
+ .icon-linkedin-sign:before { content: "\f08c"; }
209
+ .icon-pushpin:before { content: "\f08d"; }
210
+ .icon-external-link:before { content: "\f08e"; }
211
+
212
+ .icon-signin:before { content: "\f090"; }
213
+ .icon-trophy:before { content: "\f091"; }
214
+ .icon-github-sign:before { content: "\f092"; }
215
+ .icon-upload-alt:before { content: "\f093"; }
216
+ .icon-lemon:before { content: "\f094"; }
217
+ .icon-phone:before { content: "\f095"; }
218
+ .icon-check-empty:before { content: "\f096"; }
219
+ .icon-bookmark-empty:before { content: "\f097"; }
220
+ .icon-phone-sign:before { content: "\f098"; }
221
+ .icon-twitter:before { content: "\f099"; }
222
+ .icon-facebook:before { content: "\f09a"; }
223
+ .icon-github:before { content: "\f09b"; }
224
+ .icon-unlock:before { content: "\f09c"; }
225
+ .icon-credit-card:before { content: "\f09d"; }
226
+ .icon-rss:before { content: "\f09e"; }
227
+
228
+ .icon-hdd:before { content: "\f0a0"; }
229
+ .icon-bullhorn:before { content: "\f0a1"; }
230
+ .icon-bell:before { content: "\f0a2"; }
231
+ .icon-certificate:before { content: "\f0a3"; }
232
+ .icon-hand-right:before { content: "\f0a4"; }
233
+ .icon-hand-left:before { content: "\f0a5"; }
234
+ .icon-hand-up:before { content: "\f0a6"; }
235
+ .icon-hand-down:before { content: "\f0a7"; }
236
+ .icon-circle-arrow-left:before { content: "\f0a8"; }
237
+ .icon-circle-arrow-right:before { content: "\f0a9"; }
238
+ .icon-circle-arrow-up:before { content: "\f0aa"; }
239
+ .icon-circle-arrow-down:before { content: "\f0ab"; }
240
+ .icon-globe:before { content: "\f0ac"; }
241
+ .icon-wrench:before { content: "\f0ad"; }
242
+ .icon-tasks:before { content: "\f0ae"; }
243
+
244
+ .icon-filter:before { content: "\f0b0"; }
245
+ .icon-briefcase:before { content: "\f0b1"; }
246
+ .icon-fullscreen:before { content: "\f0b2"; }
247
+
248
+ .icon-group:before { content: "\f0c0"; }
249
+ .icon-link:before { content: "\f0c1"; }
250
+ .icon-cloud:before { content: "\f0c2"; }
251
+ .icon-beaker:before { content: "\f0c3"; }
252
+ .icon-cut:before { content: "\f0c4"; }
253
+ .icon-copy:before { content: "\f0c5"; }
254
+ .icon-paper-clip:before { content: "\f0c6"; }
255
+ .icon-save:before { content: "\f0c7"; }
256
+ .icon-sign-blank:before { content: "\f0c8"; }
257
+ .icon-reorder:before { content: "\f0c9"; }
258
+ .icon-list-ul:before { content: "\f0ca"; }
259
+ .icon-list-ol:before { content: "\f0cb"; }
260
+ .icon-strikethrough:before { content: "\f0cc"; }
261
+ .icon-underline:before { content: "\f0cd"; }
262
+ .icon-table:before { content: "\f0ce"; }
263
+
264
+ .icon-magic:before { content: "\f0d0"; }
265
+ .icon-truck:before { content: "\f0d1"; }
266
+ .icon-pinterest:before { content: "\f0d2"; }
267
+ .icon-pinterest-sign:before { content: "\f0d3"; }
268
+ .icon-google-plus-sign:before { content: "\f0d4"; }
269
+ .icon-google-plus:before { content: "\f0d5"; }
270
+ .icon-money:before { content: "\f0d6"; }
271
+ .icon-caret-down:before { content: "\f0d7"; }
272
+ .icon-caret-up:before { content: "\f0d8"; }
273
+ .icon-caret-left:before { content: "\f0d9"; }
274
+ .icon-caret-right:before { content: "\f0da"; }
275
+ .icon-columns:before { content: "\f0db"; }
276
+ .icon-sort:before { content: "\f0dc"; }
277
+ .icon-sort-down:before { content: "\f0dd"; }
278
+ .icon-sort-up:before { content: "\f0de"; }
279
+
280
+ .icon-envelope-alt:before { content: "\f0e0"; }
281
+ .icon-linkedin:before { content: "\f0e1"; }
282
+ .icon-undo:before { content: "\f0e2"; }
283
+ .icon-legal:before { content: "\f0e3"; }
284
+ .icon-dashboard:before { content: "\f0e4"; }
285
+ .icon-comment-alt:before { content: "\f0e5"; }
286
+ .icon-comments-alt:before { content: "\f0e6"; }
287
+ .icon-bolt:before { content: "\f0e7"; }
288
+ .icon-sitemap:before { content: "\f0e8"; }
289
+ .icon-umbrella:before { content: "\f0e9"; }
290
+ .icon-paste:before { content: "\f0ea"; }
291
+
292
+ .icon-user-md:before { content: "\f200"; }