Skip to content

Commit

Permalink
Improved alignment classes used by WYSIWYG editor
Browse files Browse the repository at this point in the history
- Fixed table cells being floated, Fixes #1284.
- Made it possible to easily center linked images.
  • Loading branch information
ssddanbrown committed Mar 2, 2019
1 parent e471d0c commit b273b9d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions resources/assets/sass/_pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b273b9d

Please sign in to comment.