antd
Version:
An enterprise-class UI design language and React-based implementation
66 lines (65 loc) • 1.42 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */
.ant-rate {
margin: 0;
padding: 0;
list-style: none;
font-size: 20px;
display: inline-block;
vertical-align: middle;
color: #f5a623;
}
.ant-rate-disabled .ant-rate-star {
cursor: not-allowed;
}
.ant-rate-disabled .ant-rate-star:hover {
-ms-transform: scale(1);
transform: scale(1);
}
.ant-rate-star {
margin: 0;
padding: 0;
display: inline-block;
margin-right: 8px;
position: relative;
transition: all .3s;
color: inherit;
cursor: pointer;
}
.ant-rate-star-first,
.ant-rate-star-second {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
transition: all .3s;
color: #e9e9e9;
}
.ant-rate-star:hover {
-ms-transform: scale(1.1);
transform: scale(1.1);
}
.ant-rate-star-first {
position: absolute;
left: 0;
top: 0;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-half .ant-rate-star-second {
opacity: 1;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-full .ant-rate-star-second {
color: inherit;
}
.ant-rate-text {
margin-left: 8px;
vertical-align: middle;
display: inline-block;
font-size: 12px;
}