dae-material 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +3 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/README.md +39 -0
- data/Rakefile +1 -0
- data/app/assets/fonts/material-design-icons/LICENSE.txt +428 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.eot +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.svg +751 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.ttf +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/app/assets/javascripts/materialize-sprockets.js +27 -0
- data/app/assets/javascripts/materialize.js +6023 -0
- data/app/assets/javascripts/materialize/animation.js +9 -0
- data/app/assets/javascripts/materialize/buttons.js +35 -0
- data/app/assets/javascripts/materialize/cards.js +27 -0
- data/app/assets/javascripts/materialize/character_counter.js +59 -0
- data/app/assets/javascripts/materialize/collapsible.js +139 -0
- data/app/assets/javascripts/materialize/date_picker/picker.date.js +1430 -0
- data/app/assets/javascripts/materialize/date_picker/picker.js +1123 -0
- data/app/assets/javascripts/materialize/dropdown.js +176 -0
- data/app/assets/javascripts/materialize/forms.js +397 -0
- data/app/assets/javascripts/materialize/global.js +31 -0
- data/app/assets/javascripts/materialize/hammer.min.js +1 -0
- data/app/assets/javascripts/materialize/init.js +137 -0
- data/app/assets/javascripts/materialize/jquery.easing.1.3.js +205 -0
- data/app/assets/javascripts/materialize/jquery.hammer.js +33 -0
- data/app/assets/javascripts/materialize/jquery.timeago.min.js +1 -0
- data/app/assets/javascripts/materialize/leanModal.js +139 -0
- data/app/assets/javascripts/materialize/materialbox.js +249 -0
- data/app/assets/javascripts/materialize/parallax.js +58 -0
- data/app/assets/javascripts/materialize/prism.js +8 -0
- data/app/assets/javascripts/materialize/pushpin.js +62 -0
- data/app/assets/javascripts/materialize/scrollFire.js +69 -0
- data/app/assets/javascripts/materialize/scrollspy.js +284 -0
- data/app/assets/javascripts/materialize/sideNav.js +335 -0
- data/app/assets/javascripts/materialize/slider.js +263 -0
- data/app/assets/javascripts/materialize/tabs.js +129 -0
- data/app/assets/javascripts/materialize/toasts.js +121 -0
- data/app/assets/javascripts/materialize/tooltip.js +166 -0
- data/app/assets/javascripts/materialize/transitions.js +145 -0
- data/app/assets/javascripts/materialize/velocity.min.js +4 -0
- data/app/assets/javascripts/materialize/waves.js +338 -0
- data/app/assets/stylesheets/materialize.scss +38 -0
- data/app/assets/stylesheets/materialize/components/_buttons.scss +151 -0
- data/app/assets/stylesheets/materialize/components/_cards.scss +150 -0
- data/app/assets/stylesheets/materialize/components/_collapsible.scss +88 -0
- data/app/assets/stylesheets/materialize/components/_color.scss +412 -0
- data/app/assets/stylesheets/materialize/components/_dropdown.scss +38 -0
- data/app/assets/stylesheets/materialize/components/_form.scss +850 -0
- data/app/assets/stylesheets/materialize/components/_global.scss +682 -0
- data/app/assets/stylesheets/materialize/components/_grid.scss +118 -0
- data/app/assets/stylesheets/materialize/components/_icons-material-design.scss +783 -0
- data/app/assets/stylesheets/materialize/components/_materialbox.scss +41 -0
- data/app/assets/stylesheets/materialize/components/_mixins.scss +5 -0
- data/app/assets/stylesheets/materialize/components/_modal.scss +89 -0
- data/app/assets/stylesheets/materialize/components/_navbar.scss +143 -0
- data/app/assets/stylesheets/materialize/components/_normalize.scss +427 -0
- data/app/assets/stylesheets/materialize/components/_prefixer.scss +376 -0
- data/app/assets/stylesheets/materialize/components/_preloader.scss +332 -0
- data/app/assets/stylesheets/materialize/components/_roboto.scss +38 -0
- data/app/assets/stylesheets/materialize/components/_sideNav.scss +111 -0
- data/app/assets/stylesheets/materialize/components/_slider.scss +92 -0
- data/app/assets/stylesheets/materialize/components/_table_of_contents.scss +33 -0
- data/app/assets/stylesheets/materialize/components/_tabs.scss +42 -0
- data/app/assets/stylesheets/materialize/components/_toast.scss +63 -0
- data/app/assets/stylesheets/materialize/components/_tooltip.scss +34 -0
- data/app/assets/stylesheets/materialize/components/_typography.scss +56 -0
- data/app/assets/stylesheets/materialize/components/_variables.scss +143 -0
- data/app/assets/stylesheets/materialize/components/_waves.scss +167 -0
- data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +435 -0
- data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +201 -0
- data/app/assets/stylesheets/materialize/components/date_picker/_default.time.scss +125 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/dae-material.gemspec +23 -0
- data/lib/dae/material.rb +7 -0
- data/lib/dae/material/version.rb +8 -0
- metadata +166 -0
@@ -0,0 +1,376 @@
|
|
1
|
+
//---------------------------------------------------
|
2
|
+
// Sass Prefixer
|
3
|
+
// -------------------------------------------------
|
4
|
+
// TABLE OF CONTENTS
|
5
|
+
// (*) denotes a syntax-sugar helper
|
6
|
+
// -------------------------------------------------
|
7
|
+
//
|
8
|
+
// animation($args)
|
9
|
+
// animation-delay($delay)
|
10
|
+
// animation-direction($direction)
|
11
|
+
// animation-duration($duration)
|
12
|
+
// animation-fill-mode($mode)
|
13
|
+
// animation-iteration-count($count)
|
14
|
+
// animation-name($name)
|
15
|
+
// animation-play-state($state)
|
16
|
+
// animation-timing-function($function)
|
17
|
+
// background-size($args)
|
18
|
+
// inner-shadow($args) *
|
19
|
+
// box-sizing($args)
|
20
|
+
// border-box() *
|
21
|
+
// content-box() *
|
22
|
+
// columns($args)
|
23
|
+
// column-count($count)
|
24
|
+
// column-gap($gap)
|
25
|
+
// column-rule($args)
|
26
|
+
// column-width($width)
|
27
|
+
// flexbox()
|
28
|
+
// flex($args)
|
29
|
+
// order($args)
|
30
|
+
// align($args)
|
31
|
+
// justify-content($args)
|
32
|
+
// gradient($default,$start,$stop) *
|
33
|
+
// linear-gradient-top($default,$color1,$stop1,$color2,$stop2,[$color3,$stop3,$color4,$stop4])*
|
34
|
+
// linear-gradient-left($default,$color1,$stop1,$color2,$stop2,[$color3,$stop3,$color4,$stop4])*
|
35
|
+
// transform($args)
|
36
|
+
// transform-origin($args)
|
37
|
+
// transform-style($style)
|
38
|
+
// rotate($deg)
|
39
|
+
// scale($factor)
|
40
|
+
// translate($x,$y)
|
41
|
+
// translate3d($x,$y,$z)
|
42
|
+
// translateHardware($x,$y) *
|
43
|
+
// text-shadow($args)
|
44
|
+
// transition($args)
|
45
|
+
// transition-delay($delay)
|
46
|
+
// transition-duration($duration)
|
47
|
+
// transition-property($property)
|
48
|
+
// transition-timing-function($function)
|
49
|
+
|
50
|
+
|
51
|
+
// Animation
|
52
|
+
|
53
|
+
@mixin animation($args) {
|
54
|
+
-webkit-animation: $args;
|
55
|
+
-moz-animation: $args;
|
56
|
+
-ms-animation: $args;
|
57
|
+
-o-animation: $args;
|
58
|
+
animation: $args;
|
59
|
+
}
|
60
|
+
@mixin animation-delay($delay) {
|
61
|
+
-webkit-animation-delay: $delay;
|
62
|
+
-moz-animation-delay: $delay;
|
63
|
+
-ms-animation-delay: $delay;
|
64
|
+
-o-animation-delay: $delay;
|
65
|
+
animation-delay: $delay;
|
66
|
+
}
|
67
|
+
@mixin animation-direction($direction) {
|
68
|
+
-webkit-animation-direction: $direction;
|
69
|
+
-moz-animation-direction: $direction;
|
70
|
+
-ms-animation-direction: $direction;
|
71
|
+
-o-animation-direction: $direction;
|
72
|
+
}
|
73
|
+
@mixin animation-duration($duration) {
|
74
|
+
-webkit-animation-duration: $duration;
|
75
|
+
-moz-animation-duration: $duration;
|
76
|
+
-ms-animation-duration: $duration;
|
77
|
+
-o-animation-duration: $duration;
|
78
|
+
}
|
79
|
+
@mixin animation-fill-mode($mode) {
|
80
|
+
-webkit-animation-fill-mode: $mode;
|
81
|
+
-moz-animation-fill-mode: $mode;
|
82
|
+
-ms-animation-fill-mode: $mode;
|
83
|
+
-o-animation-fill-mode: $mode;
|
84
|
+
animation-fill-mode: $mode;
|
85
|
+
}
|
86
|
+
@mixin animation-iteration-count($count) {
|
87
|
+
-webkit-animation-iteration-count: $count;
|
88
|
+
-moz-animation-iteration-count: $count;
|
89
|
+
-ms-animation-iteration-count: $count;
|
90
|
+
-o-animation-iteration-count: $count;
|
91
|
+
animation-iteration-count: $count;
|
92
|
+
}
|
93
|
+
@mixin animation-name($name) {
|
94
|
+
-webkit-animation-name: $name;
|
95
|
+
-moz-animation-name: $name;
|
96
|
+
-ms-animation-name: $name;
|
97
|
+
-o-animation-name: $name;
|
98
|
+
animation-name: $name;
|
99
|
+
}
|
100
|
+
@mixin animation-play-state($state) {
|
101
|
+
-webkit-animation-play-state: $state;
|
102
|
+
-moz-animation-play-state: $state;
|
103
|
+
-ms-animation-play-state: $state;
|
104
|
+
-o-animation-play-state: $state;
|
105
|
+
animation-play-state: $state;
|
106
|
+
}
|
107
|
+
@mixin animation-timing-function($function) {
|
108
|
+
-webkit-animation-timing-function: $function;
|
109
|
+
-moz-animation-timing-function: $function;
|
110
|
+
-ms-animation-timing-function: $function;
|
111
|
+
-o-animation-timing-function: $function;
|
112
|
+
animation-timing-function: $function;
|
113
|
+
}
|
114
|
+
|
115
|
+
// Keyframes
|
116
|
+
@mixin keyframes($animation-name) {
|
117
|
+
@-webkit-keyframes #{$animation-name} {
|
118
|
+
@content;
|
119
|
+
}
|
120
|
+
@-moz-keyframes #{$animation-name} {
|
121
|
+
@content;
|
122
|
+
}
|
123
|
+
@keyframes #{$animation-name} {
|
124
|
+
@content;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
// Backface-visibility
|
129
|
+
|
130
|
+
@mixin backface-visibility($args) {
|
131
|
+
-webkit-backface-visibility: $args;
|
132
|
+
-moz-backface-visibility: $args;
|
133
|
+
-ms-backface-visibility: $args;
|
134
|
+
backface-visibility: $args;
|
135
|
+
}
|
136
|
+
|
137
|
+
|
138
|
+
// Background Size
|
139
|
+
|
140
|
+
@mixin background-size($args) {
|
141
|
+
-webkit-background-size: $args;
|
142
|
+
background-size: $args;
|
143
|
+
}
|
144
|
+
|
145
|
+
// Box Sizing
|
146
|
+
|
147
|
+
@mixin box-sizing($args) {
|
148
|
+
-webkit-box-sizing: $args;
|
149
|
+
-moz-box-sizing: $args;
|
150
|
+
box-sizing: $args;
|
151
|
+
}
|
152
|
+
@mixin border-box(){
|
153
|
+
@include box-sizing(border-box);
|
154
|
+
}
|
155
|
+
@mixin content-box(){
|
156
|
+
@include box-sizing(content-box);
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
// Columns
|
161
|
+
|
162
|
+
@mixin columns($args) {
|
163
|
+
-webkit-columns: $args;
|
164
|
+
-moz-columns: $args;
|
165
|
+
columns: $args;
|
166
|
+
}
|
167
|
+
@mixin column-count($count) {
|
168
|
+
-webkit-column-count: $count;
|
169
|
+
-moz-column-count: $count;
|
170
|
+
column-count: $count;
|
171
|
+
}
|
172
|
+
@mixin column-gap($gap) {
|
173
|
+
-webkit-column-gap: $gap;
|
174
|
+
-moz-column-gap: $gap;
|
175
|
+
column-gap: $gap;
|
176
|
+
}
|
177
|
+
@mixin column-width($width) {
|
178
|
+
-webkit-column-width: $width;
|
179
|
+
-moz-column-width: $width;
|
180
|
+
column-width: $width;
|
181
|
+
}
|
182
|
+
@mixin column-rule($args) {
|
183
|
+
-webkit-column-rule: $args;
|
184
|
+
-moz-column-rule: $args;
|
185
|
+
column-rule: $args;
|
186
|
+
}
|
187
|
+
|
188
|
+
// Filter
|
189
|
+
@mixin filter($args) {
|
190
|
+
-webkit-filter: $args;
|
191
|
+
-moz-filter: $args;
|
192
|
+
-o-filter: $args;
|
193
|
+
-ms-filter: $args;
|
194
|
+
}
|
195
|
+
|
196
|
+
// Flexbox
|
197
|
+
@mixin flexbox() {
|
198
|
+
display: -webkit-box;
|
199
|
+
display: -moz-box;
|
200
|
+
display: -ms-flexbox;
|
201
|
+
display: -webkit-flex;
|
202
|
+
display: flex;
|
203
|
+
}
|
204
|
+
@mixin flex($values) {
|
205
|
+
-webkit-box-flex: $values;
|
206
|
+
-moz-box-flex: $values;
|
207
|
+
-webkit-flex: $values;
|
208
|
+
-ms-flex: $values;
|
209
|
+
flex: $values;
|
210
|
+
}
|
211
|
+
@mixin order($val) {
|
212
|
+
-webkit-box-ordinal-group: $val;
|
213
|
+
-moz-box-ordinal-group: $val;
|
214
|
+
-ms-flex-order: $val;
|
215
|
+
-webkit-order: $val;
|
216
|
+
order: $val;
|
217
|
+
}
|
218
|
+
@mixin align($align) {
|
219
|
+
-webkit-flex-align: $align;
|
220
|
+
-ms-flex-align: $align;
|
221
|
+
-webkit-align-items: $align;
|
222
|
+
align-items: $align;
|
223
|
+
}
|
224
|
+
@mixin justify-content($val) {
|
225
|
+
-webkit-justify-content: $val;
|
226
|
+
justify-content: $val;
|
227
|
+
}
|
228
|
+
// Gradients
|
229
|
+
|
230
|
+
@mixin gradient($default: #F5F5F5, $start: #EEE, $stop: #FFF) {
|
231
|
+
@include linear-gradient-top($default,$start,0%,$stop,100%);
|
232
|
+
}
|
233
|
+
@mixin linear-gradient-top($default,$color1,$stop1,$color2,$stop2) {
|
234
|
+
background-color: $default;
|
235
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop($stop1, $color1), color-stop($stop2 $color2));
|
236
|
+
background-image: -webkit-linear-gradient(top, $color1 $stop1, $color2 $stop2);
|
237
|
+
background-image: -moz-linear-gradient(top, $color1 $stop1, $color2 $stop2);
|
238
|
+
background-image: -ms-linear-gradient(top, $color1 $stop1, $color2 $stop2);
|
239
|
+
background-image: -o-linear-gradient(top, $color1 $stop1, $color2 $stop2);
|
240
|
+
background-image: linear-gradient(top, $color1 $stop1, $color2 $stop2);
|
241
|
+
}
|
242
|
+
@mixin linear-gradient-top2($default,$color1,$stop1,$color2,$stop2,$color3,$stop3) {
|
243
|
+
background-color: $default;
|
244
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop($stop1, $color1), color-stop($stop2 $color2), color-stop($stop3 $color3));
|
245
|
+
background-image: -webkit-linear-gradient(top, $color1 $stop1, $color2 $stop2, $color3 $stop3);
|
246
|
+
background-image: -moz-linear-gradient(top, $color1 $stop1, $color2 $stop2, $color3 $stop3);
|
247
|
+
background-image: -ms-linear-gradient(top, $color1 $stop1, $color2 $stop2, $color3 $stop3);
|
248
|
+
background-image: -o-linear-gradient(top, $color1 $stop1, $color2 $stop2, $color3 $stop3);
|
249
|
+
background-image: linear-gradient(top, $color1 $stop1, $color2 $stop2, $color3 $stop3);
|
250
|
+
}
|
251
|
+
@mixin linear-gradient-top3($default,$color1,$stop1,$color2,$stop2,$color3,$stop3,$color4,$stop4) {
|
252
|
+
background-color: $default;
|
253
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop($stop1, $color1), color-stop($stop2 $color2), color-stop($stop3 $color3), color-stop($stop4 $color4));
|
254
|
+
background-image: -webkit-linear-gradient(top, $color1 $stop1, $color2 $stop2, $color3 $stop3, $color4 $stop4);
|
255
|
+
background-image: -moz-linear-gradient(top, $color1 $stop1, $color2 $stop2, $color3 $stop3, $color4 $stop4);
|
256
|
+
background-image: -ms-linear-gradient(top, $color1 $stop1, $color2 $stop2, $color3 $stop3, $color4 $stop4);
|
257
|
+
background-image: -o-linear-gradient(top, $color1 $stop1, $color2 $stop2, $color3 $stop3, $color4 $stop4);
|
258
|
+
background-image: linear-gradient(top, $color1 $stop1, $color2 $stop2, $color3 $stop3, $color4 $stop4);
|
259
|
+
}
|
260
|
+
@mixin linear-gradient-left($default,$color1,$stop1,$color2,$stop2) {
|
261
|
+
background-color: $default;
|
262
|
+
background-image: -webkit-gradient(linear, left top, left top, color-stop($stop1, $color1), color-stop($stop2 $color2));
|
263
|
+
background-image: -webkit-linear-gradient(left, $color1 $stop1, $color2 $stop2);
|
264
|
+
background-image: -moz-linear-gradient(left, $color1 $stop1, $color2 $stop2);
|
265
|
+
background-image: -ms-linear-gradient(left, $color1 $stop1, $color2 $stop2);
|
266
|
+
background-image: -o-linear-gradient(left, $color1 $stop1, $color2 $stop2);
|
267
|
+
background-image: linear-gradient(left, $color1 $stop1, $color2 $stop2);
|
268
|
+
}
|
269
|
+
@mixin linear-gradient-left2($default,$color1,$stop1,$color2,$stop2,$color3,$stop3) {
|
270
|
+
background-color: $default;
|
271
|
+
background-image: -webkit-gradient(linear, left top, left top, color-stop($stop1, $color1), color-stop($stop2 $color2), color-stop($stop3 $color3));
|
272
|
+
background-image: -webkit-linear-gradient(left, $color1 $stop1, $color2 $stop2, $color3 $stop3);
|
273
|
+
background-image: -moz-linear-gradient(left, $color1 $stop1, $color2 $stop2, $color3 $stop3);
|
274
|
+
background-image: -ms-linear-gradient(left, $color1 $stop1, $color2 $stop2, $color3 $stop3);
|
275
|
+
background-image: -o-linear-gradient(left, $color1 $stop1, $color2 $stop2, $color3 $stop3);
|
276
|
+
background-image: linear-gradient(left, $color1 $stop1, $color2 $stop2, $color3 $stop3);
|
277
|
+
}
|
278
|
+
@mixin linear-gradient-left3($default,$color1,$stop1,$color2,$stop2,$color3,$stop3,$color4,$stop4) {
|
279
|
+
background-color: $default;
|
280
|
+
background-image: -webkit-gradient(linear, left top, left top, color-stop($stop1, $color1), color-stop($stop2 $color2), color-stop($stop3 $color3), color-stop($stop4 $color4));
|
281
|
+
background-image: -webkit-linear-gradient(left, $color1 $stop1, $color2 $stop2, $color3 $stop3, $color4 $stop4);
|
282
|
+
background-image: -moz-linear-gradient(left, $color1 $stop1, $color2 $stop2, $color3 $stop3, $color4 $stop4);
|
283
|
+
background-image: -ms-linear-gradient(left, $color1 $stop1, $color2 $stop2, $color3 $stop3, $color4 $stop4);
|
284
|
+
background-image: -o-linear-gradient(left, $color1 $stop1, $color2 $stop2, $color3 $stop3, $color4 $stop4);
|
285
|
+
background-image: linear-gradient(left, $color1 $stop1, $color2 $stop2, $color3 $stop3, $color4 $stop4);
|
286
|
+
}
|
287
|
+
|
288
|
+
// Text Shadow
|
289
|
+
|
290
|
+
@mixin text-shadow($args) {
|
291
|
+
text-shadow: $args;
|
292
|
+
}
|
293
|
+
|
294
|
+
|
295
|
+
// Transforms
|
296
|
+
|
297
|
+
@mixin transform($args) {
|
298
|
+
-webkit-transform: $args;
|
299
|
+
-moz-transform: $args;
|
300
|
+
-ms-transform: $args;
|
301
|
+
-o-transform: $args;
|
302
|
+
transform: $args;
|
303
|
+
}
|
304
|
+
@mixin transform-origin($args) {
|
305
|
+
-webkit-transform-origin: $args;
|
306
|
+
-moz-transform-origin: $args;
|
307
|
+
-ms-transform-origin: $args;
|
308
|
+
-o-transform-origin: $args;
|
309
|
+
transform-origin: $args;
|
310
|
+
}
|
311
|
+
@mixin transform-style($style) {
|
312
|
+
-webkit-transform-style: $style;
|
313
|
+
-moz-transform-style: $style;
|
314
|
+
-ms-transform-style: $style;
|
315
|
+
-o-transform-style: $style;
|
316
|
+
transform-style: $style;
|
317
|
+
}
|
318
|
+
@mixin rotate($deg:45deg){
|
319
|
+
@include transform(rotate($deg));
|
320
|
+
}
|
321
|
+
@mixin scale($factor:.5){
|
322
|
+
@include transform(scale($factor));
|
323
|
+
}
|
324
|
+
@mixin translate($x,$y){
|
325
|
+
@include transform(translate($x,$y));
|
326
|
+
}
|
327
|
+
@mixin translate3d($x,$y,$z) {
|
328
|
+
@include transform(translate3d($x,$y,$z));
|
329
|
+
}
|
330
|
+
@mixin translateHardware($x,$y) {
|
331
|
+
@include translate($x,$y);
|
332
|
+
-webkit-transform: translate3d($x,$y,0);
|
333
|
+
-moz-transform: translate3d($x,$y,0);
|
334
|
+
-o-transform: translate3d($x,$y,0);
|
335
|
+
-ms-transform: translate3d($x,$y,0);
|
336
|
+
transform: translate3d($x,$y,0);
|
337
|
+
}
|
338
|
+
|
339
|
+
|
340
|
+
// Transitions
|
341
|
+
|
342
|
+
@mixin transition($args:200ms) {
|
343
|
+
-webkit-transition: $args;
|
344
|
+
-moz-transition: $args;
|
345
|
+
-o-transition: $args;
|
346
|
+
-ms-transition: $args;
|
347
|
+
transition: $args;
|
348
|
+
}
|
349
|
+
@mixin transition-delay($delay:0) {
|
350
|
+
-webkit-transition-delay: $delay;
|
351
|
+
-moz-transition-delay: $delay;
|
352
|
+
-o-transition-delay: $delay;
|
353
|
+
-ms-transition-delay: $delay;
|
354
|
+
transition-delay: $delay;
|
355
|
+
}
|
356
|
+
@mixin transition-duration($duration:200ms) {
|
357
|
+
-webkit-transition-duration: $duration;
|
358
|
+
-moz-transition-duration: $duration;
|
359
|
+
-o-transition-duration: $duration;
|
360
|
+
-ms-transition-duration: $duration;
|
361
|
+
transition-duration: $duration;
|
362
|
+
}
|
363
|
+
@mixin transition-property($property:all) {
|
364
|
+
-webkit-transition-property: $property;
|
365
|
+
-moz-transition-property: $property;
|
366
|
+
-o-transition-property: $property;
|
367
|
+
-ms-transition-property: $property;
|
368
|
+
transition-property: $property;
|
369
|
+
}
|
370
|
+
@mixin transition-timing-function($function:ease) {
|
371
|
+
-webkit-transition-timing-function: $function;
|
372
|
+
-moz-transition-timing-function: $function;
|
373
|
+
-o-transition-timing-function: $function;
|
374
|
+
-ms-transition-timing-function: $function;
|
375
|
+
transition-timing-function: $function;
|
376
|
+
}
|
@@ -0,0 +1,332 @@
|
|
1
|
+
/*
|
2
|
+
@license
|
3
|
+
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
4
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
5
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
6
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
7
|
+
Code distributed by Google as part of the polymer project is also
|
8
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**************************/
|
12
|
+
/* STYLES FOR THE SPINNER */
|
13
|
+
/**************************/
|
14
|
+
|
15
|
+
/*
|
16
|
+
* Constants:
|
17
|
+
* STROKEWIDTH = 3px
|
18
|
+
* ARCSIZE = 270 degrees (amount of circle the arc takes up)
|
19
|
+
* ARCTIME = 1333ms (time it takes to expand and contract arc)
|
20
|
+
* ARCSTARTROT = 216 degrees (how much the start location of the arc
|
21
|
+
* should rotate each time, 216 gives us a
|
22
|
+
* 5 pointed star shape (it's 360/5 * 3).
|
23
|
+
* For a 7 pointed star, we might do
|
24
|
+
* 360/7 * 3 = 154.286)
|
25
|
+
* CONTAINERWIDTH = 28px
|
26
|
+
* SHRINK_TIME = 400ms
|
27
|
+
*/
|
28
|
+
|
29
|
+
|
30
|
+
.preloader-wrapper {
|
31
|
+
display: inline-block;
|
32
|
+
position: relative;
|
33
|
+
width: 48px;
|
34
|
+
height: 48px;
|
35
|
+
|
36
|
+
&.small {
|
37
|
+
width: 36px;
|
38
|
+
height: 36px;
|
39
|
+
}
|
40
|
+
|
41
|
+
&.big {
|
42
|
+
width: 64px;
|
43
|
+
height: 64px;
|
44
|
+
}
|
45
|
+
|
46
|
+
&.active {
|
47
|
+
/* duration: 360 * ARCTIME / (ARCSTARTROT + (360-ARCSIZE)) */
|
48
|
+
-webkit-animation: container-rotate 1568ms linear infinite;
|
49
|
+
animation: container-rotate 1568ms linear infinite;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
@-webkit-keyframes container-rotate {
|
54
|
+
to { -webkit-transform: rotate(360deg) }
|
55
|
+
}
|
56
|
+
|
57
|
+
@keyframes container-rotate {
|
58
|
+
to { transform: rotate(360deg) }
|
59
|
+
}
|
60
|
+
|
61
|
+
.spinner-layer {
|
62
|
+
position: absolute;
|
63
|
+
width: 100%;
|
64
|
+
height: 100%;
|
65
|
+
opacity: 0;
|
66
|
+
}
|
67
|
+
|
68
|
+
.spinner-blue,
|
69
|
+
.spinner-blue-only {
|
70
|
+
border-color: #4285f4;
|
71
|
+
}
|
72
|
+
|
73
|
+
.spinner-red,
|
74
|
+
.spinner-red-only {
|
75
|
+
border-color: #db4437;
|
76
|
+
}
|
77
|
+
|
78
|
+
.spinner-yellow,
|
79
|
+
.spinner-yellow-only {
|
80
|
+
border-color: #f4b400;
|
81
|
+
}
|
82
|
+
|
83
|
+
.spinner-green,
|
84
|
+
.spinner-green-only {
|
85
|
+
border-color: #0f9d58;
|
86
|
+
}
|
87
|
+
|
88
|
+
/**
|
89
|
+
* IMPORTANT NOTE ABOUT CSS ANIMATION PROPERTIES (keanulee):
|
90
|
+
*
|
91
|
+
* iOS Safari (tested on iOS 8.1) does not handle animation-delay very well - it doesn't
|
92
|
+
* guarantee that the animation will start _exactly_ after that value. So we avoid using
|
93
|
+
* animation-delay and instead set custom keyframes for each color (as redundant as it
|
94
|
+
* seems).
|
95
|
+
*
|
96
|
+
* We write out each animation in full (instead of separating animation-name,
|
97
|
+
* animation-duration, etc.) because under the polyfill, Safari does not recognize those
|
98
|
+
* specific properties properly, treats them as -webkit-animation, and overrides the
|
99
|
+
* other animation rules. See https://github.com/Polymer/platform/issues/53.
|
100
|
+
*/
|
101
|
+
.active .spinner-layer.spinner-blue {
|
102
|
+
/* durations: 4 * ARCTIME */
|
103
|
+
-webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, blue-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
104
|
+
animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, blue-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
105
|
+
}
|
106
|
+
|
107
|
+
.active .spinner-layer.spinner-red {
|
108
|
+
/* durations: 4 * ARCTIME */
|
109
|
+
-webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, red-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
110
|
+
animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, red-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
111
|
+
}
|
112
|
+
|
113
|
+
.active .spinner-layer.spinner-yellow {
|
114
|
+
/* durations: 4 * ARCTIME */
|
115
|
+
-webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, yellow-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
116
|
+
animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, yellow-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
117
|
+
}
|
118
|
+
|
119
|
+
.active .spinner-layer.spinner-green {
|
120
|
+
/* durations: 4 * ARCTIME */
|
121
|
+
-webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, green-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
122
|
+
animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, green-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
123
|
+
}
|
124
|
+
|
125
|
+
.active .spinner-layer.spinner-blue-only,
|
126
|
+
.active .spinner-layer.spinner-red-only,
|
127
|
+
.active .spinner-layer.spinner-yellow-only,
|
128
|
+
.active .spinner-layer.spinner-green-only {
|
129
|
+
/* durations: 4 * ARCTIME */
|
130
|
+
opacity: 1;
|
131
|
+
-webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
132
|
+
animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
133
|
+
}
|
134
|
+
|
135
|
+
@-webkit-keyframes fill-unfill-rotate {
|
136
|
+
12.5% { -webkit-transform: rotate(135deg); } /* 0.5 * ARCSIZE */
|
137
|
+
25% { -webkit-transform: rotate(270deg); } /* 1 * ARCSIZE */
|
138
|
+
37.5% { -webkit-transform: rotate(405deg); } /* 1.5 * ARCSIZE */
|
139
|
+
50% { -webkit-transform: rotate(540deg); } /* 2 * ARCSIZE */
|
140
|
+
62.5% { -webkit-transform: rotate(675deg); } /* 2.5 * ARCSIZE */
|
141
|
+
75% { -webkit-transform: rotate(810deg); } /* 3 * ARCSIZE */
|
142
|
+
87.5% { -webkit-transform: rotate(945deg); } /* 3.5 * ARCSIZE */
|
143
|
+
to { -webkit-transform: rotate(1080deg); } /* 4 * ARCSIZE */
|
144
|
+
}
|
145
|
+
|
146
|
+
@keyframes fill-unfill-rotate {
|
147
|
+
12.5% { transform: rotate(135deg); } /* 0.5 * ARCSIZE */
|
148
|
+
25% { transform: rotate(270deg); } /* 1 * ARCSIZE */
|
149
|
+
37.5% { transform: rotate(405deg); } /* 1.5 * ARCSIZE */
|
150
|
+
50% { transform: rotate(540deg); } /* 2 * ARCSIZE */
|
151
|
+
62.5% { transform: rotate(675deg); } /* 2.5 * ARCSIZE */
|
152
|
+
75% { transform: rotate(810deg); } /* 3 * ARCSIZE */
|
153
|
+
87.5% { transform: rotate(945deg); } /* 3.5 * ARCSIZE */
|
154
|
+
to { transform: rotate(1080deg); } /* 4 * ARCSIZE */
|
155
|
+
}
|
156
|
+
|
157
|
+
@-webkit-keyframes blue-fade-in-out {
|
158
|
+
from { opacity: 1; }
|
159
|
+
25% { opacity: 1; }
|
160
|
+
26% { opacity: 0; }
|
161
|
+
89% { opacity: 0; }
|
162
|
+
90% { opacity: 1; }
|
163
|
+
100% { opacity: 1; }
|
164
|
+
}
|
165
|
+
|
166
|
+
@keyframes blue-fade-in-out {
|
167
|
+
from { opacity: 1; }
|
168
|
+
25% { opacity: 1; }
|
169
|
+
26% { opacity: 0; }
|
170
|
+
89% { opacity: 0; }
|
171
|
+
90% { opacity: 1; }
|
172
|
+
100% { opacity: 1; }
|
173
|
+
}
|
174
|
+
|
175
|
+
@-webkit-keyframes red-fade-in-out {
|
176
|
+
from { opacity: 0; }
|
177
|
+
15% { opacity: 0; }
|
178
|
+
25% { opacity: 1; }
|
179
|
+
50% { opacity: 1; }
|
180
|
+
51% { opacity: 0; }
|
181
|
+
}
|
182
|
+
|
183
|
+
@keyframes red-fade-in-out {
|
184
|
+
from { opacity: 0; }
|
185
|
+
15% { opacity: 0; }
|
186
|
+
25% { opacity: 1; }
|
187
|
+
50% { opacity: 1; }
|
188
|
+
51% { opacity: 0; }
|
189
|
+
}
|
190
|
+
|
191
|
+
@-webkit-keyframes yellow-fade-in-out {
|
192
|
+
from { opacity: 0; }
|
193
|
+
40% { opacity: 0; }
|
194
|
+
50% { opacity: 1; }
|
195
|
+
75% { opacity: 1; }
|
196
|
+
76% { opacity: 0; }
|
197
|
+
}
|
198
|
+
|
199
|
+
@keyframes yellow-fade-in-out {
|
200
|
+
from { opacity: 0; }
|
201
|
+
40% { opacity: 0; }
|
202
|
+
50% { opacity: 1; }
|
203
|
+
75% { opacity: 1; }
|
204
|
+
76% { opacity: 0; }
|
205
|
+
}
|
206
|
+
|
207
|
+
@-webkit-keyframes green-fade-in-out {
|
208
|
+
from { opacity: 0; }
|
209
|
+
65% { opacity: 0; }
|
210
|
+
75% { opacity: 1; }
|
211
|
+
90% { opacity: 1; }
|
212
|
+
100% { opacity: 0; }
|
213
|
+
}
|
214
|
+
|
215
|
+
@keyframes green-fade-in-out {
|
216
|
+
from { opacity: 0; }
|
217
|
+
65% { opacity: 0; }
|
218
|
+
75% { opacity: 1; }
|
219
|
+
90% { opacity: 1; }
|
220
|
+
100% { opacity: 0; }
|
221
|
+
}
|
222
|
+
|
223
|
+
/**
|
224
|
+
* Patch the gap that appear between the two adjacent div.circle-clipper while the
|
225
|
+
* spinner is rotating (appears on Chrome 38, Safari 7.1, and IE 11).
|
226
|
+
*/
|
227
|
+
.gap-patch {
|
228
|
+
position: absolute;
|
229
|
+
top: 0;
|
230
|
+
left: 45%;
|
231
|
+
width: 10%;
|
232
|
+
height: 100%;
|
233
|
+
overflow: hidden;
|
234
|
+
border-color: inherit;
|
235
|
+
}
|
236
|
+
|
237
|
+
.gap-patch .circle {
|
238
|
+
width: 1000%;
|
239
|
+
left: -450%;
|
240
|
+
}
|
241
|
+
|
242
|
+
.circle-clipper {
|
243
|
+
display: inline-block;
|
244
|
+
position: relative;
|
245
|
+
width: 50%;
|
246
|
+
height: 100%;
|
247
|
+
overflow: hidden;
|
248
|
+
border-color: inherit;
|
249
|
+
|
250
|
+
.circle {
|
251
|
+
width: 200%;
|
252
|
+
height: 100%;
|
253
|
+
border-width: 3px; /* STROKEWIDTH */
|
254
|
+
border-style: solid;
|
255
|
+
border-color: inherit;
|
256
|
+
border-bottom-color: transparent !important;
|
257
|
+
border-radius: 50%;
|
258
|
+
-webkit-animation: none;
|
259
|
+
animation: none;
|
260
|
+
position: absolute;
|
261
|
+
top: 0;
|
262
|
+
right: 0;
|
263
|
+
bottom: 0;
|
264
|
+
}
|
265
|
+
|
266
|
+
&.left .circle {
|
267
|
+
left: 0;
|
268
|
+
border-right-color: transparent !important;
|
269
|
+
-webkit-transform: rotate(129deg);
|
270
|
+
transform: rotate(129deg);
|
271
|
+
}
|
272
|
+
&.right .circle {
|
273
|
+
left: -100%;
|
274
|
+
border-left-color: transparent !important;
|
275
|
+
-webkit-transform: rotate(-129deg);
|
276
|
+
transform: rotate(-129deg);
|
277
|
+
}
|
278
|
+
}
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
.active .circle-clipper.left .circle {
|
283
|
+
/* duration: ARCTIME */
|
284
|
+
-webkit-animation: left-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
285
|
+
animation: left-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
286
|
+
}
|
287
|
+
|
288
|
+
.active .circle-clipper.right .circle {
|
289
|
+
/* duration: ARCTIME */
|
290
|
+
-webkit-animation: right-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
291
|
+
animation: right-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
|
292
|
+
}
|
293
|
+
|
294
|
+
@-webkit-keyframes left-spin {
|
295
|
+
from { -webkit-transform: rotate(130deg); }
|
296
|
+
50% { -webkit-transform: rotate(-5deg); }
|
297
|
+
to { -webkit-transform: rotate(130deg); }
|
298
|
+
}
|
299
|
+
|
300
|
+
@keyframes left-spin {
|
301
|
+
from { transform: rotate(130deg); }
|
302
|
+
50% { transform: rotate(-5deg); }
|
303
|
+
to { transform: rotate(130deg); }
|
304
|
+
}
|
305
|
+
|
306
|
+
@-webkit-keyframes right-spin {
|
307
|
+
from { -webkit-transform: rotate(-130deg); }
|
308
|
+
50% { -webkit-transform: rotate(5deg); }
|
309
|
+
to { -webkit-transform: rotate(-130deg); }
|
310
|
+
}
|
311
|
+
|
312
|
+
@keyframes right-spin {
|
313
|
+
from { transform: rotate(-130deg); }
|
314
|
+
50% { transform: rotate(5deg); }
|
315
|
+
to { transform: rotate(-130deg); }
|
316
|
+
}
|
317
|
+
|
318
|
+
#spinnerContainer.cooldown {
|
319
|
+
/* duration: SHRINK_TIME */
|
320
|
+
-webkit-animation: container-rotate 1568ms linear infinite, fade-out 400ms cubic-bezier(0.4, 0.0, 0.2, 1);
|
321
|
+
animation: container-rotate 1568ms linear infinite, fade-out 400ms cubic-bezier(0.4, 0.0, 0.2, 1);
|
322
|
+
}
|
323
|
+
|
324
|
+
@-webkit-keyframes fade-out {
|
325
|
+
from { opacity: 1; }
|
326
|
+
to { opacity: 0; }
|
327
|
+
}
|
328
|
+
|
329
|
+
@keyframes fade-out {
|
330
|
+
from { opacity: 1; }
|
331
|
+
to { opacity: 0; }
|
332
|
+
}
|