Skip to content

Commit

Permalink
try: setting styles to shadow dom elements
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Jul 31, 2019
1 parent b7fd4e7 commit ea573f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-editor/src/components/block-preview/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@

// These rules ensure the preview scales smoothly regardless of the container size.
.editor-block-preview__container {
.special-wrapper-element::shadow .editor-block-list__layout {
border: 1px solid $dark-gray-300;
box-shadow: 2px 2px 5px $dark-gray-300;
}

// In the component, a top padding is provided as an inline style to provid an aspect-ratio.
// This positioning enables the content to sit on top of that padding to fit.
position: relative;
Expand Down

0 comments on commit ea573f9

Please sign in to comment.