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;*/ /*unnecessary*/
37 @media (max-height: 800px) {
70 #gameInfos > .players-info
{
74 #gameInfos > .options-info
{
88 #gameInfos > .rules
> p
,
89 #gameInfos > .rules
> ul
,
90 #gameInfos > .rules
> ol
{
117 display: inline-block
;
118 transform: translateY
(3px);
122 background-color: #757575;
127 text-decoration: none
;
128 display: inline-block
;
135 button:hover
, button
.block-btn:hover
{
136 background-color: #b11adc;
141 background-color: #01786F;
142 margin: 0 auto
20px auto
;
155 left: calc
(100% - 25px);
158 #upLeftInfos > img
, #upRightStop
> img
{
163 @media (max-width: 767px) {
165 left: calc
(100% - 35px);
167 #upLeftInfos > img
, #upRightStop
> img
{
176 /* Options when starting custom game */
186 display: inline-block
;
190 background-color: lightblue
;
197 .option-select, .option-check {
211 text-decoration: none
;
214 /* Game link div + custom game "button" */
215 #gameLink span
, #gameLink a
, #footer a
{
217 border-bottom: 1px dotted darkgrey
;
230 /* Board container (without reserves) */
236 /* Board container can be resized */
248 background-size: cover
;
250 will-change: transform
;
251 pointer-events: none
;
254 /* Drawing of the board */
267 filter: brightness
(50%);
282 /* Pieces' counter for reserves */
291 /* Choices div after a promotion (TODO: do not hide board) */
298 /* https://moderncss.dev/custom-select-styles-with-pure-css/ */
300 --select-border: #777;
301 --select-focus: #b11adc;
302 --select-arrow: var
(--select-border
);
307 background-color: transparent
;
312 font-family: inherit
;
315 line-height: inherit
;
322 grid-template-areas: "select";
327 border: 1px solid var
(--select-border
);
328 border-radius: 0.25em;
329 padding: 0.25em 0.5em;
333 background-color: #fff;
334 background-image: linear-gradient
(to top
, #f9f9f9, #fff 33%);
339 select
, .select::after
{
348 background-color: var
(--select-arrow
);
349 clip-path: polygon
(100% 0%, 0 0%, 50% 100%);
352 select:focus
+ .focus
{
358 border: 2px solid var
(--select-focus
);
359 border-radius: inherit
;
363 /* https://auralinna.blog/post/2018/how-to-create-material-design-like-form-text-fields/ */
368 .form-field--is-active .form-field__control::after {
369 border-bottom: 2px solid
#b11adc;
370 transform: scaleX
(150);
372 .form-field--is-active .form-field__label {
375 transform: translateY
(-14px);
377 .form-field--is-filled .form-field__label {
379 transform: translateY
(-14px);
387 padding: 18px 12px 0;
390 transition: all
0.4s;
393 .form-field__control {
395 border-radius: 8px 8px 0 0;
400 .form-field__control::after {
401 border-bottom: 2px solid
#b11adc;
409 transform: scaleX
(0);
410 transition: all
0.4s;
415 background: transparent
;
417 border-bottom: 1px solid
#999;
423 padding: 0 12px 10px 12px;
428 /* https://dev.to/kallmanation/styling-a-checkbox-with-only-css-3o3p */
429 label
.checkbox
> input
[type
="checkbox"] {
432 label
.checkbox
> input
[type
="checkbox"] + *::before
{
434 display: inline-block
;
435 vertical-align: bottom
;
441 border-width: 0.1rem;
445 label
.checkbox
> input
[type
="checkbox"]:checked
+ *::before
{
454 label
.checkbox
> input
[type
="checkbox"]:checked
+ * {
461 label
.checkbox
> span
.spacer
{
467 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
469 --loader-width: 70px;
470 --loader-height: 70px;
471 --loader-color-primary: #01786F;
472 --loader-color-secondary: #EEE;
474 --animation-duration: 3s;
475 --loader-initial-scale: 0.1;
477 .loader,.loader:before,.loader:after{
478 box-sizing: border-box
;
485 transform: translateY
(0%);
488 transform: translateY
(100%);
491 transform: translateY
(100%);
494 transform: translateY
(0%);
497 transform: translateY
(0%);
503 transform: rotate
(0deg);
506 transform: rotate
(0deg);
509 transform: rotate
(180deg);
512 transform: rotate
(180deg);
515 transform: rotate
(360deg);
521 width: var
(--loader-width
, 100px);
522 height: var
(--loader-height
, 100px);
523 background-color: var
(--loader-color-primary
, #00f);
524 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
525 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
527 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
536 width: var
(--loader-width
, 100px);
538 background-color: var
(--loader-color-secondary
, #eee);
539 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;