Skip to content

Commit faaf7b0

Browse files
committed
1.4.0.0
0 parents  commit faaf7b0

13 files changed

+3355
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ionicons

build_from_up_stream.bash

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
git clone https://github.com/driftyco/ionicons
2+
3+
mkdir -p vendor/assets/fonts/
4+
mkdir -p vendor/assets/stylesheets/
5+
6+
cp ionicons/fonts/* vendor/assets/fonts/
7+
cp ionicons/scss/* vendor/assets/stylesheets/
8+
9+
sed -i '' 's/url("#{$ionicons-font-path}\//font-url("/g' vendor/assets/stylesheets/_ionicons-font.scss
10+
11+
rm -rf ionicons

ionicons-rails.gemspec

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Gem::Specification.new do |s|
2+
s.name = 'ionicons-rails'
3+
s.version = '1.4.0.0'
4+
s.summary = 'Ionions for Ruby on Rails'
5+
s.authors = 'Zhao Han'
6+
s.files = Dir["{lib,vendor}/**/*"]
7+
end

lib/ionicons-rails.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module Ionicons
2+
module Rails
3+
class Engine < ::Rails::Engine
4+
initializer "ionicons-rails.assets.precompile" do |app|
5+
app.config.assets.precompile << %r(ionicons\.(?:eot|svg|ttf|woff)$)
6+
end
7+
end
8+
end
9+
end

vendor/assets/fonts/ionicons.eot

84.2 KB
Binary file not shown.

vendor/assets/fonts/ionicons.svg

Lines changed: 1623 additions & 0 deletions
Loading

vendor/assets/fonts/ionicons.ttf

136 KB
Binary file not shown.

vendor/assets/fonts/ionicons.woff

47.3 KB
Binary file not shown.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// Animation Icons
2+
// --------------------------
3+
4+
.#{$ionicons-prefix}spin {
5+
-webkit-animation: spin 1s infinite linear;
6+
-moz-animation: spin 1s infinite linear;
7+
-o-animation: spin 1s infinite linear;
8+
animation: spin 1s infinite linear;
9+
}
10+
11+
@-moz-keyframes spin {
12+
0% { -moz-transform: rotate(0deg); }
13+
100% { -moz-transform: rotate(359deg); }
14+
}
15+
@-webkit-keyframes spin {
16+
0% { -webkit-transform: rotate(0deg); }
17+
100% { -webkit-transform: rotate(359deg); }
18+
}
19+
@-o-keyframes spin {
20+
0% { -o-transform: rotate(0deg); }
21+
100% { -o-transform: rotate(359deg); }
22+
}
23+
@-ms-keyframes spin {
24+
0% { -ms-transform: rotate(0deg); }
25+
100% { -ms-transform: rotate(359deg); }
26+
}
27+
@keyframes spin {
28+
0% { transform: rotate(0deg); }
29+
100% { transform: rotate(359deg); }
30+
}
31+
32+
33+
.#{$ionicons-prefix}loading-a,
34+
.#{$ionicons-prefix}loading-b,
35+
.#{$ionicons-prefix}loading-c,
36+
.#{$ionicons-prefix}loading-d,
37+
.#{$ionicons-prefix}looping,
38+
.#{$ionicons-prefix}refreshing,
39+
.#{$ionicons-prefix}ios7-reloading {
40+
@extend .ion;
41+
@extend .#{$ionicons-prefix}spin;
42+
}
43+
44+
.#{$ionicons-prefix}loading-a {
45+
-webkit-animation-timing-function: steps(8, start);
46+
-moz-animation-timing-function: steps(8, start);
47+
animation-timing-function: steps(8, start);
48+
}
49+
50+
.#{$ionicons-prefix}loading-a:before {
51+
@extend .#{$ionicons-prefix}load-a:before;
52+
}
53+
54+
.#{$ionicons-prefix}loading-b:before {
55+
@extend .#{$ionicons-prefix}load-b:before;
56+
}
57+
58+
.#{$ionicons-prefix}loading-c:before {
59+
@extend .#{$ionicons-prefix}load-c:before;
60+
}
61+
62+
.#{$ionicons-prefix}loading-d:before {
63+
@extend .#{$ionicons-prefix}load-d:before;
64+
}
65+
66+
.#{$ionicons-prefix}looping:before {
67+
@extend .#{$ionicons-prefix}loop:before;
68+
}
69+
70+
.#{$ionicons-prefix}refreshing:before {
71+
@extend .#{$ionicons-prefix}refresh:before;
72+
}
73+
74+
.#{$ionicons-prefix}ios7-reloading:before {
75+
@extend .#{$ionicons-prefix}ios7-reload:before;
76+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Ionicons Font Path
2+
// --------------------------
3+
4+
@font-face {
5+
font-family: $ionicons-font-family;
6+
src:font-url("ionicons.eot?v=#{$ionicons-version}");
7+
src:font-url("ionicons.eot?v=#{$ionicons-version}#iefix") format("embedded-opentype"),
8+
font-url("ionicons.ttf?v=#{$ionicons-version}") format("truetype"),
9+
font-url("ionicons.woff?v=#{$ionicons-version}") format("woff"),
10+
font-url("ionicons.svg?v=#{$ionicons-version}#Ionicons") format("svg");
11+
font-weight: normal;
12+
font-style: normal;
13+
}
14+
15+
.ion {
16+
display: inline-block;
17+
font-family: $ionicons-font-family;
18+
speak: none;
19+
font-style: normal;
20+
font-weight: normal;
21+
font-variant: normal;
22+
text-transform: none;
23+
text-rendering: auto;
24+
line-height: 1;
25+
-webkit-font-smoothing: antialiased;
26+
-moz-osx-font-smoothing: grayscale;
27+
}

0 commit comments

Comments
 (0)