chowa
Version:
UI component library based on React
67 lines (61 loc) • 1.47 kB
CSS
/**
* @license chowa v1.1.3
*
* Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
.cw-rate {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
margin: 0;
padding: 0;
list-style: none;
height: 32px;
line-height: 32px;
color: #616a6e; }
.cw-rate:not(.cw-rate-disabled):focus .cw-rate-item-full,
.cw-rate:not(.cw-rate-disabled):focus .cw-rate-item-half {
color: #f7f6fe; }
.cw-rate.cw-has-error .cw-rate-selected {
color: #ed4014; }
.cw-rate-item {
flex-grow: 0;
flex-shrink: 0;
position: relative;
padding: 0;
margin: 0 6px 0 0;
font-size: 16px;
transition: all 0.2s ease-in;
cursor: pointer;
outline: none; }
.cw-rate-item:not(.cw-rate-disabled):hover, .cw-rate-item:not(.cw-rate-disabled):focus {
transform: scale(1.2); }
.cw-rate-disabled {
cursor: not-allowed;
opacity: 0.6; }
.cw-rate-item-full,
.cw-rate-item-half {
color: #f7f6fe;
margin: 0;
padding: 0;
transition: all 0.2s ease-in; }
.cw-rate-item-full.cw-rate-selected,
.cw-rate-item-half.cw-rate-selected {
color: #faad14; }
.cw-rate-item-half {
position: absolute;
top: 0;
left: 0;
width: 50%;
bottom: 0;
overflow: hidden;
transition: all 0.2s ease-in;
z-index: 10; }
.cw-rate-value {
margin: 0;
padding: 0;
font-size: 14px; }