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) {
82 #gameInfos > .players-info
{
86 #gameInfos > .options-info
{
100 #gameInfos > .rules
> p
,
101 #gameInfos > .rules
> ul
,
102 #gameInfos > .rules
> ol
{
110 /* "Sticky footer" */
129 display: inline-block
;
130 transform: translateY
(3px);
134 background-color: #757575;
139 text-decoration: none
;
140 display: inline-block
;
147 button:hover
, button
.block-btn:hover
{
148 background-color: #b11adc;
153 background-color: #01786F;
154 margin: 0 auto
20px auto
;
167 left: calc
(100% - 25px);
170 #upLeftInfos > svg
, #upRightStop
> svg
{
175 @media(max-width: 767px) {
177 left: calc
(100% - 35px);
179 #upLeftInfos > svg
, #upRightStop
> svg
{
182 #upLeftInfos > svg path
, #upRightStop
> svg path
{
191 /* Options when starting custom game */
201 display: inline-block
;
205 background-color: lightblue
;
212 .option-select, .option-check {
226 text-decoration: none
;
229 /* Game link div + custom game "button" */
230 #gameLink span
, #gameLink a
, #footer a
{
232 border-bottom: 1px dotted darkgrey
;
245 /* Board container (without reserves) */
251 /* Board container can be resized */
263 background-size: cover
;
265 will-change: transform
;
266 pointer-events: none
;
269 /* Drawing of the board */
282 filter: brightness
(50%);
297 /* Pieces' counter for reserves */
306 /* Choices div after a promotion (TODO: do not hide board) */
313 /* https://moderncss.dev/custom-select-styles-with-pure-css/ */
315 --select-border: #777;
316 --select-focus: #b11adc;
317 --select-arrow: var
(--select-border
);
322 background-color: transparent
;
327 font-family: inherit
;
330 line-height: inherit
;
337 grid-template-areas: "select";
342 border: 1px solid var
(--select-border
);
343 border-radius: 0.25em;
344 padding: 0.25em 0.5em;
348 background-color: #fff;
349 background-image: linear-gradient
(to top
, #f9f9f9, #fff 33%);
354 select
, .select::after
{
363 background-color: var
(--select-arrow
);
364 clip-path: polygon
(100% 0%, 0 0%, 50% 100%);
367 select:focus
+ .focus
{
373 border: 2px solid var
(--select-focus
);
374 border-radius: inherit
;
378 /* https://auralinna.blog/post/2018/how-to-create-material-design-like-form-text-fields/ */
383 .form-field--is-active .form-field__control::after {
384 border-bottom: 2px solid
#b11adc;
385 transform: scaleX
(150);
387 .form-field--is-active .form-field__label {
390 transform: translateY
(-14px);
392 .form-field--is-filled .form-field__label {
394 transform: translateY
(-14px);
402 padding: 18px 12px 0;
405 transition: all
0.4s;
408 .form-field__control {
410 border-radius: 8px 8px 0 0;
415 .form-field__control::after {
416 border-bottom: 2px solid
#b11adc;
424 transform: scaleX
(0);
425 transition: all
0.4s;
430 background: transparent
;
432 border-bottom: 1px solid
#999;
438 padding: 0 12px 10px 12px;
443 /* https://dev.to/kallmanation/styling-a-checkbox-with-only-css-3o3p */
444 label
.checkbox
> input
[type
="checkbox"] {
447 label
.checkbox
> input
[type
="checkbox"] + *::before
{
449 display: inline-block
;
450 vertical-align: bottom
;
456 border-width: 0.1rem;
460 label
.checkbox
> input
[type
="checkbox"]:checked
+ *::before
{
469 label
.checkbox
> input
[type
="checkbox"]:checked
+ * {
476 label
.checkbox
> span
.spacer
{
482 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
484 --loader-width: 70px;
485 --loader-height: 70px;
486 --loader-color-primary: #01786F;
487 --loader-color-secondary: #EEE;
489 --animation-duration: 3s;
490 --loader-initial-scale: 0.1;
492 .loader,.loader:before,.loader:after{
493 box-sizing: border-box
;
500 transform: translateY
(0%);
503 transform: translateY
(100%);
506 transform: translateY
(100%);
509 transform: translateY
(0%);
512 transform: translateY
(0%);
518 transform: rotate
(0deg);
521 transform: rotate
(0deg);
524 transform: rotate
(180deg);
527 transform: rotate
(180deg);
530 transform: rotate
(360deg);
536 width: var
(--loader-width
, 100px);
537 height: var
(--loader-height
, 100px);
538 background-color: var
(--loader-color-primary
, #00f);
539 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
540 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
542 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
551 width: var
(--loader-width
, 100px);
553 background-color: var
(--loader-color-secondary
, #eee);
554 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;