chowa
Version:
UI component library based on React
186 lines (165 loc) • 3.86 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-select {
position: relative;
padding: 0;
margin: 0;
box-sizing: border-box;
border: 1px solid #e6ecf5;
border-radius: 3px;
background-color: #fff;
transition: all 0.2s ease-in;
min-height: 32px;
font-size: 14px;
outline: none;
cursor: pointer; }
.cw-select:not(.cw-select-disabled):hover {
border-color: #7774e7; }
.cw-select.cw-select-focused, .cw-select:not(.cw-select-disabled):focus {
box-shadow: 0 1px 2px 3px rgba(119, 116, 231, 0.15);
border-color: #7774e7; }
.cw-select.cw-has-error {
border-color: #ed4014; }
.cw-select-selection {
position: relative;
display: flex;
align-items: center;
flex-wrap: wrap;
padding: 0;
box-sizing: border-box;
min-height: 30px;
line-height: 30px;
margin: 0 32px 0 12px; }
.cw-select-placeholder {
color: #888da8;
margin: 0;
padding: 0; }
.cw-select-value {
margin: 0;
padding: 0;
color: #616a6e;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; }
.cw-select-searching {
opacity: 0.6; }
.cw-select-disabled {
background-color: #e9ecef;
cursor: not-allowed; }
.cw-tag {
margin-top: 2px;
margin-bottom: 2px; }
.cw-select-search-input {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 100%;
color: #616a6e;
background: transparent;
font-size: inherit;
border: none;
caret-color: #7774e7;
margin: 0;
padding: 0;
outline: none; }
.cw-select-search-multiple-input {
position: static;
display: inline-block;
width: 20px;
vertical-align: top; }
.cw-select-arrow {
margin: 0;
padding: 0;
position: absolute;
right: 0;
top: 0;
display: flex;
align-items: center;
justify-content: center;
color: #888da8;
width: 30px;
height: 30px;
line-height: 30px;
font-size: 12px;
transition: all 0.2s ease-in; }
.cw-select-arrow-active {
transform: rotate(-180deg);
color: #7774e7; }
.cw-select-selector-wrapper {
max-height: 250px;
margin: 0;
padding: 10px 0;
outline: none;
list-style: none;
overflow-x: hidden;
overflow-y: auto; }
.cw-select-option-selector {
margin: 0;
padding: 0;
list-style: none; }
.cw-select-option {
cursor: pointer;
margin: 0;
box-sizing: border-box;
transition: all 0.2s ease-in-out;
color: #616a6e;
border: 1px solid transparent;
line-height: 32px;
padding: 0 22px;
font-size: 14px; }
.cw-select-option-label {
margin: 0;
padding: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; }
.cw-select-option-selected {
background-color: #f8f8f8;
color: #414a63; }
.cw-select-option-selected + .cw-select-option-selected {
border-top: 1px solid #e6ecf5; }
.cw-select-option-selected.cw-select-option-multiple {
position: relative;
padding-right: 30px; }
.cw-select-option-selected.cw-select-option-multiple:after {
content: '';
display: inline-block;
margin: 0;
padding: 0;
box-sizing: border-box;
width: 10px;
height: 6px;
border-bottom: 1px solid #616a6e;
border-left: 1px solid #616a6e;
transform: rotate(-45deg);
position: absolute;
right: 10px;
top: 50%;
margin-top: -4px; }
.cw-select-option-active {
background-color: #f7f6fe; }
.cw-select-option-disabled {
cursor: not-allowed;
color: #888da8; }
.cw-select-option-group {
margin: 0;
padding: 0; }
.cw-select-option-group-title {
color: #888da8;
font-size: 12px;
line-height: 24px;
margin: 0;
padding: 0 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; }
.cw-select-not-found {
margin: 0;
padding: 0; }