Skip to content

Commit

Permalink
Add padding to Cover (rather than inner content)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Q authored and mtias committed Apr 2, 2020
1 parent 288cec5 commit e6b27ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 3 additions & 6 deletions packages/block-library/src/cover/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,10 @@
max-width: $content-width / 2;
width: 100%;
}
}


&.has-custom-content-position.has-custom-content-position {
.wp-block-cover__inner-container {
padding: 0 $grid-unit-40;
}
}
.wp-block-cover {
padding: $grid-unit-20 $grid-unit-40;
}

.block-library-cover__reset-button {
Expand Down
5 changes: 4 additions & 1 deletion packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,15 @@
&.has-custom-content-position.has-custom-content-position {
.wp-block-cover__inner-container {
margin: 0;
padding: $grid-unit-40;
width: auto;
}
}
}

.wp-block-cover {
padding: $grid-unit-20;
}

.wp-block-cover__video-background {
position: absolute;
top: 50%;
Expand Down

0 comments on commit e6b27ed

Please sign in to comment.