From 41d58449e6ec535edd24ef30ab9cae1c353f0139 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 26 Aug 2021 01:02:32 +0200 Subject: [PATCH] style
tag, dont wrap entire page into form --- home.sh | 4 ++-- webpoll.css | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/home.sh b/home.sh index c4d5754..b8f8192 100755 --- a/home.sh +++ b/home.sh @@ -20,7 +20,7 @@ if [ "$REQUEST_METHOD" = POST ]; then else [ "$PATH_INFO" != / ] && printf 'Status: 404 Not Found\r\n' yield_page "Start a Poll" "home" <<-EOF - [form method=post + [main [form method=post [submit "start" "date" Start a new poll] $(if [ "$bookmarks" ]; then printf '[h2 Recent Polls][ul .recent' @@ -31,6 +31,6 @@ else done printf ']' fi) - ] + ]] EOF fi diff --git a/webpoll.css b/webpoll.css index 7b1579f..9869003 100644 --- a/webpoll.css +++ b/webpoll.css @@ -5,20 +5,20 @@ body { linear-gradient(90deg, transparent 25%, rgba(102,170,255,.5) 25% 50%, transparent 50% 75%, rgba(102,255,255,.5) 75%); } -body > form { +body > main { background-color: rgba(255,255,255,.75) ; padding: 1em; margin: 1em auto 1em auto; border-radius: .5ex; box-shadow: #000 .125em .125em 1em; } -body.home form { +body.home main { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); } -body.poll form { +body.poll main { text-align: center; max-width: 95%; } -- 2.39.2