]> git.ipfire.org Git - ipfire.org.git/commitdiff
wiki: Fix alignment of tables
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 30 Aug 2019 13:25:33 +0000 (14:25 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 30 Aug 2019 13:25:33 +0000 (14:25 +0100)
This was broken because of CSS overwriting what was in the markup.

Fixes: #12145
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scss/style.scss

index 8868233e1fab75d2e49ae47f20c4b4f690322118..0da1d000f675f5692b24a3d7002eee125204e921 100644 (file)
@@ -312,6 +312,21 @@ section {
                @extend .table;
                @extend .table-sm;
                @extend .table-striped;
+
+               // Apply CSS classes for alignment
+               thead {
+                       th[align="left"], td[align="left"] {
+                               @extend .text-left;
+                       }
+
+                       th[align="center"], td[align="center"] {
+                               @extend .text-center;
+                       }
+
+                       th[align="right"], td[align="right"] {
+                               @extend .text-right;
+                       }
+               }
        }
 }