forked from leehadassin/progress-bar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
57 lines (50 loc) · 918 Bytes
/
style.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
html {
box-sizing: border-box;
height: 100%;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
:root {
--bg-color: #111;
--text-color: #eee;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #111;
--text-color: #eee;
}
}
body {
margin: 0;
height: 100%;
background-color: var(--bg-color);
color: var(--text-color);
font-family: -apple-system, system-ui, sans-serif;
font-variant: tabular-nums;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-size:5vmin;
}
#title {
font-size:15vmin;
}
.progress-bar-container {
width: 90%;
height: 25%;
min-height: 40px;
max-height: 60px;
box-shadow: 0 0 0 2px var(--text-color);
border: 2px solid var(--bg-color);
border-radius: 10px;
overflow: hidden;
}
#progress-bar {
height: 100%;
width: 0; /* gets updated via JS */
background-color: var(--text-color);
}