28cd79972b
./public/style.css:530995/476 ./room.js:530995/87 ./views/audience.handlebars:530995/130 ./characters.json:530995/8449
117 lines
1.8 KiB
CSS
117 lines
1.8 KiB
CSS
/* this file is loaded by index.html and styles the page */
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: sans-serif;
|
|
margin: 2em 1em;
|
|
line-height: 1.5em;
|
|
text-align: center;
|
|
}
|
|
|
|
h1 {
|
|
font-style: italic;
|
|
color: #373fff;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
form {
|
|
background-color: #eee;
|
|
display: grid;
|
|
grid-gap: 1em;
|
|
padding: 1em;
|
|
max-width: 40ch;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
input {
|
|
border: 1px solid silver;
|
|
display: block;
|
|
font-size: 16px;
|
|
margin-bottom: 10px;
|
|
padding: 5px;
|
|
width: 100%;
|
|
}
|
|
|
|
form button {
|
|
background-color: #bbbbf2;
|
|
border: 2px solid currentColor;
|
|
border-radius: .25em;
|
|
cursor: pointer;
|
|
font-size: inherit;
|
|
line-height: 1.4em;
|
|
padding: 0.25em 1em;
|
|
}
|
|
|
|
form button:hover {
|
|
background-color: lavender;
|
|
}
|
|
|
|
footer {
|
|
margin-top: 3em;
|
|
padding-top: 1.5em;
|
|
border-top: 1px solid lightgrey;
|
|
}
|
|
|
|
#buzzer {
|
|
width: 95vw;
|
|
height: 95vw;
|
|
max-height: 500px;
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
border-radius: 500px;
|
|
background: red;
|
|
border: 4px solid black;
|
|
box-shadow: 4px 4px 4px rgba(0,0,0,.5);
|
|
font-size: 4em;
|
|
color: white;
|
|
text-shadow: 2px 2px 2px black;
|
|
}
|
|
|
|
#buzzer:active {
|
|
box-shadow: inset 4px 4px 4px rgba(0,0,0,.5);
|
|
}
|
|
|
|
h2 img {
|
|
max-height: 40px;
|
|
}
|
|
|
|
figure.participant {
|
|
display: inline-block;
|
|
transition: ease-in all .2s;
|
|
}
|
|
|
|
figure.participant img {
|
|
max-height: 100px;
|
|
}
|
|
figure.participant figcaption {
|
|
font-weight: bold;
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.buzzed {
|
|
background: yellow;
|
|
animation: shake 1s cubic-bezier(.36,.07,.19,.97) both;
|
|
transform: scale(1) rotate(0);
|
|
backface-visibility: hidden;
|
|
}
|
|
|
|
@keyframes shake {
|
|
10%, 90% {
|
|
transform: rscale(1.3) otate(-10deg);
|
|
}
|
|
|
|
20%, 80% {
|
|
transform: rscale(1.3) otate(20deg);
|
|
}
|
|
|
|
30%, 50%, 70% {
|
|
transform: scale(1.3) rotate(-30deg);
|
|
}
|
|
|
|
40%, 60% {
|
|
transform: scale(1.3) rotate(30deg);
|
|
}
|
|
} |