-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchess.css
More file actions
119 lines (100 loc) · 1.56 KB
/
Copy pathchess.css
File metadata and controls
119 lines (100 loc) · 1.56 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
body {
color: #333;
margin: auto;
padding-top: 90px;
}
h1, h2 {
color: #222;
}
h1 {
font-size: 45px;
}
.box {
background-color: #fff;
padding: 15px;
margin: 20px auto;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
max-width: 800px;
text-align: left;
line-height: 1.6;
display: block;
padding-left: 20px;
}
ul {
margin-left: 20px;
list-style-type: none;
padding: 0;
}
p {
margin-left: 30px;
}
.button {
margin-top: 20px;
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 8px;
background-color: #ff79c6;
color: white;
cursor: pointer;
transition: background 0.3s ease, transform 0.3s ease;
margin-bottom: 20px;
}
.button:hover {
transform: scale(1.05);
background-color: #f468b9;
}
.button.show {
opacity: 1;
}
.button.hide {
opacity: 0;
}
#board-container {
overflow: hidden;
max-height: 0;
opacity: 0;
transition: max-height 0.8s ease, opacity 0.8s ease;
margin-top: 20px;
}
#board-container.show {
max-height: 100%;
opacity: 1;
}
.board {
width: 480px;
height: 480px;
margin: 20px auto;
display: grid;
grid-template: repeat(8, 1fr) / repeat(8, 1fr);
border: 2px solid #333;
}
.square {
width: 60px;
height: 60px;
position: relative;
}
.light {
background-color: #f0d9b5;
}
.dark {
background-color: #b58863;
}
.piece {
width: 50px;
height: 50px;
margin: 5px auto;
cursor: pointer;
}
.highlight {
position: absolute;
background-color: grey;
width: 14px;
height: 14px;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
cursor: pointer;
}