-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
96 lines (75 loc) · 1.52 KB
/
styles.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
:root {
--cell-size: 100px;
--mark-size:calc(var(--cell-size) * 0.9)
}
.container {
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
background-color: grey;
}
.board {
width: calc(var(--cell-size) * 7.5);
height: calc(var(--cell-size) * 6.5);
background-color: darkblue;
display: grid;
justify-content: center;
align-content: center;
align-items: center;
grid-template-columns: repeat(7, auto);
border-radius: 25px;
}
.cell {
border-radius: 50%;
width: var(--cell-size);
height: var(--cell-size);
border: 2px solid blue;
background-color: grey;
margin: 1px;
}
.cell.red {
background-color: red;
}
.cell.yellow {
background-color: yellow;
}
.board.red .cell:hover {
background-color: lightcoral;
}
.board.yellow .cell:hover {
background-color: lightyellow;
}
.winning-message {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, .9);
justify-content: center;
align-items: center;
color: white;
font-size: 5rem;
flex-direction: column;
}
.winning-message button {
font-size: 3rem;
background-color: white;
border: 1px solid black;
padding: .25rem .5rem;
cursor: pointer;
}
.winning-message button:hover {
background-color: black;
color: white;
border-color: white;
}
.winning-message.show {
display: flex;
}
.winning-message.show {
display: flex;
}