air-datepicker/dist/css/datepicker.css

109 lines
2.5 KiB
CSS

/* -------------------------------------------------
Datepicker
------------------------------------------------- */
.datepicker {
border: 1px solid #ddd;
border-radius: 2px;
box-sizing: content-box;
width: 224px; }
.datepicker--body {
display: none; }
.datepicker--body.active {
display: block; }
.datepicker--days-names {
display: flex;
flex-wrap: wrap; }
.datepicker--day-name {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
text-align: center; }
/* -------------------------------------------------
Navigation
------------------------------------------------- */
.datepicker--nav {
border-bottom: 1px solid #ddd;
display: flex;
justify-content: space-between;
height: 32px; }
.datepicker--nav-title,
.datepicker--nav-action {
display: flex;
cursor: pointer;
align-items: center;
justify-content: center; }
.datepicker--nav-action {
width: 32px; }
.datepicker--nav-action:hover {
background: #eee; }
.datepicker--nav-title {
align-self: center;
padding: 4px;
border-radius: 2px; }
.datepicker--nav-title:hover {
background: #eee; }
/* -------------------------------------------------
Datepicker cells
------------------------------------------------- */
.datepicker--cells {
display: flex;
flex-wrap: wrap; }
.datepicker--cell {
border-radius: 2px;
color: #333;
cursor: pointer;
display: flex;
position: relative;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
z-index: 1; }
.datepicker--cell:hover {
background: #eee; }
.datepicker--cell.-current- {
color: #60C4F5; }
.datepicker--cell.-current-:hover {
background: rgba(96, 196, 245, 0.05); }
.datepicker--cell.-disabled- {
cursor: default;
background: none; }
.datepicker--cell.-selected- {
color: #fff;
background: skyblue; }
.datepicker--cell.-selected-.-current- {
color: #fff;
background: skyblue; }
.datepicker--cell-day {
border-radius: 50%; }
.datepicker--cell-day.-other-month- {
color: #ddd; }
.datepicker--cell-day.-other-month-.-selected- {
color: #fff;
background: #def2fa; }
.datepicker--cell-day.-other-month-.-selected-.-disabled- {
background: none;
border: none; }
.datepicker--cell-month {
width: 33.33%;
height: 40px; }
.datepicker--cell-year {
width: 25%;
height: 40px; }
.datepicker--cell-year.-another-decade- {
color: #ddd; }