Files
ttstd_family_care_miniapp/app.wxss
T
tongtong 16d6b65e9a style: tabBar 贴底、设备操作横排、设备条改为卡片
- 底部导航去掉悬浮圆角胶囊,改为贴底全宽 + 顶部细分隔线 + 安全区
- 修复设备操作竖排:补 .ops-row display:flex
- 顶部设备切换条改为卡片(复用 .card 阴影),删除占位说明文案
- 同步调整页面底部留白与 AGENTS.md 约定
2026-11-27 21:17:58 +08:00

114 lines
2.1 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;
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(104rpx + 安全区)预留底部空间 */
.page {
padding-bottom: calc(150rpx + env(safe-area-inset-bottom));
box-sizing: border-box;
}
/* 卡片:对应 Flutter CardBox(margin 16/6、padding 16、圆角 18、轻阴影) */
.card {
margin: 12rpx 32rpx;
padding: 32rpx;
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;
}
.section-title {
margin: 32rpx 36rpx 8rpx;
font-size: 26rpx;
font-weight: 700;
color: var(--sub);
letter-spacing: 1rpx;
}