chowa
Version:
UI component library based on React
119 lines (107 loc) • 2.57 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-time {
width: 258px;
height: 258px;
display: flex;
justify-content: flex-start;
align-items: flex-start;
margin: 0;
padding: 0;
box-sizing: border-box;
font-size: 14px;
color: #616a6e; }
.cw-time-hour-wrapper,
.cw-time-minute-wrapper {
flex: 0 0 129px; }
.cw-time-with-second .cw-time-hour-wrapper,
.cw-time-with-second .cw-time-minute-wrapper,
.cw-time-with-second .cw-time-second-wrapper {
flex: 0 0 86px; }
.cw-time-minute-wrapper,
.cw-time-second-wrapper {
border-left: 1px solid #e6ecf5; }
.cw-time-hour-selector,
.cw-time-minute-selector,
.cw-time-second-selector {
margin: 0;
padding: 0;
list-style: none;
box-sizing: border-box; }
.cw-time-cell {
text-align: center;
cursor: pointer;
margin: 0;
padding: 0;
height: 30px;
line-height: 30px;
box-sizing: border-box;
transition: all 0.2s ease-in; }
.cw-time-cell:last-child {
margin-bottom: 228px; }
.cw-time-cell:hover:not(.cw-time-selected) {
background-color: #f7f6fe; }
.cw-time-selected {
color: #7774e7;
background-color: #f8f8f8; }
.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; }