e35995581130e35dd62d717f543578e7ed246970
5 box-sizing: border-box
;
11 vertical-align: baseline
;
21 background-color: #f8f8f8;
22 font-family: Arial
, Verdana
, Tahoma
, sans-serif
;
23 /* https://stackoverflow.com/a/24392249/12660887 */
29 flex-direction: column
;
30 justify-content: center
;
40 max-width: 800px; /*useful for rules display only*/
43 @media(max-height: 800px) {
49 @media(max-width: 767px) {
96 #gameInfos > .players-info
{
100 #gameInfos > .options-info
{
110 #gameInfos > .rules
{
114 #gameInfos > .rules
> p
,
115 #gameInfos > .rules
> ul
,
116 #gameInfos > .rules
> ol
{
124 /* "Sticky footer" */
143 display: inline-block
;
144 transform: translateY
(3px);
148 background-color: #757575;
153 text-decoration: none
;
154 display: inline-block
;
161 button:hover
, button
.block-btn:hover
{
162 background-color: #b11adc;
167 background-color: #01786F;
168 margin: 0 auto
30px auto
; /*TODO: margin-bottom 20px ? */
173 button
.cancel-something
{
174 background-color: darkred
;
188 left: calc
(100% - 25px);
191 #upLeftInfos > svg
, #upRightStop
> svg
{
196 @media(max-width: 767px) {
198 left: calc
(100% - 35px);
200 #upLeftInfos > svg
, #upRightStop
> svg
{
203 #upLeftInfos > svg path
, #upRightStop
> svg path
{
212 /* Options when starting custom game */
223 display: inline-block
;
227 background-color: lightblue
;
234 .option-select, .option-input {
239 display: inline-block
;
243 .option-input input[type=number] {
257 text-decoration: none
;
260 /* Game link div + custom game "button" */
261 #gameLink span
, #gameLink a
, #footer a
{
263 border-bottom: 1px dotted darkgrey
;
276 /* Board container (without reserves) */
282 /* Board container can be resized */
294 background-size: cover
;
296 will-change: transform
;
297 pointer-events: none
;
304 /* Drawing of the board */
310 /* Default squares colors (can be overriden or unused) */
319 filter: brightness
(50%);
334 /* Pieces' counter for reserves */
343 /* Choices div after a promotion (TODO: do not hide board) */
350 /* https://moderncss.dev/custom-select-styles-with-pure-css/ */
352 --select-border: #777;
353 --select-focus: #b11adc;
354 --select-arrow: var
(--select-border
);
359 background-color: transparent
;
364 font-family: inherit
;
367 line-height: inherit
;
374 grid-template-areas: "select";
379 border: 1px solid var
(--select-border
);
380 border-radius: 0.25em;
381 padding: 0.25em 0.5em;
385 background-color: #fff;
386 background-image: linear-gradient
(to top
, #f9f9f9, #fff 33%);
391 select
, .select::after
{
400 background-color: var
(--select-arrow
);
401 clip-path: polygon
(100% 0%, 0 0%, 50% 100%);
404 select:focus
+ .focus
{
410 border: 2px solid var
(--select-focus
);
411 border-radius: inherit
;
415 /* https://auralinna.blog/post/2018/how-to-create-material-design-like-form-text-fields/ */
420 .form-field--is-active .form-field__control::after {
421 border-bottom: 2px solid
#b11adc;
422 transform: scaleX
(150);
424 .form-field--is-active .form-field__label {
427 transform: translateY
(-14px);
429 .form-field--is-filled .form-field__label {
431 transform: translateY
(-14px);
439 padding: 18px 12px 0;
442 transition: all
0.4s;
445 .form-field__control {
447 border-radius: 8px 8px 0 0;
452 .form-field__control::after {
453 border-bottom: 2px solid
#b11adc;
461 transform: scaleX
(0);
462 transition: all
0.4s;
467 background: transparent
;
469 border-bottom: 1px solid
#999;
475 padding: 0 12px 10px 12px;
480 /* https://dev.to/kallmanation/styling-a-checkbox-with-only-css-3o3p */
481 label
.checkbox
> input
[type
="checkbox"] {
484 label
.checkbox
> input
[type
="checkbox"] + *::before
{
486 display: inline-block
;
487 vertical-align: bottom
;
493 border-width: 0.1rem;
497 label
.checkbox
> input
[type
="checkbox"]:checked
+ *::before
{
506 label
.checkbox
> input
[type
="checkbox"]:checked
+ * {
513 label
.checkbox
> span
.spacer
{
519 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
521 --loader-width: 70px;
522 --loader-height: 70px;
523 --loader-color-primary: #01786F;
524 --loader-color-secondary: #EEE;
526 --animation-duration: 3s;
527 --loader-initial-scale: 0.1;
529 .loader,.loader:before,.loader:after{
530 box-sizing: border-box
;
537 transform: translateY
(0%);
540 transform: translateY
(100%);
543 transform: translateY
(100%);
546 transform: translateY
(0%);
549 transform: translateY
(0%);
555 transform: rotate
(0deg);
558 transform: rotate
(0deg);
561 transform: rotate
(180deg);
564 transform: rotate
(180deg);
567 transform: rotate
(360deg);
573 width: var
(--loader-width
, 100px);
574 height: var
(--loader-height
, 100px);
575 background-color: var
(--loader-color-primary
, #00f);
576 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
577 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
579 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
588 width: var
(--loader-width
, 100px);
590 background-color: var
(--loader-color-secondary
, #eee);
591 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;