mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-03 07:47:18 +00:00
45 lines
793 B
SCSS
45 lines
793 B
SCSS
@charset "UTF-8";
|
|
|
|
@import "../core/index-noreset.scss";
|
|
|
|
@import "scss/mixin";
|
|
@import "scss/variable";
|
|
|
|
/* put your code here */
|
|
|
|
#{$avatar-prefix} {
|
|
position: relative;
|
|
display: inline-block;
|
|
overflow: hidden;
|
|
color: $avatar-color;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
background: $avatar-default-bg;
|
|
|
|
&-image {
|
|
background: transparent;
|
|
}
|
|
|
|
@include avatar-size($avatar-size-medium);
|
|
|
|
&-large {
|
|
@include avatar-size($avatar-size-large);
|
|
}
|
|
|
|
&-small {
|
|
@include avatar-size($avatar-size-small);
|
|
}
|
|
|
|
&-square {
|
|
border-radius: $avatar-border-radius;
|
|
}
|
|
|
|
& > img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
}
|