agric 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +21 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +28 -0
- data/Rakefile +2 -0
- data/agric.gemspec +25 -0
- data/lib/agric/compass/stylesheets/_agric.scss +5 -0
- data/lib/agric/compass/stylesheets/agric/_core.scss +125 -0
- data/lib/agric/compass/stylesheets/agric/_extras.scss +93 -0
- data/lib/agric/compass/stylesheets/agric/_icons.scss +758 -0
- data/lib/agric/compass/stylesheets/agric/_mixins.scss +44 -0
- data/lib/agric/compass/stylesheets/agric/_paths.scss +11 -0
- data/lib/agric/compass/stylesheets/agric/_variables.scss +5 -0
- data/lib/agric/compiler/convert.pe +7 -0
- data/lib/agric/compiler/reference.yml +379 -0
- data/lib/agric/compiler/svgo.yml +58 -0
- data/lib/agric/compiler.rb +217 -0
- data/lib/agric/compiler_tasks.rb +8 -0
- data/lib/agric/engine.rb +6 -0
- data/lib/agric/version.rb +3 -0
- data/lib/agric.rb +21 -0
- data/lib/assets/fonts/agric.eot +0 -0
- data/lib/assets/fonts/agric.svg +389 -0
- data/lib/assets/fonts/agric.ttf +0 -0
- data/lib/assets/fonts/agric.woff +0 -0
- data/lib/assets/stylesheets/agric.css.scss +5 -0
- data/src/002-agri/font.svg +594 -0
- data/src/003-ekylibre/font.svg +104 -0
- data/src/004-ergolis/font.svg +88 -0
- metadata +139 -0
data/.gitignore
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
*~
|
2
|
+
*.gem
|
3
|
+
*.rbc
|
4
|
+
.bundle
|
5
|
+
.config
|
6
|
+
.yardoc
|
7
|
+
Gemfile.lock
|
8
|
+
InstalledFiles
|
9
|
+
_yardoc
|
10
|
+
coverage
|
11
|
+
doc/
|
12
|
+
lib/bundler/man
|
13
|
+
pkg
|
14
|
+
rdoc
|
15
|
+
spec/reports
|
16
|
+
test/tmp
|
17
|
+
test/version_tmp
|
18
|
+
tmp
|
19
|
+
config.yml
|
20
|
+
node_modules
|
21
|
+
src/001-awesome
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Brice Texier
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Agric
|
2
|
+
|
3
|
+
Agriculture-oriented iconic web font.
|
4
|
+
|
5
|
+
## Compilation
|
6
|
+
|
7
|
+
Agric is composed of many fonts. To merge them in one consistent set, many tools are used:
|
8
|
+
|
9
|
+
cd lib/compiler
|
10
|
+
sudo apt-get install nodejs npm fontforge
|
11
|
+
sudo npm install -g svg-font-dump svg-font-create svgo
|
12
|
+
|
13
|
+
If you don't have Node JS in your distribution you can compile it easily from its sources.
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
Add this line to your application's Gemfile:
|
18
|
+
|
19
|
+
gem 'agric'
|
20
|
+
|
21
|
+
And then execute:
|
22
|
+
|
23
|
+
$ bundle
|
24
|
+
|
25
|
+
Or install it yourself as:
|
26
|
+
|
27
|
+
$ gem install agric
|
28
|
+
|
data/Rakefile
ADDED
data/agric.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'agric/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "agric"
|
8
|
+
spec.version = Agric::VERSION
|
9
|
+
spec.authors = ["Brice Texier"]
|
10
|
+
spec.email = ["brice.texier@ekylibre.org"]
|
11
|
+
spec.description = %q{Agricultural font based on FontAwesome and Fontello tools}
|
12
|
+
spec.summary = %q{Agricultural font}
|
13
|
+
spec.homepage = "https://github.com/ekylibre/agric"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "nokogiri", ">= 1.5.7"
|
24
|
+
spec.add_dependency "compass", ">= 0.12.0"
|
25
|
+
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
/* FONT AWESOME CORE
|
2
|
+
* -------------------------- */
|
3
|
+
|
4
|
+
[class^="icon-"],
|
5
|
+
[class*=" icon-"] {
|
6
|
+
@include icon-agric();
|
7
|
+
}
|
8
|
+
|
9
|
+
[class^="icon-"]:before,
|
10
|
+
[class*=" icon-"]:before {
|
11
|
+
text-decoration: inherit;
|
12
|
+
display: inline-block;
|
13
|
+
speak: none;
|
14
|
+
}
|
15
|
+
|
16
|
+
/* makes the font 33% larger relative to the icon container */
|
17
|
+
.icon-large:before {
|
18
|
+
vertical-align: -10%;
|
19
|
+
font-size: (4em/3);
|
20
|
+
}
|
21
|
+
|
22
|
+
/* makes sure icons active on rollover in links */
|
23
|
+
a {
|
24
|
+
[class^="icon-"],
|
25
|
+
[class*=" icon-"] {
|
26
|
+
display: inline;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
/* increased font size for icon-large */
|
31
|
+
[class^="icon-"],
|
32
|
+
[class*=" icon-"] {
|
33
|
+
&.icon-fixed-width {
|
34
|
+
display: inline-block;
|
35
|
+
width: (16em/14);
|
36
|
+
text-align: right;
|
37
|
+
padding-right: (4em/14);
|
38
|
+
&.icon-large {
|
39
|
+
width: (20em/14);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
.icons-ul {
|
45
|
+
margin-left: $agric-li-width;
|
46
|
+
list-style-type: none;
|
47
|
+
|
48
|
+
> li { position: relative; }
|
49
|
+
|
50
|
+
.icon-li {
|
51
|
+
position: absolute;
|
52
|
+
left: -$agric-li-width;
|
53
|
+
width: $agric-li-width;
|
54
|
+
text-align: center;
|
55
|
+
line-height: inherit;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
// allows usage of the hide class directly on font awesome icons
|
60
|
+
[class^="icon-"],
|
61
|
+
[class*=" icon-"] {
|
62
|
+
&.hide {
|
63
|
+
display: none;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
.icon-muted { color: $agric-icon-muted; }
|
68
|
+
.icon-light { color: $agric-icon-light; }
|
69
|
+
.icon-dark { color: $agric-icon-dark; }
|
70
|
+
|
71
|
+
// Icon Borders
|
72
|
+
// -------------------------
|
73
|
+
|
74
|
+
.icon-border {
|
75
|
+
border: solid 1px $agric-border-color;
|
76
|
+
padding: .2em .25em .15em;
|
77
|
+
@include border-radius(3px);
|
78
|
+
}
|
79
|
+
|
80
|
+
// Icon Sizes
|
81
|
+
// -------------------------
|
82
|
+
|
83
|
+
.icon-2x {
|
84
|
+
font-size: 2em;
|
85
|
+
&.icon-border {
|
86
|
+
border-width: 2px;
|
87
|
+
@include border-radius(4px);
|
88
|
+
}
|
89
|
+
}
|
90
|
+
.icon-3x {
|
91
|
+
font-size: 3em;
|
92
|
+
&.icon-border {
|
93
|
+
border-width: 3px;
|
94
|
+
@include border-radius(5px);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
.icon-4x {
|
98
|
+
font-size: 4em;
|
99
|
+
&.icon-border {
|
100
|
+
border-width: 4px;
|
101
|
+
@include border-radius(6px);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
.icon-5x {
|
106
|
+
font-size: 5em;
|
107
|
+
&.icon-border {
|
108
|
+
border-width: 5px;
|
109
|
+
@include border-radius(7px);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
|
114
|
+
// Floats & Margins
|
115
|
+
// -------------------------
|
116
|
+
|
117
|
+
[class^="icon-"],
|
118
|
+
[class*=" icon-"] {
|
119
|
+
&.pull-left {
|
120
|
+
margin-right: .3em;
|
121
|
+
}
|
122
|
+
&.pull-right {
|
123
|
+
margin-left: .3em;
|
124
|
+
}
|
125
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
/* EXTRAS
|
2
|
+
* -------------------------- */
|
3
|
+
|
4
|
+
/* Stacked and layered icon */
|
5
|
+
@include icon-stack();
|
6
|
+
|
7
|
+
/* Animated rotating icon */
|
8
|
+
.icon-spin {
|
9
|
+
display: inline-block;
|
10
|
+
-moz-animation: spin 2s infinite linear;
|
11
|
+
-o-animation: spin 2s infinite linear;
|
12
|
+
-webkit-animation: spin 2s infinite linear;
|
13
|
+
animation: spin 2s infinite linear;
|
14
|
+
}
|
15
|
+
|
16
|
+
/* Prevent stack and spinners from being taken inline when inside a link */
|
17
|
+
a .icon-stack,
|
18
|
+
a .icon-spin {
|
19
|
+
display: inline-block;
|
20
|
+
text-decoration: none;
|
21
|
+
}
|
22
|
+
|
23
|
+
@-moz-keyframes spin {
|
24
|
+
0% { -moz-transform: rotate(0deg); }
|
25
|
+
100% { -moz-transform: rotate(359deg); }
|
26
|
+
}
|
27
|
+
@-webkit-keyframes spin {
|
28
|
+
0% { -webkit-transform: rotate(0deg); }
|
29
|
+
100% { -webkit-transform: rotate(359deg); }
|
30
|
+
}
|
31
|
+
@-o-keyframes spin {
|
32
|
+
0% { -o-transform: rotate(0deg); }
|
33
|
+
100% { -o-transform: rotate(359deg); }
|
34
|
+
}
|
35
|
+
@-ms-keyframes spin {
|
36
|
+
0% { -ms-transform: rotate(0deg); }
|
37
|
+
100% { -ms-transform: rotate(359deg); }
|
38
|
+
}
|
39
|
+
@keyframes spin {
|
40
|
+
0% { transform: rotate(0deg); }
|
41
|
+
100% { transform: rotate(359deg); }
|
42
|
+
}
|
43
|
+
|
44
|
+
/* Icon rotations and mirroring */
|
45
|
+
.icon-rotate-90:before {
|
46
|
+
-webkit-transform: rotate(90deg);
|
47
|
+
-moz-transform: rotate(90deg);
|
48
|
+
-ms-transform: rotate(90deg);
|
49
|
+
-o-transform: rotate(90deg);
|
50
|
+
transform: rotate(90deg);
|
51
|
+
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
|
52
|
+
}
|
53
|
+
|
54
|
+
.icon-rotate-180:before {
|
55
|
+
-webkit-transform: rotate(180deg);
|
56
|
+
-moz-transform: rotate(180deg);
|
57
|
+
-ms-transform: rotate(180deg);
|
58
|
+
-o-transform: rotate(180deg);
|
59
|
+
transform: rotate(180deg);
|
60
|
+
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
|
61
|
+
}
|
62
|
+
|
63
|
+
.icon-rotate-270:before {
|
64
|
+
-webkit-transform: rotate(270deg);
|
65
|
+
-moz-transform: rotate(270deg);
|
66
|
+
-ms-transform: rotate(270deg);
|
67
|
+
-o-transform: rotate(270deg);
|
68
|
+
transform: rotate(270deg);
|
69
|
+
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
|
70
|
+
}
|
71
|
+
|
72
|
+
.icon-flip-horizontal:before {
|
73
|
+
-webkit-transform: scale(-1, 1);
|
74
|
+
-moz-transform: scale(-1, 1);
|
75
|
+
-ms-transform: scale(-1, 1);
|
76
|
+
-o-transform: scale(-1, 1);
|
77
|
+
transform: scale(-1, 1);
|
78
|
+
}
|
79
|
+
|
80
|
+
.icon-flip-vertical:before {
|
81
|
+
-webkit-transform: scale(1, -1);
|
82
|
+
-moz-transform: scale(1, -1);
|
83
|
+
-ms-transform: scale(1, -1);
|
84
|
+
-o-transform: scale(1, -1);
|
85
|
+
transform: scale(1, -1);
|
86
|
+
}
|
87
|
+
|
88
|
+
/* ensure rotation occurs inside anchor tags */
|
89
|
+
a {
|
90
|
+
.icon-rotate-90, .icon-rotate-180, .icon-rotate-270, .icon-flip-horizontal, .icon-flip-vertical {
|
91
|
+
&:before { display: inline-block; }
|
92
|
+
}
|
93
|
+
}
|