commit a1f2353930c1bfc1cd78b78186b215526474c467 parent 4cc7e856ba09e3eb5f266e1a59b71559d33177e5 Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Sat, 31 Oct 2026 21:55:33 +0100 fix: style fallback SVG properly Diffstat:
| M | assets/css/custom.css | | | 6 | ++++-- |
| M | assets/fallback.svg | | | 2 | +- |
| M | perlanetrc.yaml | | | 4 | ++-- |
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/assets/css/custom.css b/assets/css/custom.css @@ -2,8 +2,10 @@ body { display: initial; } -img { - color: var(--text); +@media (prefers-color-scheme: dark) { + img[src="assets/fallback.svg"] { + filter: invert(100%); + } } main { diff --git a/assets/fallback.svg b/assets/fallback.svg @@ -1 +1 @@ -<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M4 7V19H19V21H4C2 21 2 19 2 19V7H4M21 5V15H8V5H21M21.3 3H7.7C6.76 3 6 3.7 6 4.55V15.45C6 16.31 6.76 17 7.7 17H21.3C22.24 17 23 16.31 23 15.45V4.55C23 3.7 22.24 3 21.3 3M9 6H12V11H9V6M20 14H9V12H20V14M20 8H14V6H20V8M20 11H14V9H20V11Z" /></svg> +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 7V19H19V21H4C2 21 2 19 2 19V7H4M21 5V15H8V5H21M21.3 3H7.7C6.76 3 6 3.7 6 4.55V15.45C6 16.31 6.76 17 7.7 17H21.3C22.24 17 23 16.31 23 15.45V4.55C23 3.7 22.24 3 21.3 3M9 6H12V11H9V6M20 14H9V12H20V14M20 8H14V6H20V8M20 11H14V9H20V11Z" /></svg> diff --git a/perlanetrc.yaml b/perlanetrc.yaml @@ -4,7 +4,7 @@ author: email: "me@localhost" entries: 500 entries_per_feed: 10 -entries_sort_order: "modified" +entries_sort_order: "issued" page: file: index.php template: index.tt @@ -34,5 +34,5 @@ feeds: url: https://www.derstandard.de/rss/deutschland/ web: https://www.derstandard.de/deutschland/ - title: The Guardian - Europe - url: https://www.theguardian.com/world/europe-news/rss/ + url: https://www.theguardian.com/world/europe-news/rss web: https://www.theguardian.com/world/europe-news/