$date-hover-color: #eee;
$date-active-color: #2271b1;
.kirki-datepicker-popup {
padding-bottom: 10px;
background-color: #fff;
border: 1px solid #ddd;
box-shadow: rgba(0, 0, 0, 0.09) 0 12px 15px 0;
border-radius: 6px;
z-index: 500001 !important;
margin-top: 15px;
overflow: hidden;
max-width: 275px;
.ui-datepicker-header {
padding: 10px;
background-color: $date-hover-color;
.ui-datepicker-next,
.ui-datepicker-prev {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
overflow: hidden;
transition: all .2s;
&:hover, &:active, &:focus {
color: #fff;
background-color: $date-active-color;
}
&:after,
&:before {
font-family: dashicons;
}
.ui-icon {
display: none;
}
}
.ui-datepicker-prev {
left: 10px;
&:before {
content: "\f341";
}
}
.ui-datepicker-next {
right: 10px;
&:after {
content: "\f345";
}
}
.ui-datepicker-title {
display: flex;
width: 100%;
align-items: center;
justify-content: center;
height: 30px;
font-size: 16px;
text-align: center;
}
}
.ui-datepicker-calendar {
border-collapse: collapse;
padding-bottom: 20px;
width: 100%;
thead {
background-color: #ddd;
padding-left: 5px;
padding-right: 5px;
th {
padding-top: 5px;
padding-bottom: 5px;
text-align: center;
font-weight: 600;
font-size: 13px;
}
}
tbody {
padding: 5px;
td {
padding: 2px;
text-align: center;
}
a {
text-decoration: none;
color: #333;
}
.ui-datepicker-today {
.ui-state-default {
background-color: $date-hover-color;
}
.ui-state-active {
background-color: $date-active-color;
&:hover,
&:active,
&:focus {
background-color: $date-active-color;
}
}
}
.ui-state-default {
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
border-radius: 50%;
&:hover,
&:active {
background-color: $date-hover-color;
}
&:focus {
color: #fff;
background-color: $date-active-color;
}
}
.ui-state-active {
background-color: $date-active-color;
color: #fff;
&:hover,
&:active,
&:focus {
background-color: $date-active-color;
}
}
}
}
}