Skip to content

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

1.8 KB
Raw Blame
.btn-floating.open-new-message-btn {
  position: fixed;
  background: var(--tertiary);
  bottom: 5rem;
  right: 2rem;
  border-radius: 50%;
  font-size: var(--font-up-3);
  padding: 0.5rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  z-index: z("usercard");
  box-shadow: 0 5px 5px -1px rgb(0, 0, 0, 0.25);

  .d-icon {
    color: var(--primary-very-low);
  }

  &:active {
    box-shadow: 0 0 5px -1px rgb(0, 0, 0, 0.25);
    transform: scale(0.9);
  }

  &:focus {
    @include default-focus;
    border-color: var(--d-nav-color--active);
    outline-color: var(--d-nav-color--active);
  }
}

.channels-list,
.channels-list-container {
  position: relative;
  height: 100%;
  padding-bottom: 1rem;

  @include chat-scrollbar;

  .open-browse-page-btn,
  .open-draft-channel-page-btn,
  .chat-channel-leave-btn {
    position: relative;
    padding: 0;
    background: transparent;
    color: var(--primary-medium);
    font-size: var(--font-0-rem);

    &::after {
      content: "";
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
    }

    &:hover {
      background: transparent;

      .d-icon {
        color: var(--primary);
      }
    }
  }

  // keep the enlarged hit area from overlapping the adjacent metadata,
  // a stray tap there shouldn't close the channel
  @media (hover: none) {
    .chat-channel-leave-btn::after {
      inset-inline-start: 0;
      width: 100%;
    }
  }

  &.starred-channels {
    padding-top: var(--space-2);
  }
}

.chat-channel-divider {
  padding: 0.5rem 1rem 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--heading-font-family);
  color: var(--primary);
  border-bottom: 1px solid var(--content-border-color);

  .channel-title {
    line-height: var(--line-height-medium);
  }
}