-
Notifications
You must be signed in to change notification settings - Fork 9
/
style.css
68 lines (58 loc) · 1.28 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
body {
font-family: monospace; /* Fixed-width font for better alignment */
background-color: #f0f0f0; /* Light background */
color: #333; /* Dark text color */
text-align: center;
line-height: 1.6; /* Adjust spacing between rows */
}
.container {
display: flex; /* Enable flexbox layout */
flex-wrap: wrap; /* Allow items to wrap into multiple rows*/
justify-content: center;
}
.section {
width: fit-content;
margin-bottom: 20px;
padding: 15px;
}
h3 {
text-align: center;
}
canvas {
max-width: 256px;
}
#fen {
font-size: smaller;
user-select: all; /* Select full fen string */
}
/* Media query for smaller screens */
@media (max-width: 768px) {
#fen {
font-size: xx-small; /* Smaller font size on smaller screens */
}
}
/* fen2htmldiv styling */
#chessboard {
font-family: "Chess", sans-serif;
display: grid;
width: fit-content;
grid-template-columns: repeat(8, 32px);
grid-template-rows: repeat(8, 32px);
border-collapse: collapse;
margin: 20px auto;
}
.square {
width: 32px;
height: 32px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
}
.light-square {
background-color: #f0d9b5; /* Light square color */
}
.dark-square {
background-color: #b58863; /* Dark square color */
}