joywok-material-components
Version:
<h1 align="center"> Joywok Material Components </h1>
150 lines (147 loc) • 3.6 kB
CSS
.jw-custom-dataTimePicker {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
position: relative;
width: 100%;
height: 40px;
padding-left: 10px;
background: #F5F5F5;
border-radius: 2px;
padding-right: 34px;
}
.jw-custom-dataTimePicker div {
height: 100%;
}
.jw-custom-dataTimePicker .jw-custom-date {
cursor: pointer;
max-width: 106px;
}
.jw-custom-dataTimePicker .jw-custom-date div:before {
border-bottom: none ;
}
.jw-custom-dataTimePicker .jw-custom-date div:after {
border-bottom: none ;
}
.jw-custom-dataTimePicker .jw-custom-date input {
cursor: pointer;
font-size: 13px;
color: #494949;
padding: 0 5px;
}
.jw-custom-dataTimePicker .jw-custom-date p {
display: none;
}
.jw-custom-dataTimePicker .icon-date-suffix {
position: absolute;
right: 10px;
top: 50%;
-webkit-transform: translate(0, -50%);
transform: translate(0, -50%);
}
.jw-custom-dataTimePicker .custom-time {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
width: 50px;
}
.jw-custom-dataTimePicker .custom-time .jw-custom-input {
cursor: pointer;
}
.jw-custom-dataTimePicker .custom-time .jw-custom-input:before {
border-bottom: none ;
}
.jw-custom-dataTimePicker .custom-time .jw-custom-input:after {
border-bottom: none ;
}
.jw-custom-dataTimePicker .custom-time .jw-custom-input input {
padding: 0 5px;
font-size: 13px;
color: #494949;
}
.custom-time-popper {
height: 270px;
width: 181px;
margin-top: 5px;
z-index: 10000;
}
.custom-time-popper .custom-time-list {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 100%;
}
.custom-time-popper .custom-time-list .custom-time-hour {
width: 50%;
border-right: 1px solid #E7E7E7;
overflow-y: scroll;
overflow-x: hidden;
}
.custom-time-popper .custom-time-list .custom-time-hour .custom-time-hour-i {
cursor: pointer;
height: 36px;
text-align: center;
line-height: 36px;
font-size: 13px;
color: #494949;
}
.custom-time-popper .custom-time-list .custom-time-hour .custom-time-hour-i.active {
background: #F7F7F7;
}
.custom-time-popper .custom-time-list .custom-time-hour .custom-time-hour-i.disabled {
color: #999999;
cursor: not-allowed;
}
.custom-time-popper .custom-time-list .custom-time-minute {
overflow-y: scroll;
overflow-x: hidden;
width: 50%;
}
.custom-time-popper .custom-time-list .custom-time-minute .custom-time-minute-i {
cursor: pointer;
height: 36px;
text-align: center;
line-height: 36px;
font-size: 13px;
color: #494949;
}
.custom-time-popper .custom-time-list .custom-time-minute .custom-time-minute-i.active {
background: #F7F7F7;
}
.custom-time-popper .custom-time-list .custom-time-minute .custom-time-minute-i.disabled {
color: #999999;
cursor: not-allowed;
}
.jw-custom-dataTimeRange {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
position: relative;
width: 100%;
background: #F5F5F5;
padding-left: 10px;
border-radius: 2px;
padding-right: 34px;
}
.jw-custom-dataTimeRange .jw-custom-dataTimePicker {
width: auto;
border-radius: 0;
padding-right: 0;
padding-left: 0;
}
.jw-custom-dataTimeRange .icon-date-suffix {
position: absolute;
right: 10px;
top: 50%;
-webkit-transform: translate(0, -50%);
transform: translate(0, -50%);
}
.jw-custom-dataTimeRange .jw-dataTimeRange-space {
padding: 0 10px;
}