1
0
Fork 0

feat: add reload button

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
combat-scorched-earth-from-outer-space
André Jaenisch 1 year ago
parent 39dbf7a04f
commit 95174e9380
Signed by: ryuno-ki
GPG Key ID: 5A668E771F1ED854
  1. 7
      src/css/main.css
  2. 1
      src/index.njk

@ -289,6 +289,7 @@ section:first-of-type {
text-align: center;
}
#scene-game:not(:target),
section:not(:target) {
display: none;
}
@ -297,10 +298,13 @@ a {
color: orange;
}
button[type="button"],
a[href^="#"] {
/* FIXME: Normalize.css interfers? */
background-color: orange !important;
border: none;
color: midnightblue;
cursor: pointer;
display: inline-block;
margin-block: 1em;
padding: 0.5em 1em;
@ -310,6 +314,7 @@ a[href^="#"] {
canvas {
background-color: grey;
cursor: not-allowed;
}
label,
@ -348,5 +353,7 @@ input[type="range"] {
}
#controls {
display: flex;
grid-area: controls;
justify-content: space-between;
}

@ -47,6 +47,7 @@
/>
</label>
<div id="controls">
<button type="button" onclick="location.reload()">Restart</button>
<a href="#scene-title">Back to start</a>
</div>
</section>

Loading…
Cancel
Save