bingo/style.css

129 lines
1.9 KiB
CSS
Raw Normal View History

2022-12-04 17:32:31 +01:00
/* HTML Selectors */
2022-12-02 00:40:51 +01:00
body {
font-family: monospace;
height: 95vh;
width: 95vw;
overflow: hidden;
margin: 0 auto;
user-select: none;
background-color: #222;
color: #ccc;
2022-07-05 20:42:38 +02:00
}
table {
2022-12-02 00:40:51 +01:00
width: 100%;
display: table;
table-layout: fixed;
2022-07-05 20:42:38 +02:00
}
2022-12-04 17:32:31 +01:00
canvas {
pointer-events: none;
}
2022-07-05 20:42:38 +02:00
td {
2022-12-02 00:40:51 +01:00
text-align: center;
height: calc(100vh / 6);
transition: background-color ease-out .350s;
border-radius: 40px;
font-size: xx-large;
}
2022-12-04 17:32:31 +01:00
h1, p {
text-align: center;
margin: 5px;
2022-12-03 15:08:13 +01:00
}
2022-12-04 17:32:31 +01:00
/* Specific selectors */
2022-12-02 00:40:51 +01:00
td:hover {
2022-12-04 17:32:31 +01:00
background-color: gray;
2022-12-02 00:40:51 +01:00
}
2022-07-05 20:51:58 +02:00
2022-12-02 00:40:51 +01:00
td.drawn {
2022-12-04 17:32:31 +01:00
background-color: cornflowerblue;
text-decoration: line-through;
2022-12-02 00:40:51 +01:00
}
2022-12-04 17:32:31 +01:00
td.drawn:hover {
background-color: cadetblue;
}
td.drawn.bingo {
2022-12-02 00:40:51 +01:00
background-color: green;
2022-07-05 20:42:38 +02:00
}
2022-11-30 18:52:25 +01:00
2022-12-04 17:32:31 +01:00
td.drawn.bingo:hover {
background-color: darkgreen;
2022-11-30 18:52:25 +01:00
}
2022-12-04 17:32:31 +01:00
img#center-field-image {
max-height: calc(100vh / 6);
max-width: calc(100vh / 6);
2022-07-05 21:06:49 +02:00
}
2022-12-02 00:40:51 +01:00
p#seeed {
2022-12-02 00:40:51 +01:00
user-select: text;
}
span#copy-permalink, span#refresh-bingo {
cursor: pointer;
2022-12-03 15:08:13 +01:00
}
2022-12-04 17:32:31 +01:00
div#winner-message {
2022-12-03 15:08:13 +01:00
display: flex;
position: fixed;
font-size: 3000%;
2022-12-04 17:32:31 +01:00
text-shadow: 0 0 40px white;
2022-12-03 15:08:13 +01:00
transition: all ease-out .75s;
pointer-events: none;
}
2022-12-04 17:32:31 +01:00
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;
}
}