UNPKG

chowa

Version:

UI component library based on React

91 lines (83 loc) 1.97 kB
/** * @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-time-picker { position: relative; display: inline-block; margin: 0; padding: 0; box-sizing: border-box; border: 1px solid #e6ecf5; transition: all 0.2s linear; border-radius: 3px; background-color: #fff; height: 32px; width: 160px; outline: none; vertical-align: top; } .cw-time-picker:not(.cw-time-picker-disabled):hover { border-color: #7774e7; } .cw-time-picker.cw-time-picker-focused { box-shadow: 0 1px 2px 3px rgba(119, 116, 231, 0.15); border-color: #7774e7; } .cw-time-picker.cw-has-error { border-color: #ed4014; } .cw-time-picker-input { position: absolute; width: 100%; border: none; top: 0; left: 0; bottom: 0; outline: none; margin: 0; padding: 0 32px 0 12px; box-sizing: border-box; color: #616a6e; border-radius: 3px; background: transparent; font-size: 14px; cursor: inherit; } .cw-time-picker-icon { position: absolute; top: 0; right: 0; color: #888da8; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease-in; pointer-events: none; width: 30px; height: 30px; font-size: 14px; } .cw-time-picker-icon-active { color: #7774e7; } .cw-time-picker-disabled { background-color: #e9ecef; cursor: not-allowed; } .cw-time-picker-selector-wrapper { box-sizing: border-box; margin: 0; padding: 0; } .cw-time-picker-header { padding: 10px 10px 5px; box-sizing: border-box; margin: 0; text-align: center; color: #414a63; border-bottom: 1px solid #e6ecf5; font-size: 14px; min-height: 29px; } .cw-time-picker-footer { display: flex; padding: 8px 10px; box-sizing: border-box; margin: 0; border-top: 1px solid #e6ecf5; justify-content: flex-end; }