2020-11-08 13:23:38 +01:00
|
|
|
body {
|
2020-11-08 22:47:13 +01:00
|
|
|
font-family: monospace;
|
|
|
|
padding: 2em;
|
|
|
|
margin: 0;
|
|
|
|
background-color: #111111;
|
|
|
|
color: white;
|
2020-11-08 13:23:38 +01:00
|
|
|
// * {
|
|
|
|
// border: 1px solid 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;
|
2020-11-08 22:47:13 +01:00
|
|
|
border-radius: 0.25em;
|
|
|
|
background-color: #212121;
|
2020-11-08 13:23:38 +01:00
|
|
|
&#board {
|
|
|
|
text-align: center;
|
|
|
|
width: min-content;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto;
|
2020-11-08 22:47:13 +01:00
|
|
|
column-gap: 3px;
|
|
|
|
row-gap: 3px;
|
2020-11-08 13:23:38 +01:00
|
|
|
span.cell {
|
2020-11-08 22:47:13 +01:00
|
|
|
color: white;
|
2020-11-08 13:23:38 +01:00
|
|
|
text-align: center;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
2020-11-08 22:47:13 +01:00
|
|
|
padding: 0.4em;
|
|
|
|
border-radius: 0.1em;
|
|
|
|
background-color: #303030;
|
|
|
|
font-size: large;
|
2020-11-08 13:23:38 +01:00
|
|
|
&.discovered {
|
2020-11-08 22:47:13 +01:00
|
|
|
background-color: #424242;
|
2020-11-08 13:23:38 +01:00
|
|
|
}
|
|
|
|
&.bomb {
|
2020-11-08 22:47:13 +01:00
|
|
|
background-color: #FC5130;
|
|
|
|
}
|
|
|
|
&.flag {
|
|
|
|
background-color: #51CB20;
|
2020-11-08 13:23:38 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&#log {
|
|
|
|
font-size: 12px;
|
|
|
|
width: 20vw;
|
|
|
|
h2 {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
span {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
color: darkgray;
|
|
|
|
padding-bottom: 0.5em;
|
|
|
|
&.error {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
&.alert {
|
|
|
|
color: orange;
|
|
|
|
}
|
|
|
|
&.success {
|
|
|
|
color: cyan;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-08 22:47:13 +01:00
|
|
|
footer {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 1em;
|
|
|
|
left: 1em;
|
|
|
|
color: darkgray;
|
|
|
|
height: 1em;
|
|
|
|
a {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-08 13:23:38 +01:00
|
|
|
}
|