@use "../mixins/function.scss" as *;
@use "../mixins/mixins.scss" as *;

@include b(avatar) {
  border-radius: getCssVar("radius", "large");
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  position: relative;
  &:hover {
    @include be(avatar, edit) {
      display: flex;
    }
  }
  @include m(circle) {
    border-radius: getCssVar("radius", "circle");
  }
  @include e(content) {
    line-height: 1.5715;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  @include e(edit) {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
  }
}
