material-sass 4.0.0.alpha6 → 4.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +36 -8
- data/Rakefile +16 -3
- data/app/assets/javascripts/material-sprockets.js +6 -1
- data/app/assets/javascripts/material.js +654 -417
- data/app/assets/javascripts/material.min.js +1 -0
- data/app/assets/javascripts/material/addons/picker.date.js +234 -0
- data/app/assets/javascripts/material/addons/picker.js +172 -0
- data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
- data/app/assets/javascripts/material/addons/waves.js +127 -0
- data/app/assets/javascripts/material/components/floating-label.js +92 -0
- data/app/assets/javascripts/material/components/navdrawer.js +353 -0
- data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
- data/app/assets/javascripts/material/components/tab-switch.js +148 -0
- data/app/assets/javascripts/material/components/util.js +133 -0
- data/app/assets/javascripts/material/initializers/picker.js +171 -0
- data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
- data/app/assets/javascripts/material/initializers/waves.js +13 -0
- data/app/assets/stylesheets/material/_colours.scss +324 -0
- data/app/assets/stylesheets/material/_functions.scss +65 -0
- data/app/assets/stylesheets/material/_mixins.scss +23 -23
- data/app/assets/stylesheets/material/_print.scss +102 -0
- data/app/assets/stylesheets/material/_utilities.scss +21 -17
- data/app/assets/stylesheets/material/_variables.scss +13 -42
- data/app/assets/stylesheets/material/base/_base.scss +420 -5
- data/app/assets/stylesheets/material/base/_grid.scss +34 -33
- data/app/assets/stylesheets/material/base/_typography.scss +165 -174
- data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
- data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
- data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
- data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
- data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
- data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
- data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
- data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
- data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
- data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
- data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
- data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
- data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
- data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
- data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
- data/app/assets/stylesheets/material/material.scss +75 -62
- data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
- data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
- data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
- data/app/assets/stylesheets/material/material/_button.scss +133 -189
- data/app/assets/stylesheets/material/material/_card.scss +300 -248
- data/app/assets/stylesheets/material/material/_chip.scss +65 -64
- data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
- data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
- data/app/assets/stylesheets/material/material/_menu.scss +308 -228
- data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
- data/app/assets/stylesheets/material/material/_picker.scss +157 -155
- data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
- data/app/assets/stylesheets/material/material/_progress.scss +180 -115
- data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
- data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
- data/app/assets/stylesheets/material/material/_tab.scss +74 -93
- data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
- data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
- data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
- data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
- data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
- data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
- data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
- data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
- data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
- data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
- data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
- data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
- data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
- data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
- data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
- data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
- data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
- data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
- data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
- data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
- data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
- data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
- data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
- data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
- data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
- data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
- data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
- data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
- data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
- data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
- data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
- data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
- data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
- data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
- data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
- data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
- data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
- data/lib/material-sass/version.rb +1 -1
- data/material-sass.gemspec +3 -3
- metadata +26 -21
- data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
- data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
- data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
- data/app/assets/javascripts/material/addons/pickadate.js +0 -7
- data/app/assets/javascripts/material/addons/wave.js +0 -5
- data/app/assets/javascripts/material/src/floating-label.js +0 -91
- data/app/assets/javascripts/material/src/navdrawer.js +0 -352
- data/app/assets/javascripts/material/src/tab-switch.js +0 -133
- data/app/assets/javascripts/material/src/util.js +0 -138
- data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
- data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
- data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
- data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
- data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
- data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
- data/app/assets/stylesheets/material/variables/_colour.scss +0 -389
@@ -1,70 +1,68 @@
|
|
1
|
-
//
|
2
|
-
// todo: landscape picker
|
3
|
-
//
|
1
|
+
// Todo: landscape picker
|
4
2
|
|
5
3
|
.picker {
|
6
4
|
position: absolute;
|
7
|
-
z-index: map-get($picker-elevation-shadow, elevation);
|
8
5
|
user-select: none;
|
6
|
+
z-index: map-get($picker-elevation-shadow, elevation);
|
9
7
|
}
|
10
8
|
|
11
|
-
.
|
9
|
+
.picker-box {
|
10
|
+
@include border-bottom-radius($border-radius);
|
11
|
+
|
12
12
|
background-color: $picker-content-bg;
|
13
13
|
overflow: hidden;
|
14
|
-
@include border-bottom-radius($border-radius);
|
15
14
|
}
|
16
15
|
|
17
|
-
.
|
16
|
+
.picker-frame {
|
17
|
+
@include transition-standard-complex(opacity);
|
18
|
+
|
18
19
|
background-color: $picker-holder-bg;
|
19
20
|
opacity: 0;
|
20
21
|
position: absolute;
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
22
|
+
top: 0;
|
23
|
+
right: 0;
|
24
|
+
bottom: 0;
|
25
|
+
left: 0;
|
25
26
|
text-align: center;
|
26
27
|
vertical-align: middle;
|
27
28
|
white-space: nowrap;
|
28
|
-
@include transition-acceleration(opacity);
|
29
29
|
|
30
30
|
&::after {
|
31
|
-
content:
|
31
|
+
content: '';
|
32
32
|
display: inline-block;
|
33
33
|
height: 100%;
|
34
34
|
vertical-align: middle;
|
35
35
|
width: 1px;
|
36
36
|
}
|
37
37
|
|
38
|
-
.picker
|
38
|
+
.picker-opened & {
|
39
39
|
opacity: 1;
|
40
|
-
@include transition-deceleration(opacity);
|
41
40
|
}
|
42
41
|
}
|
43
42
|
|
44
|
-
.
|
43
|
+
.picker-holder {
|
45
44
|
outline: 0;
|
46
45
|
overflow-x: hidden;
|
47
46
|
overflow-y: auto;
|
48
47
|
position: fixed;
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
48
|
+
top: 0;
|
49
|
+
right: 0;
|
50
|
+
bottom: 0;
|
51
|
+
left: 0;
|
53
52
|
transform: translate3d(0, 100%, 0);
|
54
|
-
transition-delay: $transition-duration-
|
53
|
+
transition-delay: $transition-duration-mobile-complex;
|
55
54
|
transition-duration: 0;
|
56
55
|
transition-property: transform;
|
57
|
-
-webkit-overflow-scrolling: touch;
|
58
56
|
|
59
57
|
@include media-breakpoint-up(sm) {
|
60
|
-
transition-delay: $transition-duration-tablet-
|
58
|
+
transition-delay: $transition-duration-tablet-complex;
|
61
59
|
}
|
62
60
|
|
63
61
|
@include media-breakpoint-up(lg) {
|
64
|
-
transition-delay: $transition-duration-desktop-
|
62
|
+
transition-delay: $transition-duration-desktop-complex;
|
65
63
|
}
|
66
64
|
|
67
|
-
.picker
|
65
|
+
.picker-opened & {
|
68
66
|
opacity: 1;
|
69
67
|
overflow-x: hidden;
|
70
68
|
overflow-y: auto;
|
@@ -77,196 +75,200 @@
|
|
77
75
|
}
|
78
76
|
}
|
79
77
|
|
80
|
-
.
|
78
|
+
.picker-input {
|
81
79
|
&.form-control[readonly] {
|
82
80
|
border-bottom-style: solid;
|
83
81
|
color: inherit;
|
84
82
|
cursor: text;
|
85
83
|
}
|
86
84
|
|
87
|
-
&.
|
85
|
+
&.picker-input-active {
|
88
86
|
border-bottom-color: $textfield-border-color-focus;
|
89
87
|
}
|
90
88
|
}
|
91
89
|
|
92
|
-
.
|
90
|
+
.picker-wrap {
|
91
|
+
@include border-radius($border-radius);
|
92
|
+
@include transition-standard-complex(transform);
|
93
|
+
|
93
94
|
box-shadow: map-get($picker-elevation-shadow, shadow);
|
94
95
|
display: inline-block;
|
95
96
|
margin: $picker-margin-y $picker-margin-x;
|
96
97
|
max-width: ($picker-cell-size * 7 + $picker-inner-spacer-x * 2);
|
97
98
|
outline: 0;
|
98
99
|
position: relative;
|
99
|
-
transform: scale(
|
100
|
+
transform: scale(.87);
|
100
101
|
vertical-align: middle;
|
101
|
-
@include border-radius($border-radius);
|
102
|
-
@include transition-acceleration(transform);
|
103
102
|
|
104
|
-
.picker
|
103
|
+
.picker-opened & {
|
105
104
|
transform: scale(1);
|
106
|
-
@include transition-deceleration(transform);
|
107
105
|
}
|
108
106
|
}
|
109
107
|
|
110
|
-
//
|
111
|
-
// footer
|
112
|
-
//
|
113
|
-
.picker__footer {
|
114
|
-
padding: $picker-inner-spacer-y $picker-inner-spacer-x;
|
115
|
-
text-align: right;
|
116
108
|
|
117
|
-
button {
|
118
|
-
margin-left: $picker-inner-spacer-x;
|
119
|
-
min-width: 0;
|
120
109
|
|
121
|
-
|
122
|
-
margin-left: 0;
|
123
|
-
}
|
124
|
-
}
|
125
|
-
}
|
110
|
+
// Footer
|
126
111
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
height: $picker-cell-size;
|
132
|
-
line-height: $picker-cell-size;
|
133
|
-
margin-right: $picker-inner-spacer-x;
|
134
|
-
margin-left: $picker-inner-spacer-x;
|
135
|
-
position: relative;
|
136
|
-
vertical-align: middle;
|
137
|
-
}
|
112
|
+
.picker-footer {
|
113
|
+
display: flex;
|
114
|
+
justify-content: flex-end;
|
115
|
+
padding: $picker-inner-spacer-y $picker-inner-spacer-x;
|
138
116
|
|
139
|
-
|
140
|
-
|
141
|
-
display: inline;
|
117
|
+
button {
|
118
|
+
flex: 0 1 auto;
|
142
119
|
margin-left: $picker-inner-spacer-x;
|
120
|
+
min-width: 0;
|
143
121
|
|
144
122
|
&:first-child {
|
145
123
|
margin-left: 0;
|
146
124
|
}
|
147
125
|
}
|
126
|
+
}
|
148
127
|
|
149
|
-
.picker__nav--next,
|
150
|
-
.picker__nav--prev {
|
151
|
-
cursor: pointer;
|
152
|
-
height: $picker-cell-size;
|
153
|
-
margin-top: ($picker-cell-size / -2);
|
154
|
-
position: absolute;
|
155
|
-
top: 50%;
|
156
|
-
width: $picker-cell-size;
|
157
|
-
|
158
|
-
&,
|
159
|
-
&.material-icons {
|
160
|
-
line-height: $picker-cell-size;
|
161
|
-
}
|
162
|
-
}
|
163
128
|
|
164
|
-
.picker__nav--next {
|
165
|
-
// position
|
166
|
-
right: 0;
|
167
129
|
|
168
|
-
|
169
|
-
content: $picker-nav-next-icon;
|
170
|
-
}
|
171
|
-
}
|
130
|
+
// Header
|
172
131
|
|
173
|
-
|
174
|
-
|
175
|
-
|
132
|
+
.picker-header {
|
133
|
+
height: $picker-cell-size;
|
134
|
+
line-height: $picker-cell-size;
|
135
|
+
margin-right: $picker-inner-spacer-x;
|
136
|
+
margin-left: $picker-inner-spacer-x;
|
137
|
+
position: relative;
|
138
|
+
vertical-align: middle;
|
139
|
+
}
|
176
140
|
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
141
|
+
.picker-month,
|
142
|
+
.picker-year {
|
143
|
+
display: inline;
|
144
|
+
margin-left: $picker-inner-spacer-x;
|
181
145
|
|
182
|
-
|
183
|
-
|
184
|
-
//
|
185
|
-
.picker__date-display {
|
186
|
-
background-color: $picker-header-bg;
|
187
|
-
color: $picker-header-color;
|
188
|
-
padding: $picker-header-padding;
|
189
|
-
text-align: left;
|
190
|
-
@include border-top-radius($border-radius);
|
146
|
+
&:first-child {
|
147
|
+
margin-left: 0;
|
191
148
|
}
|
149
|
+
}
|
192
150
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
151
|
+
.picker-nav-next,
|
152
|
+
.picker-nav-prev {
|
153
|
+
height: $picker-cell-size;
|
154
|
+
margin-top: ($picker-cell-size / -2);
|
155
|
+
position: absolute;
|
156
|
+
top: 50%;
|
157
|
+
width: $picker-cell-size;
|
197
158
|
|
198
|
-
|
199
|
-
|
159
|
+
&,
|
160
|
+
&.material-icons {
|
161
|
+
line-height: $picker-cell-size;
|
200
162
|
}
|
163
|
+
}
|
201
164
|
|
202
|
-
|
203
|
-
|
165
|
+
.picker-nav-next {
|
166
|
+
right: 0;
|
204
167
|
|
205
|
-
|
206
|
-
|
207
|
-
}
|
168
|
+
&::before {
|
169
|
+
content: $picker-nav-next-icon;
|
208
170
|
}
|
171
|
+
}
|
209
172
|
|
210
|
-
|
211
|
-
|
212
|
-
//
|
213
|
-
.picker__day {
|
214
|
-
border-radius: 50%;
|
215
|
-
cursor: pointer;
|
216
|
-
height: $picker-cell-size;
|
217
|
-
line-height: $picker-cell-size;
|
218
|
-
margin: auto;
|
219
|
-
vertical-align: middle;
|
220
|
-
width: $picker-cell-size;
|
173
|
+
.picker-nav-prev {
|
174
|
+
left: 0;
|
221
175
|
|
222
|
-
|
223
|
-
|
224
|
-
color: $picker-day-color-selected;
|
225
|
-
}
|
176
|
+
&::before {
|
177
|
+
content: $picker-nav-prev-icon;
|
226
178
|
}
|
179
|
+
}
|
227
180
|
|
228
|
-
.picker__day--disabled {
|
229
|
-
color: $picker-day-color-disabled;
|
230
|
-
cursor: $cursor-disabled;
|
231
|
-
}
|
232
181
|
|
233
|
-
.picker__day--outfocus {
|
234
|
-
display: none;
|
235
|
-
}
|
236
182
|
|
237
|
-
|
238
|
-
|
239
|
-
|
183
|
+
// Material date display
|
184
|
+
|
185
|
+
.picker-date-display {
|
186
|
+
@include border-top-radius($border-radius);
|
187
|
+
@include color-yiq($picker-header-bg);
|
188
|
+
@include text-align(left);
|
189
|
+
|
190
|
+
background-color: $picker-header-bg;
|
191
|
+
padding: $picker-header-padding-y $picker-header-padding-x;
|
192
|
+
}
|
193
|
+
|
194
|
+
.picker-date-display-bottom {
|
195
|
+
@include text-truncate;
|
196
|
+
@include typography-display-1;
|
197
|
+
}
|
198
|
+
|
199
|
+
.picker-day-display {
|
200
|
+
margin-right: $picker-inner-spacer-x;
|
201
|
+
}
|
202
|
+
|
203
|
+
.picker-weekday-display {
|
204
|
+
margin-right: $picker-inner-spacer-x;
|
205
|
+
|
206
|
+
&::after {
|
207
|
+
content: ',';
|
240
208
|
}
|
209
|
+
}
|
241
210
|
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
211
|
+
|
212
|
+
|
213
|
+
// Table
|
214
|
+
|
215
|
+
.picker-day {
|
216
|
+
border-radius: 50%;
|
217
|
+
cursor: default;
|
218
|
+
height: $picker-cell-size;
|
219
|
+
line-height: $picker-cell-size;
|
220
|
+
margin: auto;
|
221
|
+
vertical-align: middle;
|
222
|
+
width: $picker-cell-size;
|
223
|
+
|
224
|
+
&.picker-day-selected {
|
225
|
+
@include color-yiq($picker-day-bg-selected);
|
226
|
+
|
227
|
+
background-color: $picker-day-bg-selected;
|
256
228
|
}
|
229
|
+
}
|
230
|
+
|
231
|
+
.picker-day-disabled {
|
232
|
+
color: $picker-day-color-disabled;
|
233
|
+
}
|
257
234
|
|
258
|
-
|
259
|
-
|
260
|
-
|
235
|
+
.picker-day-outfocus {
|
236
|
+
display: none;
|
237
|
+
}
|
238
|
+
|
239
|
+
.picker-day-today {
|
240
|
+
color: $picker-day-color-today;
|
241
|
+
font-weight: bolder;
|
242
|
+
}
|
243
|
+
|
244
|
+
.picker-table {
|
245
|
+
border-collapse: collapse;
|
246
|
+
border-spacing: 0;
|
247
|
+
margin: 0 $picker-inner-spacer-x;
|
248
|
+
table-layout: fixed;
|
249
|
+
|
250
|
+
td,
|
251
|
+
th {
|
252
|
+
border: 0;
|
253
|
+
font-weight: normal;
|
254
|
+
padding: 0;
|
255
|
+
text-align: center;
|
261
256
|
vertical-align: middle;
|
262
|
-
width: $picker-cell-size;
|
263
257
|
}
|
258
|
+
}
|
259
|
+
|
260
|
+
.picker-weekday {
|
261
|
+
color: $picker-weekday-color;
|
262
|
+
height: $picker-cell-size;
|
263
|
+
vertical-align: middle;
|
264
|
+
width: $picker-cell-size;
|
265
|
+
}
|
264
266
|
|
265
|
-
// .
|
266
|
-
// .
|
267
|
+
// .picker-select-month,
|
268
|
+
// .picker-select-year {
|
267
269
|
// // @extend .form-control;
|
268
270
|
// // @extend .form-control-sm;
|
269
271
|
// display: inline-block !important;
|
270
|
-
// margin: 0 $spacer-sm
|
272
|
+
// margin: 0 $spacer-sm !important;
|
271
273
|
// width: auto !important;
|
272
274
|
// }
|
@@ -7,14 +7,14 @@
|
|
7
7
|
.progress-circular-gap {
|
8
8
|
border-top: ($progress-circular-spinner-width / 2) solid $progress-circular-bg;
|
9
9
|
position: absolute;
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
top: 0;
|
11
|
+
right: ($progress-circular-height / 2 - $progress-circular-spinner-width / 4);
|
12
|
+
bottom: 0;
|
13
|
+
left: ($progress-circular-height / 2 - $progress-circular-spinner-width / 4);
|
14
14
|
}
|
15
15
|
|
16
16
|
.progress-circular-inner {
|
17
|
-
animation: progress-circular-inner-rotate
|
17
|
+
animation: progress-circular-inner-rotate $progress-circular-animation-duration $transition-timing-function-standard infinite;
|
18
18
|
height: $progress-circular-height;
|
19
19
|
position: relative;
|
20
20
|
width: $progress-circular-height;
|
@@ -25,18 +25,16 @@
|
|
25
25
|
height: $progress-circular-height;
|
26
26
|
overflow: hidden;
|
27
27
|
position: absolute;
|
28
|
-
|
28
|
+
top: 0;
|
29
29
|
width: ($progress-circular-height / 2);
|
30
30
|
}
|
31
31
|
|
32
32
|
.progress-circular-left {
|
33
|
-
|
34
|
-
left: 0;
|
33
|
+
left: 0;
|
35
34
|
}
|
36
35
|
|
37
36
|
.progress-circular-right {
|
38
|
-
|
39
|
-
right: 0;
|
37
|
+
right: 0;
|
40
38
|
}
|
41
39
|
|
42
40
|
.progress-circular-spinner {
|
@@ -45,100 +43,102 @@
|
|
45
43
|
border-radius: 50%;
|
46
44
|
height: $progress-circular-height;
|
47
45
|
position: absolute;
|
48
|
-
|
46
|
+
top: 0;
|
49
47
|
width: $progress-circular-height;
|
50
48
|
|
51
49
|
.progress-circular-left & {
|
52
|
-
animation: progress-circular-spinner-left
|
50
|
+
animation: progress-circular-spinner-left ($progress-circular-animation-duration / 4) $transition-timing-function-standard infinite;
|
53
51
|
border-right-color: transparent;
|
54
|
-
|
55
|
-
left: 0;
|
52
|
+
left: 0;
|
56
53
|
}
|
57
54
|
|
58
55
|
.progress-circular-right & {
|
59
|
-
animation: progress-circular-spinner-right
|
56
|
+
animation: progress-circular-spinner-right ($progress-circular-animation-duration / 4) $transition-timing-function-standard infinite;
|
60
57
|
border-left-color: transparent;
|
61
|
-
|
62
|
-
right: 0;
|
58
|
+
right: 0;
|
63
59
|
}
|
64
60
|
}
|
65
61
|
|
66
62
|
.progress-circular-wrapper {
|
67
|
-
animation: progress-circular-wrapper-rotate 2
|
63
|
+
animation: progress-circular-wrapper-rotate ($progress-circular-animation-duration / 2) linear infinite;
|
68
64
|
}
|
69
65
|
|
70
|
-
|
71
|
-
|
72
|
-
|
66
|
+
@keyframes progress-circular-inner-rotate {
|
67
|
+
12.5% {
|
68
|
+
transform: rotate(135deg);
|
69
|
+
}
|
73
70
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
border-top-color: nth($palettes-color, $i);
|
78
|
-
}
|
71
|
+
25% {
|
72
|
+
transform: rotate(270deg);
|
73
|
+
}
|
79
74
|
|
80
|
-
|
81
|
-
|
82
|
-
|
75
|
+
37.5% {
|
76
|
+
transform: rotate(405deg);
|
77
|
+
}
|
83
78
|
|
84
|
-
|
85
|
-
|
86
|
-
}
|
87
|
-
}
|
79
|
+
50% {
|
80
|
+
transform: rotate(540deg);
|
88
81
|
}
|
89
82
|
|
90
|
-
|
91
|
-
|
92
|
-
//
|
93
|
-
@keyframes progress-circular-inner-rotate {
|
94
|
-
12.5% {
|
95
|
-
transform: rotate(135deg);
|
96
|
-
}
|
97
|
-
25% {
|
98
|
-
transform: rotate(270deg);
|
99
|
-
}
|
100
|
-
37.5% {
|
101
|
-
transform: rotate(405deg);
|
102
|
-
}
|
103
|
-
50% {
|
104
|
-
transform: rotate(540deg);
|
105
|
-
}
|
106
|
-
62.5% {
|
107
|
-
transform: rotate(675deg);
|
108
|
-
}
|
109
|
-
75% {
|
110
|
-
transform: rotate(810deg);
|
111
|
-
}
|
112
|
-
87.5% {
|
113
|
-
transform: rotate(945deg);
|
114
|
-
}
|
115
|
-
100% {
|
116
|
-
transform: rotate(1080deg);
|
117
|
-
}
|
83
|
+
62.5% {
|
84
|
+
transform: rotate(675deg);
|
118
85
|
}
|
119
86
|
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
transform: rotate(-5deg);
|
127
|
-
}
|
87
|
+
75% {
|
88
|
+
transform: rotate(810deg);
|
89
|
+
}
|
90
|
+
|
91
|
+
87.5% {
|
92
|
+
transform: rotate(945deg);
|
128
93
|
}
|
129
94
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
95
|
+
100% {
|
96
|
+
transform: rotate(1080deg);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
@keyframes progress-circular-spinner-left {
|
101
|
+
0%,
|
102
|
+
100% {
|
103
|
+
transform: rotate(130deg);
|
104
|
+
}
|
105
|
+
|
106
|
+
50% {
|
107
|
+
transform: rotate(-5deg);
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
@keyframes progress-circular-spinner-right {
|
112
|
+
0%,
|
113
|
+
100% {
|
114
|
+
transform: rotate(-130deg);
|
115
|
+
}
|
116
|
+
|
117
|
+
50% {
|
118
|
+
transform: rotate(5deg);
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
@keyframes progress-circular-wrapper-rotate {
|
123
|
+
100% {
|
124
|
+
transform: rotate(360deg);
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
// Colour
|
129
|
+
@each $color, $values in $theme-colors {
|
130
|
+
.progress-circular-#{$color} {
|
131
|
+
.progress-circular-gap,
|
132
|
+
.progress-circular-spinner {
|
133
|
+
border-top-color: map-get(theme-color($color), color);
|
134
134
|
}
|
135
|
-
|
136
|
-
|
135
|
+
|
136
|
+
.progress-circular-left .progress-circular-spinner {
|
137
|
+
border-left-color: map-get(theme-color($color), color);
|
137
138
|
}
|
138
|
-
}
|
139
139
|
|
140
|
-
|
141
|
-
|
142
|
-
transform: rotate(360deg);
|
140
|
+
.progress-circular-right .progress-circular-spinner {
|
141
|
+
border-right-color: map-get(theme-color($color), color);
|
143
142
|
}
|
144
|
-
}
|
143
|
+
}
|
144
|
+
}
|