Challenge nav, style tweaks

rust
Elnu 1 year ago
parent e4bf1e733c
commit 1de0633833

@ -22,13 +22,27 @@ body {
font-size: 1.25em; font-size: 1.25em;
} }
#content { #content, dialog {
width: 100%;
background: var(--bg); background: var(--bg);
border-radius: 4px;
overflow: hidden;
box-shadow: 0 0 16px rgba(0, 0, 0, 0.125); box-shadow: 0 0 16px rgba(0, 0, 0, 0.125);
border: none;
border-radius: 4px;
}
input[type=number] {
background: var(--bg);
color: var(--fg);
border: none;
outline: none;
font: inherit;
text-align: center;
width: 4em;
appearance: textfield;
}
#content {
width: 100%;
overflow: hidden;
& > div { & > div {
padding: 1em; padding: 1em;
} }

@ -11,9 +11,9 @@
{% include "modal" %} {% include "modal" %}
<div id="content"> <div id="content">
<nav> <nav>
<a><svg class="svg-inline" aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 278.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"></path></svg></a> <a href="/{{ challenge - 1 }}"><svg class="svg-inline" aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 278.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"></path></svg></a>
<input type="number"> <input type="number" min="1" value="{{ challenge }}" autocomplete="false">
<a><svg class="svg-inline" aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"></path></svg></a> <a href="/{{ challenge + 1 }}"><svg class="svg-inline" aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"></path></svg></a>
{% if content.song %} {% if content.song %}
<div> <div>
<span>{{ content.song.japanese }}</span> <span>{{ content.song.japanese }}</span>
@ -37,8 +37,6 @@
</nav> </nav>
<div> <div>
<h1>Welcome to Tegaki Tuesday #{{ challenge }}!</h1> <h1>Welcome to Tegaki Tuesday #{{ challenge }}!</h1>
<a href="/{{ challenge - 1 }}">Previous</a>
<a href="/{{ challenge + 1 }}">Next</a>
<div lang="ja"> <div lang="ja">
<script> <script>
let kyujitai = false; let kyujitai = false;

Loading…
Cancel
Save