@nutui/nutui-react
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
64 lines • 1.56 kB
CSS
/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-avatar {
position: relative;
flex: 0 0 auto;
display: flex;
justify-content: center;
align-items: center;
width: var(--nutui-avatar-normal-width, 40px);
height: var(--nutui-avatar-normal-height, 40px);
}
.nut-avatar-round {
border-radius: 999px;
overflow: hidden;
}
.nut-avatar-square {
border-radius: var(--nutui-avatar-square, var(--nutui-radius-base));
}
.nut-avatar-first-child {
margin-left: 0;
margin-right: 0;
}
.nut-avatar-img {
width: 100%;
height: 100%;
flex-shrink: 0;
background-size: 100% 100%;
background-repeat: no-repeat;
background-position: center center;
}
.nut-avatar-icon {
background-size: 100% 100%;
}
.nut-avatar-text {
display: flex;
justify-content: center;
align-items: center;
}
.nut-avatar-large {
width: var(--nutui-avatar-large-width, 48px);
height: var(--nutui-avatar-large-height, 48px);
}
.nut-avatar-large-img {
width: var(--nutui-avatar-large-width, 48px);
height: var(--nutui-avatar-large-height, 48px);
}
.nut-avatar-large-icon {
width: var(--nutui-avatar-large-width, 48px);
height: var(--nutui-avatar-large-height, 48px);
}
.nut-avatar-large-text {
width: var(--nutui-avatar-large-width, 48px);
height: var(--nutui-avatar-large-height, 48px);
}
.nut-avatar-small {
width: var(--nutui-avatar-small-width, 32px);
height: var(--nutui-avatar-small-height, 32px);
}
.nut-avatar-small-text {
width: var(--nutui-avatar-small-width, 32px);
height: var(--nutui-avatar-small-height, 32px);
}