bf4e1a8cfa601e352b3bacbccf3fecb1fdd0dc78
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
{
120 #gameInfos > .rules
> a
{
122 border-bottom: 1px dotted black
;
129 /* "Sticky footer" */
148 display: inline-block
;
149 transform: translateY
(3px);
153 background-color: #757575;
158 text-decoration: none
;
159 display: inline-block
;
166 button:hover
, button
.block-btn:hover
{
167 background-color: #b11adc;
172 background-color: #01786F;
173 margin: 0 auto
30px auto
; /*TODO: margin-bottom 20px ? */
178 button
.cancel-something
{
179 background-color: darkred
;
193 left: calc
(100% - 25px);
196 #upLeftInfos > svg
, #upRightStop
> svg
{
201 @media(max-width: 767px) {
203 left: calc
(100% - 35px);
205 #upLeftInfos > svg
, #upRightStop
> svg
{
208 #upLeftInfos > svg path
, #upRightStop
> svg path
{
217 /* Options when starting custom game */
228 display: inline-block
;
232 background-color: lightblue
;
239 .option-select, .option-input {
244 display: inline-block
;
248 .option-input input[type=number] {
262 text-decoration: none
;
265 /* Game link div + custom game "button" */
266 #gameLink span
, #gameLink a
, #footer a
{
268 border-bottom: 1px dotted darkgrey
;
281 /* Board container (without reserves) */
293 background-size: cover
;
295 will-change: transform
;
296 pointer-events: none
;
303 /* Drawing of the board */
309 /* Default squares colors (can be overriden or unused) */
318 filter: brightness
(50%);
333 /* Pieces' counter for reserves */
342 /* Choices div after a promotion (TODO: do not hide board) */
349 /* https://moderncss.dev/custom-select-styles-with-pure-css/ */
351 --select-border: #777;
352 --select-focus: #b11adc;
353 --select-arrow: var
(--select-border
);
358 background-color: transparent
;
363 font-family: inherit
;
366 line-height: inherit
;
373 grid-template-areas: "select";
378 border: 1px solid var
(--select-border
);
379 border-radius: 0.25em;
380 padding: 0.25em 0.5em;
384 background-color: #fff;
385 background-image: linear-gradient
(to top
, #f9f9f9, #fff 33%);
390 select
, .select::after
{
399 background-color: var
(--select-arrow
);
400 clip-path: polygon
(100% 0%, 0 0%, 50% 100%);
403 select:focus
+ .focus
{
409 border: 2px solid var
(--select-focus
);
410 border-radius: inherit
;
414 /* https://auralinna.blog/post/2018/how-to-create-material-design-like-form-text-fields/ */
419 .form-field--is-active .form-field__control::after {
420 border-bottom: 2px solid
#b11adc;
421 transform: scaleX
(150);
423 .form-field--is-active .form-field__label {
426 transform: translateY
(-14px);
428 .form-field--is-filled .form-field__label {
430 transform: translateY
(-14px);
438 padding: 18px 12px 0;
441 transition: all
0.4s;
444 .form-field__control {
446 border-radius: 8px 8px 0 0;
451 .form-field__control::after {
452 border-bottom: 2px solid
#b11adc;
460 transform: scaleX
(0);
461 transition: all
0.4s;
466 background: transparent
;
468 border-bottom: 1px solid
#999;
474 padding: 0 12px 10px 12px;
479 /* https://dev.to/kallmanation/styling-a-checkbox-with-only-css-3o3p */
480 label
.checkbox
> input
[type
="checkbox"] {
483 label
.checkbox
> input
[type
="checkbox"] + *::before
{
485 display: inline-block
;
486 vertical-align: bottom
;
492 border-width: 0.1rem;
496 label
.checkbox
> input
[type
="checkbox"]:checked
+ *::before
{
505 label
.checkbox
> input
[type
="checkbox"]:checked
+ * {
512 label
.checkbox
> span
.spacer
{
518 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
520 --loader-width: 70px;
521 --loader-height: 70px;
522 --loader-color-primary: #01786F;
523 --loader-color-secondary: #EEE;
525 --animation-duration: 3s;
526 --loader-initial-scale: 0.1;
528 .loader,.loader:before,.loader:after{
529 box-sizing: border-box
;
536 transform: translateY
(0%);
539 transform: translateY
(100%);
542 transform: translateY
(100%);
545 transform: translateY
(0%);
548 transform: translateY
(0%);
554 transform: rotate
(0deg);
557 transform: rotate
(0deg);
560 transform: rotate
(180deg);
563 transform: rotate
(180deg);
566 transform: rotate
(360deg);
572 width: var
(--loader-width
, 100px);
573 height: var
(--loader-height
, 100px);
574 background-color: var
(--loader-color-primary
, #00f);
575 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
576 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
578 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
587 width: var
(--loader-width
, 100px);
589 background-color: var
(--loader-color-secondary
, #eee);
590 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;