/
line.less
101 lines (98 loc) · 1.85 KB
/
line.less
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
@w-progress-prefix: ~'w-progress';
.@{w-progress-prefix} {
&-line {
width: 100%;
font-size: 12px;
}
&-bar,
&-text {
box-sizing: border-box;
}
&-bar {
display: inline-block;
width: 100%;
vertical-align: middle;
}
&-status-active &-bg {
background-image: linear-gradient(
45deg,
rgba(255, 255, 255, 0.15) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, 0.15) 50%,
rgba(255, 255, 255, 0.15) 75%,
transparent 75%,
transparent
);
background-size: 12px 12px;
animation: progress-bar-stripes 1s linear infinite;
&:before {
content: ' ';
opacity: 0;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #fff;
border-radius: 10px;
animation: w-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}
}
&-status-exception {
.@{w-progress-prefix}-bg {
background-color: #dc3545;
}
.@{w-progress-prefix}-text {
color: #dc3545;
}
}
&-status-success {
.@{w-progress-prefix}-bg {
background-color: #28a745;
}
.@{w-progress-prefix}-text {
color: #28a745;
}
}
&-show-text &-bar {
margin-right: -50px;
padding-right: 50px;
}
&-inner {
height: 100%;
width: 100%;
border-radius: 100px;
background-color: #e5e9f2;
overflow: hidden;
}
&-bg {
height: 100%;
border-radius: 100px;
background-color: #108ee9;
transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
position: relative;
}
}
@keyframes progress-bar-stripes {
from {
background-position: 0 0;
}
to {
background-position: 24px 0;
}
}
@keyframes w-progress-active {
0% {
opacity: 0.1;
width: 0;
}
20% {
opacity: 0.5;
width: 0;
}
100% {
opacity: 0;
width: 100%;
}
}