-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
82 lines (70 loc) · 1.11 KB
/
style.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
*{
margin: 0;
padding: 0;
}
body{
font-family: 'Roboto', sans-serif;
font-size: 1.5vw;
}
main{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
width: 100vw;
background-color: antiquewhite;
}
.chessboard {
border: 1px solid #a19e9c;
width: 40vw;
height: 40vw;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}
.square{
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.white {
background-color: #b2a9a0;
}
.black {
background-color: #eee9e6;
}
.blocked::before{
content: '';
display: block;
position: absolute;
width: 100%;
height: 100%;
background-color: red;
opacity: 25%;
}
.queen{
width: 70%;
}
.queen img{
width: 100%;
height: 100%;
}
#easy-btn{
font-size: 0.8em;
color: white;
cursor: pointer;
margin: 0.5vw;
border: none;
padding: 4px 16px;
border-radius: 10px;
}
#easy-btn.on{
background-color: green;
}
#easy-btn.off{
background-color: red;
}