mirror of
git://develop.git.wordpress.org/
synced 2025-04-08 14:13:27 +02:00
Twenty Twenty: Ensure custom primary color is applied to text in the editor.
Update the specificity of the custom CSS to match the editor styles. This overrides the default primary color with the selected custom color, matching the frontend display. Props sabernhardt, notlaura. Fixes #50120. git-svn-id: https://develop.svn.wordpress.org/trunk@51095 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d5e419ade2
commit
34bda4070b
@ -224,7 +224,7 @@ Inter variable font. Usage:
|
||||
|
||||
/* Typography -------------------------------- */
|
||||
|
||||
.editor-styles-wrapper .editor-block-list__layout a {
|
||||
.editor-styles-wrapper a {
|
||||
color: #cd2653;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ if ( ! function_exists( 'twentytwenty_get_customizer_css' ) ) {
|
||||
// Colors.
|
||||
// Accent color.
|
||||
if ( $accent && $accent !== $accent_default ) {
|
||||
twentytwenty_generate_css( '.has-accent-color, .editor-styles-wrapper .editor-block-list__layout a, .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter, .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link, .editor-styles-wrapper .wp-block-pullquote::before, .editor-styles-wrapper .wp-block-file .wp-block-file__textlink', 'color', $accent );
|
||||
twentytwenty_generate_css( ':root .has-accent-color, .editor-styles-wrapper a, .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter, .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link, .editor-styles-wrapper .wp-block-pullquote::before, .editor-styles-wrapper .wp-block-file .wp-block-file__textlink', 'color', $accent );
|
||||
twentytwenty_generate_css( '.editor-styles-wrapper .wp-block-quote', 'border-color', $accent, '' );
|
||||
twentytwenty_generate_css( '.has-accent-background-color, .editor-styles-wrapper .wp-block-button__link, .editor-styles-wrapper .wp-block-file__button', 'background-color', $accent );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user