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
;
296 /* Drawing of the board */
309 filter: brightness
(50%);
324 /* Pieces' counter for reserves */
333 /* Choices div after a promotion (TODO: do not hide board) */
340 /* https://moderncss.dev/custom-select-styles-with-pure-css/ */
342 --select-border: #777;
343 --select-focus: #b11adc;
344 --select-arrow: var
(--select-border
);
349 background-color: transparent
;
354 font-family: inherit
;
357 line-height: inherit
;
364 grid-template-areas: "select";
369 border: 1px solid var
(--select-border
);
370 border-radius: 0.25em;
371 padding: 0.25em 0.5em;
375 background-color: #fff;
376 background-image: linear-gradient
(to top
, #f9f9f9, #fff 33%);
381 select
, .select::after
{
390 background-color: var
(--select-arrow
);
391 clip-path: polygon
(100% 0%, 0 0%, 50% 100%);
394 select:focus
+ .focus
{
400 border: 2px solid var
(--select-focus
);
401 border-radius: inherit
;
405 /* https://auralinna.blog/post/2018/how-to-create-material-design-like-form-text-fields/ */
410 .form-field--is-active .form-field__control::after {
411 border-bottom: 2px solid
#b11adc;
412 transform: scaleX
(150);
414 .form-field--is-active .form-field__label {
417 transform: translateY
(-14px);
419 .form-field--is-filled .form-field__label {
421 transform: translateY
(-14px);
429 padding: 18px 12px 0;
432 transition: all
0.4s;
435 .form-field__control {
437 border-radius: 8px 8px 0 0;
442 .form-field__control::after {
443 border-bottom: 2px solid
#b11adc;
451 transform: scaleX
(0);
452 transition: all
0.4s;
457 background: transparent
;
459 border-bottom: 1px solid
#999;
465 padding: 0 12px 10px 12px;
470 /* https://dev.to/kallmanation/styling-a-checkbox-with-only-css-3o3p */
471 label
.checkbox
> input
[type
="checkbox"] {
474 label
.checkbox
> input
[type
="checkbox"] + *::before
{
476 display: inline-block
;
477 vertical-align: bottom
;
483 border-width: 0.1rem;
487 label
.checkbox
> input
[type
="checkbox"]:checked
+ *::before
{
496 label
.checkbox
> input
[type
="checkbox"]:checked
+ * {
503 label
.checkbox
> span
.spacer
{
509 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
511 --loader-width: 70px;
512 --loader-height: 70px;
513 --loader-color-primary: #01786F;
514 --loader-color-secondary: #EEE;
516 --animation-duration: 3s;
517 --loader-initial-scale: 0.1;
519 .loader,.loader:before,.loader:after{
520 box-sizing: border-box
;
527 transform: translateY
(0%);
530 transform: translateY
(100%);
533 transform: translateY
(100%);
536 transform: translateY
(0%);
539 transform: translateY
(0%);
545 transform: rotate
(0deg);
548 transform: rotate
(0deg);
551 transform: rotate
(180deg);
554 transform: rotate
(180deg);
557 transform: rotate
(360deg);
563 width: var
(--loader-width
, 100px);
564 height: var
(--loader-height
, 100px);
565 background-color: var
(--loader-color-primary
, #00f);
566 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
567 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
569 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
578 width: var
(--loader-width
, 100px);
580 background-color: var
(--loader-color-secondary
, #eee);
581 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;