132 lines
3.1 KiB
SCSS
132 lines
3.1 KiB
SCSS
@font-face {
|
|
font-family: "Alarm Clock";
|
|
src: url("../res/fonts/alarm\ clock.ttf") format("truetype"),
|
|
}
|
|
|
|
body {
|
|
font-family: monospace;
|
|
padding: 2em;
|
|
margin: 0;
|
|
background-color: #111111;
|
|
color: white;
|
|
|
|
h1 {
|
|
text-align: center;
|
|
}
|
|
|
|
div#main {
|
|
height: 100%;
|
|
width: max-content;
|
|
display: grid;
|
|
grid-template-columns: auto auto;
|
|
column-gap: 1em;
|
|
margin: 0 auto;
|
|
|
|
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;
|
|
|
|
&.discovered {
|
|
background-color: #424242;
|
|
}
|
|
|
|
&.bomb {
|
|
background-color: #FC5130;
|
|
}
|
|
|
|
&.flag {
|
|
background-color: #51CB20;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
div:nth-of-type(2) {
|
|
min-width: 300px;
|
|
|
|
div {
|
|
margin-bottom: 0;
|
|
|
|
&#time {
|
|
span {
|
|
margin: 0 auto;
|
|
display: block;
|
|
text-align: center;
|
|
font-size: 5em;
|
|
font-family: "Alarm Clock";
|
|
}
|
|
}
|
|
|
|
&#register {
|
|
display: none;
|
|
}
|
|
|
|
&#log {
|
|
display: none;
|
|
font-size: 12px;
|
|
|
|
div {
|
|
max-height: 23rem;
|
|
overflow: auto;
|
|
|
|
span {
|
|
display: block;
|
|
width: 100%;
|
|
color: darkgray;
|
|
padding-bottom: 0.5em;
|
|
|
|
&.error {
|
|
color: red;
|
|
}
|
|
|
|
&.alert {
|
|
color: orange;
|
|
}
|
|
|
|
&.success {
|
|
color: cyan;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
footer {
|
|
position: sticky;
|
|
bottom: 0;
|
|
left: 1em;
|
|
color: darkgray;
|
|
height: 1em;
|
|
background: #111111;
|
|
width: 100%;
|
|
padding: 1em;
|
|
|
|
a {
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
} |