From 5aecbffc4c91c2a2bd8cec08acdb8e73d68f1fc4 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Sat, 23 Oct 2021 16:12:40 -0700 Subject: [PATCH] allow svgs and links to display properly without js --- assets/css/year-in-review.scss | 4 ++++ layouts/_default/year-in-review.html | 6 +++--- static/js/year-in-review.js | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/assets/css/year-in-review.scss b/assets/css/year-in-review.scss index 7e135290f..d68e0e41a 100644 --- a/assets/css/year-in-review.scss +++ b/assets/css/year-in-review.scss @@ -35,6 +35,10 @@ html { } } +a { + color: white; +} + .YIR-wrapper { color: white; min-height: 100vh; diff --git a/layouts/_default/year-in-review.html b/layouts/_default/year-in-review.html index fea8d7a0d..8322366df 100644 --- a/layouts/_default/year-in-review.html +++ b/layouts/_default/year-in-review.html @@ -230,7 +230,7 @@

Heat metrics

- - @@ -311,7 +311,7 @@

Love metrics

- diff --git a/static/js/year-in-review.js b/static/js/year-in-review.js index 4351c1c0c..2f7dd0b9e 100644 --- a/static/js/year-in-review.js +++ b/static/js/year-in-review.js @@ -19,6 +19,7 @@ observer = new IntersectionObserver((entries) => { }); }, config); document.querySelectorAll('.YIR-wrapper svg').forEach(image => { + image.classList.remove('in-view'); observer.observe(image); });