font-mfizz-rails 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -6
- data/app/assets/fonts/font-mfizz.eot +0 -0
- data/app/assets/fonts/font-mfizz.svg +1823 -0
- data/app/assets/fonts/font-mfizz.ttf +0 -0
- data/app/assets/fonts/font-mfizz.woff +0 -0
- data/app/assets/fonts/preview.html +1838 -0
- data/app/assets/stylesheets/font-mfizz.css.erb +271 -0
- data/app/helpers/font_mfizz/rails/icon_helper.rb +37 -0
- data/lib/font-mfizz-rails.rb +2 -0
- data/lib/font-mfizz-rails/engine.rb +6 -0
- data/lib/font-mfizz-rails/version.rb +6 -0
- metadata +12 -2
@@ -0,0 +1,271 @@
|
|
1
|
+
/*!
|
2
|
+
* Font Mfizz 2.3.0-SNAPSHOT
|
3
|
+
* Copyright 2013-2016 Fizzed, Inc.
|
4
|
+
* MIT License
|
5
|
+
*
|
6
|
+
* Project: http://fizzed.com/oss/font-mfizz
|
7
|
+
*
|
8
|
+
* The font designed for technology and software geeks representing programming
|
9
|
+
* languages, operating systems, software engineering, and technology.
|
10
|
+
*
|
11
|
+
* Fizzed, Inc.
|
12
|
+
* Web: http://fizzed.com/
|
13
|
+
* Twitter: http://twitter.com/fizzed_inc
|
14
|
+
*/
|
15
|
+
//= depend_on_asset "font-mfizz.eot"
|
16
|
+
//= depend_on_asset "font-mfizz.woff"
|
17
|
+
//= depend_on_asset "font-mfizz.ttf"
|
18
|
+
//= depend_on_asset "font-mfizz.svg"
|
19
|
+
@font-face {
|
20
|
+
font-family: "FontMfizz";
|
21
|
+
src: url('<%= font_path('font-mfizz.eot') %>');
|
22
|
+
src: url('<%= font_path('font-mfizz.eot') %>?#iefix') format("embedded-opentype"),
|
23
|
+
url('<%= font_path('font-mfizz.woff') %>') format("woff"),
|
24
|
+
url('<%= font_path('font-mfizz.ttf') %>') format("truetype"),
|
25
|
+
url('<%= font_path('font-mfizz.svg') %>#font-mfizz') format("svg");
|
26
|
+
font-weight: normal;
|
27
|
+
font-style: normal;
|
28
|
+
}
|
29
|
+
|
30
|
+
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
31
|
+
@font-face {
|
32
|
+
font-family: "FontMfizz";
|
33
|
+
src: url('<%= font_path('font-mfizz.svg') %>#font-mfizz') format("svg");
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
[data-icon]:before { content: attr(data-icon); }
|
38
|
+
|
39
|
+
[data-icon]:before,
|
40
|
+
.icon-3dprint:before,
|
41
|
+
.icon-angular:before,
|
42
|
+
.icon-antenna:before,
|
43
|
+
.icon-apache:before,
|
44
|
+
.icon-archlinux:before,
|
45
|
+
.icon-aws:before,
|
46
|
+
.icon-blackberry:before,
|
47
|
+
.icon-bomb:before,
|
48
|
+
.icon-c:before,
|
49
|
+
.icon-cassandra:before,
|
50
|
+
.icon-centos:before,
|
51
|
+
.icon-clojure:before,
|
52
|
+
.icon-coffee-bean:before,
|
53
|
+
.icon-cplusplus:before,
|
54
|
+
.icon-csharp:before,
|
55
|
+
.icon-css:before,
|
56
|
+
.icon-database:before,
|
57
|
+
.icon-database-alt:before,
|
58
|
+
.icon-database-alt2:before,
|
59
|
+
.icon-debian:before,
|
60
|
+
.icon-docker:before,
|
61
|
+
.icon-dreamhost:before,
|
62
|
+
.icon-elixir:before,
|
63
|
+
.icon-erlang:before,
|
64
|
+
.icon-exherbo:before,
|
65
|
+
.icon-fedora:before,
|
66
|
+
.icon-fire-alt:before,
|
67
|
+
.icon-freebsd:before,
|
68
|
+
.icon-gentoo:before,
|
69
|
+
.icon-ghost:before,
|
70
|
+
.icon-git:before,
|
71
|
+
.icon-gnome:before,
|
72
|
+
.icon-google:before,
|
73
|
+
.icon-google-alt:before,
|
74
|
+
.icon-google-code:before,
|
75
|
+
.icon-google-developers:before,
|
76
|
+
.icon-gradle:before,
|
77
|
+
.icon-grails:before,
|
78
|
+
.icon-grails-alt:before,
|
79
|
+
.icon-grunt:before,
|
80
|
+
.icon-hadoop:before,
|
81
|
+
.icon-haskell:before,
|
82
|
+
.icon-heroku:before,
|
83
|
+
.icon-html:before,
|
84
|
+
.icon-iphone:before,
|
85
|
+
.icon-java:before,
|
86
|
+
.icon-java-bold:before,
|
87
|
+
.icon-java-duke:before,
|
88
|
+
.icon-javascript:before,
|
89
|
+
.icon-javascript-alt:before,
|
90
|
+
.icon-jetty:before,
|
91
|
+
.icon-kde:before,
|
92
|
+
.icon-laravel:before,
|
93
|
+
.icon-line-graph:before,
|
94
|
+
.icon-linux-mint:before,
|
95
|
+
.icon-looking:before,
|
96
|
+
.icon-mariadb:before,
|
97
|
+
.icon-maven:before,
|
98
|
+
.icon-microscope:before,
|
99
|
+
.icon-mobile-device:before,
|
100
|
+
.icon-mobile-phone-alt:before,
|
101
|
+
.icon-mobile-phone-broadcast:before,
|
102
|
+
.icon-mongodb:before,
|
103
|
+
.icon-mssql:before,
|
104
|
+
.icon-mysql:before,
|
105
|
+
.icon-mysql-alt:before,
|
106
|
+
.icon-netbsd:before,
|
107
|
+
.icon-nginx:before,
|
108
|
+
.icon-nginx-alt:before,
|
109
|
+
.icon-nginx-alt2:before,
|
110
|
+
.icon-nodejs:before,
|
111
|
+
.icon-objc:before,
|
112
|
+
.icon-oracle:before,
|
113
|
+
.icon-oracle-alt:before,
|
114
|
+
.icon-osx:before,
|
115
|
+
.icon-perl:before,
|
116
|
+
.icon-phone-alt:before,
|
117
|
+
.icon-phone-gap:before,
|
118
|
+
.icon-phone-retro:before,
|
119
|
+
.icon-php:before,
|
120
|
+
.icon-php-alt:before,
|
121
|
+
.icon-playframework:before,
|
122
|
+
.icon-playframework-alt:before,
|
123
|
+
.icon-plone:before,
|
124
|
+
.icon-postgres:before,
|
125
|
+
.icon-postgres-alt:before,
|
126
|
+
.icon-python:before,
|
127
|
+
.icon-raspberrypi:before,
|
128
|
+
.icon-redhat:before,
|
129
|
+
.icon-redis:before,
|
130
|
+
.icon-ruby:before,
|
131
|
+
.icon-ruby-on-rails:before,
|
132
|
+
.icon-ruby-on-rails-alt:before,
|
133
|
+
.icon-satellite:before,
|
134
|
+
.icon-scala:before,
|
135
|
+
.icon-scala-alt:before,
|
136
|
+
.icon-script:before,
|
137
|
+
.icon-script-alt:before,
|
138
|
+
.icon-shell:before,
|
139
|
+
.icon-solaris:before,
|
140
|
+
.icon-splatter:before,
|
141
|
+
.icon-spring:before,
|
142
|
+
.icon-suse:before,
|
143
|
+
.icon-svg:before,
|
144
|
+
.icon-symfony:before,
|
145
|
+
.icon-tomcat:before,
|
146
|
+
.icon-ubuntu:before,
|
147
|
+
.icon-wireless:before,
|
148
|
+
.icon-wordpress:before {
|
149
|
+
display: inline-block;
|
150
|
+
font-family: "FontMfizz";
|
151
|
+
font-style: normal;
|
152
|
+
font-weight: normal;
|
153
|
+
font-variant: normal;
|
154
|
+
line-height: 1;
|
155
|
+
text-decoration: inherit;
|
156
|
+
text-rendering: optimizeLegibility;
|
157
|
+
text-transform: none;
|
158
|
+
-moz-osx-font-smoothing: grayscale;
|
159
|
+
-webkit-font-smoothing: antialiased;
|
160
|
+
font-smoothing: antialiased;
|
161
|
+
}
|
162
|
+
|
163
|
+
.icon-3dprint:before { content: "\f100"; }
|
164
|
+
.icon-angular:before { content: "\f101"; }
|
165
|
+
.icon-antenna:before { content: "\f102"; }
|
166
|
+
.icon-apache:before { content: "\f103"; }
|
167
|
+
.icon-archlinux:before { content: "\f104"; }
|
168
|
+
.icon-aws:before { content: "\f105"; }
|
169
|
+
.icon-blackberry:before { content: "\f106"; }
|
170
|
+
.icon-bomb:before { content: "\f107"; }
|
171
|
+
.icon-c:before { content: "\f108"; }
|
172
|
+
.icon-cassandra:before { content: "\f109"; }
|
173
|
+
.icon-centos:before { content: "\f10a"; }
|
174
|
+
.icon-clojure:before { content: "\f10b"; }
|
175
|
+
.icon-coffee-bean:before { content: "\f10c"; }
|
176
|
+
.icon-cplusplus:before { content: "\f10d"; }
|
177
|
+
.icon-csharp:before { content: "\f10e"; }
|
178
|
+
.icon-css:before { content: "\f10f"; }
|
179
|
+
.icon-database:before { content: "\f110"; }
|
180
|
+
.icon-database-alt:before { content: "\f111"; }
|
181
|
+
.icon-database-alt2:before { content: "\f112"; }
|
182
|
+
.icon-debian:before { content: "\f113"; }
|
183
|
+
.icon-docker:before { content: "\f114"; }
|
184
|
+
.icon-dreamhost:before { content: "\f115"; }
|
185
|
+
.icon-elixir:before { content: "\f116"; }
|
186
|
+
.icon-erlang:before { content: "\f117"; }
|
187
|
+
.icon-exherbo:before { content: "\f118"; }
|
188
|
+
.icon-fedora:before { content: "\f119"; }
|
189
|
+
.icon-fire-alt:before { content: "\f11a"; }
|
190
|
+
.icon-freebsd:before { content: "\f11b"; }
|
191
|
+
.icon-gentoo:before { content: "\f11c"; }
|
192
|
+
.icon-ghost:before { content: "\f11d"; }
|
193
|
+
.icon-git:before { content: "\f11e"; }
|
194
|
+
.icon-gnome:before { content: "\f11f"; }
|
195
|
+
.icon-google:before { content: "\f120"; }
|
196
|
+
.icon-google-alt:before { content: "\f121"; }
|
197
|
+
.icon-google-code:before { content: "\f122"; }
|
198
|
+
.icon-google-developers:before { content: "\f123"; }
|
199
|
+
.icon-gradle:before { content: "\f124"; }
|
200
|
+
.icon-grails:before { content: "\f125"; }
|
201
|
+
.icon-grails-alt:before { content: "\f126"; }
|
202
|
+
.icon-grunt:before { content: "\f127"; }
|
203
|
+
.icon-hadoop:before { content: "\f128"; }
|
204
|
+
.icon-haskell:before { content: "\f129"; }
|
205
|
+
.icon-heroku:before { content: "\f12a"; }
|
206
|
+
.icon-html:before { content: "\f12b"; }
|
207
|
+
.icon-iphone:before { content: "\f12c"; }
|
208
|
+
.icon-java:before { content: "\f12d"; }
|
209
|
+
.icon-java-bold:before { content: "\f12e"; }
|
210
|
+
.icon-java-duke:before { content: "\f12f"; }
|
211
|
+
.icon-javascript:before { content: "\f130"; }
|
212
|
+
.icon-javascript-alt:before { content: "\f131"; }
|
213
|
+
.icon-jetty:before { content: "\f132"; }
|
214
|
+
.icon-kde:before { content: "\f133"; }
|
215
|
+
.icon-laravel:before { content: "\f134"; }
|
216
|
+
.icon-line-graph:before { content: "\f135"; }
|
217
|
+
.icon-linux-mint:before { content: "\f136"; }
|
218
|
+
.icon-looking:before { content: "\f137"; }
|
219
|
+
.icon-mariadb:before { content: "\f138"; }
|
220
|
+
.icon-maven:before { content: "\f139"; }
|
221
|
+
.icon-microscope:before { content: "\f13a"; }
|
222
|
+
.icon-mobile-device:before { content: "\f13b"; }
|
223
|
+
.icon-mobile-phone-alt:before { content: "\f13c"; }
|
224
|
+
.icon-mobile-phone-broadcast:before { content: "\f13d"; }
|
225
|
+
.icon-mongodb:before { content: "\f13e"; }
|
226
|
+
.icon-mssql:before { content: "\f13f"; }
|
227
|
+
.icon-mysql:before { content: "\f140"; }
|
228
|
+
.icon-mysql-alt:before { content: "\f141"; }
|
229
|
+
.icon-netbsd:before { content: "\f142"; }
|
230
|
+
.icon-nginx:before { content: "\f143"; }
|
231
|
+
.icon-nginx-alt:before { content: "\f144"; }
|
232
|
+
.icon-nginx-alt2:before { content: "\f145"; }
|
233
|
+
.icon-nodejs:before { content: "\f146"; }
|
234
|
+
.icon-objc:before { content: "\f147"; }
|
235
|
+
.icon-oracle:before { content: "\f148"; }
|
236
|
+
.icon-oracle-alt:before { content: "\f149"; }
|
237
|
+
.icon-osx:before { content: "\f14a"; }
|
238
|
+
.icon-perl:before { content: "\f14b"; }
|
239
|
+
.icon-phone-alt:before { content: "\f14c"; }
|
240
|
+
.icon-phone-gap:before { content: "\f14d"; }
|
241
|
+
.icon-phone-retro:before { content: "\f14e"; }
|
242
|
+
.icon-php:before { content: "\f14f"; }
|
243
|
+
.icon-php-alt:before { content: "\f150"; }
|
244
|
+
.icon-playframework:before { content: "\f151"; }
|
245
|
+
.icon-playframework-alt:before { content: "\f152"; }
|
246
|
+
.icon-plone:before { content: "\f153"; }
|
247
|
+
.icon-postgres:before { content: "\f154"; }
|
248
|
+
.icon-postgres-alt:before { content: "\f155"; }
|
249
|
+
.icon-python:before { content: "\f156"; }
|
250
|
+
.icon-raspberrypi:before { content: "\f157"; }
|
251
|
+
.icon-redhat:before { content: "\f158"; }
|
252
|
+
.icon-redis:before { content: "\f159"; }
|
253
|
+
.icon-ruby:before { content: "\f15a"; }
|
254
|
+
.icon-ruby-on-rails:before { content: "\f15b"; }
|
255
|
+
.icon-ruby-on-rails-alt:before { content: "\f15c"; }
|
256
|
+
.icon-satellite:before { content: "\f15d"; }
|
257
|
+
.icon-scala:before { content: "\f15e"; }
|
258
|
+
.icon-scala-alt:before { content: "\f15f"; }
|
259
|
+
.icon-script:before { content: "\f160"; }
|
260
|
+
.icon-script-alt:before { content: "\f161"; }
|
261
|
+
.icon-shell:before { content: "\f162"; }
|
262
|
+
.icon-solaris:before { content: "\f163"; }
|
263
|
+
.icon-splatter:before { content: "\f164"; }
|
264
|
+
.icon-spring:before { content: "\f165"; }
|
265
|
+
.icon-suse:before { content: "\f166"; }
|
266
|
+
.icon-svg:before { content: "\f167"; }
|
267
|
+
.icon-symfony:before { content: "\f168"; }
|
268
|
+
.icon-tomcat:before { content: "\f169"; }
|
269
|
+
.icon-ubuntu:before { content: "\f16a"; }
|
270
|
+
.icon-wireless:before { content: "\f16b"; }
|
271
|
+
.icon-wordpress:before { content: "\f16c"; }
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module FontMfizz
|
2
|
+
module Rails
|
3
|
+
module IconHelper
|
4
|
+
# Creates an icon tag given an icon name and possible icon
|
5
|
+
# modifiers.
|
6
|
+
#
|
7
|
+
# Examples
|
8
|
+
#
|
9
|
+
# fm_icon "icon-ruby" "I'm Ruby!"
|
10
|
+
# # => <i class="icon-ruby"></i> I'm Ruby!
|
11
|
+
#
|
12
|
+
def fm_icon(names = "icon-ruby", text = "")
|
13
|
+
classes = []
|
14
|
+
options = {}
|
15
|
+
options[:class] = classes
|
16
|
+
classes << Private.icon_names(names)
|
17
|
+
icon = content_tag(:i, nil, options)
|
18
|
+
Private.icon_join(icon, text)
|
19
|
+
end
|
20
|
+
|
21
|
+
module Private
|
22
|
+
extend ActionView::Helpers::OutputSafetyHelper
|
23
|
+
|
24
|
+
def self.icon_join(icon, text)
|
25
|
+
return icon if text.blank?
|
26
|
+
elements = [icon, ERB::Util.html_escape(text)]
|
27
|
+
safe_join(elements, " ")
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.icon_names(names = [])
|
31
|
+
names.is_a?(Array) ? names : names.to_s.split(/\s+/)
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: font-mfizz-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- B1nj0y
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -68,8 +68,18 @@ files:
|
|
68
68
|
- LICENSE.txt
|
69
69
|
- README.md
|
70
70
|
- Rakefile
|
71
|
+
- app/assets/fonts/font-mfizz.eot
|
72
|
+
- app/assets/fonts/font-mfizz.svg
|
73
|
+
- app/assets/fonts/font-mfizz.ttf
|
74
|
+
- app/assets/fonts/font-mfizz.woff
|
75
|
+
- app/assets/fonts/preview.html
|
76
|
+
- app/assets/stylesheets/font-mfizz.css.erb
|
77
|
+
- app/helpers/font_mfizz/rails/icon_helper.rb
|
71
78
|
- bin/console
|
72
79
|
- bin/setup
|
80
|
+
- lib/font-mfizz-rails.rb
|
81
|
+
- lib/font-mfizz-rails/engine.rb
|
82
|
+
- lib/font-mfizz-rails/version.rb
|
73
83
|
homepage: https://github.com/gingerhot/font-mfizz-rails
|
74
84
|
licenses:
|
75
85
|
- MIT
|