mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
759b0bb821
* seperate reset styles
* not reset ul/ol/p/heading
* revert reset.less idea
* move label style into ant-form-item, #5851
* revert reset.less idea
* update base.less
* Better typography from bootstrap@4
use reboot replace normalize
ref:
b4d84b9cdf/scss/_reboot.scss
close #6162
50 lines
866 B
Plaintext
50 lines
866 B
Plaintext
@import "../../style/themes/default";
|
|
@import "../../style/mixins/index";
|
|
|
|
@avatar-prefix-cls: ~"@{ant-prefix}-avatar";
|
|
|
|
.@{avatar-prefix-cls} {
|
|
.reset-component;
|
|
display: inline-block;
|
|
text-align: center;
|
|
background: @avatar-bg;
|
|
color: @avatar-color;
|
|
white-space: nowrap;
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
.avatar-size(@avatar-size-base, @avatar-font-size-base);
|
|
|
|
&-lg {
|
|
.avatar-size(@avatar-size-lg, @avatar-font-size-lg);
|
|
}
|
|
|
|
&-sm {
|
|
.avatar-size(@avatar-size-sm, @avatar-font-size-sm);
|
|
}
|
|
|
|
&-square {
|
|
border-radius: @avatar-border-radius;
|
|
}
|
|
|
|
& > img {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.avatar-size(@size, @font-size) {
|
|
width: @size;
|
|
height: @size;
|
|
line-height: @size;
|
|
border-radius: @size / 2;
|
|
|
|
& > * {
|
|
line-height: @size;
|
|
}
|
|
|
|
&.@{avatar-prefix-cls}-icon {
|
|
font-size: @font-size;
|
|
}
|
|
}
|