ygd
Version:
An enterprise-class UI design language and React-based implementation
76 lines (75 loc) • 1.61 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.yg-rate {
box-sizing: content-box;
color: #333;
font-size: 12px;
display: inline-block;
margin: 0;
padding: 0;
color: #fadb14;
font-size: 20px;
line-height: unset;
list-style: none;
outline: none;
}
.yg-rate-disabled .yg-rate-star {
cursor: default;
}
.yg-rate-disabled .yg-rate-star:hover {
transform: scale(1);
}
.yg-rate-star {
position: relative;
display: inline-block;
margin: 0;
margin-right: 8px;
padding: 0;
color: inherit;
cursor: pointer;
transition: all 0.3s;
}
.yg-rate-star > div:focus {
outline: 0;
}
.yg-rate-star > div:hover,
.yg-rate-star > div:focus {
transform: scale(1.1);
}
.yg-rate-star-first,
.yg-rate-star-second {
color: #ccc;
transition: all 0.3s;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.yg-rate-star-first .anticon,
.yg-rate-star-second .anticon {
vertical-align: middle;
}
.yg-rate-star-first {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
.yg-rate-star-half .yg-rate-star-first,
.yg-rate-star-half .yg-rate-star-second {
opacity: 1;
}
.yg-rate-star-half .yg-rate-star-first,
.yg-rate-star-full .yg-rate-star-second {
color: inherit;
}
.yg-rate-text {
display: inline-block;
margin-left: 8px;
font-size: 12px;
}