ten-design-vue
Version:
ten-vue
105 lines (104 loc) • 1.76 kB
CSS
/* dependencies icon */
/**
* 文字部分
* 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-rate {
display: inline-block;
}
.ten-rate-title {
padding-right: 28px;
}
.ten-rate-title:empty {
display: none;
}
.ten-rate-item {
position: relative;
display: inline-block;
-webkit-transform: scale(1.2);
transform: scale(1.2);
line-height: 1.2;
}
.ten-rate-item:not(:last-of-type) {
padding-right: 12px;
}
.ten-rate-icon {
color: #fff;
display: inline-block;
background: #e9e9e9;
cursor: pointer;
z-index: 1;
-webkit-transform: scale(1.2);
transform: scale(1.2);
}
.ten-rate-icon.active.halfWidth,
.ten-rate-icon.unhappy.halfWidth {
width: 50%;
}
.ten-rate-icon.active {
background: #ffa700;
}
.ten-rate-icon.unhappy {
background: #ffa700;
}
.ten-rate-icon:last-of-type:not(:first-of-type) {
position: absolute;
top: 0;
left: 0;
color: #fff;
background: #e9e9e9;
z-index: -1;
}
.ten-rate-info {
padding-left: 11px;
}
.ten-rate-info:empty {
display: none;
}
.ten-rate-info.unhappy {
color: #ff3e00;
}
/**
* 紧凑版变量覆写
* 如发现需要用到的变量没有定义,先在样式文件中抽出来在 vars.less 中添加该变量
* 变量命名方式 组件名-属性-修饰 如 button-fontsize-small
*/
/* input */
/* check */
/* select */
/* popup */
/* menu */
/* steps */
/* tabs */
/* modal */
/* table */
/* pagination */
/* upload */
/* form */