Arne van Iterson
2ee13bb022
Room list on login Restart button to prevent socket.io instance from hanging around Disabled contextmenu on entire playing field Added better logging for players who died Changed some gameplay variables after player feedback
209 lines
5.1 KiB
SCSS
209 lines
5.1 KiB
SCSS
@font-face {
|
|
font-family: "Alarm Clock";
|
|
src: url("../res/fonts/alarm\ clock.ttf") format("truetype"),
|
|
}
|
|
|
|
@keyframes zoom {
|
|
0% {
|
|
transform: rotate(-10deg) translate(9em, 0em) scale(1);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(-10deg) translate(9em, 0em) scale(1.1);
|
|
}
|
|
}
|
|
|
|
body {
|
|
font-family: monospace;
|
|
padding: 2em;
|
|
margin: 0;
|
|
background-color: #111111;
|
|
color: white;
|
|
|
|
h1 {
|
|
text-align: center;
|
|
|
|
img {
|
|
fill: white;
|
|
filter: invert(1);
|
|
height: 1em;
|
|
padding-right: 0.3em;
|
|
margin-bottom: -0.15em;
|
|
}
|
|
}
|
|
|
|
h4.subheader {
|
|
text-align: center;
|
|
transform-origin: center;
|
|
color: yellow;
|
|
width: max-content;
|
|
margin: 0 auto;
|
|
animation: 0.4s linear 0s infinite alternate zoom;
|
|
}
|
|
|
|
div#main {
|
|
height: 100%;
|
|
width: max-content;
|
|
display: grid;
|
|
grid-template-columns: auto auto;
|
|
column-gap: 1em;
|
|
margin: 0 auto;
|
|
|
|
h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
div {
|
|
padding: 1em;
|
|
margin-bottom: 1em;
|
|
border-radius: 0.25em;
|
|
background-color: #212121;
|
|
display: block;
|
|
|
|
div#board {
|
|
text-align: center;
|
|
width: min-content;
|
|
display: grid;
|
|
column-gap: 3px;
|
|
row-gap: 3px;
|
|
margin-bottom: 0;
|
|
|
|
span.cell {
|
|
color: white;
|
|
text-align: center;
|
|
width: 1em;
|
|
height: 1em;
|
|
padding: 0.4em;
|
|
border-radius: 0.1em;
|
|
background-color: #303030;
|
|
font-size: large;
|
|
|
|
img {
|
|
fill: white;
|
|
filter: invert(1);
|
|
height: 1em;
|
|
}
|
|
|
|
&.discovered {
|
|
background-color: #424242;
|
|
}
|
|
|
|
&.bomb {
|
|
background-color: #e85354;
|
|
}
|
|
|
|
&.added {
|
|
background-color: #e89759;
|
|
}
|
|
|
|
&.flag {
|
|
background-color: #4be3e3;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
div:nth-of-type(2) {
|
|
min-width: 300px;
|
|
|
|
div {
|
|
margin-bottom: 0;
|
|
|
|
&#stats {
|
|
span {
|
|
margin: 0 auto;
|
|
display: block;
|
|
text-align: center;
|
|
font-family: "Alarm Clock";
|
|
|
|
&:nth-of-type(1) {
|
|
font-size: 4em;
|
|
}
|
|
}
|
|
|
|
div {
|
|
div {
|
|
display: inline-grid;
|
|
width: calc(50% - 0.5em);
|
|
grid-column-gap: 1em;
|
|
padding: 0;
|
|
text-align: center;
|
|
min-width: auto;
|
|
|
|
h3 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
span {
|
|
font-size: 2em !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&#register {
|
|
display: none;
|
|
|
|
span#query {
|
|
height: 6rem;
|
|
display: block;
|
|
overflow: auto;
|
|
}
|
|
}
|
|
|
|
&#log {
|
|
display: none;
|
|
font-size: 12px;
|
|
position: relative;
|
|
min-height: 24rem;
|
|
|
|
div {
|
|
max-height: calc(14 * 1.25rem);
|
|
overflow: auto;
|
|
|
|
span {
|
|
display: block;
|
|
width: 100%;
|
|
color: darkgray;
|
|
padding-bottom: 0.25rem;
|
|
|
|
&.error {
|
|
color: red;
|
|
}
|
|
|
|
&.alert {
|
|
color: orange;
|
|
}
|
|
|
|
&.success {
|
|
color: cyan;
|
|
}
|
|
}
|
|
}
|
|
|
|
div:nth-of-type(2) {
|
|
position: absolute;
|
|
bottom: 0;
|
|
min-width: unset;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
footer {
|
|
position: relative;
|
|
bottom: 0;
|
|
// left: 1em;
|
|
color: darkgray;
|
|
height: 2em;
|
|
background: #111111;
|
|
width: 100%;
|
|
padding: 1em;
|
|
|
|
a {
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
} |