88x31samegame/public/style.css

45 lines
849 B
CSS
Raw Normal View History

2025-01-26 18:48:52 +00:00
:root {
--tile-width: 88px;
--tile-height: 31px;
--size-x: 10;
--size-y: 20;
--padding: 2px;
}
2025-01-26 19:16:12 +00:00
* {
font-family: sans-serif;
}
.game-info {
font-size: 40px;
}
.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;
}
2025-01-26 18:48:52 +00:00
.board {
2025-01-26 19:16:12 +00:00
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));
2025-01-26 18:48:52 +00:00
position: relative;
}
.tile {
position: absolute;
cursor: pointer;
transition: bottom 0.5s;
2025-01-26 19:16:12 +00:00
object-fit: cover;
width: var(--tile-width);
height: var(--tile-height);
2025-01-26 18:48:52 +00:00
}