|
|
@ -7,13 +7,14 @@
|
|
|
|
.reset-component();
|
|
|
|
.reset-component();
|
|
|
|
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
display: inline-flex;
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
color: @avatar-color;
|
|
|
|
color: @avatar-color;
|
|
|
|
white-space: nowrap;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
vertical-align: middle;
|
|
|
|
vertical-align: middle;
|
|
|
|
background: @avatar-bg;
|
|
|
|
background: @avatar-bg;
|
|
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
&-image {
|
|
|
|
&-image {
|
|
|
|
background: transparent;
|
|
|
|
background: transparent;
|
|
|
@ -44,7 +45,6 @@
|
|
|
|
.avatar-size(@size, @font-size) {
|
|
|
|
.avatar-size(@size, @font-size) {
|
|
|
|
width: @size;
|
|
|
|
width: @size;
|
|
|
|
height: @size;
|
|
|
|
height: @size;
|
|
|
|
line-height: @size;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
|
|
|
|
&-string {
|
|
|
|
&-string {
|
|
|
@ -55,5 +55,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
&.@{avatar-prefix-cls}-icon {
|
|
|
|
&.@{avatar-prefix-cls}-icon {
|
|
|
|
font-size: @font-size;
|
|
|
|
font-size: @font-size;
|
|
|
|
|
|
|
|
.@{iconfont-css-prefix} {
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|