优化规划月视图空日期操作

This commit is contained in:
2026-07-22 19:15:02 +08:00
parent 6dcb426b93
commit a3240d2323
3 changed files with 307 additions and 6 deletions
+172
View File
@@ -724,6 +724,16 @@
background: #eef5f1;
}
.month-cell.action-target {
background: #fbfff8;
outline: 3rpx solid #6f8f83;
outline-offset: -3rpx;
}
.month-cell.is-rest {
background: #fff8f6;
}
.month-cell-head {
display: flex;
align-items: center;
@@ -827,6 +837,157 @@
text-align: center;
}
.empty-date-mask {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 80;
display: flex;
align-items: flex-end;
background: rgba(38, 35, 31, 0.36);
}
.empty-date-sheet {
width: 100%;
padding: 22rpx 28rpx calc(28rpx + env(safe-area-inset-bottom));
border-radius: 22px 22px 0 0;
background: #fffdf8;
box-shadow: 0 -18rpx 44rpx rgba(38, 35, 31, 0.18);
animation: emptyDateSheetIn 180ms ease both;
}
.sheet-grabber {
width: 84rpx;
height: 8rpx;
margin: 0 auto 22rpx;
border-radius: 999rpx;
background: #ded6cb;
}
.empty-date-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 20rpx;
}
.empty-date-title-wrap {
display: flex;
flex: 1;
min-width: 0;
flex-direction: column;
gap: 8rpx;
}
.empty-date-title {
color: #25211d;
font-size: 36rpx;
font-weight: 900;
line-height: 1.2;
}
.empty-date-subtitle {
color: #8f877e;
font-size: 24rpx;
font-weight: 700;
line-height: 1.35;
}
.empty-date-close {
display: flex;
align-items: center;
justify-content: center;
width: 60rpx;
min-width: 60rpx;
max-width: 60rpx;
height: 60rpx;
min-height: 60rpx;
padding: 0;
border-radius: 50%;
background: #f0ece5;
color: #5f5951;
font-size: 38rpx;
font-weight: 700;
line-height: 60rpx;
}
.empty-date-actions {
display: flex;
flex-direction: column;
gap: 18rpx;
margin-top: 30rpx;
}
.empty-date-action {
display: flex;
align-items: center;
width: 100%;
min-height: 136rpx;
padding: 22rpx;
border-radius: 12px;
text-align: left;
}
.empty-date-action.primary {
background: #6f8f83;
color: #fffdf8;
box-shadow: 0 8rpx 18rpx rgba(111, 143, 131, 0.24);
}
.empty-date-action.rest {
border: 1rpx solid #f0d7d3;
background: #fff8f6;
color: #6a4743;
}
.empty-date-action-icon {
display: flex;
align-items: center;
justify-content: center;
width: 80rpx;
min-width: 80rpx;
max-width: 80rpx;
height: 80rpx;
margin-right: 24rpx;
border-radius: 12px;
font-size: 38rpx;
font-weight: 900;
line-height: 1;
}
.empty-date-action.primary .empty-date-action-icon {
background: rgba(255, 255, 255, 0.18);
color: #fff;
}
.empty-date-action.rest .empty-date-action-icon {
background: #ffe9e5;
color: #c56f6f;
}
.empty-date-action-copy {
display: flex;
flex: 1;
min-width: 0;
flex-direction: column;
gap: 8rpx;
}
.empty-date-action-title {
font-size: 30rpx;
font-weight: 900;
line-height: 1.2;
}
.empty-date-action-desc {
font-size: 24rpx;
font-weight: 700;
line-height: 1.35;
opacity: 0.82;
}
@keyframes pageFadeIn {
from {
opacity: 0;
@@ -837,3 +998,14 @@
transform: translateY(0);
}
}
@keyframes emptyDateSheetIn {
from {
opacity: 0;
transform: translateY(24rpx);
}
to {
opacity: 1;
transform: translateY(0);
}
}