Skip to content

Commit

Permalink
Cover block: adding background-size and background-repeat properties …
Browse files Browse the repository at this point in the history
…to the block CSS (#42470)
  • Loading branch information
matiasbenedetto authored Jul 21, 2022
1 parent 01f426b commit f764be4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.wp-block-cover-image,
.wp-block-cover {
position: relative;
background-size: cover;
background-position: center center;
min-height: 430px;
display: flex;
Expand Down Expand Up @@ -200,6 +199,8 @@
video.wp-block-cover__video-background {
&.has-parallax {
background-attachment: fixed;
background-size: cover;
background-repeat: no-repeat;

// Mobile Safari does not support fixed background attachment properly.
// See also https://stackoverflow.com/questions/24154666/background-size-cover-not-working-on-ios
Expand Down

0 comments on commit f764be4

Please sign in to comment.