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-31 14:43:38 +08:00
|
|
|
@rate-star-color: #f5a623;
|
2016-03-30 13:20:03 +08:00
|
|
|
|
|
|
|
.@{rate-prefix-cls} {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
2016-03-31 14:43:38 +08:00
|
|
|
font-size: 18px;
|
2016-03-30 13:20:03 +08:00
|
|
|
display: inline-block;
|
2016-03-31 14:43:38 +08:00
|
|
|
vertical-align: middle;
|
2016-03-30 13:20:03 +08:00
|
|
|
font-family: 'anticon';
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
|
2016-03-31 14:43:38 +08:00
|
|
|
&-disabled &-star {
|
|
|
|
&:before,
|
|
|
|
&-content:before {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
&: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;
|
2016-03-31 14:43:38 +08:00
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
transform: scale(1.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before,
|
|
|
|
&-content:before {
|
|
|
|
color: #e9e9e9;
|
|
|
|
cursor: pointer;
|
|
|
|
content: "\E694";
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
display: block;
|
|
|
|
}
|
2016-03-30 13:20:03 +08:00
|
|
|
|
|
|
|
&-content {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 50%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
&:before {
|
2016-03-31 14:43:38 +08:00
|
|
|
color: transparent;
|
2016-03-30 13:20:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-31 14:43:38 +08:00
|
|
|
&-half &-content:before,
|
2016-03-30 13:20:03 +08:00
|
|
|
&-full:before {
|
2016-03-31 14:43:38 +08:00
|
|
|
color: @rate-star-color;
|
2016-03-30 13:20:03 +08:00
|
|
|
}
|
2016-04-01 15:49:07 +08:00
|
|
|
|
|
|
|
&-half:hover &-content:before,
|
|
|
|
&-full:hover:before {
|
|
|
|
color: tint(@rate-star-color, 20%);
|
|
|
|
}
|
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;
|
|
|
|
vertical-align: middle;
|
|
|
|
display: inline-block;
|
|
|
|
font-size: @font-size-base;
|
2016-03-30 13:20:03 +08:00
|
|
|
}
|
|
|
|
}
|