154 lines
2.5 KiB
Plaintext
154 lines
2.5 KiB
Plaintext
|
|
.popup {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 999;
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.popup.show {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
.popup-mask {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
}
|
|
.content {
|
|
padding: 24rpx;
|
|
}
|
|
.time-list {
|
|
margin-bottom: 24rpx;
|
|
}
|
|
.time-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 24rpx;
|
|
background-color: #FFFFFF;
|
|
border-radius: 12rpx;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
.time-info {
|
|
flex: 1;
|
|
}
|
|
.date {
|
|
font-size: 28rpx;
|
|
color: #333333;
|
|
margin-bottom: 8rpx;
|
|
display: block;
|
|
}
|
|
.time {
|
|
font-size: 24rpx;
|
|
color: #666666;
|
|
}
|
|
.action-btns {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.delete-btn {
|
|
font-size: 24rpx;
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 8rpx;
|
|
}
|
|
.delete-btn {
|
|
color: #999999;
|
|
}
|
|
.add-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 88rpx;
|
|
background-color: #FFFFFF;
|
|
border-radius: 12rpx;
|
|
}
|
|
.add-icon {
|
|
font-size: 32rpx;
|
|
color: #E8101E;
|
|
margin-right: 8rpx;
|
|
}
|
|
.add-text {
|
|
font-size: 28rpx;
|
|
color: #333333;
|
|
}
|
|
.time-picker {
|
|
background-color: #FFFFFF;
|
|
border-radius: 24rpx 24rpx 0 0;
|
|
-webkit-transform: translateY(100%);
|
|
transform: translateY(100%);
|
|
transition: -webkit-transform 0.3s ease;
|
|
transition: transform 0.3s ease;
|
|
transition: transform 0.3s ease, -webkit-transform 0.3s ease;
|
|
padding-bottom: constant(safe-area-inset-bottom);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
.popup.show .time-picker {
|
|
-webkit-transform: translateY(0);
|
|
transform: translateY(0);
|
|
}
|
|
.picker-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 24rpx;
|
|
border-bottom: 1rpx solid #F0F0F0;
|
|
}
|
|
.cancel-btn,
|
|
.confirm-btn {
|
|
font-size: 28rpx;
|
|
padding: 16rpx;
|
|
}
|
|
.cancel-btn {
|
|
color: #999999;
|
|
}
|
|
.confirm-btn {
|
|
color: #E8101E;
|
|
}
|
|
.title {
|
|
font-size: 32rpx;
|
|
color: #333333;
|
|
font-weight: 500;
|
|
}
|
|
.picker-content {
|
|
padding: 24rpx;
|
|
}
|
|
.date-picker,
|
|
.time-picker-item {
|
|
margin-bottom: 24rpx;
|
|
}
|
|
.label {
|
|
font-size: 28rpx;
|
|
color: #333333;
|
|
margin-bottom: 16rpx;
|
|
display: block;
|
|
}
|
|
.picker-value {
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
background-color: #F5F5F5;
|
|
border-radius: 8rpx;
|
|
padding: 0 24rpx;
|
|
font-size: 28rpx;
|
|
color: #333333;
|
|
}
|
|
/* APP适配 */
|
|
|
|
|
|
|
|
|
|
|
|
/* 小程序适配 */
|
|
.time-picker {
|
|
padding-bottom: constant(safe-area-inset-bottom);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
|
|
|