From f4e540fa9275b4e12c8c5796849f3d316386de3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Fri, 19 Mar 2021 13:48:32 +0100 Subject: [PATCH] styling --- index.cgi | 4 +--- webnote.css | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 webnote.css diff --git a/index.cgi b/index.cgi index 04128e4..da18142 100755 --- a/index.cgi +++ b/index.cgi @@ -100,7 +100,5 @@ yield_page <<-EOF [input type=hidden name=session_key value="$SESSION_KEY"] [button type=submit name=action value=edit Edit] ] - [div .text - $(HTML <"$doc") - ] + [div .text . $(HTML <"$doc")] EOF diff --git a/webnote.css b/webnote.css new file mode 100644 index 0000000..e87795e --- /dev/null +++ b/webnote.css @@ -0,0 +1,31 @@ +body { + margin: .5em 1em; +} +button { + margin-bottom: 1em; +} +textarea { + display: block; + width: 100%; + height: 90vh; + height: calc(100vh - 4.5em); +} + +div.text { + white-space: pre; +} + +form.new { + text-align: center; + margin-top: 1em; +} + +.new button { + display: block; + margin: auto; +} + +.recent { + display: inline-block; + text-align: left; +} -- 2.39.2