mrr.sj.front/unpackage/dist/dev/mp-weixin/pages/add/add.wxss

292 lines
2.8 KiB
Plaintext

/* 遮罩层 */
.popup-mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 998;
opacity: 0;
transition: opacity 0.3s ease;
}
.popup-mask.show {
opacity: 1;
}
/* 时间选择器 */
.time-picker {
position: fixed;
left: 0;
right: 0;
bottom: -100%;
background-color: #fff;
z-index: 999;
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;
}
.time-picker.show {
-webkit-transform: translateY(0);
transform: translateY(0);
}
/* 选择器头部 */
.picker-header {
display: flex;
justify-content: space-between;
align-items: center;
height: 110rpx;
padding: 0 32rpx;
border-bottom: 1rpx solid #F5F5F5;
}
.cancel {
font-size: 32rpx;
color: #666666;
}
.title {
font-size: 36rpx;
color: #333333;
font-weight: 500;
}
.confirm {
font-size: 32rpx;
color: #4080FF;
font-weight: 500;
}
/* 时间范围选择 */
.time-range {
display: flex;
align-items: center;
justify-content: center;
padding: 32rpx;
background: #F8F9FC;
}
.time-block {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
background: #FFFFFF;
border-radius: 12rpx;
padding: 24rpx 0;
transition: all 0.3s ease;
}
.time-block.active {
background: #ECF2FF;
}
.time-label {
font-size: 26rpx;
color: #999999;
margin-top: 8rpx;
}
.time-value {
font-size: 40rpx;
color: #333333;
font-weight: 500;
}
.time-block.active .time-value {
color: #4080FF;
}
.time-separator {
font-size: 28rpx;
color: #999999;
margin: 0 24rpx;
}
/* 选择器内容区 */
.picker-content {
height: 480rpx;
position: relative;
padding: 0 32rpx;
background-color: #FFFFFF;
}
.picker-view {
width: 100%;
height: 100%;
}
.picker-item {
height: 80rpx;
line-height: 80rpx;
text-align: center;
font-size: 36rpx;
color: #333333;
font-weight: 400;
}
.picker-indicator .time-label {
font-size: 24rpx;
color: #999999;
background-color: #F5F7FA;
padding: 8rpx 32rpx;
border-radius: 8rpx;
}
/* 修改选择器中间指示器的样式 */
.uni-picker-view-indicator {
height: 80rpx !important;
}
.uni-picker-view-mask {
background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4)),
linear-gradient(0deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4)) !important;
}
/* 平台特定样式 */
.picker-view {
height: 480rpx !important;
}
.picker-item {
display: flex;
justify-content: center;
align-items: center;
}