From 1f9c439703856f2e9596e541230cbea10506cb27 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 14 Jul 2020 22:35:48 -0400 Subject: Put the checkbox inside the label --- default.css | 3 +-- events.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/default.css b/default.css index 574ffb2..e27edd8 100644 --- a/default.css +++ b/default.css @@ -74,8 +74,7 @@ nav ol li:first-child::before { padding-left: 0; } -label { - padding-left: 1ch; +input[type="checkbox"], label { margin-right: 1ch; } diff --git a/events.c b/events.c index 4afdd54..65b869b 100644 --- a/events.c +++ b/events.c @@ -99,16 +99,15 @@ displayForm(struct kreq *req, struct khtmlreq *html, struct Scope scope) { KATTR_VALUE, time->parsed.s, KATTR__MAX ) + || khtml_elem(html, KELEM_LABEL) || khtml_attr( html, KELEM_INPUT, KATTR_TYPE, "checkbox", - KATTR_ID, Keys[Tidy].name, KATTR_NAME, Keys[Tidy].name, KATTR_VALUE, "1", (req->fieldmap[Tidy] ? KATTR_CHECKED : KATTR__MAX), "checked", KATTR__MAX ) - || khtml_attr(html, KELEM_LABEL, KATTR_FOR, Keys[Tidy].name, KATTR__MAX) || khtml_puts(html, "Hide general events") || khtml_closeelem(html, 1) || khtml_attr( -- cgit 1.4.1 orus/'>summary refs log tree commit diff homepage
path: root/sshd_config (unfollow)
Commit message (Expand)Author
2017-08-29Add four additional spawnsJune McEnroe
2017-08-28Add respawningJune McEnroe
2017-08-26Move license above includesJune McEnroe
2017-08-26Snapshot metadataJune McEnroe
2017-08-26Add meta.c to READMEJune McEnroe
2017-08-26Use MakefileJune McEnroe