88x31samegame/public/style.css

55 lines
No EOL
1 KiB
CSS

:root {
--tile-width: 88px;
--tile-height: 31px;
--size-x: 10;
--size-y: 20;
--padding: 2px;
}
* {
font-family: sans-serif;
}
.description {
width: calc(var(--size-x) * var(--tile-width) + var(--padding) * (var(--size-x) + 1));
margin-bottom: 10px;
}
.meta-info {
margin-top: 30px;
}
.game-info {
margin: 10px 0 10px 0;
font-size: 20px;
}
.gameover {
display: none;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
backdrop-filter: blur(10px);
background: rgba(255, 255, 255, 0.5);
font-size: 30px;
text-align: center;
padding-top: 20%;
z-index: 100;
}
.board {
width: calc(var(--size-x) * var(--tile-width) + var(--padding) * (var(--size-x) + 1));
height: calc(var(--size-y) * var(--tile-height) + var(--padding) * (var(--size-y) + 1));
position: relative;
}
.tile {
position: absolute;
cursor: pointer;
transition: bottom 0.5s;
object-fit: cover;
width: var(--tile-width);
height: var(--tile-height);
}