duidui_mini_program/pages/camp_task_text_image/index.wxss
2026-03-27 10:41:46 +08:00

144 lines
2.9 KiB
Plaintext

.container {
height: 100vh; /* 改为固定100vh */
display: flex;
flex-direction: column;
background: #F5F7FA;
padding: 30rpx 30rpx 0; /* 移除底部padding */
box-sizing: border-box;
}
/* 卡片样式 */
.card {
background: #FFFFFF;
border-radius: 24rpx;
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.08);
overflow: hidden;
flex: 1; /* 让卡片占据除工具栏外的所有空间 */
margin-bottom: 30rpx; /* 与工具栏保持间距 */
width: 100%;
}
/* 缩略图区域 */
.thumbnail-area {
width: 100%;
height: 100%; /* 占满卡片容器 */
}
.thumbnail-area image {
width: 100%;
height: auto; /* 高度自适应 */
}
.empty-image {
display: flex;
align-items: center;
justify-content: center;
min-height: 400rpx;
color: #999;
font-size: 28rpx;
}
.text-content {
padding: 30rpx;
font-size: 28rpx;
line-height: 1.6;
color: #333;
}
/* 底部工具栏 */
.toolbar {
height: 130rpx;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: center;
padding: 0 40rpx;
box-shadow: 0 -1rpx 0 rgba(0, 0, 0, 0.1);
margin: 0 -30rpx;
margin-bottom: 11px;
width: 100%;
}
.toolbar-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 8rpx;
}
.timer-container {
display: flex;
align-items: center;
}
.timer {
font-size: 44rpx; /* 稍微放大一点 */
color: #007AFF;
font-weight: 600;
font-family: -apple-system, SF Pro Display, sans-serif;
min-width: 70rpx;
text-align: center;
transition: all 0.3s ease;
}
/* 完成状态的计时器样式 */
.timer-container.completed .timer {
color: #34C759;
}
/* 倒计时已使用 MM:SS 格式,不再需要添加单位 */
/* 提示文字样式 */
.timer-tip {
font-size: 24rpx;
color: #999;
font-weight: 400;
transition: all 0.3s ease;
}
/* 完成状态下的提示文字样式 */
.timer-container.completed + .timer-tip {
color: #34C759;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* 修改完成按钮样式 */
.complete-btn {
display: flex;
align-items: center;
height: 72rpx;
color: #007AFF;
font-size: 32rpx;
font-weight: 500;
padding: 0 36rpx;
border-radius: 36rpx;
background: rgba(0, 122, 255, 0.08);
transition: all 0.3s ease;
position: relative;
box-shadow: inset 0 0 0.5px rgba(0, 0, 0, 0.1);
}
/* 完成状态的按钮样式 */
.complete-btn.completed {
color: #34C759;
background: rgba(52, 199, 89, 0.08);
pointer-events: none; /* 禁用点击 */
}
.complete-btn:active {
background: rgba(0, 122, 255, 0.15);
transform: scale(0.98);
}
/* 完成状态下禁用按压效果 */
.complete-btn.completed:active {
transform: none;
background: rgba(52, 199, 89, 0.08);
}