-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnect4.css
105 lines (87 loc) · 1.44 KB
/
connect4.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
95
96
97
98
99
100
101
102
103
104
105
/* General layout */
body {
background-color: white;
display: flex;
flex-direction: column-reverse;
justify-content: center;
align-items: center;
margin: 0;
min-height: 100vh;
}
/* Action buttons */
.actions {
display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: flex-end;
width: 720px;
height: 100px;
}
.action {
color: darkgray;
font-family: "Helvetica Neue", sans-serif;
font-size: 20px;
line-height: 20px;
font-weight: 300;
text-align: center;
text-decoration: none;
text-transform: uppercase;
padding: 20px;
width: 120px;
}
.action:hover {
background-color: darkgray;
color: white;
font-weight: 700;
}
.action[href=""] {
display: none;
}
/* Connect Four board */
.board {
background-color: black;
display: flex;
flex-direction: row;
padding: 0 10px;
position: relative;
}
.board::before,
.board::after {
background-color: black;
content: "";
height: 720px;
width: 20px;
position: absolute;
}
.board::before {
left: -20px;
}
.board::after {
right: -20px;
}
.column {
display: flex;
flex-direction: column-reverse;
padding: 10px;
}
.cell {
border-radius: 50%;
width: 80px;
height: 80px;
margin: 10px 0;
}
.empty {
background-color: white;
}
.column:hover .empty {
background-color: lightgray;
}
.column:hover .empty ~ .empty {
background-color: white;
}
.orange {
background-color: orange;
}
.brown {
background-color: brown;
}