feat: also blur text in post body for spoilers (#186)

chore: simplify blur classes
This commit is contained in:
Pim 2024-07-21 16:22:40 +02:00 committed by GitHub
parent 410872d988
commit 9bdb5c8966
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 17 deletions

View file

@ -1019,11 +1019,25 @@ a.search_subreddit:hover {
margin: auto;
}
.post_nsfw_blur {
.post_blurred img,
.post_blurred svg,
.post_blurred video {
filter: blur(1.5rem);
}
.post_nsfw_blur:hover {
.post_blurred .post_body {
filter: blur(0.25rem);
}
.post_blurred .post_thumbnail svg {
filter: blur(0.3rem);
}
.post_blurred img:hover,
.post_blurred svg:hover,
.post_blurred video:hover,
.post_blurred .post_body:hover,
.post_blurred .post_thumbnail:hover svg {
filter: none;
}
@ -1199,10 +1213,6 @@ a.search_subreddit:hover {
z-index: 0;
}
.thumb_nsfw_blur {
filter: blur(0.3rem)
}
.post_thumbnail.no_thumbnail {
background-color: var(--highlighted);
}