From b82111599b7a795d2574f5495456d635f9ff8a7e Mon Sep 17 00:00:00 2001 From: DokterKaj <54882101+DokterKaj@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:50:44 +0800 Subject: [PATCH] change `post_should_be_blurred &&` to `*post_should_be_blurred &&` + unblur all focused content --- static/style.css | 6 +++--- templates/utils.html | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/static/style.css b/static/style.css index 4911f30..375a4c8 100644 --- a/static/style.css +++ b/static/style.css @@ -1170,9 +1170,9 @@ a.search_subreddit:hover { } .post_blurred:has(:is(.post_media_content, .post_body, .post_thumbnail):focus-within) { - .post_media_content[tabindex] *, - .post_body[tabindex], - .post_thumbnail[tabindex] * { + .post_media_content *, + .post_body, + .post_thumbnail * { filter: none; } } diff --git a/templates/utils.html b/templates/utils.html index 99a2725..7cd3b89 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -100,7 +100,7 @@ {% if post.post_type == "image" %} -
+
{% if post.media.height == 0 || post.media.width == 0 %} @@ -121,7 +121,7 @@ {% else if post.post_type == "video" || post.post_type == "gif" %} {% if prefs.use_hls == "on" && !post.media.alt_url.is_empty() %} -
+
{% else %} -
+
Video
{% call render_hls_notification(post.permalink[1..]) %} @@ -153,7 +153,7 @@ {% endif %} -
+
{{ post.body|safe }} {% call poll(post) %}
@@ -249,7 +249,7 @@ {% if (prefs.layout.is_empty() || prefs.layout == "card") && post.post_type == "image" %} -
+
{% if post.media.height == 0 || post.media.width == 0 %} @@ -269,20 +269,20 @@
{% else if (prefs.layout.is_empty() || prefs.layout == "card") && (post.post_type == "gif" || post.post_type == "video") %} {% if prefs.use_hls == "on" && !post.media.alt_url.is_empty() %} -
+
{% else %} -
+
Video
{% call render_hls_notification(format!("{}%23{}", &self.url[1..].replace("&", "%26").replace("+", "%2B"), post.id)) %} {% endif %} {% else if post.post_type != "self" %} -
+
{% if post.thumbnail.url.is_empty() %} @@ -310,7 +310,7 @@ • {% endif %} Upvotes
-
+
{{ post.body|safe }}