-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.css
More file actions
143 lines (117 loc) · 2.44 KB
/
globals.css
File metadata and controls
143 lines (117 loc) · 2.44 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
* {
box-sizing: border-box;
}
.main {
border: 2px solid aliceblue;
}
.header {
text-align: center;
padding: 15px;
}
.left-panel {
width: 55%;
float: left;
border: 1px solid aliceblue;
}
.right-panel {
border: 1px solid aliceblue;
text-align: center;
width: 45%;
float: left;
}
.footer {
width: 100%;
float: left;
text-align: center;
}
.chess-container {
/*grid: ;*/
}
.chessboard-grid {
/* Use a root-relative path so the asset can be resolved during build */
background-image: url('/board.svg');
background-repeat: no-repeat;
background-size: cover;
float: right;
height: 700px;
width: 700px;
display: inline-grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}
.chessboard-grid-cell {
float: left;
width: auto;
height: auto;
}
.chess-cell-selected {
background-color: darkolivegreen;
opacity: .5;
}
.chess-cell-piece {
cursor: grab;
background-repeat: no-repeat;
background-size: 65%;
background-position: center;
}
.chess-pawn-white {
background-image: url('../../public/WPawn.svg');
background-size: 45%;
}
.chess-pawn-black {
background-image: url('../../public/BPawn.svg');
background-size: 45%;
}
.chess-knight-white {
background-image: url('../../public/WKnight.svg');
}
.chess-knight-black {
background-image: url('../../public/BKnight.svg');
}
.chess-bishop-white {
background-image: url('../../public/WBishop.svg');
}
.chess-bishop-black {
background-image: url('../../public/BBishop.svg');
}
.chess-rock-white {
background-size: 55%;
background-image: url('../../public/WRock.svg');
}
.chess-rock-black {
background-size: 55%;
background-image: url('../../public/BRock.svg');
}
.chess-queen-white {
background-image: url('../../public/WQueen.svg');
}
.chess-queen-black {
background-image: url('../../public/BQueen.svg');
}
.chess-king-white {
background-image: url('../../public/WKing.svg');
}
.chess-king-black {
background-image: url('../../public/BKing.svg');
}
.promotion-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
}
.promotion-content {
background: white;
padding: 20px;
display: flex;
gap: 10px;
}
.promotion-option {
padding: 10px 15px;
cursor: pointer;
}