Files
ttstd_family_care_miniapp/app.wxss
T
tongtong dc351a7c9e style: 统一留白变量 --gutter
- app.wxss 新增 --gutter: 32rpx 与 --tabbar-h: 104rpx
- .page 统一提供四周 padding,.card 只保留纵向间距,去掉左右 margin
- 分区标题、设备条、列表卡片、登录按钮等边距改用 var(--gutter)
- AGENTS.md 记录统一留白与 tabBar 高度联动约定
2026-11-27 21:23:27 +08:00

122 lines
2.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**app.wxss — 全局设计变量与通用卡片样式**/
page {
/* 同同绿与功能色,与 ttstd_family_care/lib/core/widgets/feature_ui.dart 一致 */
--green: #07c160;
--blue: #5b8def;
--orange: #f5a623;
--purple: #764ba2;
--red: #ef4444;
--teal: #0ea5e9;
--gray: #94a3b8;
--ink: #1f2733;
--sub: #9aa3b2;
--surface: #f5f7fa;
--card: #ffffff;
--divider: #f1f3f7;
--track: #eef1f6;
/* 统一留白:页面左右、上下与卡片间距全部使用该值 */
--gutter: 32rpx;
/* 贴底 tabBar 高度,与 custom-tab-bar/index.wxss 的 .tab-inner 保持一致 */
--tabbar-h: 104rpx;
background: #ffffff;
color: var(--ink);
font-size: 28rpx;
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue',
'Segoe UI', sans-serif;
-webkit-font-smoothing: antialiased;
}
/* 页面容器:统一留白(左右 = 上下),并为贴底 tabBar + 安全区预留空间 */
.page {
padding: var(--gutter);
padding-bottom: calc(var(--gutter) + var(--tabbar-h) + env(safe-area-inset-bottom));
box-sizing: border-box;
}
/* 卡片:对应 Flutter CardBox(padding 16、圆角 18、轻阴影)
左右留白由 .page 的 padding 统一提供,卡片只负责纵向间距 */
.card {
margin: 0 0 var(--gutter);
padding: var(--gutter);
background: var(--card);
border-radius: 36rpx;
box-shadow: 0 8rpx 32rpx rgba(20, 30, 60, 0.08);
}
.card-head {
display: flex;
align-items: center;
padding-bottom: 24rpx;
}
.head-icon {
width: 44rpx;
height: 44rpx;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 14rpx;
font-size: 26rpx;
}
.head-title {
margin-left: 14rpx;
font-size: 30rpx;
font-weight: 700;
color: var(--ink);
}
.head-badge {
margin-left: 16rpx;
padding: 4rpx 16rpx;
border-radius: 40rpx;
font-size: 22rpx;
font-weight: 600;
color: var(--sub);
background: var(--surface);
}
.head-badge.ok {
color: var(--green);
background: rgba(7, 193, 96, 0.12);
}
.spacer {
flex: 1;
}
.head-action {
display: flex;
align-items: center;
font-size: 24rpx;
font-weight: 600;
color: var(--blue);
padding: 8rpx 0;
}
.head-link {
font-size: 24rpx;
font-weight: 600;
color: var(--green);
}
.chevron {
margin-left: 4rpx;
font-size: 28rpx;
line-height: 1;
}
/* 分区标题:左右留白由 .page 提供,纵向与后续卡片保持 --gutter 节奏 */
.section-title {
margin: 0 0 8rpx;
font-size: 26rpx;
font-weight: 700;
color: var(--sub);
letter-spacing: 1rpx;
}