2020-11-12 19:36:15 +01:00
|
|
|
/* OS dark theme preference */
|
|
|
|
@media only screen {
|
|
|
|
|
|
|
|
.is-dark-theme.is-dark-theme {
|
|
|
|
--global--color-background: var(--global--color-dark-gray);
|
|
|
|
--global--color-primary: var(--global--color-light-gray);
|
|
|
|
--global--color-secondary: var(--global--color-light-gray);
|
|
|
|
--button--color-text: var(--global--color-background);
|
|
|
|
--button--color-text-hover: var(--global--color-secondary);
|
|
|
|
--button--color-text-active: var(--global--color-secondary);
|
|
|
|
--button--color-background: var(--global--color-secondary);
|
|
|
|
--button--color-background-active: var(--global--color-background);
|
2020-11-17 20:00:08 +01:00
|
|
|
--global--color-border: #9ea1a7;
|
2020-11-12 19:36:15 +01:00
|
|
|
|
Twenty Twenty-One: Sync the latest changes for 5.6 RC2.
This will be the final sync from GitHub before placing that repository into read-only mode. All further changes should now flow entirely through Trac.
For a full list of changes since [49633], see https://github.com/WordPress/twentytwentyone/compare/1d5a895...53acd9b.
Props poena, luminuu, kjellr, ryelle, allancole, melchoyce, felipeelia, aljullu, kebbet, chaton666, Clorith, mkaz, ingereck, paaljoachim.
See #51526.
Built from https://develop.svn.wordpress.org/trunk@49726
git-svn-id: http://core.svn.wordpress.org/trunk@49449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 20:09:05 +01:00
|
|
|
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button),
|
|
|
|
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) .meta-nav {
|
2020-11-12 19:36:15 +01:00
|
|
|
background: #000;
|
|
|
|
color: #fff;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
filter: brightness(.85) contrast(1.1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.respect-color-scheme-preference.is-dark-theme body {
|
|
|
|
background-color: var(--global--color-background);
|
|
|
|
}
|
|
|
|
|
|
|
|
#dark-mode-toggler {
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
font-size: var(--global--font-size-xs);
|
|
|
|
padding: 0.5em;
|
|
|
|
min-height: 44px; // A11y requirement for minimum clickable area.
|
|
|
|
min-width: max-content;
|
|
|
|
border: 2px solid currentColor;
|
|
|
|
box-shadow: none;
|
|
|
|
background: var(--button--color-text);
|
|
|
|
color: var(--button--color-background);
|
|
|
|
z-index: 9998;
|
|
|
|
|
|
|
|
.no-js & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fixed-bottom {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 5px;
|
|
|
|
right: 5px;
|
|
|
|
transition: bottom 0.5s;
|
|
|
|
|
|
|
|
&.hide:not(:focus) {
|
|
|
|
bottom: -80px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.relative {
|
|
|
|
position: absolute;
|
|
|
|
height: 44px;
|
|
|
|
top: calc(2.4 * var(--global--spacing-vertical) - 44px);
|
|
|
|
right: calc(50vw - var(--responsive--alignwide-width) / 2 - 0.5em);
|
|
|
|
|
|
|
|
.admin-bar & {
|
|
|
|
top: calc(2.4 * var(--global--spacing-vertical) - 44px + 32px);
|
|
|
|
|
|
|
|
@media only screen and (max-width: 782px) {
|
|
|
|
top: calc(2.4 * var(--global--spacing-vertical) - 44px + 46px);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 481px) {
|
|
|
|
top: calc(2.4 * var(--global--spacing-vertical) - 44px + 26px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
~ nav {
|
|
|
|
|
|
|
|
body:not(.primary-navigation-open) & {
|
|
|
|
@media only screen and (max-width: 481px) {
|
|
|
|
top: calc(44px + 44px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.primary-navigation-open & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: var(--button--color-background-active);
|
|
|
|
border: 2px solid var(--button--color-text-active);
|
|
|
|
background-color: var(--button--color-text-active);
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-IE & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|