-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
89 lines (86 loc) · 1.53 KB
/
style.css
File metadata and controls
89 lines (86 loc) · 1.53 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
/* @media screen and (max-height: 900px) {
--
} */
body {
background-color: rgb(71, 71, 71);
}
button {
border: 2px solid gainsboro;
background-color: white;
border-radius: 5px;
}
button:active {
background-color: gray;
}
#game_div {
display: grid;
max-width: 70vh;
max-height: 70vh;
}
#pieces_div {
display: grid;
grid-row: 1;
grid-column: 1;
}
#moves_div {
display: grid;
grid-row: 1;
grid-column: 1;
}
#board_div {
grid-row: 1;
grid-column: 1;
}
#board {
grid-row: 1;
grid-column: 1;
width: 70vh;
height: 70vh;
position: relative; /* i want to note that this like is crcial, because it, somehow, allows detecting clicks through other divs, but *not* other images (idk how) */
}
#title {
color: whitesmoke;
}
.piece {
grid-row: 1;
grid-column: 1;
position: relative;
max-width: 8.75vh;
max-height: 8.75vh;
}
.move_indicator {
grid-row: 1;
grid-column: 1;
position: relative;
max-width: 8.75vh;
max-height: 8.75vh;
}
.selected {
background-color: rgba(203, 255, 126, 0.5);
}
.center_text {
text-align: center;
}
.row {
display: flex;
flex-direction: row;
}
#game_body {
display: grid;
grid-template-columns: [start] 5vw [board_div_start] 80vh [mid] auto [side_div_end] 5vw [end];
height: 80vh;
padding: 0;
}
#board_section {
grid-column: board_div_start/mid;
background-color: rgb(100, 100, 100);
padding: 5vh;
border-radius: 10px 0px 0px 10px;
}
#side_section {
grid-column: mid/side_div_end;
/* max-width: 750px; */
background-color: rgb(146, 146, 146);
padding: 1.25vh;
border-radius: 0px 10px 10px 0px;
}