UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

69 lines (68 loc) 1.45 kB
.ant-rate { margin: 0; padding: 0; list-style: none; font-size: 20px; display: inline-block; vertical-align: middle; font-family: 'anticon'; font-weight: normal; font-style: normal; } .ant-rate-disabled .ant-rate-star:before, .ant-rate-disabled .ant-rate-star-content:before { cursor: default; } .ant-rate-disabled .ant-rate-star:hover { -webkit-transform: scale(1); -ms-transform: scale(1); transform: scale(1); } .ant-rate-star { margin: 0; padding: 0; display: inline-block; margin-right: 8px; position: relative; -webkit-transition: all 0.3s ease; transition: all 0.3s ease; } .ant-rate-star:hover { -webkit-transform: scale(1.1); -ms-transform: scale(1.1); transform: scale(1.1); } .ant-rate-star:before, .ant-rate-star-content:before { color: #e9e9e9; cursor: pointer; content: "\e660"; -webkit-transition: all 0.3s ease; transition: all 0.3s ease; display: block; } .ant-rate-star-content { position: absolute; left: 0; top: 0; width: 50%; height: 100%; overflow: hidden; } .ant-rate-star-content:before { color: transparent; } .ant-rate-star-half .ant-rate-star-content:before, .ant-rate-star-full:before { color: #f5a623; } .ant-rate-star-half:hover .ant-rate-star-content:before, .ant-rate-star-full:hover:before { color: #f7b84f; } .ant-rate-text { margin-left: 8px; vertical-align: middle; display: inline-block; font-size: 12px; }