From e0d90fac16a011be7697e1f8104e64d75bc1029a Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 14 Jul 2020 22:26:44 -0400 Subject: Put events forms in a flex --- default.css | 9 +++++++-- 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; -- cgit 1.4.1