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} {
|
2020-12-22 11:08:12 +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;
|
2020-04-28 11:16:01 +08:00
|
|
|
font-size: @rate-star-size;
|
2019-02-15 10:48:07 +08:00
|
|
|
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;
|
2022-06-22 14:57:09 +08:00
|
|
|
|
2022-03-17 11:54:52 +08:00
|
|
|
> div:hover {
|
2016-03-31 14:43:38 +08:00
|
|
|
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;
|
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
|
|
|
|
2019-07-21 13:01:27 +08:00
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
2018-12-28 16:04:05 +08:00
|
|
|
> div {
|
2021-07-02 15:17:06 +08:00
|
|
|
transition: all 0.3s, outline 0s;
|
2018-12-28 16:04:05 +08:00
|
|
|
|
2022-02-10 17:51:40 +08:00
|
|
|
&:hover {
|
2020-06-11 20:51:55 +08:00
|
|
|
transform: @rate-star-hover-scale;
|
2018-12-28 16:04:05 +08:00
|
|
|
}
|
2021-05-10 10:58:53 +08:00
|
|
|
|
2021-07-02 15:17:06 +08:00
|
|
|
&:focus {
|
2021-05-10 10:58:53 +08:00
|
|
|
outline: 0;
|
|
|
|
}
|
2021-07-02 15:17:06 +08:00
|
|
|
|
|
|
|
&:focus-visible {
|
|
|
|
outline: 1px dashed @rate-star-color;
|
2022-02-10 17:51:40 +08:00
|
|
|
transform: @rate-star-hover-scale;
|
2021-07-02 15:17:06 +08:00
|
|
|
}
|
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;
|
2020-04-20 11:05:27 +08:00
|
|
|
margin: 0 8px;
|
2016-03-31 14:43:38 +08:00
|
|
|
font-size: @font-size-base;
|
2016-03-30 13:20:03 +08:00
|
|
|
}
|
|
|
|
}
|
2020-03-19 12:13:24 +08:00
|
|
|
|
|
|
|
@import './rtl';
|