mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 13:09:07 +08:00
36 lines
585 B
SCSS
36 lines
585 B
SCSS
.#{$ns}Rating {
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: block;
|
|
float: left;
|
|
font-size: px2rem(24px);
|
|
color: var(--dark);
|
|
cursor: pointer;
|
|
|
|
&.is-active {
|
|
color: var(--Rating-onActive-color);
|
|
}
|
|
|
|
&.is-disabled {
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
&-half:before {
|
|
position: absolute;
|
|
overflow: hidden;
|
|
display: block;
|
|
z-index: 1;
|
|
top: 0;
|
|
left: 0;
|
|
width: 50%;
|
|
content: attr(data-forhalf);
|
|
color: var(--Rating-onActive-color);
|
|
}
|
|
}
|
|
|
|
.#{$ns}RatingControl {
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|