From 7ee745204240aac07dc265849e4345c77d6e69ed Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 14 Aug 2024 18:06:38 +0200 Subject: [PATCH] CSS: Add class to automatically style forms Signed-off-by: Michael Tremer --- html/html/themes/ipfire/include/css/style.css | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/html/html/themes/ipfire/include/css/style.css b/html/html/themes/ipfire/include/css/style.css index 1602ecd43..21bee31c0 100644 --- a/html/html/themes/ipfire/include/css/style.css +++ b/html/html/themes/ipfire/include/css/style.css @@ -320,6 +320,30 @@ table { border-spacing: 0; } +/* + Form Tables +*/ +table.form { + width: 100%; + + margin-top: 1rem; + margin-bottom: 1rem; +} + +table.form:last-child { + margin-bottom: 0; +} + +table.form tr td:first-child { + width: 30%; +} + +table.form tr.action td { + padding-top: 1rem; + + text-align: right; +} + .tbl { width: 100%; } -- 2.39.5