UNPKG

chowa

Version:

UI component library based on React

306 lines (280 loc) 6.54 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-date-picker { position: relative; display: inline-block; border: 1px solid #e6ecf5; transition: all 0.2s linear; border-radius: 3px; width: 180px; height: 32px; background-color: #fff; box-sizing: border-box; cursor: text; } .cw-date-picker:not(.cw-date-picker-disabled):hover { border-color: #7774e7; } .cw-date-picker.cw-date-picker-focused { box-shadow: 0 1px 2px 3px rgba(119, 116, 231, 0.15); border-color: #7774e7; } .cw-date-picker.cw-has-error { border-color: #ed4014; } .cw-date-picker-input { position: absolute; width: 100%; border: none; top: 0; left: 0; bottom: 0; color: #616a6e; border-radius: 3px; outline: none; box-sizing: border-box; margin: 0; background: transparent; padding: 0 32px 0 12px; font-size: 14px; cursor: inherit; } .cw-date-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; font-size: 14px; width: 30px; height: 30px; margin: 0; padding: 0; } .cw-date-picker-icon-active { color: #7774e7; } .cw-date-picker-disabled { background-color: #e9ecef; cursor: not-allowed; } .cw-month-picker { position: relative; display: inline-block; border: 1px solid #e6ecf5; transition: all 0.2s linear; border-radius: 3px; width: 140px; height: 32px; background-color: #fff; box-sizing: border-box; cursor: text; } .cw-month-picker:not(.cw-month-picker-disabled):hover { border-color: #7774e7; } .cw-month-picker.cw-month-picker-focused { box-shadow: 0 1px 2px 3px rgba(119, 116, 231, 0.15); border-color: #7774e7; } .cw-month-picker.cw-has-error { border-color: #ed4014; } .cw-month-picker-input { position: absolute; width: 100%; border: none; top: 0; left: 0; bottom: 0; color: #616a6e; border-radius: 3px; outline: none; box-sizing: border-box; margin: 0; background: transparent; padding: 0 32px 0 12px; font-size: 14px; cursor: inherit; } .cw-month-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; font-size: 14px; width: 30px; height: 30px; margin: 0; padding: 0; } .cw-month-picker-icon-active { color: #7774e7; } .cw-month-picker-disabled { background-color: #e9ecef; cursor: not-allowed; } .cw-year-picker { position: relative; display: inline-block; border: 1px solid #e6ecf5; transition: all 0.2s linear; border-radius: 3px; width: 120px; height: 32px; background-color: #fff; box-sizing: border-box; cursor: text; } .cw-year-picker:not(.cw-year-picker-disabled):hover { border-color: #7774e7; } .cw-year-picker.cw-year-picker-focused { box-shadow: 0 1px 2px 3px rgba(119, 116, 231, 0.15); border-color: #7774e7; } .cw-year-picker.cw-has-error { border-color: #ed4014; } .cw-year-picker-input { position: absolute; width: 100%; border: none; top: 0; left: 0; bottom: 0; color: #616a6e; border-radius: 3px; outline: none; box-sizing: border-box; margin: 0; background: transparent; padding: 0 32px 0 12px; font-size: 14px; cursor: inherit; } .cw-year-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; font-size: 14px; width: 30px; height: 30px; margin: 0; padding: 0; } .cw-year-picker-icon-active { color: #7774e7; } .cw-year-picker-disabled { background-color: #e9ecef; cursor: not-allowed; } .cw-range-picker { position: relative; display: inline-block; border: 1px solid #e6ecf5; transition: all 0.2s linear; border-radius: 3px; width: 360px; height: 32px; background-color: #fff; box-sizing: border-box; cursor: text; } .cw-range-picker:not(.cw-range-picker-disabled):hover { border-color: #7774e7; } .cw-range-picker.cw-range-picker-focused { box-shadow: 0 1px 2px 3px rgba(119, 116, 231, 0.15); border-color: #7774e7; } .cw-range-picker.cw-has-error { border-color: #ed4014; } .cw-range-picker-input { position: absolute; width: 100%; border: none; top: 0; left: 0; bottom: 0; color: #616a6e; border-radius: 3px; outline: none; box-sizing: border-box; margin: 0; background: transparent; padding: 0 32px 0 12px; font-size: 14px; cursor: inherit; } .cw-range-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; font-size: 14px; width: 30px; height: 30px; margin: 0; padding: 0; } .cw-range-picker-icon-active { color: #7774e7; } .cw-range-picker-disabled { background-color: #e9ecef; cursor: not-allowed; } .cw-week-picker { position: relative; display: inline-block; border: 1px solid #e6ecf5; transition: all 0.2s linear; border-radius: 3px; width: 160px; height: 32px; background-color: #fff; box-sizing: border-box; cursor: text; } .cw-week-picker:not(.cw-week-picker-disabled):hover { border-color: #7774e7; } .cw-week-picker.cw-week-picker-focused { box-shadow: 0 1px 2px 3px rgba(119, 116, 231, 0.15); border-color: #7774e7; } .cw-week-picker.cw-has-error { border-color: #ed4014; } .cw-week-picker-input { position: absolute; width: 100%; border: none; top: 0; left: 0; bottom: 0; color: #616a6e; border-radius: 3px; outline: none; box-sizing: border-box; margin: 0; background: transparent; padding: 0 32px 0 12px; font-size: 14px; cursor: inherit; } .cw-week-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; font-size: 14px; width: 30px; height: 30px; margin: 0; padding: 0; } .cw-week-picker-icon-active { color: #7774e7; } .cw-week-picker-disabled { background-color: #e9ecef; cursor: not-allowed; } .cw-date-picker-with-time { width: 210px; }