zent
Version:
一套前端设计语言和基于React的实现
71 lines (70 loc) • 1.59 kB
CSS
.zent-avatar {
color: #fff;
color: var(--theme-section-bg, var(--theme-stroke-9, #fff));
display: inline-block;
box-sizing: border-box;
text-align: center;
cursor: default;
overflow: hidden;
position: relative;
font-size: 16px;
}
.zent-avatar--size-default {
width: 32px;
height: 32px;
line-height: 32px;
}
.zent-avatar--size-small {
width: 24px;
height: 24px;
line-height: 24px;
}
.zent-avatar--size-large {
width: 40px;
height: 40px;
line-height: 40px;
}
.zent-avatar--type-image {
background: transparent;
}
.zent-avatar--type-image .zent-avatar-image {
width: 100%;
height: 100%;
display: block;
}
.zent-avatar--type-string {
background-color: #e0e0e0;
background-color: var(--theme-default-border-color, var(--theme-stroke-5, #e0e0e0));
}
.zent-avatar--type-string .zent-avatar-string {
font-weight: 500;
}
.zent-avatar--type-string.zent-avatar--size-small {
font-size: 14px;
}
.zent-avatar--type-string.zent-avatar--size-large {
font-size: 18px;
}
.zent-avatar--type-icon {
background-color: #e0e0e0;
background-color: var(--theme-default-border-color, var(--theme-stroke-5, #e0e0e0));
font-size: 18px;
}
.zent-avatar--type-icon.zent-avatar--size-small {
font-size: 14px;
}
.zent-avatar--type-icon.zent-avatar--size-large {
font-size: 24px;
}
.zent-avatar--shape-circle {
border-radius: 50%;
}
.zent-avatar--shape-square {
border-radius: 4px;
}
.zent-avatar--bordered {
border-color: #ccc;
border-color: var(--theme-disabled-color, var(--theme-stroke-4, #ccc));
border-width: 1px;
border-style: solid;
}