5 box-sizing: border-box
;
11 vertical-align: baseline
;
20 background-color: #f8f8f8;
21 font-family: Arial
, Verdana
, Tahoma
, sans-serif
;
22 /* https://stackoverflow.com/a/24392249/12660887 */
27 flex-direction: column
;
28 justify-content: center
;
49 text-decoration: none
;
55 background-color: #757575;
60 text-decoration: none
;
61 display: inline-block
;
67 button:hover
, button
.block-btn:hover
{
68 background-color: #b11adc;
72 background-color: #01786F;
73 margin: 0 auto
30px auto
; /*TODO: margin-bottom 20px ? */
77 button
.cancel-something
{
78 background-color: darkred
;
93 @media(max-height: 399px) {
106 display: inline-block
;
107 transform: translateY
(3px);
118 @media(max-height: 800px) {
119 #newGameForm, #gameInfos
{
123 @media(max-width: 767px) {
140 #gameInfos > .players-info
{
143 #gameInfos > .options-info
{
151 #gameInfos > .rules
{
154 #gameInfos > .rules p
,
155 #gameInfos > .rules ul
,
156 #gameInfos > .rules ol
{
159 #gameInfos > .rules ul
{
160 list-style-type: square
;
163 #gameInfos > .rules ol
{
164 list-style-type: numeric
;
167 #gameInfos > .rules a
{
169 border-bottom: 1px dotted black
;
171 #gameInfos > .rules
.author
{
176 /* Complete rules (separate page) */
182 .full-rules h1, .full-rules h2, .full-rules h3, .full-rules h4 {
188 margin: 10px 0 20px 0;
207 background-image: url
('/pieces/mark.svg');
209 piece
.mark
.transparent
{
217 .full-rules figure::after {
233 .full-rules figcaption {
241 /* TODO: use same CSS for rules and full-rules? */
242 .full-rules p, .full-rules ul, .full-rules ol {
246 list-style-type: square
;
250 list-style-type: numeric
;
257 /* Options when starting custom game */
268 display: inline-block
;
272 background-color: lightblue
;
277 .option-select, .option-input {
281 display: inline-block
;
284 .option-input input[type=number] {
295 /* Game link div + custom game "button" */
296 #gameLink span
, #gameLink a
, #footer a
{
298 border-bottom: 1px dotted darkgrey
;
309 /* Board container (with reserves) */
327 left: calc
(100% - 25px);
330 #upLeftInfos > svg
, #upRightStop
> svg
{
334 @media(max-width: 767px) {
336 left: calc
(100% - 35px);
338 #upLeftInfos > svg
, #upRightStop
> svg
{
341 #upLeftInfos > svg path
, #upRightStop
> svg path
{
345 /* Playing board (without reserves) */
356 background-size: cover
;
358 will-change: transform
;
359 pointer-events: none
;
364 /* Drawing of the board */
369 /* Default squares colors (can be overriden or unused) */
377 filter: brightness
(50%);
389 /* Pieces' counter for reserves */
396 /* Choices div after a promotion */
402 /* https://moderncss.dev/custom-select-styles-with-pure-css/ */
404 --select-border: #777;
405 --select-focus: #b11adc;
406 --select-arrow: var
(--select-border
);
410 background-color: transparent
;
415 font-family: inherit
;
418 line-height: inherit
;
424 grid-template-areas: "select";
429 border: 1px solid var
(--select-border
);
430 border-radius: 0.25em;
431 padding: 0.25em 0.5em;
435 background-color: #fff;
436 background-image: linear-gradient
(to top
, #f9f9f9, #fff 33%);
440 select
, .select::after
{
448 background-color: var
(--select-arrow
);
449 clip-path: polygon
(100% 0%, 0 0%, 50% 100%);
451 select:focus
+ .focus
{
457 border: 2px solid var
(--select-focus
);
458 border-radius: inherit
;
461 /* https://auralinna.blog/post/2018/how-to-create-material-design-like-form-text-fields/ */
466 .form-field--is-active .form-field__control::after {
467 border-bottom: 2px solid
#b11adc;
468 transform: scaleX
(150);
470 .form-field--is-active .form-field__label {
473 transform: translateY
(-14px);
475 .form-field--is-filled .form-field__label {
477 transform: translateY
(-14px);
485 padding: 18px 12px 0;
488 transition: all
0.4s;
491 .form-field__control {
493 border-radius: 8px 8px 0 0;
498 .form-field__control::after {
499 border-bottom: 2px solid
#b11adc;
507 transform: scaleX
(0);
508 transition: all
0.4s;
513 background: transparent
;
515 border-bottom: 1px solid
#999;
521 padding: 0 12px 10px 12px;
525 /* https://dev.to/kallmanation/styling-a-checkbox-with-only-css-3o3p */
526 label
.checkbox
> input
[type
="checkbox"] {
529 label
.checkbox
> input
[type
="checkbox"] + *::before
{
531 display: inline-block
;
532 vertical-align: bottom
;
538 border-width: 0.1rem;
541 label
.checkbox
> input
[type
="checkbox"]:checked
+ *::before
{
550 label
.checkbox
> input
[type
="checkbox"]:checked
+ * {
553 label
.checkbox
> span
.spacer
{
558 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
560 --loader-width: 70px;
561 --loader-height: 70px;
562 --loader-color-primary: #01786F;
563 --loader-color-secondary: #EEE;
565 --animation-duration: 3s;
566 --loader-initial-scale: 0.1;
568 .loader,.loader:before,.loader:after{
569 box-sizing: border-box
;
575 transform: translateY
(0%);
578 transform: translateY
(100%);
581 transform: translateY
(100%);
584 transform: translateY
(0%);
587 transform: translateY
(0%);
592 transform: rotate
(0deg);
595 transform: rotate
(0deg);
598 transform: rotate
(180deg);
601 transform: rotate
(180deg);
604 transform: rotate
(360deg);
609 width: var
(--loader-width
, 100px);
610 height: var
(--loader-height
, 100px);
611 background-color: var
(--loader-color-primary
, #00f);
612 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
613 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
615 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
623 width: var
(--loader-width
, 100px);
625 background-color: var
(--loader-color-secondary
, #eee);
626 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;