From: Paul Hänsch Date: Fri, 19 Mar 2021 12:48:32 +0000 (+0100) Subject: styling X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;ds=sidebyside;h=f4e540fa9275b4e12c8c5796849f3d316386de3e;p=webtxt styling --- 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; +}