fixed spacing issues on post title (#4855)

This commit is contained in:
Maggie 2021-10-20 10:48:33 +02:00 committed by GitHub
parent 7adf3e623e
commit 94e90df097
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 7 deletions

View file

@ -180,10 +180,13 @@
margin-bottom: 0;
}
h1.wp-block-post-title:not(.has-featured-image .wp-block-post-title) {
h1.wp-block-post-title {
margin-bottom: calc(var(--wp--custom--gap--vertical) * 3);
}
body:not(.has-featured-image) h1.wp-block-post-title {
border-bottom: var(--wp--custom--form--border--width) var(--wp--custom--form--border--style) var(--wp--preset--color--primary);
padding-bottom: calc(var(--wp--custom--gap--vertical) * 3);
margin-bottom: 0;
}
.is-root-container,

View file

@ -1,6 +1,9 @@
h1.wp-block-post-title:not(.has-featured-image .wp-block-post-title) {
border-bottom: var(--wp--custom--form--border--width)
var(--wp--custom--form--border--style) var(--wp--preset--color--primary);
padding-bottom: calc(var(--wp--custom--gap--vertical) * 3);
margin-bottom: 0;
h1.wp-block-post-title {
//can be removed after https://github.com/WordPress/gutenberg/pull/35684 lands
margin-bottom: calc(var(--wp--custom--gap--vertical) * 3);
body:not(.has-featured-image) &{
border-bottom: var(--wp--custom--form--border--width)
var(--wp--custom--form--border--style) var(--wp--preset--color--primary);
padding-bottom: calc(var(--wp--custom--gap--vertical) * 3);
}
}