From 8f53d26219db0ba85e81648fb56ea4c867ea2fae Mon Sep 17 00:00:00 2001 From: Jiehong Ma Date: Sun, 16 Jul 2023 13:43:46 +0200 Subject: [PATCH] feature: add more options and add query as part of the url to ease sharing --- public/index.html | 55 ++++++++++++++++++++++++++++++++++++++++++----- public/style.css | 14 +++++++++--- 2 files changed, 61 insertions(+), 8 deletions(-) diff --git a/public/index.html b/public/index.html index 7e1672d..9f5dbd9 100755 --- a/public/index.html +++ b/public/index.html @@ -25,13 +25,24 @@ @@ -90,16 +122,29 @@ autocomplete="on" spellcheck="false" autocorrect="off" + autofocus /> diff --git a/public/style.css b/public/style.css index 4de08f4..1948fbc 100755 --- a/public/style.css +++ b/public/style.css @@ -1,5 +1,6 @@ :root { font-size: 2.5rem; + --font-family: "Berkeley Mono", "Fira Code", monospace; } body { @@ -61,13 +62,13 @@ h1 { } #top a { - position: fixed; + position: absolute; right: 2em; } } textarea { - font-family: "Fira Code", monospace; + font-family: var(--font-family); font-size: inherit; border: none; border-radius: .3em; @@ -78,6 +79,7 @@ textarea { } #content label { + font-family: var(--font-family); font-size: 1.3em; font-weight: bold; height: 1.5em; @@ -102,6 +104,7 @@ textarea { grid-area: filter; height: 2em; font-size: 1.1em; + font-family: var(--font-family); background: #e8e8e8; border: none; @@ -118,6 +121,7 @@ textarea { margin: 0; padding: 0; padding-left: .5em; + flex-direction: column; } #options li { @@ -139,7 +143,11 @@ input[type=checkbox] { input[type=checkbox] { transform: scale(1.3); height: 1em; - margin-right: .5em; + margin-right: .1em; + } + + #options { + flex-direction: row; } }