UNPKG

ten-design-vue

Version:

ten-vue

102 lines (101 loc) 1.68 kB
/* 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; } /** * 紧凑版变量覆写 * 如发现需要用到的变量没有定义,先在样式文件中抽出来在 vars.less 中添加该变量 * 变量命名方式 组件名-属性-修饰 如 button-fontsize-small */ /* input */ /* check */ /* select */ /* popup */ /* menu */ /* steps */ /* tabs */ /* modal */ /* table */ /* pagination */ /* upload */ /* form */