Skip to content

Commit

Permalink
fixed : The "cover image" block of the new WP editor has been renamed…
Browse files Browse the repository at this point in the history
… "cover".

See WordPress/gutenberg#10659, but posts created with the former cover-image block will still use the wp-block-cover-image css class.
fixes #1601
  • Loading branch information
nikeo committed Oct 25, 2018
1 parent 7a1a1d9 commit 0aaf5e0
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions assets/front/scss/0_4_layout/_article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ section[class^="post-"] {
&.czr-no-sidebar {
// alignwide and alignfull in boxed layouts
// only reset the .container[role=main] horizontal padding
.entry-content .wp-block-cover-image {
// The "cover image" block of the new WP editor has been renamed "cover".
// See https://github.com/WordPress/gutenberg/pull/10659, but posts created with the former cover-image block will still use the wp-block-cover-image css class.
.entry-content .wp-block-cover-image, .entry-content .wp-block-cover {
&.alignfull,
&.alignwide {
margin-right: -15px;
Expand All @@ -208,14 +210,25 @@ section[class^="post-"] {
}
}
}
&.czr-boxed-layout .entry-content .wp-block-cover {
@include media-breakpoint-up(sm) {
&.alignfull,
&.alignwide {
margin-right: -30px;
margin-left: -30px;
}
}
}
}

&.czr-full-layout.czr-no-sidebar {
#tc-page-wrap {
overflow-x: hidden;
}
// alignfull
.entry-content .wp-block-cover-image.alignfull {
// The "cover image" block of the new WP editor has been renamed "cover".
// See https://github.com/WordPress/gutenberg/pull/10659, but posts created with the former cover-image block will still use the wp-block-cover-image css class.
.entry-content .wp-block-cover-image.alignfull, .entry-content .wp-block-cover.alignfull {
width: 100vw;
max-width: 100vw;
position: relative;
Expand Down

0 comments on commit 0aaf5e0

Please sign in to comment.