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-check {
239 display: inline-block
;
253 text-decoration: none
;
256 /* Game link div + custom game "button" */
257 #gameLink span
, #gameLink a
, #footer a
{
259 border-bottom: 1px dotted darkgrey
;
272 /* Board container (without reserves) */
278 /* Board container can be resized */
290 background-size: cover
;
292 will-change: transform
;
293 pointer-events: none
;
300 /* Drawing of the board */
313 filter: brightness
(50%);
328 /* Pieces' counter for reserves */
337 /* Choices div after a promotion (TODO: do not hide board) */
344 /* https://moderncss.dev/custom-select-styles-with-pure-css/ */
346 --select-border: #777;
347 --select-focus: #b11adc;
348 --select-arrow: var
(--select-border
);
353 background-color: transparent
;
358 font-family: inherit
;
361 line-height: inherit
;
368 grid-template-areas: "select";
373 border: 1px solid var
(--select-border
);
374 border-radius: 0.25em;
375 padding: 0.25em 0.5em;
379 background-color: #fff;
380 background-image: linear-gradient
(to top
, #f9f9f9, #fff 33%);
385 select
, .select::after
{
394 background-color: var
(--select-arrow
);
395 clip-path: polygon
(100% 0%, 0 0%, 50% 100%);
398 select:focus
+ .focus
{
404 border: 2px solid var
(--select-focus
);
405 border-radius: inherit
;
409 /* https://auralinna.blog/post/2018/how-to-create-material-design-like-form-text-fields/ */
414 .form-field--is-active .form-field__control::after {
415 border-bottom: 2px solid
#b11adc;
416 transform: scaleX
(150);
418 .form-field--is-active .form-field__label {
421 transform: translateY
(-14px);
423 .form-field--is-filled .form-field__label {
425 transform: translateY
(-14px);
433 padding: 18px 12px 0;
436 transition: all
0.4s;
439 .form-field__control {
441 border-radius: 8px 8px 0 0;
446 .form-field__control::after {
447 border-bottom: 2px solid
#b11adc;
455 transform: scaleX
(0);
456 transition: all
0.4s;
461 background: transparent
;
463 border-bottom: 1px solid
#999;
469 padding: 0 12px 10px 12px;
474 /* https://dev.to/kallmanation/styling-a-checkbox-with-only-css-3o3p */
475 label
.checkbox
> input
[type
="checkbox"] {
478 label
.checkbox
> input
[type
="checkbox"] + *::before
{
480 display: inline-block
;
481 vertical-align: bottom
;
487 border-width: 0.1rem;
491 label
.checkbox
> input
[type
="checkbox"]:checked
+ *::before
{
500 label
.checkbox
> input
[type
="checkbox"]:checked
+ * {
507 label
.checkbox
> span
.spacer
{
513 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
515 --loader-width: 70px;
516 --loader-height: 70px;
517 --loader-color-primary: #01786F;
518 --loader-color-secondary: #EEE;
520 --animation-duration: 3s;
521 --loader-initial-scale: 0.1;
523 .loader,.loader:before,.loader:after{
524 box-sizing: border-box
;
531 transform: translateY
(0%);
534 transform: translateY
(100%);
537 transform: translateY
(100%);
540 transform: translateY
(0%);
543 transform: translateY
(0%);
549 transform: rotate
(0deg);
552 transform: rotate
(0deg);
555 transform: rotate
(180deg);
558 transform: rotate
(180deg);
561 transform: rotate
(360deg);
567 width: var
(--loader-width
, 100px);
568 height: var
(--loader-height
, 100px);
569 background-color: var
(--loader-color-primary
, #00f);
570 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
571 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
573 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
582 width: var
(--loader-width
, 100px);
584 background-color: var
(--loader-color-secondary
, #eee);
585 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;