295 lines
6.6 KiB
CSS
295 lines
6.6 KiB
CSS
.date-container {
|
|
display: flex !important;
|
|
flex-direction: row-reverse;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/*.date-container::after {
|
|
content: '';
|
|
display: block;
|
|
background-image: linear-gradient(to bottom, #ffffff, #ffffff, #ffffff, #ffffff, #ffffff);
|
|
}
|
|
|
|
.date-container::before {
|
|
content: '';
|
|
display: block;
|
|
background-image: linear-gradient(to bottom, #ffffff, #ffffffe6, #ffffffb3, #ffffff59, #ffffff00);
|
|
width: 100%;
|
|
height: 319px;
|
|
position: absolute;
|
|
top: 0;
|
|
z-index: 2;
|
|
}*/
|
|
|
|
.date-container2 {
|
|
display: block !important;
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
#datepicker-container {
|
|
position: static;
|
|
height: 100%;
|
|
width: 100%;
|
|
background: #fff;
|
|
border: 1px solid #ccc;
|
|
box-shadow: 0 0 4px 0px #b3b3b3;
|
|
border-radius: 8px;
|
|
padding: 10px 0px;
|
|
z-index: 99;
|
|
/* position: absolute;
|
|
top: 0; */
|
|
align-items: center;
|
|
}
|
|
#datepicker-container div {
|
|
overflow-y: scroll;
|
|
height: 100px;
|
|
margin-bottom: 10px;
|
|
width: 33.33%;
|
|
}
|
|
#datepicker-container div span {
|
|
width: 100%;
|
|
margin: auto;
|
|
display: block;
|
|
text-align: center;
|
|
cursor: grabbing;
|
|
opacity: 0.4;
|
|
}
|
|
#datepicker-container div span.chosen-date {
|
|
color: white;
|
|
background: #777777;
|
|
border-top: 1px solid #777777;
|
|
border-bottom: 1px solid #777777;
|
|
opacity: 1;
|
|
}
|
|
#datepicker-container div::-webkit-scrollbar {
|
|
width: 0px;
|
|
}
|
|
#datepicker-container div::-webkit-scrollbar-thumb:hover {
|
|
background: #555;
|
|
}
|
|
@media(max-width: 500px) {
|
|
#datepicker-container div span {
|
|
height: 20px;
|
|
line-height: 17px;
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
.close {
|
|
margin-top: 12px;
|
|
margin-left: -19px;
|
|
font-size: 26px;
|
|
position: absolute;
|
|
right: 25px;
|
|
}
|
|
input.persianDateInput {
|
|
text-align: center !important;
|
|
direction: ltr;
|
|
margin: 0;
|
|
}
|
|
|
|
input.persianDateInput:focus {
|
|
outline: 1px solid transparent;
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
/* ********************************************** Start Datetime (Year & Month) Scroll ********************************************** */
|
|
|
|
.datepicker-container {
|
|
position: static;
|
|
height: 100%;
|
|
width: 100%;
|
|
background: #fff;
|
|
border: 1px solid #ccc;
|
|
box-shadow: 0 0 4px 0px #b3b3b3;
|
|
border-radius: 8px;
|
|
padding: 10px 0px;
|
|
z-index: 99;
|
|
/* position: absolute;
|
|
top: 0; */
|
|
align-items: center;
|
|
}
|
|
|
|
.datepicker-container div {
|
|
overflow-y: scroll;
|
|
height: 100px;
|
|
margin-bottom: 10px;
|
|
width: 33.33%;
|
|
}
|
|
|
|
.datepicker-container div span {
|
|
width: 100%;
|
|
margin: auto;
|
|
display: block;
|
|
text-align: center;
|
|
cursor: grabbing;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.datepicker-container div span.chosen-date {
|
|
color: white;
|
|
background: #777777;
|
|
border-top: 1px solid #777777;
|
|
border-bottom: 1px solid #777777;
|
|
opacity: 1;
|
|
}
|
|
|
|
.datepicker-container div::-webkit-scrollbar {
|
|
width: 0px;
|
|
}
|
|
|
|
.datepicker-container div::-webkit-scrollbar-thumb:hover {
|
|
background: #555;
|
|
}
|
|
|
|
@media(max-width: 500px) {
|
|
.datepicker-container div span {
|
|
height: 20px;
|
|
line-height: 17px;
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
|
|
.close {
|
|
margin-top: 12px;
|
|
margin-left: -19px;
|
|
font-size: 26px;
|
|
position: absolute;
|
|
right: 25px;
|
|
}
|
|
|
|
input.persianDateInput {
|
|
text-align: center !important;
|
|
direction: ltr;
|
|
margin: 0;
|
|
}
|
|
|
|
input.persianDateInput:focus {
|
|
outline: 1px solid transparent;
|
|
margin: 0;
|
|
}
|
|
|
|
input.persianDateInput,
|
|
input.persianDateInputYear,
|
|
input.persianDateInputMonth,
|
|
input.persianDateInputDay {
|
|
text-align: center !important;
|
|
direction: ltr;
|
|
margin: 0;
|
|
}
|
|
|
|
|
|
input.persianDateInput,
|
|
input.persianDateInputYear:focus,
|
|
input.persianDateInputMonth:focus,
|
|
input.persianDateInputDay:focus {
|
|
outline: 1px solid transparent;
|
|
margin: 0;
|
|
}
|
|
|
|
.datepicker-container-date-div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
height: 100%;
|
|
}
|
|
|
|
|
|
|
|
/* Year & Month */
|
|
.datepicker-container-date,
|
|
.datepicker-container-year,
|
|
.datepicker-container-month {
|
|
position: fixed;
|
|
height: 70%;
|
|
width: 80%;
|
|
background: #fff;
|
|
z-index: 89;
|
|
/* top: 0;
|
|
right: 0; */
|
|
align-items: center;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
border-radius: 25px;
|
|
}
|
|
|
|
.datepicker-container-date .years,
|
|
.datepicker-container-date .months,
|
|
.datepicker-container-date .days,
|
|
.datepicker-container-year #years,
|
|
.datepicker-container-month #months,
|
|
.datepicker-container-date .years::-webkit-scrollbar,
|
|
.datepicker-container-date .months::-webkit-scrollbar,
|
|
.datepicker-container-date .days::-webkit-scrollbar,
|
|
.datepicker-container-year #years::-webkit-scrollbar,
|
|
.datepicker-container-month #months::-webkit-scrollbar {
|
|
overflow-y: scroll;
|
|
height: 300px;
|
|
/*height: 40vh;*/
|
|
width: 100%;
|
|
-ms-overflow-style: none; /* IE and Edge */
|
|
scrollbar-width: none; /* Firefox */
|
|
}
|
|
|
|
|
|
|
|
.datepicker-container-date .years span,
|
|
.datepicker-container-date .months span,
|
|
.datepicker-container-date .days span,
|
|
.datepicker-container-year #years span,
|
|
.datepicker-container-month #months span {
|
|
width: 100%;
|
|
margin: auto;
|
|
display: block;
|
|
text-align: center;
|
|
cursor: grabbing;
|
|
opacity: 0.4;
|
|
height: 60px;
|
|
line-height: 57px;
|
|
font-size: 24px;
|
|
}
|
|
|
|
|
|
.datepicker-container-date .years span.chosen-date,
|
|
.datepicker-container-date .months span.chosen-date,
|
|
.datepicker-container-date .days span.chosen-date,
|
|
.datepicker-container-year #years span.chosen-date,
|
|
#months span.chosen-date {
|
|
color: #272727;
|
|
/* background: #777777; */
|
|
/*border-top: 1px solid #777777;
|
|
border-bottom: 1px solid #777777;*/
|
|
cursor: pointer;
|
|
opacity: 1;
|
|
}
|
|
|
|
|
|
.datepicker-container-date .years span.chosen-date::-webkit-scrollbar,
|
|
.datepicker-container-date .months span.chosen-date::-webkit-scrollbar,
|
|
.datepicker-container-date .days span.chosen-date::-webkit-scrollbar,
|
|
.datepicker-container-year #years::-webkit-scrollbar,
|
|
.datepicker-container-month #months::-webkit-scrollbar {
|
|
width: 0px;
|
|
display: none;
|
|
}
|
|
|
|
|
|
.datepicker-container-date .years span.chosen-date::-webkit-scrollbar-thumb:hover,
|
|
.datepicker-container-date .months span.chosen-date::-webkit-scrollbar-thumb:hover,
|
|
.datepicker-container-date .days span.chosen-date::-webkit-scrollbar-thumb:hover,
|
|
.datepicker-container-year #years::-webkit-scrollbar-thumb:hover,
|
|
.datepicker-container-month #months::-webkit-scrollbar-thumb:hover {
|
|
background: #555;
|
|
}
|
|
/* .datepicker-container-year #years span,
|
|
.datepicker-container-month #months span {
|
|
height: 60px;
|
|
line-height: 55px;
|
|
font-size: 36px;
|
|
} */
|
|
|
|
/* ********************************************** End Datetime (Year & Month) Scroll ********************************************** */
|