@import '../../../styles/core.scss';

.Avatar {
  align-items: center;
  border-radius: 3px;
  color: rgba(0, 0, 0, 0.3);
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  overflow: hidden;

  &_sm {
    height: 30px;
    width: 30px;

    &.Avatar_circular {
      border-radius: 30px;
    }

    // center emoji under 26px font-size in Chrome on retina displays
    // https://bugs.chromium.org/p/chromium/issues/detail?id=551420
    .Avatar-Text {
      transform: scale(0.5);
    }
  }

  &_md {
    font-size: 26px;
    height: 40px;
    width: 40px;

    &.Avatar_circular {
      border-radius: 40px;
    }
  }

  &_lg {
    height: 50px;
    width: 50px;

    &.Avatar_circular {
      border-radius: 50px;
    }
  }

  &_emoji {
    color: rgba(0, 0, 0, 1);
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji';
  }

  &-Text {
    font-size: 26px;
  }

  &-Img {
    height: 100%;
    width: 100%;
  }
}
