-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Post excerpt block - add color, fontSize, lineHeight, and text alignm…
…ent. (#23945) * add text align * add wrapper and line-height inherit * php format * get this working in site editor? * set initial readMore, get rid of extra parent component * styles to ensure link color is shown * no elipsis * dont initialize for now /shrug * add custom warning if no post found in context * more simple error fix * actually we need this warning... otherwise user can edit what cannot be dirtied/saved * get rid of important
- Loading branch information
1 parent
f13cf85
commit 5221168
Showing
6 changed files
with
123 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
.wp-block-post-excerpt__excerpt.is-inline { | ||
display: inline-block; | ||
.wp-block-post-excerpt { | ||
|
||
.wp-block-post-excerpt__excerpt.is-inline { | ||
display: inline-block; | ||
} | ||
|
||
|
||
} | ||
|
||
.wp-block[data-type="core/post-excerpt"].has-link-color .wp-block-post-excerpt a { | ||
color: var(--wp--style--color--link); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.wp-block-post-excerpt { | ||
.wp-block-post-excerpt__excerpt, | ||
.wp-block-post-excerpt__more-text { | ||
line-height: inherit; | ||
} | ||
} | ||
|
||
.wp-block-post-excerpt.has-link-color a, | ||
.wp-block-post-excerpt.has-background.has-link-color a { | ||
color: var(--wp--style--color--link); | ||
} |
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