diff options
author | June McEnroe <june@causal.agency> | 2020-07-14 22:26:44 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-07-14 22:26:44 -0400 |
commit | e0d90fac16a011be7697e1f8104e64d75bc1029a (patch) | |
tree | eab008e51100cc0e3ffb2552d93f4b86345727db | |
parent | Add tidy option to events (diff) | |
download | scooper-e0d90fac16a011be7697e1f8104e64d75bc1029a.tar.gz scooper-e0d90fac16a011be7697e1f8104e64d75bc1029a.zip |
Put events forms in a flex
Diffstat (limited to '')
-rw-r--r-- | default.css | 9 | ||||
-rw-r--r-- | events.c | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/default.css b/default.css index 118da0d..574ffb2 100644 --- a/default.css +++ b/default.css @@ -48,11 +48,11 @@ body { margin: auto; } -h1, h2, nav, table, footer { +h1, h2, nav, div, table, footer { margin: 1rem 0; } -nav { +nav, nav + div { display: flex; flex-wrap: wrap; align-items: center; @@ -74,6 +74,11 @@ nav ol li:first-child::before { padding-left: 0; } +label { + padding-left: 1ch; + margin-right: 1ch; +} + table { border-spacing: 0; /* Allow some room to start selecting from */ diff --git a/events.c b/events.c index 51e56de..4afdd54 100644 --- a/events.c +++ b/events.c @@ -211,8 +211,10 @@ enum kcgi_err eventsPage(struct kreq *req) { || khtml_open(&html, req, 0) || htmlHead(&html, scope.context) || htmlNav(&html, scope) + || khtml_elem(&html, KELEM_DIV) || dateForm(req, &html, scope) || displayForm(req, &html, scope) + || khtml_closeelem(&html, 1) || khtml_elem(&html, KELEM_TABLE); if (error) return error; |