From dea26377c860c49e291d187d7ae33a050aa3bf63 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 25 Oct 2026 12:57:08 -1000 Subject: Say when a login fails, and line up the form A wrong password sent the reader back to the same empty form, which looked no different from a crash. The redirect now carries a flag the form reads, the same for an unknown user as for a wrong password, and the form leaves the flag out of the way back it signs. --- assets/cgit.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'assets/cgit.css') diff --git a/assets/cgit.css b/assets/cgit.css index 9c0cce8..cf62df8 100644 --- a/assets/cgit.css +++ b/assets/cgit.css @@ -1103,6 +1103,26 @@ div#cgit span.deletions { color: var(--del); } +div#cgit p.login-error { + color: var(--del); + font-weight: bold; +} + +div#cgit form.login table { + border-collapse: separate; + border-spacing: 0 0.5em; +} + +div#cgit form.login td:first-child { + padding-right: 0.75em; +} + +div#cgit form.login input[type="text"], +div#cgit form.login input[type="password"] { + width: 16em; + max-width: 100%; +} + div#cgit .footer { padding: 0.85rem var(--gutter); text-align: center; -- cgit 2.9.2