forked from WordPress/wordpress-develop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Twenty Twenty-One: Remove spacer block styles.
The theme includes styles for the spacer block for the front which appears to be unnecessary: * It adds `display: block` even though that is the default. * It removes top and bottom margin, even though this is not needed in the post content because of collapsing margins between blocks. * It uses a custom CSS property to force a specific height on mobile. This affects the patterns in the theme negatively. It also causes styling problems: * When the spacer block has a height set to `0` in the navigation block, as the theme forces this to be larger on smaller screens. * When the block is horizontal. Horizontal was not an option when this style was added. Consequences of removal: * Removing the use of the custom CSS property will cause a style change for websites that have adjusted the spacing property. Follow-up to [49216], [49574]. Props poena, mukesh27. Fixes #56222. git-svn-id: https://develop.svn.wordpress.org/trunk@54103 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information
1 parent
1a35adf
commit 62edad0
Showing
8 changed files
with
2 additions
and
56 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
13 changes: 0 additions & 13 deletions
13
src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/spacer/_style.scss
This file was deleted.
Oops, something went wrong.
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
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
Large diffs are not rendered by default.
Oops, something went wrong.