Skip to content

Commit

Permalink
Fix image centering and code block width at view.
Browse files Browse the repository at this point in the history
  • Loading branch information
keillera committed Mar 3, 2020
1 parent 8385aca commit 2d41679
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/assets/stylesheets/ckeditor-view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,17 @@
font-style: normal;
}

pre {
max-width: 640px;
}

img {
max-width: 100%;
}

.image {
margin: 24px 0;
display: block;

> figcaption {
color: #666;
Expand Down Expand Up @@ -239,6 +244,10 @@
padding: 8px 20px;
}

pre {
max-width: calc(100vw - 36px - 32px);
}

.image {
margin: 20px 0;

Expand Down

0 comments on commit 2d41679

Please sign in to comment.