material-sass 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +2 -0
- data/app/assets/fonts/MaterialDesignIcon.eot +0 -0
- data/app/assets/fonts/MaterialDesignIcon.svg +772 -766
- data/app/assets/fonts/MaterialDesignIcon.ttf +0 -0
- data/app/assets/fonts/MaterialDesignIcon.woff +0 -0
- data/app/assets/javascripts/material.js +326 -128
- data/app/assets/javascripts/material/_.js +5 -9
- data/app/assets/javascripts/material/bootstrap.js +3 -0
- data/app/assets/javascripts/material/content.js +15 -14
- data/app/assets/javascripts/material/datepicker.js +1 -1
- data/app/assets/javascripts/material/dropdown.js +25 -9
- data/app/assets/javascripts/material/esc.js +1 -1
- data/app/assets/javascripts/material/footer.js +3 -1
- data/app/assets/javascripts/material/form-adv.js +1 -2
- data/app/assets/javascripts/material/get-target.js +8 -0
- data/app/assets/javascripts/material/header.js +37 -7
- data/app/assets/javascripts/material/menu.js +47 -12
- data/app/assets/javascripts/material/modal.js +10 -0
- data/app/assets/javascripts/material/sortable.js +1 -2
- data/app/assets/javascripts/material/tab.js +1 -1
- data/app/assets/javascripts/material/tile.js +57 -14
- data/app/assets/javascripts/material/toast.js +53 -42
- data/app/assets/javascripts/material/wave.js +7 -0
- data/app/assets/javascripts/material/webfont.js +33 -0
- data/app/assets/javascripts/material/winresize.js +19 -4
- data/app/assets/stylesheets/material/_code.scss +40 -43
- data/app/assets/stylesheets/material/_grid.scss +72 -74
- data/app/assets/stylesheets/material/_print.scss +83 -0
- data/app/assets/stylesheets/material/_reset.scss +104 -84
- data/app/assets/stylesheets/material/_utilities-responsive.scss +97 -0
- data/app/assets/stylesheets/material/{_utilitise.scss → _utilities.scss} +87 -29
- data/app/assets/stylesheets/material/_variable.scss +78 -77
- data/app/assets/stylesheets/material/addon/_material-design-icon.scss +6 -3050
- data/app/assets/stylesheets/material/addon/_waves.scss +51 -0
- data/app/assets/stylesheets/material/addon/material-design-icon/_core.scss +17 -0
- data/app/assets/stylesheets/material/addon/material-design-icon/_icons.scss +773 -0
- data/app/assets/stylesheets/material/addon/material-design-icon/_path.scss +10 -0
- data/app/assets/stylesheets/material/addon/material-design-icon/_variables.scss +777 -0
- data/app/assets/stylesheets/material/base.scss +43 -10
- data/app/assets/stylesheets/material/element/_avatar.scss +23 -19
- data/app/assets/stylesheets/material/element/_breadcrumb.scss +27 -0
- data/app/assets/stylesheets/material/element/_button-float.scss +118 -48
- data/app/assets/stylesheets/material/element/_button.scss +56 -68
- data/app/assets/stylesheets/material/element/_card.scss +104 -50
- data/app/assets/stylesheets/material/element/_dropdown.scss +51 -32
- data/app/assets/stylesheets/material/element/_form-adv-checkbox.scss +123 -0
- data/app/assets/stylesheets/material/element/_form-adv-datepicker.scss +250 -227
- data/app/assets/stylesheets/material/element/_form-adv-label.scss +64 -0
- data/app/assets/stylesheets/material/element/_form-adv-switch.scss +76 -0
- data/app/assets/stylesheets/material/element/_form-adv-textarea.scss +4 -0
- data/app/assets/stylesheets/material/element/_form.scss +163 -126
- data/app/assets/stylesheets/material/element/_label.scss +22 -0
- data/app/assets/stylesheets/material/element/_modal.scss +25 -10
- data/app/assets/stylesheets/material/element/_nav.scss +3 -0
- data/app/assets/stylesheets/material/element/_progress.scss +504 -0
- data/app/assets/stylesheets/material/element/_tab.scss +18 -14
- data/app/assets/stylesheets/material/element/_table.scss +14 -43
- data/app/assets/stylesheets/material/element/_tile.scss +154 -113
- data/app/assets/stylesheets/material/element/_toast.scss +31 -24
- data/app/assets/stylesheets/material/mixin/_css3.scss +5 -0
- data/app/assets/stylesheets/material/mixin/_grid.scss +28 -24
- data/app/assets/stylesheets/material/mixin/_responsive.scss +1 -1
- data/app/assets/stylesheets/material/mixin/{_utilitise.scss → _utilities.scss} +4 -3
- data/app/assets/stylesheets/material/project.scss +8 -2
- data/app/assets/stylesheets/material/theme/_content.scss +33 -38
- data/app/assets/stylesheets/material/theme/_footer.scss +1 -7
- data/app/assets/stylesheets/material/theme/_header.scss +175 -8
- data/app/assets/stylesheets/material/theme/_menu.scss +267 -78
- data/lib/material-sass/engine.rb +1 -1
- data/lib/material-sass/version.rb +1 -1
- metadata +33 -48
- data/app/assets/fonts/FontAwesome.otf +0 -0
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +0 -565
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/app/assets/javascripts/material/btn.js +0 -11
- data/app/assets/stylesheets/material/_addon.scss +0 -2
- data/app/assets/stylesheets/material/_element.scss +0 -15
- data/app/assets/stylesheets/material/_mixin.scss +0 -4
- data/app/assets/stylesheets/material/_theme.scss +0 -4
- data/app/assets/stylesheets/material/_variable-color.scss +0 -6
- data/app/assets/stylesheets/material/addon/_font-awesome.scss +0 -18
- data/app/assets/stylesheets/material/addon/font-awesome/_animated.scss +0 -33
- data/app/assets/stylesheets/material/addon/font-awesome/_bordered-pulled.scss +0 -11
- data/app/assets/stylesheets/material/addon/font-awesome/_core.scss +0 -10
- data/app/assets/stylesheets/material/addon/font-awesome/_fixed-width.scss +0 -5
- data/app/assets/stylesheets/material/addon/font-awesome/_flipped-rotated.scss +0 -29
- data/app/assets/stylesheets/material/addon/font-awesome/_icon.scss +0 -593
- data/app/assets/stylesheets/material/addon/font-awesome/_icons.scss +0 -593
- data/app/assets/stylesheets/material/addon/font-awesome/_larger.scss +0 -22
- data/app/assets/stylesheets/material/addon/font-awesome/_list.scss +0 -21
- data/app/assets/stylesheets/material/addon/font-awesome/_mixins.scss +0 -25
- data/app/assets/stylesheets/material/addon/font-awesome/_path.scss +0 -12
- data/app/assets/stylesheets/material/addon/font-awesome/_stacked.scss +0 -29
- data/app/assets/stylesheets/material/addon/font-awesome/_variable.scss +0 -601
- data/app/assets/stylesheets/material/addon/font-awesome/_variables.scss +0 -602
- data/app/assets/stylesheets/material/element/_form-adv.scss +0 -277
@@ -0,0 +1,22 @@
|
|
1
|
+
.label {
|
2
|
+
background-color: $black-sec;
|
3
|
+
border-radius: 2px;
|
4
|
+
color: $white;
|
5
|
+
display: inline;
|
6
|
+
font-size: 75%;
|
7
|
+
font-style: normal;
|
8
|
+
font-weight: 400;
|
9
|
+
line-height: 1;
|
10
|
+
padding: 0.2em 0.6em;
|
11
|
+
vertical-align: baseline;
|
12
|
+
white-space: nowrap;
|
13
|
+
}
|
14
|
+
|
15
|
+
// colour
|
16
|
+
@each $color in $palette-list {
|
17
|
+
$i: index($palette-list, $color);
|
18
|
+
|
19
|
+
.label-#{$color} {
|
20
|
+
background-color: nth($palette-color, $i);
|
21
|
+
}
|
22
|
+
}
|
@@ -10,6 +10,7 @@
|
|
10
10
|
z-index: $top-base;
|
11
11
|
-webkit-overflow-scrolling: touch;
|
12
12
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
13
|
+
@include backface(hidden);
|
13
14
|
.modal-open & {
|
14
15
|
overflow-x: hidden;
|
15
16
|
overflow-y: auto;
|
@@ -24,6 +25,7 @@
|
|
24
25
|
bottom: 0;
|
25
26
|
left: 0;
|
26
27
|
z-index: ($top-base - 1);
|
28
|
+
@include backface(hidden);
|
27
29
|
@include opacity(0);
|
28
30
|
@include transition(opacity 0.3s $timing);
|
29
31
|
&.fade.in {
|
@@ -34,9 +36,13 @@
|
|
34
36
|
.modal-close {
|
35
37
|
color: $black-sec;
|
36
38
|
cursor: pointer;
|
39
|
+
display: block;
|
37
40
|
float: right;
|
38
41
|
font-size: $font-size-h4;
|
39
42
|
line-height: $line-height-h4;
|
43
|
+
margin-right: ($grid-gutter / -2);
|
44
|
+
padding-right: ($grid-gutter / 2);
|
45
|
+
padding-left: ($grid-gutter / 2);
|
40
46
|
&:focus,
|
41
47
|
&:hover {
|
42
48
|
color: $link-color;
|
@@ -58,12 +64,25 @@
|
|
58
64
|
}
|
59
65
|
|
60
66
|
.modal-dialog {
|
61
|
-
margin:
|
67
|
+
margin-right: auto;
|
68
|
+
margin-left: auto;
|
69
|
+
padding: ($line-height * 2) $grid-gutter;
|
62
70
|
position: relative;
|
71
|
+
&.modal-full {
|
72
|
+
height: 100%;
|
73
|
+
.modal-content {
|
74
|
+
height: 100%;
|
75
|
+
overflow-x: hidden;
|
76
|
+
overflow-y: auto;
|
77
|
+
-webkit-overflow-scrolling: touch;
|
78
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
79
|
+
}
|
80
|
+
}
|
63
81
|
.modal.fade & {
|
64
82
|
@include transform(scale(0, 0));
|
65
|
-
|
66
|
-
|
83
|
+
@include transition(all 0.3s $timing);
|
84
|
+
-webkit-transition-property: -webkit-transform;
|
85
|
+
transition-property: transform;
|
67
86
|
}
|
68
87
|
.modal.fade.in & {
|
69
88
|
@include transform(scale(1, 1));
|
@@ -71,20 +90,16 @@
|
|
71
90
|
// 480
|
72
91
|
@include responsive(xs) {
|
73
92
|
&.modal-xs {
|
74
|
-
|
75
|
-
margin-left: auto;
|
76
|
-
width: ($screen-xs - $grid-gutter * 2);
|
93
|
+
width: $screen-xs;
|
77
94
|
}
|
78
95
|
}
|
79
96
|
// 992
|
80
97
|
@include responsive(md) {
|
81
|
-
|
82
|
-
margin-left: auto;
|
83
|
-
width: ($screen-md - $grid-gutter * 4);
|
98
|
+
width: ($screen-md - $grid-gutter * 2);
|
84
99
|
}
|
85
100
|
// 1440
|
86
101
|
@include responsive(lg) {
|
87
|
-
width: ($screen-lg - $grid-gutter *
|
102
|
+
width: ($screen-lg - $grid-gutter * 2);
|
88
103
|
}
|
89
104
|
}
|
90
105
|
|
@@ -0,0 +1,504 @@
|
|
1
|
+
.load-bar {
|
2
|
+
float: right;
|
3
|
+
height: 100%;
|
4
|
+
overflow: hidden;
|
5
|
+
width: 50%;
|
6
|
+
&:first-child {
|
7
|
+
float: left;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
.load-bar-base {
|
12
|
+
background-color: $link-color;
|
13
|
+
float: left;
|
14
|
+
height: 100%;
|
15
|
+
overflow: hidden;
|
16
|
+
width: 100%;
|
17
|
+
@include animation(load-bar-right-in 1s $timing 1 forwards);
|
18
|
+
@include transform(translate3d(-100%, 0, 0));
|
19
|
+
-webkit-transform-origin: top right;
|
20
|
+
transform-origin: top right;
|
21
|
+
.load-bar:first-child & {
|
22
|
+
@include animation(load-bar-left-in 1s $timing 1 forwards);
|
23
|
+
@include transform(translate3d(100%, 0, 0));
|
24
|
+
-webkit-transform-origin: top left;
|
25
|
+
transform-origin: top left;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
// animation
|
30
|
+
@-webkit-keyframes load-bar-left-in {
|
31
|
+
0% {
|
32
|
+
@include transform(translate(100%, 0));
|
33
|
+
@include transform(translate3d(100%, 0, 0));
|
34
|
+
}
|
35
|
+
100% {
|
36
|
+
@include transform(translate(0, 0));
|
37
|
+
@include transform(translate3d(0, 0, 0));
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
@keyframes load-bar-left-in {
|
42
|
+
0% {
|
43
|
+
@include transform(translate(100%, 0));
|
44
|
+
@include transform(translate3d(100%, 0, 0));
|
45
|
+
}
|
46
|
+
100% {
|
47
|
+
@include transform(translate(0, 0));
|
48
|
+
@include transform(translate3d(0, 0, 0));
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
@-webkit-keyframes load-bar-right-in {
|
53
|
+
0% {
|
54
|
+
@include transform(translate(-100%, 0));
|
55
|
+
@include transform(translate3d(-100%, 0, 0));
|
56
|
+
}
|
57
|
+
100% {
|
58
|
+
@include transform(translate(0, 0));
|
59
|
+
@include transform(translate3d(0, 0, 0));
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
@keyframes load-bar-right-in {
|
64
|
+
0% {
|
65
|
+
@include transform(translate(-100%, 0));
|
66
|
+
@include transform(translate3d(-100%, 0, 0));
|
67
|
+
}
|
68
|
+
100% {
|
69
|
+
@include transform(translate(0, 0));
|
70
|
+
@include transform(translate3d(0, 0, 0));
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.load-bar-content {
|
75
|
+
float: left;
|
76
|
+
height: 100%;
|
77
|
+
position: relative;
|
78
|
+
width: 400%;
|
79
|
+
@include animation(load-bar-right 4s linear infinite forwards);
|
80
|
+
-webkit-animation-delay: 1s;
|
81
|
+
animation-delay: 1s;
|
82
|
+
-webkit-transform-origin: top center;
|
83
|
+
transform-origin: top center;
|
84
|
+
.load-bar:first-child & {
|
85
|
+
@include animation(load-bar-left 4s linear infinite forwards);
|
86
|
+
-webkit-animation-delay: 1s;
|
87
|
+
animation-delay: 1s;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
// animation
|
92
|
+
@-webkit-keyframes load-bar-left {
|
93
|
+
0% {
|
94
|
+
@include transform(translate(0, 0));
|
95
|
+
@include transform(translate3d(0, 0, 0));
|
96
|
+
}
|
97
|
+
100% {
|
98
|
+
@include transform(translate(-100%, 0));
|
99
|
+
@include transform(translate3d(-100%, 0, 0));
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
@keyframes load-bar-left {
|
104
|
+
0% {
|
105
|
+
@include transform(translate(0, 0));
|
106
|
+
@include transform(translate3d(0, 0, 0));
|
107
|
+
}
|
108
|
+
100% {
|
109
|
+
@include transform(translate(-100%, 0));
|
110
|
+
@include transform(translate3d(-100%, 0, 0));
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
@-webkit-keyframes load-bar-right {
|
115
|
+
0% {
|
116
|
+
@include transform(translate(-100%, 0));
|
117
|
+
@include transform(translate3d(-100%, 0, 0));
|
118
|
+
}
|
119
|
+
100% {
|
120
|
+
@include transform(translate(0, 0));
|
121
|
+
@include transform(translate3d(0, 0, 0));
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
@keyframes load-bar-right {
|
126
|
+
0% {
|
127
|
+
@include transform(translate(-100%, 0));
|
128
|
+
@include transform(translate3d(-100%, 0, 0));
|
129
|
+
}
|
130
|
+
100% {
|
131
|
+
@include transform(translate(0, 0));
|
132
|
+
@include transform(translate3d(0, 0, 0));
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
.load-bar-progress {
|
137
|
+
background-color: transparent;
|
138
|
+
float: left;
|
139
|
+
height: 100%;
|
140
|
+
width: 25%;
|
141
|
+
}
|
142
|
+
|
143
|
+
// color
|
144
|
+
@each $color in $palette-list {
|
145
|
+
$i: index($palette-list, $color);
|
146
|
+
|
147
|
+
.load-bar-progress-#{$color} {
|
148
|
+
background-color: nth($palette-color, $i);
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
.progress {
|
153
|
+
background-color: lighten($link-color, 30%);
|
154
|
+
height: ($base / 2);
|
155
|
+
margin-top: ($line-height - $base / 4);
|
156
|
+
margin-bottom: ($line-height - $base / 4);
|
157
|
+
overflow: hidden;
|
158
|
+
position: relative;
|
159
|
+
}
|
160
|
+
|
161
|
+
.progress-bar {
|
162
|
+
background-color: $link-color;
|
163
|
+
border-radius: 0 1px 1px 0;
|
164
|
+
height: 100%;
|
165
|
+
position: absolute;
|
166
|
+
top: 0;
|
167
|
+
left: 0;
|
168
|
+
@include transition(width 0.3s $timing);
|
169
|
+
}
|
170
|
+
|
171
|
+
// color
|
172
|
+
@each $color in $palette-list {
|
173
|
+
$i: index($palette-list, $color);
|
174
|
+
|
175
|
+
.progress-#{$color} {
|
176
|
+
background-color: nth($palette-color-light, $i);
|
177
|
+
.progress-bar {
|
178
|
+
background-color: nth($palette-color, $i);
|
179
|
+
}
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
.progress-bar-indeterminate {
|
184
|
+
background-color: $link-color;
|
185
|
+
&:after,
|
186
|
+
&:before {
|
187
|
+
background-color: inherit;
|
188
|
+
border-radius: 1px;
|
189
|
+
content: '';
|
190
|
+
display: block;
|
191
|
+
position: absolute;
|
192
|
+
top: 0;
|
193
|
+
bottom: 0;
|
194
|
+
left: 0;
|
195
|
+
will-change: left, right;
|
196
|
+
}
|
197
|
+
&:after {
|
198
|
+
@include animation(pbar-indeterminate-one 3s cubic-bezier(0.6, 0.8, 0.6, 0.4) infinite);
|
199
|
+
}
|
200
|
+
&:before {
|
201
|
+
@include animation(pbar-indeterminate-two 3s cubic-bezier(0.2, 0.8, 0.2, 0.8) infinite);
|
202
|
+
-webkit-animation-delay: 1.5s;
|
203
|
+
animation-delay: 1.5s;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
// animation
|
208
|
+
@-webkit-keyframes pbar-indeterminate-one {
|
209
|
+
0% {
|
210
|
+
// position
|
211
|
+
right: 100%;
|
212
|
+
left: -35%;
|
213
|
+
}
|
214
|
+
60% {
|
215
|
+
// position
|
216
|
+
right: -90%;
|
217
|
+
left: 100%;
|
218
|
+
}
|
219
|
+
100% {
|
220
|
+
// position
|
221
|
+
right: -90%;
|
222
|
+
left: 100%;
|
223
|
+
}
|
224
|
+
}
|
225
|
+
|
226
|
+
@keyframes pbar-indeterminate-one {
|
227
|
+
0% {
|
228
|
+
// position
|
229
|
+
right: 100%;
|
230
|
+
left: -35%;
|
231
|
+
}
|
232
|
+
60% {
|
233
|
+
// position
|
234
|
+
right: -90%;
|
235
|
+
left: 100%;
|
236
|
+
}
|
237
|
+
100% {
|
238
|
+
// position
|
239
|
+
right: -90%;
|
240
|
+
left: 100%;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
@-webkit-keyframes pbar-indeterminate-two {
|
245
|
+
0% {
|
246
|
+
// position
|
247
|
+
right: 100%;
|
248
|
+
left: -150%;
|
249
|
+
}
|
250
|
+
60% {
|
251
|
+
// position
|
252
|
+
right: -35%;
|
253
|
+
left: 135%;
|
254
|
+
}
|
255
|
+
100% {
|
256
|
+
// position
|
257
|
+
right: -35%;
|
258
|
+
left: 135%;
|
259
|
+
}
|
260
|
+
}
|
261
|
+
|
262
|
+
@keyframes pbar-indeterminate-two {
|
263
|
+
0% {
|
264
|
+
// position
|
265
|
+
right: 100%;
|
266
|
+
left: -150%;
|
267
|
+
}
|
268
|
+
60% {
|
269
|
+
// position
|
270
|
+
right: -35%;
|
271
|
+
left: 135%;
|
272
|
+
}
|
273
|
+
100% {
|
274
|
+
// position
|
275
|
+
right: -35%;
|
276
|
+
left: 135%;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
|
280
|
+
.progress-circular {
|
281
|
+
height: ($line-height * 2);
|
282
|
+
margin-top: $line-height;
|
283
|
+
margin-bottom: $line-height;
|
284
|
+
overflow: hidden;
|
285
|
+
position: relative;
|
286
|
+
width: ($line-height * 2);
|
287
|
+
}
|
288
|
+
|
289
|
+
.progress-circular-center {
|
290
|
+
margin-right: auto;
|
291
|
+
margin-left: auto;
|
292
|
+
}
|
293
|
+
|
294
|
+
.progress-circular-inline {
|
295
|
+
display: inline-block;
|
296
|
+
margin-right: $grid-gutter;
|
297
|
+
margin-left: $grid-gutter;
|
298
|
+
}
|
299
|
+
|
300
|
+
.progress-circular-inner {
|
301
|
+
height: ($line-height * 2);
|
302
|
+
position: relative;
|
303
|
+
width: ($line-height * 2);
|
304
|
+
@include animation(cbar-inner-rotate 5.25s cubic-bezier(0.35, 0, 0.25, 1) infinite);
|
305
|
+
}
|
306
|
+
|
307
|
+
.progress-circular-left,
|
308
|
+
.progress-circular-right {
|
309
|
+
height: ($line-height * 2);
|
310
|
+
overflow: hidden;
|
311
|
+
position: absolute;
|
312
|
+
top: 0;
|
313
|
+
width: $line-height;
|
314
|
+
}
|
315
|
+
|
316
|
+
.progress-circular-left {
|
317
|
+
// position
|
318
|
+
left: 0;
|
319
|
+
}
|
320
|
+
|
321
|
+
.progress-circular-right {
|
322
|
+
// position
|
323
|
+
right: 0;
|
324
|
+
}
|
325
|
+
|
326
|
+
.progress-circular-spinner {
|
327
|
+
border: ($base / 2) solid $link-color;
|
328
|
+
border-bottom-color: transparent;
|
329
|
+
border-radius: 50%;
|
330
|
+
height: ($line-height * 2);
|
331
|
+
position: absolute;
|
332
|
+
top: 0;
|
333
|
+
width: ($line-height * 2);
|
334
|
+
.progress-circular-left & {
|
335
|
+
border-right-color: transparent;
|
336
|
+
// position
|
337
|
+
left: 0;
|
338
|
+
@include animation(cbar-spinner-left 1.3125s cubic-bezier(0.35, 0, 0.25, 1) infinite);
|
339
|
+
}
|
340
|
+
.progress-circular-right & {
|
341
|
+
border-left-color: transparent;
|
342
|
+
// position
|
343
|
+
right: 0;
|
344
|
+
@include animation(cbar-spinner-right 1.3125s cubic-bezier(0.35, 0, 0.25, 1) infinite);
|
345
|
+
}
|
346
|
+
}
|
347
|
+
|
348
|
+
// colour
|
349
|
+
@each $color in $palette-list {
|
350
|
+
$i: index($palette-list, $color);
|
351
|
+
|
352
|
+
.progress-circular-spinner-#{$color} {
|
353
|
+
border-top-color: nth($palette-color, $i);
|
354
|
+
.progress-circular-left & {
|
355
|
+
border-left-color: nth($palette-color, $i);
|
356
|
+
}
|
357
|
+
.progress-circular-right & {
|
358
|
+
border-right-color: nth($palette-color, $i);
|
359
|
+
}
|
360
|
+
}
|
361
|
+
}
|
362
|
+
|
363
|
+
.progress-circular-wrapper {
|
364
|
+
@include animation(cbar-wrapper-rotate 2.91667s linear infinite);
|
365
|
+
}
|
366
|
+
|
367
|
+
// animation
|
368
|
+
@-webkit-keyframes cbar-inner-rotate {
|
369
|
+
12.5% {
|
370
|
+
@include transform(rotate(135deg));
|
371
|
+
}
|
372
|
+
25% {
|
373
|
+
@include transform(rotate(270deg));
|
374
|
+
}
|
375
|
+
37.5% {
|
376
|
+
@include transform(rotate(405deg));
|
377
|
+
}
|
378
|
+
50% {
|
379
|
+
@include transform(rotate(540deg));
|
380
|
+
}
|
381
|
+
62.5% {
|
382
|
+
@include transform(rotate(675deg));
|
383
|
+
}
|
384
|
+
75% {
|
385
|
+
@include transform(rotate(810deg));
|
386
|
+
}
|
387
|
+
87.5% {
|
388
|
+
@include transform(rotate(945deg));
|
389
|
+
}
|
390
|
+
100% {
|
391
|
+
@include transform(rotate(1080deg));
|
392
|
+
}
|
393
|
+
}
|
394
|
+
|
395
|
+
@keyframes cbar-inner-rotate {
|
396
|
+
12.5% {
|
397
|
+
@include transform(rotate(135deg));
|
398
|
+
}
|
399
|
+
25% {
|
400
|
+
@include transform(rotate(270deg));
|
401
|
+
}
|
402
|
+
37.5% {
|
403
|
+
@include transform(rotate(405deg));
|
404
|
+
}
|
405
|
+
50% {
|
406
|
+
@include transform(rotate(540deg));
|
407
|
+
}
|
408
|
+
62.5% {
|
409
|
+
@include transform(rotate(675deg));
|
410
|
+
}
|
411
|
+
75% {
|
412
|
+
@include transform(rotate(810deg));
|
413
|
+
}
|
414
|
+
87.5% {
|
415
|
+
@include transform(rotate(945deg));
|
416
|
+
}
|
417
|
+
100% {
|
418
|
+
@include transform(rotate(1080deg));
|
419
|
+
}
|
420
|
+
}
|
421
|
+
|
422
|
+
@-webkit-keyframes cbar-spinner-left {
|
423
|
+
0%,
|
424
|
+
100% {
|
425
|
+
@include transform(rotate(130deg));
|
426
|
+
}
|
427
|
+
50% {
|
428
|
+
@include transform(rotate(-5deg));
|
429
|
+
}
|
430
|
+
}
|
431
|
+
|
432
|
+
@keyframes cbar-spinner-left {
|
433
|
+
0%,
|
434
|
+
100% {
|
435
|
+
@include transform(rotate(130deg));
|
436
|
+
}
|
437
|
+
50% {
|
438
|
+
@include transform(rotate(-5deg));
|
439
|
+
}
|
440
|
+
}
|
441
|
+
|
442
|
+
@-webkit-keyframes cbar-spinner-right {
|
443
|
+
0%,
|
444
|
+
100% {
|
445
|
+
@include transform(rotate(-130deg));
|
446
|
+
}
|
447
|
+
50% {
|
448
|
+
@include transform(rotate(5deg));
|
449
|
+
}
|
450
|
+
}
|
451
|
+
|
452
|
+
@keyframes cbar-spinner-right {
|
453
|
+
0%,
|
454
|
+
100% {
|
455
|
+
@include transform(rotate(-130deg));
|
456
|
+
}
|
457
|
+
50% {
|
458
|
+
@include transform(rotate(5deg));
|
459
|
+
}
|
460
|
+
}
|
461
|
+
|
462
|
+
@-webkit-keyframes cbar-wrapper-rotate {
|
463
|
+
100% {
|
464
|
+
@include transform(rotate(360deg));
|
465
|
+
}
|
466
|
+
}
|
467
|
+
|
468
|
+
@keyframes cbar-wrapper-rotate {
|
469
|
+
100% {
|
470
|
+
@include transform(rotate(360deg));
|
471
|
+
}
|
472
|
+
}
|
473
|
+
|
474
|
+
.progress-position-absolute-bottom,
|
475
|
+
.progress-position-absolute-top,
|
476
|
+
.progress-position-fixed-bottom,
|
477
|
+
.progress-position-fixed-top {
|
478
|
+
margin: 0;
|
479
|
+
// position
|
480
|
+
left: 0;
|
481
|
+
width: 100%;
|
482
|
+
}
|
483
|
+
|
484
|
+
.progress-position-absolute-bottom,
|
485
|
+
.progress-position-absolute-top {
|
486
|
+
position: absolute;
|
487
|
+
}
|
488
|
+
|
489
|
+
.progress-position-absolute-bottom,
|
490
|
+
.progress-position-fixed-bottom {
|
491
|
+
// position
|
492
|
+
bottom: 0;
|
493
|
+
}
|
494
|
+
|
495
|
+
.progress-position-absolute-top,
|
496
|
+
.progress-position-fixed-top {
|
497
|
+
// position
|
498
|
+
top: 0;
|
499
|
+
}
|
500
|
+
|
501
|
+
.progress-position-fixed-top,
|
502
|
+
.progress-position-fixed-bottom {
|
503
|
+
position: fixed;
|
504
|
+
}
|