Sha256: a57e68db774acd729850ce7a72dd555fed902bf6276a75c77c56255badd06c0c

Contents?: true

Size: 1.58 KB

Versions: 1

Compression:

Stored size: 1.58 KB

Contents

body > .wrapper {
}

body.modal {
  > .wrapper {
    transition: filter 1000ms linear;
    filter: blur(10px);
    @include breakpoint-mobile {
      filter: none;
    }
  }
}

.modal-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;

  .background {
    background: radial-gradient(rgba(255, 255, 255, 0.9),
                                rgba(255, 255, 255, 0.9) 50%,
                                rgba(80, 80, 80, 0.9));
    cursor: pointer;
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 1;
    animation-name: modal-background-appear;
    animation-duration: 200ms;
    animation-timing-function: ease-out;
  }

  .modal {
    max-width: 90%;
    background: $c-background;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.2);
    background: #fff;
    animation-name: modal-appear;
    animation-duration: 200ms;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-fill-mode: forwards;
    z-index: 2;

    @include breakpoint-mobile {
      max-width: 100%;
      width: 100vw;
      height: 100vh;
      border-radius: 0px;
    }
  }

  &.open {
    display: flex;
    position: fixed;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 100;
    opacity: 1;
  }
}

@keyframes modal-appear {
  0% {
    opacity: 0.1;
    transform: scale(0.97) translate(0px, 10px);
  }
  100% {
    opacity: 1.0;
    transform: scale(1.0);
  }
}

@keyframes modal-background-appear {
  0% {
    opacity: 0.0;
  }
  100% {
    opacity: 1.0;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pages_core-3.12.0 app/assets/stylesheets/pages/admin/components/modal.scss