You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
215 lines
3.1 KiB
215 lines
3.1 KiB
.date-container {
|
|
display: none;
|
|
width: 300px;
|
|
overflow: hidden;
|
|
left: 0;
|
|
right: 0;
|
|
position: absolute;
|
|
color: #606266;
|
|
background: #ffffff;
|
|
border-radius: 4px;
|
|
padding: 10px;
|
|
user-select: none;
|
|
border: 1px solid #e4e7ed;
|
|
box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
|
|
}
|
|
|
|
.date-container.active {
|
|
display: block;
|
|
}
|
|
|
|
.date-wrap {
|
|
display: none;
|
|
}
|
|
|
|
.date-wrap.active {
|
|
display: block;
|
|
}
|
|
|
|
.date-title {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
color: #606266;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.date-title>span {
|
|
display: inline-block;
|
|
}
|
|
|
|
.date-title>span:not(.date-title__now) {
|
|
font-family: cursive;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.date-title>span:not(.date-title__now):hover {
|
|
color: #5175F4;
|
|
}
|
|
|
|
.date-title .date-title__pre-year {
|
|
width: 15%;
|
|
}
|
|
|
|
.date-title .date-title__pre-month {
|
|
width: 15%;
|
|
}
|
|
|
|
.date-title .date-title__now {
|
|
width: 40%;
|
|
}
|
|
|
|
.date-title .date-title__next-year {
|
|
width: 15%;
|
|
}
|
|
|
|
.date-title .date-title__next-month {
|
|
width: 15%;
|
|
}
|
|
|
|
.date-week {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 15px;
|
|
padding-bottom: 5px;
|
|
border-bottom: 1px solid #e4e7ed;
|
|
}
|
|
|
|
.date-week>span {
|
|
list-style: none;
|
|
width: calc(100%/7);
|
|
text-align: center;
|
|
color: #606266;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.date-day {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.date-day>div {
|
|
width: calc(100%/7);
|
|
height: 40px;
|
|
text-align: center;
|
|
color: #606266;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
line-height: 40px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.date-day>div:hover {
|
|
color: #5175F4;
|
|
opacity: .8;
|
|
}
|
|
|
|
.date-day>div.active {
|
|
color: #5175F4;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.date-day>div.disable {
|
|
color: #c0c4cc;
|
|
}
|
|
|
|
.date-day>div.select {
|
|
color: #fff;
|
|
background-color: #5175F4;
|
|
}
|
|
|
|
.time-wrap {
|
|
display: none;
|
|
padding: 10px;
|
|
height: 286px;
|
|
}
|
|
|
|
.time-wrap ::-webkit-scrollbar {
|
|
width: 0;
|
|
}
|
|
|
|
.time-wrap.active {
|
|
display: flex;
|
|
}
|
|
|
|
.time-wrap li {
|
|
list-style: none;
|
|
}
|
|
|
|
.time-wrap>li {
|
|
width: 33.3%;
|
|
height: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.time-wrap>li>span {
|
|
transform: translateY(-5px);
|
|
display: inline-block;
|
|
}
|
|
|
|
.time-wrap>li>ol {
|
|
height: calc(100% - 20px);
|
|
overflow-y: auto;
|
|
border: 1px solid #e2e2e2;
|
|
}
|
|
|
|
.time-wrap>li:first-child>ol {
|
|
border-right: 0;
|
|
}
|
|
|
|
.time-wrap>li:last-child>ol {
|
|
border-left: 0;
|
|
}
|
|
|
|
.time-wrap>li>ol>li {
|
|
line-height: 30px;
|
|
}
|
|
|
|
.date-menu {
|
|
width: 100%;
|
|
height: 28px;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
padding-top: 10px;
|
|
position: relative;
|
|
border-top: 1px solid #e4e7ed;
|
|
}
|
|
|
|
.date-menu button {
|
|
display: inline-block;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
background: #fff;
|
|
border: 1px solid #dcdfe6;
|
|
color: #606266;
|
|
appearance: none;
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
outline: none;
|
|
margin: 0;
|
|
transition: .1s;
|
|
font-weight: 500;
|
|
user-select: none;
|
|
padding: 7px 15px;
|
|
font-size: 12px;
|
|
border-radius: 3px;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.date-menu button.date-menu__time {
|
|
border: 1px solid transparent;
|
|
position: absolute;
|
|
left: 0;
|
|
margin-left: 0;
|
|
}
|
|
|
|
.date-menu button.date-menu__time:hover {
|
|
color: #5175F4;
|
|
} |