-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnect4.css
More file actions
47 lines (39 loc) · 728 Bytes
/
connect4.css
File metadata and controls
47 lines (39 loc) · 728 Bytes
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
/* game board table */
h1 {
margin: 5% 40%;
width: 20%;
font-family: fantasy;
display: inline-block;
text-align: center;
}
#board {
margin: 0 auto;
}
#board td {
width: 50px;
height: 50px;
border: solid 1px #666;
margin: 0 auto;
}
/* pieces are div within game table cells: draw as colored circles */
.piece {
/* TODO: make into circles */
margin: 5px;
width: 80%;
height: 80%;
border-radius: 50%;
}
/* TODO: make pieces red/blue, depending on player 1/2 piece */
.player1 {
background-color: blue;
}
.player2 {
background-color: red;
}
/* column-top is table row of clickable areas for each column */
#column-top td {
border: dashed 1px lightgray;
}
#column-top td:hover {
background-color: gold;
}