Elegant Business: Fix margins for cover block h2 headings

This commit is contained in:
Allan Cole 2019-05-17 16:00:42 -04:00
parent 150fa0a753
commit 908fb63997
3 changed files with 20 additions and 30 deletions

View file

@ -522,14 +522,6 @@
padding: $size__spacing-unit 10%;
}
.wp-block-cover-image-text,
.wp-block-cover-text,
h2 {
margin-bottom: 1rem;
margin-left: auto;
margin-right: auto;
}
& + .wp-block-cover:not(.alignleft):not(.alignrights),
& + .wp-block-cover-image:not(.alignleft):not(.alignrights) {
margin-top: $size__vertical-spacing-unit;
@ -548,6 +540,12 @@
}
}
h2 {
max-width: inherit;
margin: inherit;
text-align: inherit;
}
&.has-left-content {
.wp-block-cover__inner-container {
text-align: left;

View file

@ -3897,17 +3897,6 @@ body.page .main-navigation {
}
}
.entry .entry-content .wp-block-cover-image .wp-block-cover-image-text,
.entry .entry-content .wp-block-cover-image .wp-block-cover-text,
.entry .entry-content .wp-block-cover-image h2,
.entry .entry-content .wp-block-cover .wp-block-cover-image-text,
.entry .entry-content .wp-block-cover .wp-block-cover-text,
.entry .entry-content .wp-block-cover h2 {
margin-bottom: 1rem;
margin-right: auto;
margin-left: auto;
}
.entry .entry-content .wp-block-cover-image + .wp-block-cover:not(.alignleft):not(.alignrights),
.entry .entry-content .wp-block-cover-image + .wp-block-cover-image:not(.alignleft):not(.alignrights),
.entry .entry-content .wp-block-cover + .wp-block-cover:not(.alignleft):not(.alignrights),
@ -3931,6 +3920,13 @@ body.page .main-navigation {
}
}
.entry .entry-content .wp-block-cover-image h2,
.entry .entry-content .wp-block-cover h2 {
max-width: inherit;
margin: inherit;
text-align: inherit;
}
.entry .entry-content .wp-block-cover-image.has-left-content .wp-block-cover__inner-container,
.entry .entry-content .wp-block-cover.has-left-content .wp-block-cover__inner-container {
text-align: right;

View file

@ -3909,17 +3909,6 @@ body.page .main-navigation {
}
}
.entry .entry-content .wp-block-cover-image .wp-block-cover-image-text,
.entry .entry-content .wp-block-cover-image .wp-block-cover-text,
.entry .entry-content .wp-block-cover-image h2,
.entry .entry-content .wp-block-cover .wp-block-cover-image-text,
.entry .entry-content .wp-block-cover .wp-block-cover-text,
.entry .entry-content .wp-block-cover h2 {
margin-bottom: 1rem;
margin-left: auto;
margin-right: auto;
}
.entry .entry-content .wp-block-cover-image + .wp-block-cover:not(.alignleft):not(.alignrights),
.entry .entry-content .wp-block-cover-image + .wp-block-cover-image:not(.alignleft):not(.alignrights),
.entry .entry-content .wp-block-cover + .wp-block-cover:not(.alignleft):not(.alignrights),
@ -3943,6 +3932,13 @@ body.page .main-navigation {
}
}
.entry .entry-content .wp-block-cover-image h2,
.entry .entry-content .wp-block-cover h2 {
max-width: inherit;
margin: inherit;
text-align: inherit;
}
.entry .entry-content .wp-block-cover-image.has-left-content .wp-block-cover__inner-container,
.entry .entry-content .wp-block-cover.has-left-content .wp-block-cover__inner-container {
text-align: left;