]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
CSS: Add class to automatically style forms
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 14 Aug 2024 16:06:38 +0000 (18:06 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 14 Aug 2024 16:54:06 +0000 (16:54 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/html/themes/ipfire/include/css/style.css

index 1602ecd433d6b4fc5e06c1155c6fe66b35fbc8d4..21bee31c09b35bcfe3a5f5d2bed7dfcfe73207ce 100644 (file)
@@ -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%;
 }