-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
120 lines (100 loc) · 1.9 KB
/
main.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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
@font-face {
font-family: Agave;
src: url('/fonts/agave\ regular\ Nerd\ Font\ Complete\ Mono.ttf');
}
* {
font-family: Agave, 'Courier New', Courier, monospace;
}
body {
background-color: #2b2b2b;
margin: 0;
padding: 0;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#typer {
width: 80vw;
font-size: 1.5rem;
}
.untyped {
color: gray;
}
.correct {
color: mediumspringgreen;
filter: drop-shadow(0px 0px 1px mediumspringgreen);
}
.incorrect {
color: crimson;
filter: drop-shadow(0px 0px 4px crimson);
}
.menu input[type='text'].full-width {
width: 100%;
}
.menu #start {
width: 100%;
}
.hidden {
opacity: 0;
transition: opacity 0.3s;
}
.completely-hidden {
display: none;
}
.playerlist {
color: whitesmoke;
}
.playerlist ul {
padding-inline-start: 0;
}
.playerlist lh {
font-size: 1.5em;
margin-left: -1em;
}
.progresscontainer {
background-color:gray;
width:70%;
margin:10px auto;
}
.progressbar {
--progress: 50%;
--barcolor: mediumspringgreen;
filter: drop-shadow(0px 0px 5px var(--barcolor));
background-color: var(--barcolor);
width: var(--progress);
height: 30px;
transition: width 0.2s;
font-size: 1.5rem;
font-weight: bold;
overflow:hidden;
}
#bars {
width: 100%;
}
#trafficlight {
--color: red;
background-color: var(--color);
filter: drop-shadow(0px 0px 10px var(--color));
margin-bottom: 30px;
border-radius: 50%;
width: 20vh;
aspect-ratio: 1;
text-align: center;
vertical-align: middle;
line-height: 20vh;
font-size: 5vh;
}
.glowred {
color: red;
filter: drop-shadow(0px 0px 4px red);
}
.glowyellow {
color: yellow;
filter: drop-shadow(0px 0px 4px yellow);
}
.glowgreen {
color: green;
filter: drop-shadow(0px 0px 4px green);
}