-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
46 lines (38 loc) · 809 Bytes
/
styles.css
File metadata and controls
46 lines (38 loc) · 809 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
#gameboard {
width: 640px;
height: 640px;
display: flex;
flex-wrap: wrap;
}
.square {
width: 80px;
height: 80px;
}
.bright {
background-color: rgb(222, 249, 196);
}
.dark {
background-color: rgb(34, 118, 68);
}
/* shaping the pieces */
.square svg {
width: 60px;
height: 60px;
margin: 5px;
position: relative;
z-index: -9; /* this ensures that the layer of the square with pieces is at the back */
}
path {
position: relative;
z-index: -10; /* this ensures that the path is always behind the SVG */
}
.piece {
position: relative;
z-index: 9; /* this ensures that the pieces is always in front the square. This ensures that we're dragging and replacing the actual pieces, not the squares */
}
.black {
fill: rgb(24, 24, 24);
}
.white {
fill: rgb(216, 146, 180);
}