Chocobozzz/PeerTube

View on GitHub
client/src/app/shared/shared-actor-image/actor-avatar.component.scss

Summary

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

.avatar {
  // Defined in component
  width: var(--avatarSize);
  height: var(--avatarSize);
  min-width: var(--avatarSize);
  min-height: var(--avatarSize);

  &.account {
    object-fit: cover;
    border-radius: 50%;
  }

  &.channel {
    border-radius: 5px;
  }
}

a:hover {
  text-decoration: none;
}

.initial {
  background-color: #3C2109;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--initialFontSize);

  &.blue {
    background-color: #009FD4;
  }

  &.green {
    background-color: #00AA55;
  }

  &.purple {
    background-color: #B381B3;
  }

  &.gray {
    background-color: #939393;
  }

  &.yellow {
    background-color: #AA8F00;
  }

  &.orange {
    background-color: #D47500;
  }

  &.red {
    background-color: #E76E3C;
  }

  &.dark-blue {
    background-color: #0A3055;
  }
}