ten-design-vue
Version:
ten-vue
85 lines (84 loc) • 1.32 kB
CSS
/* dependencies icon,badge */
/**
* 文字部分
* size 大小,line 行高, color 颜色
*/
/* button */
/* input */
/* transfer */
/* alert */
/* menu */
/* message */
/* modal */
/* badge */
/* tag */
/* progress */
/* popup */
/* tooltip */
/* loading */
/* tabs */
/* check */
/* mention */
/* popup */
/* steps */
/* tabs */
/* modal */
/* form */
/* table */
/* pagination */
/* upload */
/* collapse */
/* anchor */
/* list */
.ten-avatar {
box-sizing: border-box;
display: inline-block;
vertical-align: middle;
margin: 0;
padding: 0;
text-align: center;
overflow: hidden;
color: #fff;
background: #0052d9;
width: 40px;
height: 40px;
line-height: 40px;
font-size: 14px;
border-radius: 50%;
white-space: nowrap;
}
.ten-avatar img {
display: block;
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
}
.ten-avatar--large {
width: 56px;
height: 56px;
line-height: 56px;
}
.ten-avatar--medium {
width: 40px;
height: 40px;
line-height: 40px;
}
.ten-avatar--small {
width: 24px;
height: 24px;
line-height: 24px;
}
.ten-avatar--image {
background: transparent;
}
.ten-avatar--icon {
font-size: 24px;
line-height: 1.5;
}
.ten-avatar--icon .ten-icon {
vertical-align: middle;
}
.avatar-demo .ten-avatar {
margin-right: 20px;
}