From f440e6d7007ec07d9ef70bf281b321a119509cad Mon Sep 17 00:00:00 2001 From: Simon Stier <75166544+SimonStier@users.noreply.github.com> Date: Tue, 30 Jan 2024 18:39:47 +0100 Subject: [PATCH] fix darkmode within json-ld playground iframe --- docs/css/style.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/css/style.css b/docs/css/style.css index f2418aa..3388c19 100644 --- a/docs/css/style.css +++ b/docs/css/style.css @@ -66,3 +66,9 @@ hr { border-top: 1px solid #ccc; margin: 20px 0; } + +/* this fixes darkmode within the json-ld playground iframe +by inverting all colors if darkmode is active */ +html[data-theme="dark"] iframe[src*="json-ld.org/playground"] { + filter: invert(0.9); +}