2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 20:02:01 +08:00
|
|
|
@import '../../style/mixins/index';
|
2016-04-27 20:44:36 +08:00
|
|
|
|
2018-12-07 20:02:01 +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;
|
2019-04-15 10:52:00 +08:00
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
display: inline-block;
|
2016-03-30 13:20:03 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2017-11-18 01:10:46 +08:00
|
|
|
color: @rate-star-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-size: 20px;
|
|
|
|
line-height: unset;
|
|
|
|
list-style: none;
|
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 {
|
2019-02-15 10:48:07 +08:00
|
|
|
position: relative;
|
2016-03-30 13:20:03 +08:00
|
|
|
display: inline-block;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2017-11-18 01:10:46 +08:00
|
|
|
color: inherit;
|
2017-02-21 14:44:13 +08:00
|
|
|
cursor: pointer;
|
2019-02-15 10:48:07 +08:00
|
|
|
transition: all 0.3s;
|
2016-03-31 14:43:38 +08:00
|
|
|
|
2019-07-21 13:01:27 +08:00
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
2018-12-28 16:04:05 +08:00
|
|
|
> div {
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
transform: scale(1.1);
|
|
|
|
}
|
2018-08-14 15:03:44 +08:00
|
|
|
}
|
|
|
|
|
2017-02-21 14:44:13 +08:00
|
|
|
&-first,
|
|
|
|
&-second {
|
2017-11-18 01:10:46 +08:00
|
|
|
color: @rate-star-bg;
|
2019-02-15 10:48:07 +08:00
|
|
|
transition: all 0.3s;
|
|
|
|
user-select: none;
|
2018-09-03 17:11:20 +08:00
|
|
|
.@{iconfont-css-prefix} {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2016-03-31 14:43:38 +08:00
|
|
|
}
|
|
|
|
|
2017-02-21 14:44:13 +08:00
|
|
|
&-first {
|
2016-03-30 13:20:03 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
left: 0;
|
2016-03-30 13:20:03 +08:00
|
|
|
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 {
|
|
|
|
display: inline-block;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin-left: 8px;
|
2016-03-31 14:43:38 +08:00
|
|
|
font-size: @font-size-base;
|
2016-03-30 13:20:03 +08:00
|
|
|
}
|
|
|
|
}
|