From: Michael Tremer Date: Fri, 30 Aug 2019 13:25:33 +0000 (+0100) Subject: wiki: Fix alignment of tables X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3772a5ee6de87bd83fd87b6930fdf53828826f4;p=ipfire.org.git wiki: Fix alignment of tables This was broken because of CSS overwriting what was in the markup. Fixes: #12145 Signed-off-by: Michael Tremer --- diff --git a/src/scss/style.scss b/src/scss/style.scss index 8868233e..0da1d000 100644 --- a/src/scss/style.scss +++ b/src/scss/style.scss @@ -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; + } + } } }