@use '@material/theme' as color;

.page-actions_fab {
  .demo {
    display: flex;
    flex-wrap: wrap;
  }

  figcaption > div {
    margin: 8px;
  }

  .mdc-fab {
    margin: 16px;
  }

  .demo-absolute-fab,
  .demo-fixed-fab {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 2;
  }

  .demo-fixed-fab {
    position: fixed;
  }

  @media (min-width: 1024px) {
    .demo-fixed-fab {
      bottom: 1.5rem;
      right: 1.5rem;
    }
  }

  .fab-motion-container {
    position: relative;
    width: 300px;
    height: 150px;
    overflow: hidden;
    padding: 0 10px;
    border: 1px solid #ccc;
  }

  .fab-motion-container__view {
    background-color: #fff;
    box-sizing: border-box;
    position: absolute;
    transition: transform 375ms cubic-bezier(0, 0, 0.2, 1);
    height: 100%;
    width: 100%;
    will-change: transform;
  }

  .fab-motion-container__view--exited {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
    transform: translateY(100%);
  }
}
