-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogress-common.css
43 lines (38 loc) · 954 Bytes
/
progress-common.css
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
/* Common progress bar styles */
progress {
--progress-color: hsl(0, 70%, 45%);
width: 100%;
height: 20px;
border-radius: 10px;
overflow: hidden;
border: none;
background-color: #f0f0f0;
}
progress::-webkit-progress-bar {
background-color: #f0f0f0;
border-radius: 10px;
}
progress::-webkit-progress-value {
background: var(--progress-color);
border-radius: 10px;
transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
}
progress::-moz-progress-bar {
background: var(--progress-color);
border-radius: 10px;
transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
}
.progress-wrapper {
position: relative;
width: 100%;
margin: 10px 0;
}
#progress-percentage {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
color: #333;
font-weight: bold;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}