-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
59 lines (50 loc) · 1.13 KB
/
styles.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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: lightgrey;
}
.chessboard {
box-shadow: 0px 0px 20px 5px grey;
}
.row {
display: flex;
}
.cell {
width: 50px; /* Adjust the size as needed */
height: 50px; /* Adjust the size as needed */
}
.white {
background-color: #f5f5f5; /* Light color for white squares */
}
.black {
background-color: #333; /* Dark color for black squares */
}
.highlight {
/* red color with opacity*/
background-color: rgba(255, 0, 0, 0.5);
}
.knight {
/* You can customize these styles to achieve the desired appearance */
width: 40px;
height: 40px;
background-color: #000; /* Knight's color */
border-radius: 50%; /* Makes the knight look round */
position: relative;
margin: auto;
transition: all 0.5s ease;
}
.knight::before {
content: '';
width: 12px;
height: 12px;
background-color: #fff; /* White head */
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: all 0.5s ease;
}