blob: 7c0c693ffc92e88b849534dfefcf944efebedc07 (
plain)
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
|
*{
margin: 0;
padding: 0;
}
.box{
height: 76px;
width: 76px;
position: relative;
}
.top-corner{
padding: 1px;
position: absolute;
}
.bottom-corner{
padding: 1px;
position: absolute;
bottom: 2px;
right: 2px;
}
.white{
background-color: #eaead2;
/*background-color: #4b7299; */
color: #4b7299;
}
.black{
background-color: #4b7299;
color: #eaead2;
}
body{
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
margin: 1px;
}
.chess-board{
width: 608px;
height: 608px;
display: grid;
grid-template-columns:repeat(8,1fr);
grid-template-rows:repeat(8,1fr);
}
.piece {
color: black;
text-align:center;
font-size:50px;
}
.highlight {
background-color: yellow;
}
.w {
color: white;
}
.b {
color: black;
}
|