about summary refs log tree commit diff stats
path: root/templates
diff options
context:
space:
mode:
authorAlan Pearce2024-05-31 13:03:13 +0200
committerAlan Pearce2024-05-31 13:03:13 +0200
commit8831b8d3fe084392f8e04c32d483a6db01326c32 (patch)
tree592817f71c4f7fcf4ee4cee208d335c1cd0c768c /templates
parentcf38b8d92bde6dd349f286ccfff4a77db9513b50 (diff)
downloadwebsite-8831b8d3fe084392f8e04c32d483a6db01326c32.tar.lz
website-8831b8d3fe084392f8e04c32d483a6db01326c32.tar.zst
website-8831b8d3fe084392f8e04c32d483a6db01326c32.zip
fix CSP breaking styles in feed browser HTML preview
Diffstat (limited to 'templates')
-rw-r--r--templates/feed-styles.xsl2
-rw-r--r--templates/style.css5
2 files changed, 6 insertions, 1 deletions
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 @@
               <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" />
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;