-
Notifications
You must be signed in to change notification settings - Fork 0
/
progress.scss
executable file
·82 lines (73 loc) · 2.09 KB
/
progress.scss
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
.meter {
height: 15px; /* Can be anything */
position: relative;
background: none !important;
> span {
display: block;
height: 100%;
border-radius: 3px;
background-color: var(--green3-c);
background-image: linear-gradient(
to left top,
color-stop(0, var(--green3-c)),
color-stop(1, var(--green2-c)));
position: relative;
overflow: hidden;
}
&.orange > span {
background-color: #f1a165;
background-image: linear-gradient(#f1a165, #f36d0a);
}
&.blue > span {
background-color: var(--blue1-c);
background-image: linear-gradient(var(--blue1-c), var(--blue3-c));
}
&.red > span {
background-color: var(--red1-c);
background-image: linear-gradient(var(--red1-c), var(--red3-c));
}
> span:after, .animate > span > span {
content: "";
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
background-image:
linear-gradient(linear, 0 0, 100% 100%,
color-stop(.25, rgba(255, 255, 255, .2)),
color-stop(.25, transparent), color-stop(.5, transparent),
color-stop(.5, rgba(255, 255, 255, .2)),
color-stop(.75, rgba(255, 255, 255, .2)),
color-stop(.75, transparent), to(transparent)
);
background-image:
linear-gradient(
-45deg,
rgba(255, 255, 255, .2) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, .2) 50%,
rgba(255, 255, 255, .2) 75%,
transparent 75%,
transparent
);
z-index: 1;
overflow: hidden;
}
}
.animate > span:after {
display: none;
}
@keyframes move {
0% {
background-position: 0 0;
}
100% {
background-position: 50px 50px;
}
}
.noanimation > span > span, .noanimation > span:after {
animation: none;
}
.nostripes > span > span, .nostripes > span:after {
animation: none;
background-image: none;
}