From 3d0dde80d09f2c19dc32c1dccc40bb23b0a79220 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Tue, 13 Dec 2022 01:13:47 +0100 Subject: [PATCH] Extract SVG inline styles to CSS file --- header.html | 36 ++++++++++++++++++------------------ index.css | 7 +++++++ 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/header.html b/header.html index 342f87f..37ee05a 100644 --- a/header.html +++ b/header.html @@ -35,27 +35,27 @@ LIGHT - - - - - - - - - + + + + + + + + + DARK - - - - - - - - - + + + + + + + + +
diff --git a/index.css b/index.css index 73842b8..7c04cc4 100644 --- a/index.css +++ b/index.css @@ -8,3 +8,10 @@ summary { margin-top: 10px; margin-bottom: 20px; } +svg:is(.mode-sunny, .mode-moon) :is(line, circle), +svg:-webkit-any(.mode-sunny, .mode-moon) :-webkit-any(line, circle), +svg:-moz-any(.mode-sunny, .mode-moon) :-moz-any(line, circles) { + stroke-linecap: round; + stroke-miterlimit: 10; + stroke-width: 32px; +}