feat: also blur text in post body for spoilers (#186)
Release Build / Rust project - latest (aarch64-unknown-linux-musl) (push) Waiting to run
Release Build / Rust project - latest (armv7-unknown-linux-musleabihf) (push) Waiting to run
Release Build / Rust project - latest (x86_64-unknown-linux-musl) (push) Waiting to run
Rust Build & Publish / build (push) Waiting to run
Pull Request / cargo test (push) Waiting to run
Pull Request / cargo fmt --all -- --check (push) Waiting to run
Pull Request / cargo clippy -- -D warnings (push) Waiting to run

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
2 changed files with 25 additions and 17 deletions
+16 -6
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);
}