8159d76a4048f5e91adba573c03a618a625e6fd3
5 box-sizing: border-box
;
11 vertical-align: baseline
;
16 /*text-align: center;*/
17 background-color: #f8f8f8;
18 font-family: Arial
, Verdana
, Tahoma
, sans-serif
;
23 flex-direction: column
;
24 justify-content: center
;
34 max-width: 800px; /*useful for rules display only*/
37 @media(max-height: 800px) {
43 @media(max-width: 767px) {
76 #gameInfos > .players-info
{
80 #gameInfos > .options-info
{
94 #gameInfos > .rules
> p
,
95 #gameInfos > .rules
> ul
,
96 #gameInfos > .rules
> ol
{
104 /* "Sticky footer" */
123 display: inline-block
;
124 transform: translateY
(3px);
128 background-color: #757575;
133 text-decoration: none
;
134 display: inline-block
;
141 button:hover
, button
.block-btn:hover
{
142 background-color: #b11adc;
147 background-color: #01786F;
148 margin: 0 auto
20px auto
;
161 left: calc
(100% - 25px);
164 #upLeftInfos > svg
, #upRightStop
> svg
{
169 @media(max-width: 767px) {
171 left: calc
(100% - 35px);
173 #upLeftInfos > svg
, #upRightStop
> svg
{
176 #upLeftInfos > svg path
, #upRightStop
> svg path
{
185 /* Options when starting custom game */
195 display: inline-block
;
199 background-color: lightblue
;
206 .option-select, .option-check {
220 text-decoration: none
;
223 /* Game link div + custom game "button" */
224 #gameLink span
, #gameLink a
, #footer a
{
226 border-bottom: 1px dotted darkgrey
;
239 /* Board container (without reserves) */
245 /* Board container can be resized */
257 background-size: cover
;
259 will-change: transform
;
260 pointer-events: none
;
263 /* Drawing of the board */
276 filter: brightness
(50%);
291 /* Pieces' counter for reserves */
300 /* Choices div after a promotion (TODO: do not hide board) */
307 /* https://moderncss.dev/custom-select-styles-with-pure-css/ */
309 --select-border: #777;
310 --select-focus: #b11adc;
311 --select-arrow: var
(--select-border
);
316 background-color: transparent
;
321 font-family: inherit
;
324 line-height: inherit
;
331 grid-template-areas: "select";
336 border: 1px solid var
(--select-border
);
337 border-radius: 0.25em;
338 padding: 0.25em 0.5em;
342 background-color: #fff;
343 background-image: linear-gradient
(to top
, #f9f9f9, #fff 33%);
348 select
, .select::after
{
357 background-color: var
(--select-arrow
);
358 clip-path: polygon
(100% 0%, 0 0%, 50% 100%);
361 select:focus
+ .focus
{
367 border: 2px solid var
(--select-focus
);
368 border-radius: inherit
;
372 /* https://auralinna.blog/post/2018/how-to-create-material-design-like-form-text-fields/ */
377 .form-field--is-active .form-field__control::after {
378 border-bottom: 2px solid
#b11adc;
379 transform: scaleX
(150);
381 .form-field--is-active .form-field__label {
384 transform: translateY
(-14px);
386 .form-field--is-filled .form-field__label {
388 transform: translateY
(-14px);
396 padding: 18px 12px 0;
399 transition: all
0.4s;
402 .form-field__control {
404 border-radius: 8px 8px 0 0;
409 .form-field__control::after {
410 border-bottom: 2px solid
#b11adc;
418 transform: scaleX
(0);
419 transition: all
0.4s;
424 background: transparent
;
426 border-bottom: 1px solid
#999;
432 padding: 0 12px 10px 12px;
437 /* https://dev.to/kallmanation/styling-a-checkbox-with-only-css-3o3p */
438 label
.checkbox
> input
[type
="checkbox"] {
441 label
.checkbox
> input
[type
="checkbox"] + *::before
{
443 display: inline-block
;
444 vertical-align: bottom
;
450 border-width: 0.1rem;
454 label
.checkbox
> input
[type
="checkbox"]:checked
+ *::before
{
463 label
.checkbox
> input
[type
="checkbox"]:checked
+ * {
470 label
.checkbox
> span
.spacer
{
476 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
478 --loader-width: 70px;
479 --loader-height: 70px;
480 --loader-color-primary: #01786F;
481 --loader-color-secondary: #EEE;
483 --animation-duration: 3s;
484 --loader-initial-scale: 0.1;
486 .loader,.loader:before,.loader:after{
487 box-sizing: border-box
;
494 transform: translateY
(0%);
497 transform: translateY
(100%);
500 transform: translateY
(100%);
503 transform: translateY
(0%);
506 transform: translateY
(0%);
512 transform: rotate
(0deg);
515 transform: rotate
(0deg);
518 transform: rotate
(180deg);
521 transform: rotate
(180deg);
524 transform: rotate
(360deg);
530 width: var
(--loader-width
, 100px);
531 height: var
(--loader-height
, 100px);
532 background-color: var
(--loader-color-primary
, #00f);
533 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
534 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
536 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
545 width: var
(--loader-width
, 100px);
547 background-color: var
(--loader-color-secondary
, #eee);
548 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;