cs-bingo/src/App.css
Dominic Zimmer c46e9478ef Update ui
2024-03-27 23:35:24 +01:00

81 lines
1.4 KiB
CSS

@font-face {
font-family: "cs_regular";
src: url(./cs_regular.ttf) format("ttf");
font-weight: normal;
font-style: normal;
}
h1, span {
user-select: none;
}
.container {
padding: 5px;
display: flex;
flex-direction: column;
align-items: center;
margin: auto;
}
.bingo-board {
width: 100%;
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 3px;
}
.bingo-board > div {
width: 100%;
}
.bingo-board > div > div {
background: #E48720;
display: grid;
border-radius: .5rem;
aspect-ratio: 1;
}
.bingo-board div span {
font-size: 3.5rem;
place-self: center;
color: white;
}
.legend {
display: grid;
grid-template-columns: auto 1fr;
column-gap: 1rem;
}
.legend .header span {
font-weight: bold;
}
div.highlighted {
animation: fadeinout 1s linear;
}
div > div.begone {
animation: disappear 1s forwards;
}
@keyframes fadeinout {
0% {
background-color: white;
}
50% {
background-color: yellow;
}
100% {
background-color: white;
}
}
@keyframes disappear {
0% {
filter: saturate(1) opacity(1);
transform: scale(1) rotate(0deg);
}
74% {
filter: saturate(1) opacity(1);
transform: scale(0) rotate(720deg);
}
75% {
filter: saturate(0) opacity(.1);
transform: scale(0) rotate(720deg);
}
100% {
filter: saturate(0) opacity(.1);
transform: scale(1) rotate(720deg);
}
}