-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
71 lines (59 loc) · 1.13 KB
/
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
58
59
60
61
62
63
64
65
66
67
68
69
* {
padding: 0;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
.score {
position: absolute;
left: 1rem;
top: 1rem;
}
.score .victories {
display: inline-block;
width: 1rem;
background-color: lightblue;
border-radius: .5rem;
text-align: center;
margin-bottom: .5rem;
}
.game {
display: flex;
flex-direction: column;
align-items: center;
}
.board {
display: grid;
width: 60vh;
height: 60vh;
margin: 1.5rem auto;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
}
.tile {
border: 0;
width: 100%;
height: 100%;
font-size: 6vh;
font-weight: bold;
text-transform: uppercase;
background-color: transparent;
cursor: pointer;
}
.tile:hover {
background-color: lightgray;
}
.tile:nth-child(1), .tile:nth-child(2),
.tile:nth-child(4), .tile:nth-child(5),
.tile:nth-child(7), .tile:nth-child(8) {
border-right: 4px solid black;
}
.tile:nth-child(1), .tile:nth-child(2), .tile:nth-child(3),
.tile:nth-child(4), .tile:nth-child(5), .tile:nth-child(6) {
border-bottom: 4px solid black;
}
.message {
text-align: center;
}
.play-again {
padding: .5rem 1rem;
}