5 box-sizing: border-box
;
11 vertical-align: baseline
;
20 background-color: #f8f8f8;
21 font-family: Arial
, Verdana
, Tahoma
, sans-serif
;
22 /* https://stackoverflow.com/a/24392249/12660887 */
27 flex-direction: column
;
28 justify-content: center
;
49 text-decoration: none
;
55 background-color: #757575;
60 text-decoration: none
;
61 display: inline-block
;
67 button:hover
, button
.block-btn:hover
{
68 background-color: #b11adc;
72 background-color: #01786F;
73 margin: 0 auto
30px auto
; /*TODO: margin-bottom 20px ? */
77 button
.cancel-something
{
78 background-color: darkred
;
93 @media(max-height: 399px) {
106 display: inline-block
;
107 transform: translateY
(3px);
118 @media(max-height: 800px) {
119 #newGameForm, #gameInfos
{
123 @media(max-width: 767px) {
140 #gameInfos > .players-info
{
143 #gameInfos > .options-info
{
151 #gameInfos > .rules
{
154 #gameInfos > .rules p
,
155 #gameInfos > .rules ul
,
156 #gameInfos > .rules ol
{
159 #gameInfos > .rules ul
{
160 list-style-type: square
;
163 #gameInfos > .rules ol
{
164 list-style-type: numeric
;
167 #gameInfos > .rules a
{
169 border-bottom: 1px dotted black
;
171 #gameInfos > .rules
.author
{
176 /* Complete rules (separate page) */
183 .full-rules figure.show-pieces {
188 .full-rules figure.show-pieces > img {
194 .full-rules h1, .full-rules h2, .full-rules h3, .full-rules h4 {
200 margin: 10px 0 20px 0;
219 background-image: url
('/pieces/mark.svg');
221 piece
.mark
.transparent
{
229 .full-rules figure::after {
245 @media screen and
(max-width: 550px) {
255 .full-rules figcaption {
263 .full-rules .img-center {
267 /* TODO: use same CSS for rules and full-rules? */
268 .full-rules p, .full-rules ul, .full-rules ol {
272 list-style-type: square
;
276 list-style-type: numeric
;
283 /* Options when starting custom game */
294 display: inline-block
;
298 background-color: lightblue
;
303 .option-select, .option-input {
307 display: inline-block
;
310 .option-input input[type=number] {
321 /* Game link div + custom game "button" */
322 #gameLink span
, #gameLink a
, #footer a
{
324 border-bottom: 1px dotted darkgrey
;
335 /* Board container (with reserves) */
353 left: calc
(100% - 25px);
356 #upLeftInfos > svg
, #upRightStop
> svg
{
360 @media(max-width: 767px) {
362 left: calc
(100% - 35px);
364 #upLeftInfos > svg
, #upRightStop
> svg
{
367 #upLeftInfos > svg path
, #upRightStop
> svg path
{
371 /* Playing board (without reserves) */
380 background-size: cover
;
382 will-change: transform
;
383 pointer-events: none
;
388 /* Drawing of the board */
393 /* Default squares colors (can be overriden or unused) */
401 filter: brightness
(50%);
413 /* Pieces' counter for reserves */
420 /* Choices div after a promotion */
426 /* https://moderncss.dev/custom-select-styles-with-pure-css/ */
428 --select-border: #777;
429 --select-focus: #b11adc;
430 --select-arrow: var
(--select-border
);
434 background-color: transparent
;
439 font-family: inherit
;
442 line-height: inherit
;
448 grid-template-areas: "select";
453 border: 1px solid var
(--select-border
);
454 border-radius: 0.25em;
455 padding: 0.25em 0.5em;
459 background-color: #fff;
460 background-image: linear-gradient
(to top
, #f9f9f9, #fff 33%);
464 select
, .select::after
{
472 background-color: var
(--select-arrow
);
473 clip-path: polygon
(100% 0%, 0 0%, 50% 100%);
475 select:focus
+ .focus
{
481 border: 2px solid var
(--select-focus
);
482 border-radius: inherit
;
485 /* https://auralinna.blog/post/2018/how-to-create-material-design-like-form-text-fields/ */
490 .form-field--is-active .form-field__control::after {
491 border-bottom: 2px solid
#b11adc;
492 transform: scaleX
(150);
494 .form-field--is-active .form-field__label {
497 transform: translateY
(-14px);
499 .form-field--is-filled .form-field__label {
501 transform: translateY
(-14px);
509 padding: 18px 12px 0;
512 transition: all
0.4s;
515 .form-field__control {
517 border-radius: 8px 8px 0 0;
522 .form-field__control::after {
523 border-bottom: 2px solid
#b11adc;
531 transform: scaleX
(0);
532 transition: all
0.4s;
537 background: transparent
;
539 border-bottom: 1px solid
#999;
545 padding: 0 12px 10px 12px;
549 /* https://dev.to/kallmanation/styling-a-checkbox-with-only-css-3o3p */
550 label
.checkbox
> input
[type
="checkbox"] {
553 label
.checkbox
> input
[type
="checkbox"] + *::before
{
555 display: inline-block
;
556 vertical-align: bottom
;
562 border-width: 0.1rem;
565 label
.checkbox
> input
[type
="checkbox"]:checked
+ *::before
{
574 label
.checkbox
> input
[type
="checkbox"]:checked
+ * {
577 label
.checkbox
> span
.spacer
{
582 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
584 --loader-width: 70px;
585 --loader-height: 70px;
586 --loader-color-primary: #01786F;
587 --loader-color-secondary: #EEE;
589 --animation-duration: 3s;
590 --loader-initial-scale: 0.1;
592 .loader,.loader:before,.loader:after{
593 box-sizing: border-box
;
599 transform: translateY
(0%);
602 transform: translateY
(100%);
605 transform: translateY
(100%);
608 transform: translateY
(0%);
611 transform: translateY
(0%);
616 transform: rotate
(0deg);
619 transform: rotate
(0deg);
622 transform: rotate
(180deg);
625 transform: rotate
(180deg);
628 transform: rotate
(360deg);
633 width: var
(--loader-width
, 100px);
634 height: var
(--loader-height
, 100px);
635 background-color: var
(--loader-color-primary
, #00f);
636 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
637 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
639 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
647 width: var
(--loader-width
, 100px);
649 background-color: var
(--loader-color-secondary
, #eee);
650 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;