Skip to content

Commit

Permalink
Override our global aligncenter/alignleft/alignright display property…
Browse files Browse the repository at this point in the history
… for the cover block (#11990)

Previously, center/left/right-aligned cover blocks were ignoring our intended display rule. This ensures they appear as intended.
  • Loading branch information
kjellr authored Nov 16, 2018
1 parent 1dfee17 commit 745eda1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@
max-width: $content-width / 2;
width: 100%;
}

// Aligned cover blocks should not use our global alignment rules
&.aligncenter,
&.alignleft,
&.alignright {
display: flex;
}
}

.wp-block-cover__video-background {
Expand Down

0 comments on commit 745eda1

Please sign in to comment.