Merge pull request #1210 from Automattic/fix/1132-sophisticated-business-fix-cover-heading-alignment

Sophisticated Business: Fix the cover headings alignment
This commit is contained in:
Daniel Dudzic 2019-08-08 11:07:24 +02:00 committed by GitHub
commit 6e6f784076
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 96 additions and 0 deletions

View file

@ -569,6 +569,18 @@
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
&.has-text-align-left {
text-align: left;
}
&.has-text-align-center {
text-align: center;
}
&.has-text-align-right {
text-align: right;
}
}
h1 {

View file

@ -1086,6 +1086,18 @@ figcaption,
font-weight: 700;
}
.wp-block-cover .wp-block-cover__inner-container h1.has-text-align-left, .wp-block-cover .wp-block-cover__inner-container h2.has-text-align-left, .wp-block-cover .wp-block-cover__inner-container h3.has-text-align-left, .wp-block-cover .wp-block-cover__inner-container h4.has-text-align-left, .wp-block-cover .wp-block-cover__inner-container h5.has-text-align-left, .wp-block-cover .wp-block-cover__inner-container h6.has-text-align-left {
text-align: left;
}
.wp-block-cover .wp-block-cover__inner-container h1.has-text-align-center, .wp-block-cover .wp-block-cover__inner-container h2.has-text-align-center, .wp-block-cover .wp-block-cover__inner-container h3.has-text-align-center, .wp-block-cover .wp-block-cover__inner-container h4.has-text-align-center, .wp-block-cover .wp-block-cover__inner-container h5.has-text-align-center, .wp-block-cover .wp-block-cover__inner-container h6.has-text-align-center {
text-align: center;
}
.wp-block-cover .wp-block-cover__inner-container h1.has-text-align-right, .wp-block-cover .wp-block-cover__inner-container h2.has-text-align-right, .wp-block-cover .wp-block-cover__inner-container h3.has-text-align-right, .wp-block-cover .wp-block-cover__inner-container h4.has-text-align-right, .wp-block-cover .wp-block-cover__inner-container h5.has-text-align-right, .wp-block-cover .wp-block-cover__inner-container h6.has-text-align-right {
text-align: right;
}
.wp-block-cover .wp-block-cover__inner-container h1 {
font-size: 2.25em;
}

View file

