forked from MDeep86/knots-and-crosses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.css
61 lines (54 loc) · 1.06 KB
/
game.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
#active-game {
text-align: center;
margin: 2rem 0 5rem 0;
display: none;
}
#game-over {
width: 90%;
max-width: 40rem;
margin: auto;
padding: 1rem 2rem;
color: white;
background-color: rgb(19, 5, 87);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
border-radius: 4px;
display: none;
}
#game-over h3 {
font-size: 2.5rem;
margin: 0.5 0;
}
#active-player-name {
font-weight: bold;
color: rgb(19, 5, 87);
}
#game-board {
list-style: none;
margin: 1rem 0;
padding: 0;
display: grid;
grid-template-columns: repeat(3, 6rem);
grid-template-rows: repeat(3, 6rem);
justify-content: center;
gap: 0.5rem;
}
#game-board li {
background-color: rgb(229, 227, 255);
border-radius: 2px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
font-size: 2.5rem;
font-weight: bold;
border-radius: 4px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
#game-board li:hover {
background-color: rgb(13, 13, 204);
}
#game-board li.disabled {
background-color: rgb(13, 13, 204);
cursor: default;
color: white;
}