mirrored from git://develop.git.wordpress.org/
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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: Fixes font size difference in latest comments block.
The font size was different in the last comments block depending on if it was in the editor or front. This resolves that by checking block for special font size before applying default and using inherit for nested elements. Props pitamdey, sabernhardt. Fixes #61082. git-svn-id: https://develop.svn.wordpress.org/trunk@58464 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information
1 parent
00d3439
commit b2cc443
Showing
7 changed files
with
137 additions
and
17 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
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
35 changes: 35 additions & 0 deletions
35
src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/latest-comments/_editor.scss
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,38 @@ | ||
.wp-block-latest-comments { | ||
padding-left: 0; | ||
|
||
&:where(:not([class*="-font-size"]):not([style*="font-size"])) .wp-block-latest-comments__comment { | ||
font-size: var(--global--font-size-sm); | ||
} | ||
|
||
.wp-block-latest-comments__comment { | ||
line-height: var(--global--line-height-body); | ||
|
||
/* Vertical margins logic */ | ||
margin-top: var(--global--spacing-vertical); | ||
margin-bottom: var(--global--spacing-vertical); | ||
|
||
&:first-child { | ||
margin-top: 0; | ||
} | ||
|
||
&:last-child { | ||
margin-bottom: 0; | ||
} | ||
} | ||
|
||
.wp-block-latest-comments__comment-meta { | ||
font-family: var(--heading--font-family); | ||
} | ||
|
||
.wp-block-latest-comments__comment-date { | ||
color: inherit; | ||
font-size: inherit; | ||
} | ||
|
||
.wp-block-latest-comments__comment-excerpt p { | ||
font-size: inherit; | ||
line-height: var(--global--line-height-body); | ||
margin: 0; | ||
} | ||
} |
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