antd
Version:
An enterprise-class UI design language and React-based implementation
55 lines (54 loc) • 1.03 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */
.ant-avatar {
display: inline-block;
text-align: center;
background: #ccc;
color: #fff;
white-space: nowrap;
position: relative;
overflow: hidden;
width: 32px;
height: 32px;
line-height: 32px;
border-radius: 16px;
}
.ant-avatar > * {
line-height: 32px;
}
.ant-avatar.ant-avatar-icon {
font-size: 18px;
}
.ant-avatar-lg {
width: 40px;
height: 40px;
line-height: 40px;
border-radius: 20px;
}
.ant-avatar-lg > * {
line-height: 40px;
}
.ant-avatar-lg.ant-avatar-icon {
font-size: 24px;
}
.ant-avatar-sm {
width: 24px;
height: 24px;
line-height: 24px;
border-radius: 12px;
}
.ant-avatar-sm > * {
line-height: 24px;
}
.ant-avatar-sm.ant-avatar-icon {
font-size: 14px;
}
.ant-avatar-square {
border-radius: 4px;
}
.ant-avatar > img {
width: 100%;
height: 100%;
display: block;
}