commit 9f858943a5cbf7da9d32854d921eddb97310a710 parent 8badc18508d93e7dff0c2ef3845b090521e392ff Author: Chris <chris@echoz.io> Date: Fri, 2 Feb 2024 05:03:45 +0100 feat: darken google maps when using dark theme Diffstat:
| A | assets/css/extended/google-maps.css | | | 3 | +++ |
| M | layouts/shortcodes/google_maps | | | 1 | + |
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/assets/css/extended/google-maps.css b/assets/css/extended/google-maps.css @@ -0,0 +1,3 @@ +body.dark iframe.google-maps { + filter: invert(90%) hue-rotate(180deg); +} diff --git a/layouts/shortcodes/google_maps b/layouts/shortcodes/google_maps @@ -1,5 +1,6 @@ {{- $place := replaceRE "\\s+" "x" (.Get 0) -}} <iframe + class="google-maps" width="100%" height="320" frameborder="0" style="border:0"