@charset "UTF-8";
/**
 * YH-UI Sass Variables
 * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss，以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
 */
.yh-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  vertical-align: middle;
  background-color: var(--yh-avatar-bg-color, var(--yh-color-primary-light-8, #d9ecff));
  color: var(--yh-avatar-text-color, var(--yh-color-primary, #409eff));
  user-select: none;
  font-weight: 600;
  transition: box-shadow 0.2s ease;
}
.yh-avatar--circle {
  border-radius: 50%;
}

.yh-avatar--square {
  border-radius: var(--yh-avatar-radius, var(--yh-border-radius-base, 4px));
}

.yh-avatar--large {
  width: 56px;
  height: 56px;
  font-size: 22px;
  line-height: 56px;
}

.yh-avatar--default {
  width: 40px;
  height: 40px;
  font-size: 16px;
  line-height: 40px;
}

.yh-avatar--small {
  width: 28px;
  height: 28px;
  font-size: 12px;
  line-height: 28px;
}

.yh-avatar__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.yh-avatar__icon {
  font-size: inherit;
  color: inherit;
}

.yh-avatar__text {
  font-size: inherit;
  color: inherit;
  white-space: nowrap;
}