From 64c8ee3042fc035aadd562db2f4e353b0f5a9ee8 Mon Sep 17 00:00:00 2001 From: m15o Date: Sat, 4 Dec 2021 16:22:30 +0100 Subject: [PATCH] Finishing up --- assets/style.css | 35 +++-- web/handler/common.go | 6 +- web/handler/html.go | 163 ++++++++++++----------- web/handler/html/common/layout.html | 2 +- web/handler/html/common/status_form.html | 4 +- web/handler/html/create_status.html | 2 +- web/handler/html/current_status.html | 37 +++-- web/handler/html/edit_status.html | 18 ++- web/handler/html/index.html | 6 + web/handler/html/manage.html | 46 +++---- web/handler/html/settings.html | 50 ++++--- web/handler/html/status-updater.html | 2 +- web/handler/html/user.html | 1 + web/handler/tpl.go | 3 +- web/handler/user_show.go | 2 + web/handler/widget_show.go | 2 +- 16 files changed, 206 insertions(+), 173 deletions(-) diff --git a/assets/style.css b/assets/style.css index 19c5121..c73b84f 100644 --- a/assets/style.css +++ b/assets/style.css @@ -7,20 +7,35 @@ body { color: midnightblue; } -/*section {*/ -/* padding: 1em;*/ -/* background-color: lightblue;*/ -/*}*/ +.faces { + margin-bottom: 1em; + max-width: 500px; +} .flash { background-color: lightgreen; padding: 0.5em 1em; color: darkgreen; + animation: 500ms ease-out 3s 1 forwards fadeout; +} + +@keyframes fadeout { + 0% { + opacity: 1; + } + 99% { + opacity: 0; + font-size: inherit; + height: inherit; + } + 100% { + font-size: 0; + height: 0; + } } .cols { display: grid; - row-gap: 1em; } a { @@ -52,13 +67,9 @@ dd { margin-bottom: 1em; } -/*nav {*/ -/* margin-bottom: 1em;*/ -/*}*/ - -/*h1, h2 {*/ -/* !*margin-top: 0;*!*/ -/*}*/ +.edit-status { + width: 100%; box-sizing: border-box; height: 100px; +} .tools { list-style-position: inside; diff --git a/web/handler/common.go b/web/handler/common.go index 4681cea..60667e7 100644 --- a/web/handler/common.go +++ b/web/handler/common.go @@ -22,7 +22,7 @@ var TplCommonMap = map[string]string{