From 3572c1692914dad6538131bc6601f05a03b871a1 Mon Sep 17 00:00:00 2001 From: kritzl Date: Tue, 4 Mar 2025 20:35:33 +0100 Subject: [PATCH 1/2] styleguide: remove unused javascript --- styleguide/assets/script/styleguide.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/styleguide/assets/script/styleguide.js b/styleguide/assets/script/styleguide.js index 65db9f6..dd4d4f5 100644 --- a/styleguide/assets/script/styleguide.js +++ b/styleguide/assets/script/styleguide.js @@ -2,13 +2,6 @@ document.querySelector("nav > button")?.addEventListener("click", (e) => { document.querySelector("nav").classList.toggle("visible"); }); -document.querySelectorAll(".toggleTheme")?.forEach((element) => - element.addEventListener("click", (e) => { - const newTheme = element.dataset.theme; - applyTheme(newTheme); - }), -); - document.querySelector("#themeDark").addEventListener("change", (e) => { setTheme(e.target.checked ? "dark" : "system"); }); From a02fab92500147272f347ed31280ec77176ab2d3 Mon Sep 17 00:00:00 2001 From: kritzl Date: Tue, 4 Mar 2025 20:39:35 +0100 Subject: [PATCH 2/2] styleguide: fix typos --- styleguide/glow/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/styleguide/glow/index.html b/styleguide/glow/index.html index 652c52e..f0759da 100644 --- a/styleguide/glow/index.html +++ b/styleguide/glow/index.html @@ -126,7 +126,7 @@ CSS filters. Which is why it requires the use of an SVG filter. But support for external SVG filters (using url("filter.svg#filter-id")) is still flaky, we instead - opted to have to versions of each glow. One using SVG filters for + opted to have two versions of each glow. One using SVG filters for use-cases which support it (like the logo), and one using CSS filters (as for this page's headings). Below you'll find implementation examples using the primary color CSS variable for the glow color as @@ -196,7 +196,7 @@ filter: 0.03125.

- The value is needed for botha drop shadow as well as an inset shadow. + The value is needed for both drop shadows and inset shadows. Sadly, the latter is currently not possible using plain CSS filters. Which is why it requires the use of an SVG filter. But support for external SVG filters (using