Skip to content

A platform for community discussion. Free, open, simple.

1.1 KB
Raw Blame
.chat-scroll-to-bottom {
  display: flex;
  justify-content: center;
  position: relative;

  &__button {
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    position: absolute;
    height: 2rem;
    bottom: -25px;
    padding: 0 var(--space-2);
    background: var(--primary-medium);
    opacity: 0;
    transition:
      opacity 0.25s ease,
      transform 0.5s ease;
    transform: scale(0.1);
    z-index: z("dropdown");
    color: var(--secondary);

    .d-icon {
      color: inherit;
    }

    > * {
      pointer-events: none;
    }

    &:hover,
    &:active,
    &:focus {
      .d-icon {
        color: var(--secondary) !important;
      }
    }

    .no-touch & {
      &:hover {
        opacity: 1;

        .d-icon {
          color: var(--primary-very-high) !important;
        }
      }
    }

    &.visible {
      transform: translateY(-32px) scale(1);
      opacity: 0.8;

      &:hover {
        transform: translateY(-32px) scale(1);

        &:active {
          transform: translateY(-32px) scale(0.8);
        }
      }
    }
  }

  &__new-messages {
    font-size: var(--font-down-1-rem);
  }
}