-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
/
VProgressLinear.sass
273 lines (233 loc) Β· 4.94 KB
/
VProgressLinear.sass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
@import './_variables.scss'
+theme(v-progress-linear) using ($material)
color: map-deep-get($material, 'text', 'primary')
// Block
.v-progress-linear
background: transparent
overflow: hidden
position: relative
transition: .2s map-get($transition, 'ease-in-out')
width: 100%
// Element
.v-progress-linear__buffer
height: inherit
left: 0
position: absolute
top: 0
transition: inherit
width: 100%
.v-progress-linear--reverse
.v-progress-linear__buffer
left: auto
right: 0
.v-progress-linear__background
bottom: 0
left: 0
position: absolute
top: 0
transition: inherit
.v-progress-linear--reverse
.v-progress-linear__background
left: auto
right: 0
.v-progress-linear__content
align-items: center
display: flex
height: 100%
left: 0
justify-content: center
position: absolute
top: 0
width: 100%
.v-progress-linear--reverse
.v-progress-linear__content
left: auto
right: 0
.v-progress-linear__determinate
height: inherit
left: 0
position: absolute
transition: inherit
.v-progress-linear--reverse
.v-progress-linear__determinate
left: auto
right: 0
.v-progress-linear
.v-progress-linear__indeterminate
.long, .short
animation-play-state: paused
background-color: inherit
bottom: 0
height: inherit
left: 0
position: absolute
right: auto
top: 0
width: auto
will-change: left, right
&--active .long
animation-name: indeterminate-ltr
animation-duration: 2.2s
animation-iteration-count: infinite
&--active .short
animation-name: indeterminate-short-ltr
animation-duration: 2.2s
animation-iteration-count: infinite
.v-progress-linear--reverse
.v-progress-linear__indeterminate
.long, .short
left: auto
right: 0
&--active .long
animation-name: indeterminate-rtl
&--active .short
animation-name: indeterminate-short-rtl
.v-progress-linear__stream
animation: stream-ltr .25s infinite linear
animation-play-state: paused
border-color: currentColor
border-top: $progress-linear-stream-border-width dotted
bottom: 0
left: auto
right: -8px
opacity: $progress-linear-stream-opacity
pointer-events: none
position: absolute
top: calc(50% - #{$progress-linear-stream-border-width} / 2)
transition: inherit
.v-progress-linear--reverse
.v-progress-linear__stream
animation: stream-rtl .25s infinite linear
left: -8px
right: auto
.v-progress-linear__wrapper
overflow: hidden
position: relative
transition: inherit
// Modifier
.v-progress-linear--absolute,
.v-progress-linear--fixed
left: 0
z-index: 1
.v-progress-linear--absolute
position: absolute
.v-progress-linear--fixed
position: fixed
.v-progress-linear--reactive
.v-progress-linear__content
pointer-events: none
.v-progress-linear--rounded
border-radius: $progress-linear-border-radius
.v-progress-linear--striped
.v-progress-linear__determinate
background-image: $progress-linear-stripe-gradient
background-size: $progress-linear-stripe-background-size
background-repeat: repeat
.v-progress-linear--query
.v-progress-linear__indeterminate--active
.long
animation-name: query-ltr
animation-duration: 2s
animation-iteration-count: infinite
.short
animation-name: query-short-ltr
animation-duration: 2s
animation-iteration-count: infinite
&.v-progress-linear--reverse
.v-progress-linear__indeterminate--active
.long
animation-name: query-rtl
.short
animation-name: query-short-rtl
.v-progress-linear--visible
.v-progress-linear__indeterminate--active
.long, .short
animation-play-state: running
.v-progress-linear__stream
animation-play-state: running
@keyframes indeterminate-ltr
0%
left: -90%
right: 100%
60%
left: -90%
right: 100%
100%
left: 100%
right: -35%
@keyframes indeterminate-rtl
0%
left: 100%
right: -90%
60%
left: 100%
right: -90%
100%
left: -35%
right: 100%
@keyframes indeterminate-short-ltr
0%
left: -200%
right: 100%
60%
left: 107%
right: -8%
100%
left: 107%
right: -8%
@keyframes indeterminate-short-rtl
0%
left: 100%
right: -200%
60%
left: -8%
right: 107%
100%
left: -8%
right: 107%
@keyframes query-ltr
0%
right: -90%
left: 100%
60%
right: -90%
left: 100%
100%
right: 100%
left: -35%
@keyframes query-rtl
0%
right: 100%
left: -90%
60%
right: 100%
left: -90%
100%
right: -35%
left: 100%
@keyframes query-short-ltr
0%
right: -200%
left: 100%
60%
right: 107%
left: -8%
100%
right: 107%
left: -8%
@keyframes query-short-rtl
0%
right: 100%
left: -200%
60%
right: -8%
left: 107%
100%
right: -8%
left: 107%
@keyframes stream-ltr
to
transform: translateX(-8px)
@keyframes stream-rtl
to
transform: translateX(8px)