Twenty Twenty-One: Make transparent PNG logo visible on focus.
This ensures a transparent logo remains visible while focused. Props bduclos, poena, paaljoachim, hellofromTonya. Fixes #52257. Built from https://develop.svn.wordpress.org/trunk@50154 git-svn-id: http://core.svn.wordpress.org/trunk@49833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
87f1e31871
commit
ea3a1d782a
|
@ -379,6 +379,10 @@ a:hover {
|
|||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) img {
|
||||
outline: 2px dotted #28303d;
|
||||
}
|
||||
|
|
|
@ -2218,6 +2218,10 @@ a:hover {
|
|||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) img {
|
||||
outline: 2px dotted #28303d;
|
||||
}
|
||||
|
@ -5402,15 +5406,6 @@ table.wp-calendar-table caption {
|
|||
line-height: 1.4;
|
||||
}
|
||||
|
||||
a.custom-logo-link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.has-background-white a.custom-logo-link:focus,
|
||||
.is-dark-theme a.custom-logo-link:focus {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.site-title > a {
|
||||
text-decoration-color: #39414d;
|
||||
}
|
||||
|
|
|
@ -24,6 +24,11 @@
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.is-dark-theme.is-dark-theme .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus,
|
||||
.is-dark-theme.is-dark-theme .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) .meta-nav.custom-logo-link:focus {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.is-dark-theme.is-dark-theme img {
|
||||
filter: brightness(0.85) contrast(1.1);
|
||||
}
|
||||
|
|
|
@ -24,6 +24,11 @@
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.is-dark-theme.is-dark-theme .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus,
|
||||
.is-dark-theme.is-dark-theme .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) .meta-nav.custom-logo-link:focus {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.is-dark-theme.is-dark-theme img {
|
||||
filter: brightness(0.85) contrast(1.1);
|
||||
}
|
||||
|
|
|
@ -514,6 +514,10 @@ a:hover {
|
|||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) img {
|
||||
outline: 2px dotted var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
|
|
@ -52,6 +52,13 @@ a:hover {
|
|||
}
|
||||
}
|
||||
|
||||
&.custom-logo-link {
|
||||
|
||||
&:focus {
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
outline: 2px dotted var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
|
|
@ -77,18 +77,6 @@
|
|||
line-height: 1.4;
|
||||
}
|
||||
|
||||
a.custom-logo-link {
|
||||
text-decoration: none;
|
||||
|
||||
&:focus {
|
||||
// Change colors when the body background is white.
|
||||
.has-background-white &,
|
||||
.is-dark-theme & {
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.site-title > a {
|
||||
text-decoration-color: var(--global--color-secondary);
|
||||
}
|
||||
|
|
|
@ -21,6 +21,13 @@
|
|||
background: #000;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
|
||||
&.custom-logo-link {
|
||||
|
||||
&:focus {
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
|
|
|
@ -1686,6 +1686,10 @@ a:hover {
|
|||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) img {
|
||||
outline: 2px dotted var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
@ -3807,15 +3811,6 @@ table.wp-calendar-table caption {
|
|||
line-height: 1.4;
|
||||
}
|
||||
|
||||
a.custom-logo-link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.has-background-white a.custom-logo-link:focus,
|
||||
.is-dark-theme a.custom-logo-link:focus {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.site-title > a {
|
||||
text-decoration-color: var(--global--color-secondary);
|
||||
}
|
||||
|
|
|
@ -1696,6 +1696,10 @@ a:hover {
|
|||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link:focus {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) img {
|
||||
outline: 2px dotted var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
@ -3827,15 +3831,6 @@ table.wp-calendar-table caption {
|
|||
line-height: 1.4;
|
||||
}
|
||||
|
||||
a.custom-logo-link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.has-background-white a.custom-logo-link:focus,
|
||||
.is-dark-theme a.custom-logo-link:focus {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.site-title > a {
|
||||
text-decoration-color: var(--global--color-secondary);
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.7-alpha-50153';
|
||||
$wp_version = '5.7-alpha-50154';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue