Sha256: 5c0ce96d3240e1cc478319a67cde8906ae4c25968f36c7827a9f5eb909f315e3

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

.toast-wrapper {
  position: fixed;
  bottom: 0px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  z-index: 200;

  .toast {
    display: inline-block;
    background: var(--background-invert-color);
    color: white;
    margin: 20px auto 0px auto;
    padding: 15px 30px;
    min-width: 50%;
    text-align: left;
    animation-duration: 500ms;
    animation-name: toast-appear;
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-fill-mode: forwards;

    &.error {
      background: var(--red);
    }

    &.fadeout {
      animation-duration: 300ms;
      animation-name: toast-disappear;
      animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
  }
}

@keyframes toast-appear {
  from {
    transform: translateZ(0px) translateY(60px);
  }

  to {
    transform: translateZ(0px) translateY(0px);
  }
}

@keyframes toast-disappear {
  from {
    transform: translateZ(0px) translateY(0px);
  }

  to {
    transform: translateZ(0px) translateY(60px);
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pages_core-3.15.5 app/assets/stylesheets/pages_core/admin/components/toast.css
pages_core-3.15.4 app/assets/stylesheets/pages_core/admin/components/toast.css
pages_core-3.15.3 app/assets/stylesheets/pages_core/admin/components/toast.css
pages_core-3.15.2 app/assets/stylesheets/pages_core/admin/components/toast.css
pages_core-3.15.1 app/assets/stylesheets/pages_core/admin/components/toast.css