Chocobozzz/PeerTube

View on GitHub
client/src/app/shared/shared-abuse-list/abuse-message-modal.component.scss

Summary

Maintainability
Test Coverage
@use '_variables' as *;
@use '_mixins' as *;

form {
  margin: 20px 20px 0 0;

  .form-group:first-child {
    // Keep place to display error message without modifying the height
    min-height: 125px;
  }
}

textarea {
  margin-top: 20px;

  @include peertube-textarea(100%, 70px);
}

.messages {
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  max-height: 50vh;
}

.no-messages {
  display: flex;
  justify-content: center;
}

.message-block {
  margin: 0 5px 10px 0;
  max-width: 60%;

  .author {
    color: var(--greyForegroundColor);
    font-size: 14px;
    padding: 0 0 3px 10px;
  }

  .bubble {
    border-radius: 10px;
    padding: 5px 10px;
    color: var(--mainForegroundColor);
    background-color: var(--greyBackgroundColor);

    .date {
      font-size: 13px;
      color: var(--greyForegroundColor);
    }
  }

  &.by-me {

    .bubble {
      color: var(--mainBackgroundColor);
      background-color: var(--mainColorLighter);

      .date {
        color: var(--mainBackgroundColor);
      }
    }
  }

  &.by-moderator {
    align-self: flex-end;
  }
}