openvk/Web/static/css/nsfw-posts.css

29 lines
561 B
CSS
Raw Normal View History

.post-nsfw .post-content {
2020-06-07 19:04:43 +03:00
position: relative;
overflow: hidden;
cursor: pointer;
2020-06-07 19:04:43 +03:00
}
.post-nsfw .post-content .text {
filter: saturate(0.8) blur(28px);
pointer-events: none;
2020-06-07 19:04:43 +03:00
}
.post-nsfw .post-content::after {
2020-06-07 19:04:43 +03:00
position: absolute;
top: 0;
2020-06-07 19:04:43 +03:00
left: 0;
width: 100%;
height: 100%;
z-index: 1;
background-color: hsla(0, 0%, 0%, .7);
2020-06-07 19:04:43 +03:00
color: #fff;
text-align: center;
content: attr(data-localized-nsfw-text);
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
2020-06-07 19:04:43 +03:00
}