From 8831b8d3fe084392f8e04c32d483a6db01326c32 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 31 May 2024 13:03:13 +0200 Subject: fix CSP breaking styles in feed browser HTML preview --- config.toml | 5 ++++- templates/feed-styles.xsl | 2 +- templates/style.css | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index 9f788e5..8cf932a 100644 --- a/config.toml +++ b/config.toml @@ -33,7 +33,10 @@ oidc_host = "https://id.alanpearce.eu/" "https://gc.zgo.at", ] style-src = [ - "'sha256-+7qCR9+91EXRy0dbbyuh8KDyQUJwTewM/EPr4b/IKoE='", + # index.html style + "'sha256-a4TPKWHB0aSu7cV10GthTEySTJ0w4r0bw6Q8JsNYMbk='", + # atom.xml style + "'sha256-gyxzfgCOxeAAL8URUdaW2nHYDOr9bzbwFjgSqi7D+8U='", ] frame-ancestors = [ "https://kagi.com", diff --git a/templates/feed-styles.xsl b/templates/feed-styles.xsl index 5953f89..fcca39d 100644 --- a/templates/feed-styles.xsl +++ b/templates/feed-styles.xsl @@ -28,7 +28,7 @@ diff --git a/templates/style.css b/templates/style.css index 2db3a94..bd07f97 100644 --- a/templates/style.css +++ b/templates/style.css @@ -154,6 +154,11 @@ ul.h-feed li a:visited { color: #8b6fcb; } +svg.rss-icon { + width: 1.5ex; + height: 1.5ex; +} + @media (prefers-color-scheme: dark) { body { background-color: #333; -- cgit 1.4.1