@use '../abstracts/variables';
.avatar {
  padding: 0;
  white-space: nowrap;
  font-size: 24px;
  overflow: hidden;
  letter-spacing: 0.18px;

  width: 64px;
  height: 64px;
  border-radius: 50%;

  background: variables.$primary;
  color: variables.$white;

  > div {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    position: relative;
    width: 100%;
    height: 100%;

    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  @each $name, $color in variables.$colors {
    &.#{'' + $name} {
      background-color: $color;
    }
  }
}
