-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwordle.css
74 lines (66 loc) · 1.11 KB
/
wordle.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
html,
body {
background:var(--default
);
}
:root {
--default:#121213;
--empty:#3a3a3c;
--wrong:#b59f3b;
--right:#538d4e;
}
.title {
font-family: Arial, Helvetica, sans-serif;
color: white;
text-align: center;
margin-top: 5rem;
}
#game {
display: flex;
justify-content: center;
align-items: start;
margin-top: 2rem;
width: 100%;
height: 72vh;
}
.grid {
display: grid;
grid-template-columns: repeat(5,auto);
grid-template-rows: repeat(6,auto);
}
.box {
width: 60px;
height: 60px;
border:2px solid var(--empty);
margin:4px;
color:white;
text-transform: uppercase;
display: grid;
place-items: center;
font-family: Arial, Helvetica, sans-serif;
font-size: 2.4rem;
}
.box.empty {
background: var(--empty);
}
.box.wrong {
background: var(--wrong);
}
.box.right {
background: var(--right);
}
.animated {
animation: flip 0.5s ease;
}
/* ANIMATION OF SHRIEKING OR BOX */
@keyframes flip {
0% {
transform: scaleY(1);
}
50% {
transform: scaleY(0);
}
100% {
transform: scaleY(1);
}
}