CoreFiles by mySites.guru
style-dark-mode.css95 lines, 2,409 bytes, from wordpress-5.6-beta3.zip
Raw History Compare with 5.6-beta2
md5
9bec75161c768b0f2bb2f3bda2583d32
sha1
ebf8e972f4166155d1d2ee6e44e6fdd5c62f8acd
sha256
9b43c6209d67510670f86d43b75cea3512d941a472f7064811dfc0d9adcf812b
/* OS dark theme preference */
html.is-dark-mode {
	--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);
}

html.is-dark-mode body {
	background-color: var(--global--color-background);
}

html.is-dark-mode .site a:focus {
	background: #000;
}

html.is-dark-mode img {
	filter: brightness(0.85) contrast(1.1);
}

#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;
	min-width: max-content;
	border: 2px solid currentColor;
	box-shadow: none;
	background: var(--button--color-text);
	color: var(--button--color-background);
	z-index: 9998;
}

.wp-admin #dark-mode-toggler {
	z-index: 99999;
	/* Necessary for the editor. */
}

#dark-mode-toggler.fixed-bottom {
	position: fixed;
	bottom: 5px;
	right: 5px;
}

#dark-mode-toggler.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 #dark-mode-toggler.relative {
	top: calc(2.4 * var(--global--spacing-vertical) - 44px + 32px);
}

@media only screen and (max-width: 782px) {
	.admin-bar #dark-mode-toggler.relative {
		top: calc(2.4 * var(--global--spacing-vertical) - 44px + 46px);
	}
}

@media only screen and (max-width: 481px) {
	.admin-bar #dark-mode-toggler.relative {
		top: calc(2.4 * var(--global--spacing-vertical) - 44px + 26px);
	}
}

@media only screen and (max-width: 481px) {
	body:not(.primary-navigation-open) #dark-mode-toggler.relative ~ nav {
		top: calc(44px + 44px);
	}
}

.primary-navigation-open #dark-mode-toggler {
	display: none;
}

#dark-mode-toggler:hover, #dark-mode-toggler:focus {
	color: var(--button--color-background-active);
	border: 2px solid var(--button--color-text-active);
	background-color: var(--button--color-text-active);
}

.is-IE #dark-mode-toggler {
	display: none;
}

/*# sourceMappingURL=style-dark-mode.css.map */

No other release has this exact content. See every version of this file.