air-datepicker/dist/css/datepicker.css

135 lines
3.4 KiB
CSS

.datepicker--cell-day.-other-month-, .datepicker--cell-year.-other-decade- {
color: #ddd;
font-size: .9em; }
.-selected-.datepicker--cell-day.-other-month-, .-selected-.datepicker--cell-year.-other-decade- {
color: #fff;
background: #def2fa; }
.datepicker--cell-day.-other-month-:empty, .datepicker--cell-year.-other-decade-:empty {
background: none;
border: none; }
/* -------------------------------------------------
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; }
.datepicker--cell-day.-other-month-, .datepicker--cell-year.-other-decade- {
color: #ddd;
font-size: .9em; }
.-selected-.datepicker--cell-day.-other-month-, .-selected-.datepicker--cell-year.-other-decade- {
color: #fff;
background: #def2fa; }
.datepicker--cell-day.-other-month-:empty, .datepicker--cell-year.-other-decade-:empty {
background: none;
border: none; }
/* -------------------------------------------------
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-action.-disabled- {
visibility: hidden; }
.datepicker--nav-title {
align-self: center;
padding: 4px;
border-radius: 2px; }
.datepicker--nav-title:hover {
background: #eee; }
.datepicker--nav-title.-disabled- {
cursor: default;
background: none; }
.datepicker--cell-day.-other-month-, .datepicker--cell-year.-other-decade- {
color: #ddd;
font-size: .9em; }
.-selected-.datepicker--cell-day.-other-month-, .-selected-.datepicker--cell-year.-other-decade- {
color: #fff;
background: #def2fa; }
.datepicker--cell-day.-other-month-:empty, .datepicker--cell-year.-other-decade-:empty {
background: none;
border: none; }
/* -------------------------------------------------
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;
color: #ddd;
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-month {
width: 33.33%;
height: 40px; }
.datepicker--cell-year {
width: 25%;
height: 40px; }