@ -293,6 +293,18 @@ figcaption,
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
&.has-text-align-left {
text-align: left;
}
&.has-text-align-center {
text-align: center;
}
&.has-text-align-right {
text-align: right;
}
}
h1 {

View file

@ -3912,6 +3912,36 @@ body.page .main-navigation {
font-weight: 700;
}
.entry .entry-content .wp-block-cover-image h1.has-text-align-left, .entry .entry-content .wp-block-cover-image h2.has-text-align-left, .entry .entry-content .wp-block-cover-image h3.has-text-align-left, .entry .entry-content .wp-block-cover-image h4.has-text-align-left, .entry .entry-content .wp-block-cover-image h5.has-text-align-left, .entry .entry-content .wp-block-cover-image h6.has-text-align-left,
.entry .entry-content .wp-block-cover h1.has-text-align-left,
.entry .entry-content .wp-block-cover h2.has-text-align-left,
.entry .entry-content .wp-block-cover h3.has-text-align-left,
.entry .entry-content .wp-block-cover h4.has-text-align-left,
.entry .entry-content .wp-block-cover h5.has-text-align-left,
.entry .entry-content .wp-block-cover h6.has-text-align-left {
text-align: right;
}
.entry .entry-content .wp-block-cover-image h1.has-text-align-center, .entry .entry-content .wp-block-cover-image h2.has-text-align-center, .entry .entry-content .wp-block-cover-image h3.has-text-align-center, .entry .entry-content .wp-block-cover-image h4.has-text-align-center, .entry .entry-content .wp-block-cover-image h5.has-text-align-center, .entry .entry-content .wp-block-cover-image h6.has-text-align-center,
.entry .entry-content .wp-block-cover h1.has-text-align-center,
.entry .entry-content .wp-block-cover h2.has-text-align-center,
.entry .entry-content .wp-block-cover h3.has-text-align-center,
.entry .entry-content .wp-block-cover h4.has-text-align-center,
.entry .entry-content .wp-block-cover h5.has-text-align-center,
.entry .entry-content .wp-block-cover h6.has-text-align-center {
text-align: center;
}
.entry .entry-content .wp-block-cover-image h1.has-text-align-right, .entry .entry-content .wp-block-cover-image h2.has-text-align-right, .entry .entry-content .wp-block-cover-image h3.has-text-align-right, .entry .entry-content .wp-block-cover-image h4.has-text-align-right, .entry .entry-content .wp-block-cover-image h5.has-text-align-right, .entry .entry-content .wp-block-cover-image h6.has-text-align-right,
.entry .entry-content .wp-block-cover h1.has-text-align-right,
.entry .entry-content .wp-block-cover h2.has-text-align-right,
.entry .entry-content .wp-block-cover h3.has-text-align-right,
.entry .entry-content .wp-block-cover h4.has-text-align-right,
.entry .entry-content .wp-block-cover h5.has-text-align-right,
.entry .entry-content .wp-block-cover h6.has-text-align-right {
text-align: left;
}
.entry .entry-content .wp-block-cover-image h1,
.entry .entry-content .wp-block-cover h1 {
font-size: 2.25em;

View file

@ -3924,6 +3924,36 @@ body.page .main-navigation {
font-weight: 700;
}
.entry .entry-content .wp-block-cover-image h1.has-text-align-left, .entry .entry-content .wp-block-cover-image h2.has-text-align-left, .entry .entry-content .wp-block-cover-image h3.has-text-align-left, .entry .entry-content .wp-block-cover-image h4.has-text-align-left, .entry .entry-content .wp-block-cover-image h5.has-text-align-left, .entry .entry-content .wp-block-cover-image h6.has-text-align-left,
.entry .entry-content .wp-block-cover h1.has-text-align-left,
.entry .entry-content .wp-block-cover h2.has-text-align-left,
.entry .entry-content .wp-block-cover h3.has-text-align-left,
.entry .entry-content .wp-block-cover h4.has-text-align-left,
.entry .entry-content .wp-block-cover h5.has-text-align-left,
.entry .entry-content .wp-block-cover h6.has-text-align-left {
text-align: left;
}
.entry .entry-content .wp-block-cover-image h1.has-text-align-center, .entry .entry-content .wp-block-cover-image h2.has-text-align-center, .entry .entry-content .wp-block-cover-image h3.has-text-align-center, .entry .entry-content .wp-block-cover-image h4.has-text-align-center, .entry .entry-content .wp-block-cover-image h5.has-text-align-center, .entry .entry-content .wp-block-cover-image h6.has-text-align-center,
.entry .entry-content .wp-block-cover h1.has-text-align-center,
.entry .entry-content .wp-block-cover h2.has-text-align-center,
.entry .entry-content .wp-block-cover h3.has-text-align-center,
.entry .entry-content .wp-block-cover h4.has-text-align-center,
.entry .entry-content .wp-block-cover h5.has-text-align-center,
.entry .entry-content .wp-block-cover h6.has-text-align-center {
text-align: center;
}
.entry .entry-content .wp-block-cover-image h1.has-text-align-right, .entry .entry-content .wp-block-cover-image h2.has-text-align-right, .entry .entry-content .wp-block-cover-image h3.has-text-align-right, .entry .entry-content .wp-block-cover-image h4.has-text-align-right, .entry .entry-content .wp-block-cover-image h5.has-text-align-right, .entry .entry-content .wp-block-cover-image h6.has-text-align-right,
.entry .entry-content .wp-block-cover h1.has-text-align-right,
.entry .entry-content .wp-block-cover h2.has-text-align-right,
.entry .entry-content .wp-block-cover h3.has-text-align-right,
.entry .entry-content .wp-block-cover h4.has-text-align-right,
.entry .entry-content .wp-block-cover h5.has-text-align-right,
.entry .entry-content .wp-block-cover h6.has-text-align-right {
text-align: right;
}
.entry .entry-content .wp-block-cover-image h1,
.entry .entry-content .wp-block-cover h1 {
font-size: 2.25em;