Twenty Twenty-One: Make text within code blocks readable in Dark Mode.
This change ensures that the primary text color specific to Dark Mode is used instead of the one specified for normal mode. The latter is not legible in Dark Mode. Props slaFFik, poena, mukesh27, justinahinon. Fixes #51985. Built from https://develop.svn.wordpress.org/trunk@49825 git-svn-id: http://core.svn.wordpress.org/trunk@49544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b7a899e8aa
commit
66d46430a7
|
@ -2573,6 +2573,7 @@ input[type=reset]:hover {
|
|||
}
|
||||
|
||||
.wp-block-code code {
|
||||
color: #28303d;
|
||||
font-size: 1rem;
|
||||
white-space: pre;
|
||||
overflow-x: auto;
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
padding: var(--global--spacing-unit);
|
||||
|
||||
code {
|
||||
color: var(--global--color-primary);
|
||||
font-size: var(--global--font-size-xs);
|
||||
white-space: pre;
|
||||
overflow-x: auto;
|
||||
|
|
|
@ -1870,6 +1870,7 @@ input[type=reset]:hover,
|
|||
}
|
||||
|
||||
.wp-block-code code {
|
||||
color: var(--global--color-primary);
|
||||
font-size: var(--global--font-size-xs);
|
||||
white-space: pre;
|
||||
overflow-x: auto;
|
||||
|
|
|
@ -1880,6 +1880,7 @@ input[type=reset]:hover,
|
|||
}
|
||||
|
||||
.wp-block-code code {
|
||||
color: var(--global--color-primary);
|
||||
font-size: var(--global--font-size-xs);
|
||||
white-space: pre;
|
||||
overflow-x: auto;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.7-alpha-49823';
|
||||
$wp_version = '5.7-alpha-49825';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue