openvk/Web/static/css/nsfw-posts.css
Alma Armas fc9df5624b Add NSFW CW back
Co-authored-by: Celestine <34442450+rem-pai@users.noreply.github.com>
2021-01-07 16:19:36 +00:00

28 lines
596 B
CSS

.post-nsfw .post-content img.media {
filter: saturate(0.8) blur(15px);
}
.post-nsfw .post-content .attachment {
overflow: hidden;
position: relative;
}
.post-nsfw .post-content .attachment:active img.media {
filter: none;
}
.post-nsfw .post-content .attachment::after {
position: absolute;
top: calc(50% - 16px);
left: 0;
width: 100%;
padding: 8px 0;
background-color: hsla(0, 0%, 0%, .5);
color: #fff;
text-align: center;
content: attr(data-localized-nsfw-text);
}
.post-nsfw .post-content .attachment:active::after {
display: none;
}