Skip to content

Commit

Permalink
Improve block preview. (#12212)
Browse files Browse the repository at this point in the history
Hopefully fixes #11997.

It polishes the preview code a bit to be leaner and more readable. But mostly it adds a fwe CSS style overrides that it might inherit from the theme.
  • Loading branch information
jasmussen authored and youknowriad committed Nov 29, 2018
1 parent 4f25aff commit 58c8b09
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/editor/src/components/block-styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,17 @@
height: 60px;
background: $white;

> * {
// Actual preview contents.
.editor-block-preview__content {
transform: scale(0.7);
transform-origin: center center;
font-family: $editor-font;
}

.editor-block-preview__content {
width: 100%;

// Unset some of the styles that might be inherited from the editor style.
margin: 0;
padding: 0;
overflow: visible;
min-height: auto;
}
}

Expand Down

0 comments on commit 58c8b09

Please sign in to comment.