Skip to content

Commit 3bbcd26

Browse files
committed
Tidy up entry title display
as well as bottom spacing for the default template.
1 parent 555510b commit 3bbcd26

12 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,7 @@ p.has-background {
18071807
}
18081808
}
18091809

1810-
.entry-header .wp-block-post-title {
1810+
.wp-block-post-title.entry-title {
18111811
margin-bottom: 60px;
18121812
}
18131813

src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/wp-content/themes/twentytwentyone/assets/css/ie.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4122,7 +4122,7 @@ p.has-text-color a {
41224122
}
41234123
}
41244124

4125-
.entry-header .wp-block-post-title {
4125+
.wp-block-post-title.entry-title {
41264126
margin-bottom: 60px;
41274127
}
41284128

src/wp-content/themes/twentytwentyone/assets/css/ie.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/wp-content/themes/twentytwentyone/assets/css/style-editor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ p.has-background {
14401440
margin-bottom: calc(2 * var(--global--spacing-vertical));
14411441
}
14421442

1443-
.entry-header .wp-block-post-title {
1443+
.wp-block-post-title.entry-title {
14441444
margin-bottom: calc(2 * var(--global--spacing-vertical));
14451445
}
14461446

src/wp-content/themes/twentytwentyone/assets/css/style-editor.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/post-title/_editor.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
line-height: var(--heading--line-height-h1);
33
font-weight: var(--heading--font-weight-page-title);
44
font-size: var(--global--font-size-page-title);
5-
}
65

7-
// Add extra bottom margin when used in entry-header.
8-
.entry-header .wp-block-post-title {
9-
margin-bottom: calc(2 * var(--global--spacing-vertical));
6+
// Add extra bottom margin when used in the default template.
7+
&.entry-title {
8+
margin-bottom: calc(2 * var(--global--spacing-vertical));
9+
}
1010
}

src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/post-title/_style.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
font-weight: var(--heading--font-weight-page-title);
44
font-size: var(--global--font-size-page-title);
55
margin-bottom: calc(2 * var(--global--spacing-vertical));
6-
}
76

8-
// Add extra bottom margin when used in entry-header.
9-
.entry-header .wp-block-post-title {
10-
margin-bottom: calc(2 * var(--global--spacing-vertical));
7+
// Add extra bottom margin when used in the default template.
8+
&.entry-title {
9+
margin-bottom: calc(2 * var(--global--spacing-vertical));
10+
}
1111
}

src/wp-content/themes/twentytwentyone/block-templates/default.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<!-- /wp:group -->
1515

1616
<!-- wp:group {"align":"full","tagName":"main"} -->
17-
<div class="wp-block-group alignfull entry-header"><!-- wp:group {"align":"wide","layout":{"inherit":true}} -->
18-
<div class="wp-block-group alignwide"><!-- wp:post-title {"level":1,"align":"wide"} /-->
17+
<div class="wp-block-group alignfull"><!-- wp:group {"align":"wide","layout":{"inherit":true}} -->
18+
<div class="wp-block-group alignwide"><!-- wp:post-title {"level":1,"align":"wide","className":"entry-title"} /-->
1919

2020
<!-- wp:separator {"align":"wide","className":"is-style-twentytwentyone-separator-thick"} -->
2121
<hr class="wp-block-separator alignwide is-style-twentytwentyone-separator-thick"/>
@@ -38,7 +38,7 @@
3838

3939
<!-- wp:post-date {"fontSize":"extra-small"} /-->
4040

41-
<!-- wp:spacer {"height":30} -->
42-
<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>
41+
<!-- wp:spacer {"height":76} -->
42+
<div style="height:76px" aria-hidden="true" class="wp-block-spacer"></div>
4343
<!-- /wp:spacer --></div>
4444
<!-- /wp:group -->

src/wp-content/themes/twentytwentyone/style-rtl.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2908,7 +2908,7 @@ p.has-text-color a {
29082908
margin-bottom: calc(2 * var(--global--spacing-vertical));
29092909
}
29102910

2911-
.entry-header .wp-block-post-title {
2911+
.wp-block-post-title.entry-title {
29122912
margin-bottom: calc(2 * var(--global--spacing-vertical));
29132913
}
29142914

0 commit comments

Comments
 (0)