c65559dffea75efd4c38ba30437bb07beba2337b
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
; /*TODO: margin-bottom 30px ? */
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 */
202 display: inline-block
;
206 background-color: lightblue
;
213 .option-select, .option-check {
218 display: inline-block
;
232 text-decoration: none
;
235 /* Game link div + custom game "button" */
236 #gameLink span
, #gameLink a
, #footer a
{
238 border-bottom: 1px dotted darkgrey
;
251 /* Board container (without reserves) */
257 /* Board container can be resized */
269 background-size: cover
;
271 will-change: transform
;
272 pointer-events: none
;
275 /* Drawing of the board */
288 filter: brightness
(50%);
303 /* Pieces' counter for reserves */
312 /* Choices div after a promotion (TODO: do not hide board) */
319 /* https://moderncss.dev/custom-select-styles-with-pure-css/ */
321 --select-border: #777;
322 --select-focus: #b11adc;
323 --select-arrow: var
(--select-border
);
328 background-color: transparent
;
333 font-family: inherit
;
336 line-height: inherit
;
343 grid-template-areas: "select";
348 border: 1px solid var
(--select-border
);
349 border-radius: 0.25em;
350 padding: 0.25em 0.5em;
354 background-color: #fff;
355 background-image: linear-gradient
(to top
, #f9f9f9, #fff 33%);
360 select
, .select::after
{
369 background-color: var
(--select-arrow
);
370 clip-path: polygon
(100% 0%, 0 0%, 50% 100%);
373 select:focus
+ .focus
{
379 border: 2px solid var
(--select-focus
);
380 border-radius: inherit
;
384 /* https://auralinna.blog/post/2018/how-to-create-material-design-like-form-text-fields/ */
389 .form-field--is-active .form-field__control::after {
390 border-bottom: 2px solid
#b11adc;
391 transform: scaleX
(150);
393 .form-field--is-active .form-field__label {
396 transform: translateY
(-14px);
398 .form-field--is-filled .form-field__label {
400 transform: translateY
(-14px);
408 padding: 18px 12px 0;
411 transition: all
0.4s;
414 .form-field__control {
416 border-radius: 8px 8px 0 0;
421 .form-field__control::after {
422 border-bottom: 2px solid
#b11adc;
430 transform: scaleX
(0);
431 transition: all
0.4s;
436 background: transparent
;
438 border-bottom: 1px solid
#999;
444 padding: 0 12px 10px 12px;
449 /* https://dev.to/kallmanation/styling-a-checkbox-with-only-css-3o3p */
450 label
.checkbox
> input
[type
="checkbox"] {
453 label
.checkbox
> input
[type
="checkbox"] + *::before
{
455 display: inline-block
;
456 vertical-align: bottom
;
462 border-width: 0.1rem;
466 label
.checkbox
> input
[type
="checkbox"]:checked
+ *::before
{
475 label
.checkbox
> input
[type
="checkbox"]:checked
+ * {
482 label
.checkbox
> span
.spacer
{
488 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
490 --loader-width: 70px;
491 --loader-height: 70px;
492 --loader-color-primary: #01786F;
493 --loader-color-secondary: #EEE;
495 --animation-duration: 3s;
496 --loader-initial-scale: 0.1;
498 .loader,.loader:before,.loader:after{
499 box-sizing: border-box
;
506 transform: translateY
(0%);
509 transform: translateY
(100%);
512 transform: translateY
(100%);
515 transform: translateY
(0%);
518 transform: translateY
(0%);
524 transform: rotate
(0deg);
527 transform: rotate
(0deg);
530 transform: rotate
(180deg);
533 transform: rotate
(180deg);
536 transform: rotate
(360deg);
542 width: var
(--loader-width
, 100px);
543 height: var
(--loader-height
, 100px);
544 background-color: var
(--loader-color-primary
, #00f);
545 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
546 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
548 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
557 width: var
(--loader-width
, 100px);
559 background-color: var
(--loader-color-secondary
, #eee);
560 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;