5ad94282a7a1291528217fb3c591594d65d7d70e
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) */
182 .full-rules h1, .full-rules h2, .full-rules h3, .full-rules h4 {
188 margin: 10px 0 20px 0;
211 .full-rules figure:after {
227 .full-rules figcaption {
235 /* TODO: use same CSS for rules and full-rules? */
236 .full-rules p, .full-rules ul, .full-rules ol {
240 list-style-type: square
;
244 list-style-type: numeric
;
251 /* Options when starting custom game */
262 display: inline-block
;
266 background-color: lightblue
;
271 .option-select, .option-input {
275 display: inline-block
;
278 .option-input input[type=number] {
289 /* Game link div + custom game "button" */
290 #gameLink span
, #gameLink a
, #footer a
{
292 border-bottom: 1px dotted darkgrey
;
303 /* Board container (with reserves) */
321 left: calc
(100% - 25px);
324 #upLeftInfos > svg
, #upRightStop
> svg
{
328 @media(max-width: 767px) {
330 left: calc
(100% - 35px);
332 #upLeftInfos > svg
, #upRightStop
> svg
{
335 #upLeftInfos > svg path
, #upRightStop
> svg path
{
339 /* Playing board (without reserves) */
350 background-size: cover
;
352 will-change: transform
;
353 pointer-events: none
;
358 /* Drawing of the board */
363 /* Default squares colors (can be overriden or unused) */
371 filter: brightness
(50%);
383 /* Pieces' counter for reserves */
390 /* Choices div after a promotion */
396 /* https://moderncss.dev/custom-select-styles-with-pure-css/ */
398 --select-border: #777;
399 --select-focus: #b11adc;
400 --select-arrow: var
(--select-border
);
404 background-color: transparent
;
409 font-family: inherit
;
412 line-height: inherit
;
418 grid-template-areas: "select";
423 border: 1px solid var
(--select-border
);
424 border-radius: 0.25em;
425 padding: 0.25em 0.5em;
429 background-color: #fff;
430 background-image: linear-gradient
(to top
, #f9f9f9, #fff 33%);
434 select
, .select::after
{
442 background-color: var
(--select-arrow
);
443 clip-path: polygon
(100% 0%, 0 0%, 50% 100%);
445 select:focus
+ .focus
{
451 border: 2px solid var
(--select-focus
);
452 border-radius: inherit
;
455 /* https://auralinna.blog/post/2018/how-to-create-material-design-like-form-text-fields/ */
460 .form-field--is-active .form-field__control::after {
461 border-bottom: 2px solid
#b11adc;
462 transform: scaleX
(150);
464 .form-field--is-active .form-field__label {
467 transform: translateY
(-14px);
469 .form-field--is-filled .form-field__label {
471 transform: translateY
(-14px);
479 padding: 18px 12px 0;
482 transition: all
0.4s;
485 .form-field__control {
487 border-radius: 8px 8px 0 0;
492 .form-field__control::after {
493 border-bottom: 2px solid
#b11adc;
501 transform: scaleX
(0);
502 transition: all
0.4s;
507 background: transparent
;
509 border-bottom: 1px solid
#999;
515 padding: 0 12px 10px 12px;
519 /* https://dev.to/kallmanation/styling-a-checkbox-with-only-css-3o3p */
520 label
.checkbox
> input
[type
="checkbox"] {
523 label
.checkbox
> input
[type
="checkbox"] + *::before
{
525 display: inline-block
;
526 vertical-align: bottom
;
532 border-width: 0.1rem;
535 label
.checkbox
> input
[type
="checkbox"]:checked
+ *::before
{
544 label
.checkbox
> input
[type
="checkbox"]:checked
+ * {
547 label
.checkbox
> span
.spacer
{
552 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
554 --loader-width: 70px;
555 --loader-height: 70px;
556 --loader-color-primary: #01786F;
557 --loader-color-secondary: #EEE;
559 --animation-duration: 3s;
560 --loader-initial-scale: 0.1;
562 .loader,.loader:before,.loader:after{
563 box-sizing: border-box
;
569 transform: translateY
(0%);
572 transform: translateY
(100%);
575 transform: translateY
(100%);
578 transform: translateY
(0%);
581 transform: translateY
(0%);
586 transform: rotate
(0deg);
589 transform: rotate
(0deg);
592 transform: rotate
(180deg);
595 transform: rotate
(180deg);
598 transform: rotate
(360deg);
603 width: var
(--loader-width
, 100px);
604 height: var
(--loader-height
, 100px);
605 background-color: var
(--loader-color-primary
, #00f);
606 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
607 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
609 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
617 width: var
(--loader-width
, 100px);
619 background-color: var
(--loader-color-secondary
, #eee);
620 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;