amis2/scss/components/form/_rating.scss
2019-09-09 00:53:39 +08:00

35 lines
581 B
SCSS

.#{$ns}Rating {
position: relative;
overflow: hidden;
display: block;
float: left;
font-size: px2rem(24px);
color: $dark;
cursor: pointer;
&.is-active {
color: $info;
}
&.is-disabled {
cursor: not-allowed;
}
&-half:before {
position: absolute;
overflow: hidden;
display: block;
z-index: 1;
top: 0;
left: 0;
width: 50%;
content: attr(data-forhalf);
color: $info;
}
}
.#{$ns}RatingControl {
position: relative;
overflow: hidden;
}