UNPKG

@aimake/nanod

Version:

## 设计模式 NANO DESIGN 是面向于企业级中台化应用的解决方案。服务于 ToB 和 ToE 类型的单页应用,应用于各产品中从而产出了一套设计及前端规范。

56 lines (44 loc) 958 B
@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; vertical-align: middle; &-image { background: transparent; } .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%; display: block; } } .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; } }