mirror of
https://github.com/openvk/openvk
synced 2024-11-11 09:29:29 +03:00
28 lines
593 B
CSS
28 lines
593 B
CSS
.post-nsfw .post-content img.media {
|
|
filter: saturate(0.8) blur(5px);
|
|
}
|
|
|
|
.post-nsfw .post-content .attachment {
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.post-nsfw .post-content .attachment:hover 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:hover::after {
|
|
display: none;
|
|
}
|