ten-design-vue
Version:
ten-vue
88 lines (87 loc) • 1.4 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;
}