ecb1bc9c05b21f6f84d1913a806feddf2ec877c6
[vchess.git] / public / stylesheets / variant.sass
1 // Menu:
2
3 #menuBar
4 background: linear-gradient(#e66465, #9198e5)
5 height: 29px
6 margin-bottom: 10px
7 @media screen and (max-width: 767px)
8 height: 100%
9 margin-bottom: 0
10 @media screen and (min-width: 768px)
11 width: 100%
12 overflow: hidden
13
14 a#homeLink
15 margin-left: 10px
16 margin-top: 2px
17 color: black
18 display: inline-block
19 @media screen and (max-width: 767px)
20 display: block
21 margin: 5px 0 0 12px
22
23 .info-container
24 display: inline-block
25 vertical-align: top
26 padding: 0
27 box-sizing: border-box
28 a
29 text-decoration: none
30 color: black
31 a, p
32 display: inline-block
33 padding: 0 3px
34 border: 1px solid black;
35 margin: 1px 0 0 15px
36 @media screen and (max-width: 767px)
37 margin-top: 10px
38 display: block
39
40 #helpMenu
41 @media screen and (min-width: 768px)
42 float: right
43 .info-container
44 p
45 padding: 0 3px
46 margin: 1px 0 0 15px
47
48 #flagMenu
49 @media screen and (min-width: 768px)
50 margin-top: 1px
51 float: right
52 margin: 0 15px
53 @media screen and (max-width: 767px)
54 margin: 25px 5px 0 15px
55 img
56 display: inline-block
57 margin: 0
58 height: 25px
59
60 label.drawer-toggle
61 padding: 0
62 &::before
63 font-size: 2em;
64 max-height: 32px;
65 top: -7px;
66 left: 5px
67
68 // Game section:
69
70 button.play
71 height: 24px
72 margin: 0
73 padding: 0 10px 24px 10px
74 box-sizing: border-box
75 border: 1px solid brown
76 button.play.spaceleft
77 margin-left: 15px
78 button.play.spaceright
79 margin-right: 15px
80
81 .aboveboard-wrapper
82 width: 80vh
83 margin: 0 auto
84 @media screen and (max-width: 767px)
85 width: 100%
86 margin: 0
87
88 button.above-board
89 margin-left: 15px
90 margin-right: 15px
91
92 i.material-icons
93 font-size: 24px
94
95 .indic-left
96 border: 1px solid brown
97 float: left
98 margin: 0 0 var(--universal-margin) 10vh
99 @media screen and (max-width: 767px)
100 margin-left: 20px
101
102 .indic-right
103 border: 1px solid brown
104 float: right
105 margin: 0 10vh var(--universal-margin) 0
106 @media screen and (max-width: 767px)
107 margin-right: 20px
108
109 .my-chatmsg
110 color: black
111
112 .opp-chatmsg
113 color: blue
114
115 // TODO: this fix is not good (button height 0 if chat overflow window height)
116 #sendChatBtn
117 min-height: 42px
118
119 .connected
120 background-color: green
121
122 .disconnected
123 background-color: red
124
125 .white-turn
126 background-color: white
127
128 .black-turn
129 background-color: black
130
131 button.playing
132 background-color: #ffcc99
133 &:hover
134 background-color: #ffcc99
135
136 button.seek
137 background-color: #cc99ff
138 &:hover
139 background-color: #cc99ff
140
141 .game.reserve-div
142 margin-bottom: 18px
143
144 .reserve-count
145 padding-left: 40%
146
147 .reserve-row-1
148 margin-bottom: 15px
149
150 div.board
151 float: left
152 height: 0
153 display: inline-block
154 position: relative
155
156 div.board8
157 width: 12.5%
158 padding-bottom: 12.5%
159
160 div.board8-reserve
161 width: 10%
162 padding-bottom: 10%
163
164 div.board10
165 width: 10%
166 padding-bottom: 10%
167
168 div.board11
169 width: 9.09%
170 padding-bottom: 9.1%
171
172 // NOTE: no variants with reserve of size != 8
173
174 .game
175 width: 80vh
176 margin: 0 auto
177 .board
178 cursor: pointer
179 @media screen and (max-width: 767px)
180 width: 100%
181 margin: 0
182
183 #choices
184 margin: 0 auto 0 auto
185 position: relative
186 z-index: 300
187 overflow-y: inherit
188 background-color: rgba(0,0,0,0)
189 img
190 cursor: pointer
191 background-color: #e6ee9c
192 &:hover
193 background-color: skyblue
194 .choice-piece
195 width: 90%
196 max-width: 100%
197 height: auto
198 display: block
199
200 img.piece
201 width: 100%
202
203 img.piece, img.mark-square
204 max-width: 100%
205 height: auto
206 display: block
207
208 img.mark-square
209 opacity: 0.6
210 width: 76%
211 position: absolute
212 top: 12%
213 left: 12%
214 opacity: .7
215
216 img.ghost
217 position: absolute
218 opacity: 0.4
219 top: 0
220
221 .highlight
222 background-color: #00cc66 !important
223
224 .incheck
225 background-color: #cc3300 !important
226
227 .light-square.lichess
228 background-color: #f0d9b5;
229 .dark-square.lichess
230 background-color: #b58863;
231
232 .light-square.chesscom
233 background-color: #e5e5ca;
234 .dark-square.chesscom
235 background-color: #6f8f57;
236
237 .light-square.chesstempo
238 background-color: #fdfdfd;
239 .dark-square.chesstempo
240 background-color: #88a0a8;
241
242 .light-square-diag
243 background-color: #e5e5ca
244 .dark-square-diag
245 background-color: #6f8f57
246
247 #fen-string
248 margin-top: 0
249
250 #pgn-game
251 margin-top: 0
252 margin-bottom: 0
253
254 #downloadBtn
255 display: block
256 margin-left: auto
257 margin-right: auto
258
259 #pgn-div > a
260 display: none
261
262 #fen-div > p
263 margin-left: 0
264 margin-right: 0
265
266 #modal-eog+div .card
267 overflow: hidden
268
269 #actions
270 margin: 10px 0
271
272 // Rules section:
273
274 .warn
275 padding: 3px
276 color: red
277 background-color: lightgrey
278 font-weight: bold
279
280 figure.diagram-container
281 margin: 15px 0 15px 0
282 text-align: center
283 width: 100%
284 display: block
285 .diagram
286 display: block
287 width: 40%
288 min-width: 240px
289 max-width: 800px
290 margin-left: auto
291 margin-right: auto
292 .diag12
293 float: left
294 margin-left: calc(10% - 20px)
295 margin-right: 40px
296 @media screen and (max-width: 500px)
297 float: none
298 margin: 0 auto 10px auto
299 .diag22
300 float: left
301 margin-right: calc(10% - 20px)
302 @media screen and (max-width: 500px)
303 float: none
304 margin: 0 auto
305 figcaption
306 display: block
307 clear: both
308 padding-top: 5px
309
310 p.boxed
311 background-color: #FFCC66
312 padding: 5px
313
314 .stageDelimiter
315 color: purple
316
317 // To show (new) pieces, and/or there values...
318 figure.showPieces > img
319 width: 50px
320
321 figure.showPieces > figcaption
322 color: #6C6C6C
323
324 .section-title
325 padding: 0
326
327 .section-title > h4
328 padding: 5px
329
330 ol, ul:not(.browser-default)
331 padding-left: 20px
332
333 ul:not(.browser-default)
334 margin-top: 5px
335
336 ul:not(.browser-default) > li
337 list-style-type: disc
338
339 // Problems section:
340
341 .newproblem-form input, .newproblem-form textarea
342 width: 100%
343
344 .emphasis
345 font-style: italic
346
347 #newpbInstructions
348 margin-bottom: var(--universal-margin);
349
350 .center-btn
351 margin-left: 40%
352
353 //TODO?
354 .center-inline
355 text-align: center
356 .center-block
357 margin-left: auto
358 margin-right: auto
359
360 .mistake-newproblem
361 color: #663300
362
363 #problem-solution
364 display: none
365
366 #solution-div h3
367 background-color: lightgrey
368 padding: 3px 5px
369
370 .newproblem-form, .newproblem-preview
371 max-width: 90%
372
373 #problemControls
374 width: 75%
375 margin: 0 auto
376 @media screen and (max-width: 767px)
377 width: 100%
378 margin: 0
379
380 .problem
381 margin: 10px 0