ant-design-vue/components/rate/style/index.less

72 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-11-01 09:03:42 +00:00
@import "../../style/themes/default";
@import "../../style/mixins/index";
@rate-prefix-cls: ~"@{ant-prefix}-rate";
.@{rate-prefix-cls} {
2018-01-16 03:13:22 +00:00
.reset-component;
line-height: unset;
2017-11-01 09:03:42 +00:00
margin: 0;
padding: 0;
list-style: none;
font-size: 20px;
display: inline-block;
2018-01-16 03:13:22 +00:00
color: @rate-star-color;
outline: none;
2017-11-01 09:03:42 +00:00
&-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;
2018-01-16 03:13:22 +00:00
color: inherit;
2017-11-01 09:03:42 +00:00
cursor: pointer;
&-first,
&-second {
user-select: none;
transition: all .3s;
2018-01-16 03:13:22 +00:00
color: @rate-star-bg;
2017-11-01 09:03:42 +00:00
}
2018-01-16 03:13:22 +00:00
&-focused, &:hover {
2017-11-01 09:03:42 +00:00
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 {
2018-01-16 03:13:22 +00:00
color: inherit;
2017-11-01 09:03:42 +00:00
}
}
&-text {
margin-left: 8px;
display: inline-block;
font-size: @font-size-base;
}
}