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.
ant-design-vue/components/rate/style/index.less

72 lines
1.1 KiB

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