mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-03 04:57:38 +03:00
feat: also blur text in post body for spoilers (#186)
chore: simplify blur classes
This commit is contained in:
parent
410872d988
commit
9bdb5c8966
2 changed files with 25 additions and 17 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue