2016-04-27 20:44:36 +08:00
|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
@rate-prefix-cls: ~"@{ant-prefix}-rate";
|
2016-03-30 13:20:03 +08:00
|
|
|
|
|
|
|
.@{rate-prefix-cls} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2017-12-22 15:22:22 +08:00
|
|
|
line-height: unset;
|
2016-03-30 13:20:03 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
2016-09-18 09:54:47 +08:00
|
|
|
font-size: 20px;
|
2016-03-30 13:20:03 +08:00
|
|
|
display: inline-block;
|
2017-11-18 01:10:46 +08:00
|
|
|
color: @rate-star-color;
|
2017-11-28 10:48:58 +08:00
|
|
|
outline: none;
|
2016-03-30 13:20:03 +08:00
|
|
|
|
2016-03-31 14:43:38 +08:00
|
|
|
&-disabled &-star {
|
2018-03-21 10:30:25 +08:00
|
|
|
cursor: default;
|
2016-03-31 14:43:38 +08:00
|
|
|
&:hover {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
2016-03-30 13:20:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-star {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
display: inline-block;
|
2016-03-31 14:43:38 +08:00
|
|
|
margin-right: 8px;
|
2016-03-30 13:20:03 +08:00
|
|
|
position: relative;
|
2017-02-21 14:44:13 +08:00
|
|
|
transition: all .3s;
|
2017-11-18 01:10:46 +08:00
|
|
|
color: inherit;
|
2017-02-21 14:44:13 +08:00
|
|
|
cursor: pointer;
|
2016-03-31 14:43:38 +08:00
|
|
|
|
2017-02-21 14:44:13 +08:00
|
|
|
&-first,
|
|
|
|
&-second {
|
|
|
|
user-select: none;
|
|
|
|
transition: all .3s;
|
2017-11-18 01:10:46 +08:00
|
|
|
color: @rate-star-bg;
|
2016-03-31 14:43:38 +08:00
|
|
|
}
|
|
|
|
|
2017-11-28 10:48:58 +08:00
|
|
|
&-focused, &:hover {
|
2017-02-21 14:44:13 +08:00
|
|
|
transform: scale(1.1);
|
2016-03-31 14:43:38 +08:00
|
|
|
}
|
2016-03-30 13:20:03 +08:00
|
|
|
|
2017-02-21 14:44:13 +08:00
|
|
|
&-first {
|
2016-03-30 13:20:03 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 50%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
2017-02-21 14:44:13 +08:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-half &-first,
|
|
|
|
&-half &-second {
|
|
|
|
opacity: 1;
|
2016-03-30 13:20:03 +08:00
|
|
|
}
|
|
|
|
|
2017-02-21 14:44:13 +08:00
|
|
|
&-half &-first,
|
|
|
|
&-full &-second {
|
2017-11-18 01:10:46 +08:00
|
|
|
color: inherit;
|
2016-04-01 15:49:07 +08:00
|
|
|
}
|
2016-03-31 14:43:38 +08:00
|
|
|
}
|
2016-03-30 13:20:03 +08:00
|
|
|
|
2016-03-31 14:43:38 +08:00
|
|
|
&-text {
|
|
|
|
margin-left: 8px;
|
|
|
|
display: inline-block;
|
|
|
|
font-size: @font-size-base;
|
2016-03-30 13:20:03 +08:00
|
|
|
}
|
|
|
|
}
|