You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bingo/style.css

212 lines
3.5 KiB
CSS

10 months ago
@font-face {
font-family: "VCROCDFaux";
src: url("./VCROCDFaux.woff2") format("woff2");
}
@font-face {
font-family: "MonaSans";
src: url("./Mona-Sans.woff2") format("woff2");
}
/*body {
background: #000;
color: #fff;
margin: 20px auto;
max-width: 640px;
padding: 0 20px;
}
.cover {
aspect-ratio: 1/1;
display: block;
margin: 20px 0;
width: 100%;
}*/
h2 {
font-family: MonaSans, sans-serif;
margin-top: 60px;
font-weight: bold;
}
p {
font-family: VCROCDFaux, monospace;
color: #aaa;
}
/*.btn {
display: block;
background: #cc4d47;
color: #fff;
font-family: VCROCDFaux, monospace;
text-decoration: none;
text-align: center;
line-height: 50px;
display: flex;
gap: 15px;
justify-content: center;
align-items: center;
margin: 40px 0;
}
.btn:hover {
background: #4e1614;
}
.btn svg {
width: 20px;
height: 20px;
}*/
2 years ago
/* HTML Selectors */
2 years ago
body {
10 months ago
font-family: VCROCDFaux, monospace;
2 years ago
height: 95vh;
width: 95vw;
overflow: hidden;
margin: 0 auto;
user-select: none;
background-color: #222;
color: #ccc;
2 years ago
}
table {
2 years ago
width: 100%;
display: table;
table-layout: fixed;
2 years ago
}
2 years ago
canvas {
pointer-events: none;
}
2 years ago
td {
2 years ago
text-align: center;
height: calc(100vh / 6);
transition: background-color ease-out .350s;
border-radius: 40px;
10 months ago
font-size: x-large;
2 years ago
}
2 years ago
h1, p {
text-align: center;
margin: 5px;
}
2 years ago
/* Specific selectors */
2 years ago
td:hover {
2 years ago
background-color: gray;
2 years ago
}
2 years ago
2 years ago
td.drawn {
2 years ago
background-color: cornflowerblue;
text-decoration: line-through;
2 years ago
}
2 years ago
td.drawn:hover {
background-color: cadetblue;
}
td.drawn.bingo {
2 years ago
background-color: green;
2 years ago
}
2 years ago
2 years ago
td.drawn.bingo:hover {
background-color: darkgreen;
2 years ago
}
2 years ago
img#center-field-image {
max-height: calc(100vh / 6);
max-width: calc(100vw / 6);
2 years ago
}
2 years ago
p#seeed {
2 years ago
user-select: text;
}
span#copy-permalink, span#refresh-bingo {
cursor: pointer;
}
2 years ago
div#winner-message {
display: flex;
position: fixed;
font-size: xx-large;
2 years ago
text-shadow: 0 0 40px white;
transition: all ease-out .75s;
pointer-events: none;
}
2 years ago
div#winner-message.won {
animation: won 5s;
animation-timing-function: ease-in-out;
}
@keyframes won {
0% {
left: 50%;
top: 100%;
transform: translate(-50%, 0);
color: green;
}
20% {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
opacity: 100%;
color: yellow;
}
40% {
color: orange;
}
50% {
left: 50%;
top: 50%;
}
60% {
color: purple;
}
80% {
color: blue;
opacity: 100%;
}
100% {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
opacity: 0;
}
}
@media screen and (max-width: 767px) and (orientation: portrait) {
td {
font-size: large;
}
div#winner-message.won {
animation: unset;
}
div#winner-message {
display: none;
}
}
@media screen and (max-width: 576px) and (orientation: portrait) {
td {
10 months ago
font-size: small;
}
div#winner-message.won {
animation: unset;
}
div#winner-message {
display: none;
}
}