all repos — website @ 8831b8d3fe084392f8e04c32d483a6db01326c32

My website

fix CSP breaking styles in feed browser HTML preview

Alan Pearce
commit

8831b8d3fe084392f8e04c32d483a6db01326c32

parent

cf38b8d92bde6dd349f286ccfff4a77db9513b50

3 files changed, 10 insertions(+), 2 deletions(-)

changed files
M config.tomlconfig.toml
@@ -33,7 +33,10 @@ "'self'",
"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",
M templates/feed-styles.xsltemplates/feed-styles.xsl
@@ -28,7 +28,7 @@ <!-- https://commons.wikimedia.org/wiki/File:Feed-icon.svg -->
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" - style="width: 1.5ex; height: 1.5ex" + class="rss-icon" viewBox="0 0 256 256" > <rect width="256" height="256" x="0" y="0" fill="#7F7F7F" />
M templates/style.csstemplates/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;