You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.1 KiB

@import "../../style/themes/default";
@import "../../style/mixins/index";
@rate-prefix-cls: ~"@{ant-prefix}-rate";
9 years ago
.@{rate-prefix-cls} {
.reset-component;
line-height: unset;
9 years ago
margin: 0;
padding: 0;
list-style: none;
font-size: 20px;
9 years ago
display: inline-block;
color: @rate-star-color;
7 years ago
outline: none;
9 years ago
&-disabled &-star {
cursor: default;
&:hover {
transform: scale(1);
}
9 years ago
}
&-star {
margin: 0;
padding: 0;
display: inline-block;
margin-right: 8px;
9 years ago
position: relative;
transition: all .3s;
color: inherit;
cursor: pointer;
&-first,
&-second {
user-select: none;
transition: all .3s;
color: @rate-star-bg;
}
7 years ago
&-focused, &:hover {
transform: scale(1.1);
}
9 years ago
&-first {
9 years ago
position: absolute;
left: 0;
top: 0;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
&-half &-first,
&-half &-second {
opacity: 1;
9 years ago
}
&-half &-first,
&-full &-second {
color: inherit;
}
}
9 years ago
&-text {
margin-left: 8px;
display: inline-block;
font-size: @font-size-base;
9 years ago
}
}