From 757c7d61eba2e89631d9154c274574a7ddc36406 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 4 Apr 2022 21:33:12 +1000 Subject: [PATCH] Rearranged CSS --- docs/resources/css/dark.css | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/resources/css/dark.css b/docs/resources/css/dark.css index 9d5802ef8..c111fe126 100644 --- a/docs/resources/css/dark.css +++ b/docs/resources/css/dark.css @@ -1,11 +1,9 @@ /* For black-on-white/transparent images at handbook/text-anchors.html */ -@media (prefers-color-scheme: light) { - body[data-theme="dark"] #text-anchors img { - filter: invert(1) brightness(0.85) hue-rotate(-60deg); - } +body[data-theme="dark"] #text-anchors img { + filter: invert(1) brightness(0.85) hue-rotate(-60deg); } @media (prefers-color-scheme: dark) { - body:not([data-theme="light"]) #text-anchors img { + body[data-theme="auto"] #text-anchors img { filter: invert(1) brightness(0.85) hue-rotate(-60deg); } }