Improved alignment classes used by WYSIWYG editor

- Fixed table cells being floated, Fixes #1284.
- Made it possible to easily center linked images.
This commit is contained in:
Dan Brown 2019-03-02 09:08:01 +00:00
parent e471d0c52a
commit b273b9d6d0
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -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;