From: Dan Brown Date: Sat, 2 Mar 2019 09:08:01 +0000 (+0000) Subject: Improved alignment classes used by WYSIWYG editor X-Git-Tag: v0.25.2~1^2~10 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/b273b9d6d04e3c0de999cda0ce52560137dc47f1 Improved alignment classes used by WYSIWYG editor - Fixed table cells being floated, Fixes #1284. - Made it possible to easily center linked images. --- diff --git a/resources/assets/sass/_pages.scss b/resources/assets/sass/_pages.scss index 21fdf90de..84280319d 100755 --- a/resources/assets/sass/_pages.scss +++ b/resources/assets/sass/_pages.scss @@ -51,15 +51,22 @@ margin: $-xs $-s $-xs 0; } .align-right { - float: right !important; + text-align: right !important; } img.align-right, table.align-right { - text-align: right; + float: right !important; margin: $-xs 0 $-xs $-s; } .align-center { text-align: center; } + img.align-center { + display: block; + } + img.align-center, table.align-center { + margin-left: auto; + margin-right: auto; + } img { max-width: 100%; height:auto;