]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/scss/style.scss
wiki: Fix alignment of tables
[ipfire.org.git] / 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;
+                       }
+               }
        }
 }