From b6a04140f2668a0dcae4befcd272e05b75bd14e5 Mon Sep 17 00:00:00 2001 From: Bobby Date: Mon, 7 Jul 2025 15:40:09 +0530 Subject: fix templates to use proper layout and semantic forms instead of tables --- static/css/main.css | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'static/css/main.css') diff --git a/static/css/main.css b/static/css/main.css index 47a393e..ac463c9 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -321,4 +321,54 @@ section h2 { .center { text-align: center; +} + +/* Form Elements */ +fieldset { + background: var(--bg-section); + border: 2px inset var(--border-main); + padding: 12px; + margin: 8px 0; +} + +legend { + font-weight: bold; + font-size: 12px; + color: var(--text-main); + padding: 0 4px; + background: var(--bg-main); +} + +.form-group { + margin: 8px 0; +} + +.form-group label { + display: block; + font-weight: bold; + font-size: 12px; + margin: 4px 0 2px 0; + color: var(--text-main); +} + +.form-group small { + display: block; + font-size: 10px; + color: var(--text-dim); + margin-top: 2px; +} + +.form-actions { + margin: 12px 0 8px 0; + text-align: center; +} + +.radio-group div { + margin: 4px 0; +} + +.radio-group label { + display: inline; + font-weight: normal; + margin-left: 4px; } \ No newline at end of file -- cgit v1.2.3