@mdsfe/mds-ui
Version:
A set of enterprise-class Vue UI components.
74 lines (73 loc) • 1.51 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 */
.mds-avatar {
display: inline-block;
text-align: center;
background: #ccc;
color: #fff;
white-space: nowrap;
position: relative;
overflow: hidden;
width: 64px;
height: 64px;
line-height: 64px;
border-radius: 32px;
}
.mds-avatar > * {
line-height: 64px;
}
.mds-avatar.mds-avatar-icon {
font-size: 18px;
}
.mds-avatar-lg {
width: 80px;
height: 80px;
line-height: 80px;
border-radius: 40px;
}
.mds-avatar-lg > * {
line-height: 80px;
}
.mds-avatar-lg.mds-avatar-icon {
font-size: 30px;
}
.mds-avatar-mn {
width: 32px;
height: 32px;
line-height: 32px;
border-radius: 16px;
}
.mds-avatar-mn > * {
line-height: 32px;
}
.mds-avatar-mn.mds-avatar-icon {
font-size: 16px;
}
.mds-avatar-sm {
width: 28px;
height: 28px;
line-height: 28px;
border-radius: 14px;
}
.mds-avatar-sm > * {
line-height: 28px;
}
.mds-avatar-sm.mds-avatar-icon {
font-size: 14px;
}
.mds-avatar-square {
border-radius: 4px;
}
.mds-avatar > img {
width: 100%;
height: 100%;
display: block;
}
#components-avatar-demo-type .mds-avatar {
margin-top: 16px;
margin-right: 16px;
}
/* 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 */