This repository has been archived on 2024-07-21. You can view files and clone it, but cannot push or open issues or pull requests.
2023-06-06 18:17:15 +08:00

384 lines
7.4 KiB
CSS

.datepicker-toggle-button {
position: absolute;
outline: none;
border: none;
background-color: transparent;
right: -10px;
top: 50%;
transform: translate(-50%, -50%)
}
.datepicker-toggle-button:focus, .datepicker-toggle-button:hover {
color: #3b71ca
}
.datepicker-backdrop {
width: 100%;
height: 100%;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0, 0, 0, .4);
z-index: 1065
}
.datepicker-dropdown-container {
height: 380px;
border-radius: .5rem
}
.datepicker-dropdown-container, .datepicker-modal-container {
width: 328px;
background-color: #fff;
box-shadow: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
z-index: 1066
}
.datepicker-modal-container {
display: flex;
flex-direction: column;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 512px;
border-radius: .6rem .6rem .5rem .5rem
}
@media screen and (min-width: 320px)and (max-width: 820px)and (orientation: landscape) {
.datepicker-modal-container .datepicker-header {
height: 100%
}
}
@media screen and (min-width: 320px)and (max-width: 820px)and (orientation: landscape) {
.datepicker-modal-container .datepicker-date {
margin-top: 100px
}
}
@media screen and (min-width: 320px)and (max-width: 820px)and (orientation: landscape) {
.datepicker-modal-container .datepicker-day-cell {
width: 32x;
height: 32x
}
}
@media screen and (min-width: 320px)and (max-width: 820px)and (orientation: landscape) {
.datepicker-modal-container {
flex-direction: row;
width: 475px;
height: 360px
}
.datepicker-modal-container.datepicker-day-cell {
width: 36px;
height: 36px
}
}
.datepicker-header {
height: 120px;
padding-right: 24px;
padding-left: 24px;
background-color: #3b71ca;
display: flex;
flex-direction: column;
border-radius: .5rem .5rem 0 0
}
.datepicker-title {
height: 32px;
display: flex;
flex-direction: column;
justify-content: flex-end
}
.datepicker-title-text {
font-size: 10px;
font-weight: 400;
text-transform: uppercase;
letter-spacing: 1.7px;
color: #fff
}
.datepicker-date {
height: 72px;
display: flex;
flex-direction: column;
justify-content: flex-end
}
.datepicker-date-text {
font-size: 34px;
font-weight: 400;
color: #fff
}
.datepicker-main {
position: relative;
height: 100%
}
.datepicker-date-controls {
padding: 10px 12px 0;
display: flex;
justify-content: space-between
}
.datepicker-arrow, .datepicker-arrow-up {
display: inline-block;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top-width: 5px;
border-top-style: solid;
margin: 0 0 0 5px;
vertical-align: middle
}
.datepicker-arrow-up {
transform: rotate(180deg)
}
.datepicker-date-controls {
color: rgba(0, 0, 0, .64)
}
.datepicker-view-change-button {
padding: 10px;
color: #666;
font-weight: 500;
font-size: .9rem;
border-radius: 10px;
box-shadow: none;
background-color: transparent;
margin: 0;
border: none
}
.datepicker-view-change-button:focus, .datepicker-view-change-button:hover {
background-color: #eee
}
.datepicker-view-change-button:after {
content: "";
display: inline-block;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top-width: 5px;
border-top-style: solid;
margin: 0 0 0 5px;
vertical-align: middle
}
.datepicker-arrow-controls {
margin-top: 10px
}
/*!rtl:begin:options:
{
"autoRename": true,
"stringMap":[
{
"name" : "prev-next",
"search" : ["datepicker-previous-button", "datepicker-next-button"],
"replace" : ["datepicker-next-button", "datepicker-previous-button"],
"options" : {"ignoreCase":false}
}
]
}
*/
.datepicker-previous-button {
position: relative;
padding: 0;
width: 40px;
height: 40px;
line-height: 40px;
border: none;
outline: none;
color: rgba(0, 0, 0, .64);
background-color: transparent;
margin: 0 24px 0 0
}
.datepicker-previous-button:focus, .datepicker-previous-button:hover {
background-color: #eee;
border-radius: 50%
}
.datepicker-previous-button:after {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
content: "";
margin: 15.5px;
border-color: currentcolor;
border-style: solid;
border-width: 2px 0 0 2px;
transform: translateX(2px) rotate(-45deg)
}
.datepicker-next-button {
position: relative;
padding: 0;
width: 40px;
height: 40px;
line-height: 40px;
border: none;
outline: none;
margin: 0;
color: rgba(0, 0, 0, .64);
background-color: transparent
}
.datepicker-next-button:focus, .datepicker-next-button:hover {
background-color: #eee;
border-radius: 50%
}
.datepicker-next-button:after {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
content: "";
margin: 15.5px;
border-color: currentcolor;
border-style: solid;
border-width: 2px 2px 0 0;
transform: translateX(-2px) rotate(45deg)
}
/*!rtl:end:options*/
.datepicker-view {
padding-left: 12px;
padding-right: 12px;
outline: none
}
.datepicker-table {
margin-right: auto;
margin-left: auto;
width: 304px
}
.datepicker-day-heading {
width: 40px;
height: 40px;
text-align: center;
font-size: 12px;
font-weight: 400
}
.datepicker-cell {
text-align: center
}
.datepicker-cell.disabled {
color: #ccc;
cursor: default;
pointer-events: none
}
.datepicker-cell.disabled:hover {
cursor: default
}
.datepicker-cell:hover {
cursor: pointer
}
.datepicker-cell:not(.disabled):not(.selected):hover .datepicker-cell-content {
background-color: #d3d3d3
}
.datepicker-cell.selected .datepicker-cell-content {
background-color: #3b71ca;
color: #fff
}
.datepicker-cell:not(.selected).focused .datepicker-cell-content {
background-color: #eee
}
.datepicker-cell.focused .datepicker-cell-content.selected {
background-color: #3b71ca
}
.datepicker-cell.current .datepicker-cell-content {
border: 1px solid #000
}
.datepicker-small-cell {
width: 40px;
height: 40px
}
.datepicker-small-cell-content {
width: 36px;
height: 36px;
line-height: 36px;
border-radius: 50%;
font-size: 13px
}
.datepicker-large-cell {
width: 76px;
height: 42px
}
.datepicker-large-cell-content {
width: 72px;
height: 40px;
line-height: 40px;
padding: 1px 2px;
border-radius: 999px
}
.datepicker-footer, .datepicker-yearview-content {
padding-left: 12px;
padding-right: 12px
}
.datepicker-footer {
height: 56px;
display: flex;
position: absolute;
width: 100%;
bottom: 0;
justify-content: flex-end;
align-items: center
}
.datepicker-footer-btn {
background-color: #fff;
color: #3b71ca;
border: none;
cursor: pointer;
padding: 0 10px;
text-transform: uppercase;
font-size: .8rem;
font-weight: 500;
height: 40px;
line-height: 40px;
letter-spacing: .1rem;
border-radius: 10px;
margin-bottom: 10px
}
.datepicker-footer-btn:focus, .datepicker-footer-btn:hover {
background-color: #eee
}
.datepicker-clear-btn {
margin-right: auto
}