From 2cad23f59eafc5dae2927bb268a01823a3702a52 Mon Sep 17 00:00:00 2001 From: Nate Contino Date: Thu, 12 Dec 2024 16:43:51 +0000 Subject: [PATCH] Switch mobile menu and theme toggle to inline svg assets instead of font-dependent unicode --- jekyll-assets/_layouts/docs.html | 9 ++++++++- jekyll-assets/css/style.css | 10 ++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/jekyll-assets/_layouts/docs.html b/jekyll-assets/_layouts/docs.html index cd49d1317..850f27500 100644 --- a/jekyll-assets/_layouts/docs.html +++ b/jekyll-assets/_layouts/docs.html @@ -17,7 +17,14 @@

Documentation

- + {% include theme.html %}
diff --git a/jekyll-assets/css/style.css b/jekyll-assets/css/style.css index c3303332e..0b42cd904 100644 --- a/jekyll-assets/css/style.css +++ b/jekyll-assets/css/style.css @@ -19,8 +19,7 @@ --copy-button-text: #CCC; --textcolor: white; --subtle-text: #CCC; - --theme-toggle-label: "☀️"; - --not-expanded-label: "▶"; + --theme-toggle-label: url("data:image/svg+xml;utf8,"); /* header and footer styling */ --rptl-header-background-color: var(--bg); @@ -59,8 +58,7 @@ --copy-button-text: #444; --textcolor: black; --subtle-text: #444; - --theme-toggle-label: "🌙"; - --not-expanded-label: "▶"; + --theme-toggle-label: url("data:image/svg+xml;utf8,"); /* header and footer styling */ --rptl-header-background-color: var(--bg); @@ -320,14 +318,14 @@ pre { font-family: monospace; } -#theme-toggle-header:after { +#theme-toggle-header { content: var(--theme-toggle-label); } #theme-toggle span { display: none; } -#theme-toggle:after { +#theme-toggle { content: var(--theme-toggle-label); }