diff --git a/package-lock.json b/package-lock.json index b26a6d47..776576d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.6.0", diff --git a/package.json b/package.json index 07f00f65..b36bf29b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "2.1.0", + "version": "2.1.1", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "engines": { diff --git a/src/assets/styles/components/theme-toggle.css b/src/assets/styles/components/theme-toggle.css index 3b3e8478..5eff406a 100644 --- a/src/assets/styles/components/theme-toggle.css +++ b/src/assets/styles/components/theme-toggle.css @@ -20,29 +20,18 @@ theme-toggle { stroke: var(--accent-color-hover); } + .sun, & > .light svg { stroke: var(--sun); } + .moon, & > .dark svg { stroke: var(--moon); } - & > .auto svg { - & path:nth-of-type(3) { - stroke: var(--moon); - } - - & path:nth-of-type(2), - & path:nth-of-type(4), - & path:nth-of-type(5), - & path:nth-of-type(6) { - stroke: var(--sun); - } - - & path:nth-of-type(7) { - stroke: var(--twilight); - } + .twilight { + stroke: var(--twilight); } .light, diff --git a/src/includes/nav/theme-toggle.liquid b/src/includes/nav/theme-toggle.liquid index 6129d02f..c9e07bc6 100644 --- a/src/includes/nav/theme-toggle.liquid +++ b/src/includes/nav/theme-toggle.liquid @@ -1,9 +1,19 @@ - +