-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for breaking changes from Gutenberg 11.4 (#30)
* Bring over the layout/alignment style changes from Blockbase This better accommodates the change in Gutenberg that causes all blocks that support `experimentalLayout` (the Group block) to get the `wp-container-[hash]` class added during rendering. See Automattic/themes#4459 * Set the post header's layout to flex * Tweak layout styles to restore desired alignments * Avoid using 'important' clauses where possible
- Loading branch information
1 parent
fccca53
commit 4a144a7
Showing
4 changed files
with
38 additions
and
12 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
source/wp-content/themes/wporg-news-2021/block-template-parts/content-single.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
source/wp-content/themes/wporg-news-2021/sass/blocks/_post-title.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.wp-block-post-title { | ||
margin-top: 0; | ||
.single [class*="wp-container-"] & { | ||
margin-top: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters