4 background-color: #f8f8f8;
5 font-family: Arial
, Verdana
, Tahoma
, sans-serif
;
8 #gameInfos, #boardContainer
, #gameStopped
, #pendingSeek
, #pendingRematch
, #newGameForm
{
26 background-color: green
;
31 text-decoration: none
;
32 display: inline-block
;
40 background-color: darkblue
;
45 margin: 30px auto
20px auto
;
58 left: calc
(100% - 25px);
62 #upLeftInfos > img
, #upRightStop
> img
{
75 /* Options when starting custom game */
82 display: inline-block
;
86 background-color: lightblue
;
89 /* Game link div + custom game "button" */
90 #gameLink span
, #gameLink a
, #playCustom
{
91 text-decoration: underline
;
100 /* Board container (without reserves) */
106 /* Board container can be resized */
118 background-size: cover
;
120 will-change: transform
;
121 pointer-events: none
;
124 /* Drawing of the board */
137 filter: brightness
(50%);
152 /* Pieces' counter for reserves */
161 /* Choices div after a promotion (TODO: do not hide board) */
167 /* https://theanam.github.io/css-only-loaders/ ("hour-glass") */
169 --loader-width: 70px;
170 --loader-height: 70px;
171 --loader-color-primary: #141D58;
172 --loader-color-secondary: #EEE;
174 --animation-duration: 3s;
175 --loader-initial-scale: 0.1;
177 .loader,.loader:before,.loader:after{
178 box-sizing: border-box
;
185 transform: translateY
(0%);
188 transform: translateY
(100%);
191 transform: translateY
(100%);
194 transform: translateY
(0%);
197 transform: translateY
(0%);
203 transform: rotate
(0deg);
206 transform: rotate
(0deg);
209 transform: rotate
(180deg);
212 transform: rotate
(180deg);
215 transform: rotate
(360deg);
221 width: var
(--loader-width
, 100px);
222 height: var
(--loader-height
, 100px);
223 background-color: var
(--loader-color-primary
, #00f);
224 -webkit-clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
225 clip-path: polygon
(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%);
227 animation: spin var
(--animation-duration
, 4s) infinite ease-in-out
;
236 width: var
(--loader-width
, 100px);
238 background-color: var
(--loader-color-secondary
, #eee);
239 animation: slide var
(--animation-duration
, 4s) infinite ease-in-out
;