slightly improve styling

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-04-11 10:32:00 -07:00
parent 964b2c1c38
commit 378b23eab7
2 changed files with 28 additions and 7 deletions

View File

@ -48,7 +48,14 @@ main > form > * {
input, select {
width: fit-content;
margin-left: 10px;
}
input[type="number"] {
width: 6em;
}
label > input {
margin-left: 10px;;
}
h1 {

View File

@ -11,12 +11,12 @@
<h1>Songs of the Second Age: Character Sheet</h1>
<form>
<div class="flex">
<label>Player<input name="player" type="text"></label>
<label>Name<input name="player" type="text"></label>
<label>Level<input name="player" type="text"></label>
<label>Species<input name="player" type="text"></label>
<label>Background<input name="player" type="text"></label>
<label>Class<input name="player" type="text"></label>
<label>Player<input id="player" name="player" type="text"></label>
<label>Name<input id="name" name="name" type="text"></label>
<label>Level<input id="level" name="level" type="text"></label>
<label>Species<input id="species" name="species" type="text"></label>
<label>Background<input id="background" name="background" type="text"></label>
<label>Class<input id="class" name="class" type="text"></label>
</div>
<div class="grid" style="grid-template-columns: 1fr auto;">
<div class="grid" style="grid-template-columns: auto 1fr;">
@ -33,6 +33,20 @@
</div>
</div>
</div>
<div class="grid" style="grid-template-columns: auto auto auto auto auto auto;">
<label for="str"><u>Str</u>ength</label>
<label for="end"><u>End</u>urance</label>
<label for="agi"><u>Agi</u>lity</label>
<label for="wit"><u>Wit</u>s</label>
<label for="int"><u>Int</u>elligence</label>
<label for="cha"><u>Cha</u>risma</label>
<input id="str" name="str" type="number">
<input id="end" name="end" type="number">
<input id="agi" name="agi" type="number">
<input id="wit" name="wit" type="number">
<input id="int" name="int" type="number">
<input id="cha" name="cha" type="number">
</div>
</form>
</main>
</body>