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
{
120 #gameInfos > .rules
> a
{
122 border-bottom: 1px dotted black
;
129 /* "Sticky footer" */
139 @media(max-height: 399px) {
154 display: inline-block
;
155 transform: translateY
(3px);
159 background-color: #757575;
164 text-decoration: none
;
165 display: inline-block
;
172 button:hover
, button
.block-btn:hover
{
173 background-color: #b11adc;
178 background-color: #01786F;
179 margin: 0 auto
30px auto
; /*TODO: margin-bottom 20px ? */
184 button
.cancel-something
{
185 background-color: darkred
;
199 left: calc
(100% - 25px);
202 #upLeftInfos > svg
, #upRightStop
> svg
{
207 @media(max-width: 767px) {
209 left: calc
(100% - 35px);
211 #upLeftInfos > svg
, #upRightStop
> svg
{
214 #upLeftInfos > svg path
, #upRightStop
> svg path
{
223 /* Options when starting custom game */
234 display: inline-block
;
238 background-color: lightblue
;
245 .option-select, .option-input {
250 display: inline-block
;
254 .option-input input[type=number] {
268 text-decoration: none
;
271 /* Game link div + custom game "button" */
272 #gameLink span
, #gameLink a
, #footer a
{
274 border-bottom: 1px dotted darkgrey
;
287 /* Board container (without reserves) */
299 background-size: cover
;
301 will-change: transform
;
302 pointer-events: none
;
309 /* Drawing of the board */
315 /* Default squares colors (can be overriden or unused) */
324 filter: brightness
(50%);
339 /* Pieces' counter for reserves */
348 /* Choices div after a promotion (TODO: do not hide board) */
355 /* https://moderncss.dev/custom-select-styles-with-pure-css/ */
357 --select-border: #777;
358 --select-focus: #b11adc;
359 --select-arrow: var
(--select-border
);
364 background-color: transparent
;
369 font-family: inherit
;
372 line-height: inherit
;
379 grid-template-areas: "select";
384 border: 1px solid var
(--select-border
);
385 border-radius: 0.25em;
386 padding: 0.25em 0.5em;
390 background-color: #fff;
391 background-image: linear-gradient
(to top
, #f9f9f9, #fff 33%);
396 select
, .select::after
{
405 background-color: var
(--select-arrow
);
406 clip-path: polygon
(100% 0%, 0 0%, 50% 100%);
409 select:focus
+ .focus
{
415 border: 2px solid var
(--select-focus
);
416 border-radius: inherit
;
420 /* https://auralinna.blog/post/2018/how-to-create-material-design-like-form-text-fields/ */
425 .form-field--is-active .form-field__control::after {
426 border-bottom: 2px solid
#b11adc;
427 transform: scaleX
(150);
429 .form-field--is-active .form-field__label {
432 transform: translateY
(-14px);
434 .form-field--is-filled .form-field__label {
436 transform: translateY
(-14px);
444 padding: 18px 12px 0;
447 transition: all
0.4s;
450 .form-field__control {
452 border-radius: 8px 8px 0 0;
457 .form-field__control::after {
458 border-bottom: 2px solid
#b11adc;
466 transform: scaleX
(0);
467 transition: all
0.4s;
472 background: transparent
;
474 border-bottom: 1px solid
#999;
480 padding: 0 12px 10px 12px;
485 /* https://dev.to/kallmanation/styling-a-checkbox-with-only-css-3o3p */
486 label
.checkbox
> input
[type
="checkbox"] {
489 label
.checkbox
> input
[type
="checkbox"] + *::before
{
491 display: inline-block
;
492 vertical-align: bottom
;
498 border-width: 0.1rem;
502 label
.checkbox
> input
[type
="checkbox"]:checked
+ *::before
{
511 label
.checkbox
> input
[type
="checkbox"]:checked
+ * {
518 label
.checkbox
> span
.spacer
{
524 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
526 --loader-width: 70px;
527 --loader-height: 70px;
528 --loader-color-primary: #01786F;
529 --loader-color-secondary: #EEE;
531 --animation-duration: 3s;
532 --loader-initial-scale: 0.1;
534 .loader,.loader:before,.loader:after{
535 box-sizing: border-box
;
542 transform: translateY
(0%);
545 transform: translateY
(100%);
548 transform: translateY
(100%);
551 transform: translateY
(0%);
554 transform: translateY
(0%);
560 transform: rotate
(0deg);
563 transform: rotate
(0deg);
566 transform: rotate
(180deg);
569 transform: rotate
(180deg);
572 transform: rotate
(360deg);
578 width: var
(--loader-width
, 100px);
579 height: var
(--loader-height
, 100px);
580 background-color: var
(--loader-color-primary
, #00f);
581 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
582 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
584 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
593 width: var
(--loader-width
, 100px);
595 background-color: var
(--loader-color-secondary
, #eee);
596 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;