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