mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
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:
parent
e471d0c52a
commit
b273b9d6d0
@ -51,15 +51,22 @@
|
|||||||
margin: $-xs $-s $-xs 0;
|
margin: $-xs $-s $-xs 0;
|
||||||
}
|
}
|
||||||
.align-right {
|
.align-right {
|
||||||
float: right !important;
|
text-align: right !important;
|
||||||
}
|
}
|
||||||
img.align-right, table.align-right {
|
img.align-right, table.align-right {
|
||||||
text-align: right;
|
float: right !important;
|
||||||
margin: $-xs 0 $-xs $-s;
|
margin: $-xs 0 $-xs $-s;
|
||||||
}
|
}
|
||||||
.align-center {
|
.align-center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
img.align-center {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
img.align-center, table.align-center {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height:auto;
|
height:auto;
|
||||||
|
Loading…
Reference in New Issue
Block a user