chowa
Version:
UI component library based on React
280 lines (250 loc) • 6.25 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-min-calendar-day-wrapper,
.cw-min-calendar-month-wrapper,
.cw-min-calendar-year-wrapper {
width: 258px;
padding: 10px;
margin: 0 auto;
box-sizing: border-box;
font-size: 14px; }
.cw-min-calendar-week-container {
margin: 0;
padding: 0;
box-sizing: border-box;
overflow: hidden;
color: #616a6e;
list-style: none; }
.cw-min-calendar-week {
text-align: center;
margin: 0;
padding: 0;
height: 34px;
width: 34px;
line-height: 34px;
float: left; }
.cw-min-calendar-day-container {
margin: 0;
padding: 0; }
.cw-min-calendar-weeks-dates {
margin: 0;
padding: 0;
list-style: none;
overflow: hidden;
height: 34px;
transition: all 0.2s ease-in-out; }
.cw-min-calendar-day {
float: left;
margin: 3px;
padding: 0;
position: relative;
box-sizing: border-box;
text-align: center;
cursor: pointer;
color: #515a6e;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
border-radius: 3px;
width: 28px;
height: 28px;
line-height: 28px;
font-size: 14px; }
.cw-min-calendar-day:not(.cw-min-calendar-current):not(.cw-min-calendar-selected):not(.cw-min-calendar-inrange):not(.cw-min-calendar-disabled):hover {
background-color: #f7f6fe; }
.cw-min-calendar-current {
color: #7774e7;
border: 1px solid #7774e7; }
.cw-min-calendar-current.cw-min-calendar-range:after {
left: -4px; }
.cw-min-calendar-current.cw-min-calendar-range:before {
right: -4px; }
.cw-min-calendar-day-with-weeks {
width: 292px; }
.cw-min-calendar-day-with-weeks .cw-min-calendar-week-container {
padding-left: 34px; }
.cw-min-calendar-weeks {
float: left;
padding: 0;
box-sizing: border-box;
text-align: center;
border-radius: 3px;
width: 28px;
height: 28px;
line-height: 28px;
font-size: 14px;
margin: 3px;
color: #888da8;
position: relative; }
.cw-min-calendar-weeks:after {
content: '';
display: block;
position: absolute;
top: 23px;
left: 10px;
width: 0;
height: 0;
box-sizing: border-box;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
border-bottom: 4px solid #7774e7; }
.cw-min-calendar-weeks-wrapper:hover {
background-color: #f7f6fe; }
.cw-min-calendar-weeks-selected {
background-color: #f7f6fe; }
.cw-min-calendar-month-container,
.cw-min-calendar-year-container {
margin: 0;
padding: 0;
box-sizing: border-box;
list-style: none;
overflow: hidden; }
.cw-min-calendar-month,
.cw-min-calendar-year {
text-align: center;
color: #616a6e;
cursor: pointer;
transition: all 0.2s ease-in;
border-radius: 3px;
float: left;
width: 56px;
height: 37px;
margin: 10px;
line-height: 37px;
position: relative; }
.cw-min-calendar-month:not(.cw-min-calendar-selected):not(.cw-min-calendar-inrange):not(.cw-min-calendar-disabled):hover,
.cw-min-calendar-year:not(.cw-min-calendar-selected):not(.cw-min-calendar-inrange):not(.cw-min-calendar-disabled):hover {
background-color: #f7f6fe; }
.cw-min-calendar-inrange {
background-color: #f7f6fe;
border-radius: 0;
border-width: 0; }
.cw-min-calendar-inrange:after, .cw-min-calendar-inrange:before {
content: '';
position: absolute;
display: block;
transition: background-color 0.2s ease-in-out;
background-color: #f7f6fe;
top: 0;
width: 3px;
bottom: 0; }
.cw-min-calendar-inrange:after {
left: -3px; }
.cw-min-calendar-inrange:before {
right: -3px; }
.cw-min-calendar-selected {
color: #fff;
background-color: #7774e7; }
.cw-min-calendar-disabled {
cursor: not-allowed;
color: #888da8; }
.cw-min-calendar {
margin: 0;
padding: 0;
width: 258px;
box-sizing: border-box;
position: relative; }
.cw-min-calendar-with-weeks {
width: 292px; }
.cw-min-calendar-header {
margin: 0;
padding: 10px;
line-height: 20px;
box-sizing: border-box;
display: flex;
flex-direction: row;
justify-content: space-between;
border-bottom: 1px solid #e6ecf5; }
.cw-min-calendar-header-btn {
cursor: pointer;
color: #888da8;
transition: all 0.2s ease-in;
width: 20px;
height: 20px;
background-color: transparent;
border: none;
outline: none;
margin: 0;
padding: 0;
flex: none;
border-radius: 3px;
font-size: 12px; }
.cw-min-calendar-header-btn:hover {
color: #616a6e;
background-color: #f8f8f8; }
.cw-min-calendar-header-display {
flex: auto;
padding: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
height: 20px; }
.cw-min-calendar-header-month,
.cw-min-calendar-header-year {
height: 100%;
border: none;
outline: none;
margin: 0;
padding: 0 4px;
flex: none;
cursor: pointer;
border-radius: 3px;
background-color: transparent;
transition: all 0.2s ease-in;
font-size: 14px;
color: #616a6e; }
.cw-min-calendar-header-month:hover,
.cw-min-calendar-header-year:hover {
color: #414a63;
background-color: #f8f8f8; }
.cw-min-calendar-header-time {
font-size: 14px;
color: #616a6e;
margin: 0;
padding: 0;
box-sizing: border-box; }
.cw-min-calendar-footer {
display: flex;
flex-direction: row;
border-top: 1px solid #e6ecf5;
margin: 0;
box-sizing: border-box;
height: 42px;
padding: 8px 10px; }
.cw-min-calendar-footer-left,
.cw-min-calendar-footer-right {
display: flex;
flex: auto;
flex-direction: row;
align-items: flex-start;
margin: 0;
padding: 0;
box-sizing: border-box; }
.cw-min-calendar-footer-left {
justify-content: flex-start; }
.cw-min-calendar-footer-right {
justify-content: flex-end; }
.cw-min-calendar-range-selector {
margin: 0;
padding: 0;
box-sizing: border-box;
width: 516px; }
.cw-min-calendar-range-body {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: flex-start;
margin: 0;
padding: 0;
box-sizing: border-box; }
.cw-min-calendar-begin-range,
.cw-min-calendar-end-range {
margin: 0;
padding: 0;
box-sizing: border-box;
flex: none; }