Skip to content

Commit

Permalink
fix darkmode within json-ld playground iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonStier authored Jan 30, 2024
1 parent 8a9cbad commit f440e6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit f440e6d

Please sign in to comment.