mirror of
https://github.com/redlib-org/redlib.git
synced 2024-12-06 19:27:17 +01:00
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
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:
+16
-6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user