Template:NSFW Image.css

From The Unofficial Isekai:Slow Life Wiki
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%);
  }