-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
62 lines (56 loc) · 1.17 KB
/
style.css
File metadata and controls
62 lines (56 loc) · 1.17 KB
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
:root {
--correct: #6aaa64;
--correctText: white;
--almost: #c9b458;
--almostText: white;
--notQuite: #787c7e;
--notQuiteText: white;
--notYet: #d8d8d8;
--notYetText: black;
}
body {
font-family: "Overpass", sans-serif;
width: 200px;
text-align: center;
}
hexle-board {
display: block;
width: 50%;
min-width: 200px;
margin: auto;
color: #ffffff;
}
hexle-row {
display: flex;
}
hexle-cell {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 40px;
margin: 3px;
color: transparent;
border: 2px solid var(--notYet);
text-transform: uppercase;
}
hexle-cell[hexle-state="correct"] {
transform: rotateX(360deg);
animation: flip 0.5s forwards;
animation-timing-function: ease-in-out;
transition: 0.01s background-color ease 0.3s, 0.01s color ease 0.3s, 0.01s border ease 0.3s;
background-color: var(--correct);
color: var(--correctText);
border: 2px solid transparent;
}
@keyframes flip {
0% {
transform: rotateX(0deg);
}
50% {
transform: rotateX(90deg);
}
100% {
transform: rotateX(0deg);
}
}