Template:NSFW Image.css

From The Unofficial Isekai:Slow Life Wiki
Revision as of 09:05, 16 October 2023 by Cleo (talk | contribs) (Cleo changed the content model of the page Template:NSFW Image.css from "CSS" to "Sanitized CSS")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  .nsfw {
    position: relative;
    text-align: center;
  }

  .blur {
    transition: filter 0.15s ease-in-out;
  }

  .blur img {
    transition: filter 0.15s ease-in-out;
    filter: blur(20px);
  }

  .nsfw:hover .blur img {
    filter: none;
    transition: filter 0.15s ease-in-out;
  }

  .nsfw:hover .nsfw-text {
    opacity: 0;
    display: none;
  }

  .nsfw-text {
    opacity: 0.5;
    padding: 5px 15px 5px 15px;
    border-radius: 20px;
    background-color: black;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }