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