mirror of
https://github.com/frappe/air-datepicker.git
synced 2026-01-14 11:01:22 +08:00
186 lines
4.5 KiB
CSS
186 lines
4.5 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
|
|
------------------------------------------------- */
|
|
.datepickers-container {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0; }
|
|
|
|
.datepicker {
|
|
border: 1px solid #ddd;
|
|
border-radius: 2px;
|
|
box-sizing: content-box;
|
|
width: 224px;
|
|
position: absolute;
|
|
left: -100000px;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease, transform 0.3s ease, left 0s 0.3s; }
|
|
.datepicker.-from-top- {
|
|
transform: translateY(-8px); }
|
|
.datepicker.-from-right- {
|
|
transform: translateX(8px); }
|
|
.datepicker.-from-bottom- {
|
|
transform: translateY(8px); }
|
|
.datepicker.-from-left- {
|
|
transform: translateX(-8px); }
|
|
.datepicker.active {
|
|
opacity: 1;
|
|
transform: translate(0);
|
|
transition: opacity 0.3s ease, transform 0.3s ease, left 0s 0s; }
|
|
|
|
.datepicker-inline .datepicker {
|
|
position: static;
|
|
left: auto;
|
|
right: auto;
|
|
opacity: 1;
|
|
transform: none; }
|
|
|
|
.datepicker--content {
|
|
padding: 2px; }
|
|
|
|
.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;
|
|
flex: 1;
|
|
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;
|
|
padding: 2px;
|
|
height: 32px; }
|
|
|
|
.datepicker--nav-title,
|
|
.datepicker--nav-action {
|
|
display: flex;
|
|
cursor: pointer;
|
|
align-items: center;
|
|
justify-content: center; }
|
|
|
|
.datepicker--nav-action {
|
|
width: 32px;
|
|
border-radius: 2px; }
|
|
.datepicker--nav-action:hover {
|
|
background: #eee; }
|
|
.datepicker--nav-action.-disabled- {
|
|
visibility: hidden; }
|
|
|
|
.datepicker--nav-title {
|
|
border-radius: 2px;
|
|
padding: 0 8px; }
|
|
.datepicker--nav-title:hover {
|
|
background: #eee; }
|
|
.datepicker--nav-title.-disabled- {
|
|
cursor: default;
|
|
background: none; }
|
|
|
|
.datepicker--buttons {
|
|
display: flex;
|
|
margin: 0 1px 2px; }
|
|
|
|
.datepicker--button {
|
|
background: #f2f2f2;
|
|
cursor: pointer;
|
|
border-radius: 2px;
|
|
margin: 0 1px;
|
|
flex: 1;
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 24px; }
|
|
.datepicker--button:hover {
|
|
background: #eaeaea; }
|
|
|
|
.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%;
|
|
width: 14.28571%; }
|
|
|
|
.datepicker--cell-month {
|
|
width: 33.33%;
|
|
height: 40px; }
|
|
|
|
.datepicker--cell-year {
|
|
width: 25%;
|
|
height: 40px; }
|