-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloading_bar.css
59 lines (53 loc) · 1.27 KB
/
loading_bar.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#loader {
display: flex;
flex-direction: column-reverse;
position: absolute;
z-index: 2;
justify-content: center;
align-items: center;
color: #ff8a8a;
font: 2.5em sans-serif;
top: 50%; /* position the top edge of the element at the middle of the parent */
left: 50%; /* position the left edge of the element at the middle of the parent */
border: 2px solid black;
border-radius: 25px;
text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
transform: translate(-50%, -50%);
}
progress[value] {
width: 12.5em;
height: 0.25em;
border: none;
border-radius: 0.125em;
background: #e6eeff;
}
progress[value]::-webkit-progress-bar {
border: none;
border-radius: 0.125em;
background: #e6eeff;
}
progress[value]::-webkit-progress-value {
border: none;
border-radius: inherit;
background: linear-gradient(90deg, #ff8a8a, #8c9fff);
}
progress[value]::-moz-progress-bar {
border: none;
border-radius: inherit;
background: linear-gradient(90deg, #ff8a8a, #8c9fff);
}
progress[value]::-ms-fill {
border: none;
border-radius: inherit;
background: linear-gradient(90deg, #ff8a8a, #8c9fff);
}
output:not(:empty) {
padding-bottom: 1em;
}
output:not(:empty):after {
content: '%';
}
output {
top: 120%;
position: absolute;
}