MediaWiki:Common.css: Difference between revisions
Appearance
![]() Cdjensen94 (talk | contribs) |
![]() Cdjensen94 (talk | contribs) |
||
Line 170: | Line 170: | ||
padding-right: 1em; | padding-right: 1em; | ||
padding-bottom: 1em; | padding-bottom: 1em; | ||
} | |||
.nsfw-blur img, | |||
img.nsfw-blur { | |||
filter: blur(20px) !important; | |||
transition: filter 0.3s; | |||
cursor: pointer; | |||
position: relative; | |||
} | |||
.nsfw-blur img:hover, | |||
img.nsfw-blur:hover { | |||
filter: none; | |||
} | |||
.nsfw-blur::after, | |||
img.nsfw-blur::after { | |||
content: "NSFW"; | |||
position: absolute; | |||
top: 8px; left: 8px; | |||
background: rgba(0,0,0,0.7); | |||
color: #fff; | |||
padding: 2px 8px; | |||
border-radius: 5px; | |||
font-size: 0.9em; | |||
z-index: 2; | |||
pointer-events: none; | |||
} | } |