@unif/react-native-design 0.4.37 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -80
- package/docs-home.css +983 -0
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/index.tsx +3 -0
package/README.md
CHANGED
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
[](https://unif-design.github.io/react-native-design/)
|
|
7
7
|
|
|
8
|
-
Unif
|
|
8
|
+
Unif 设计系统:theme(设计令牌)+ 组件 + 图标 + utils,面向 RN 0.85 新架构(Fabric + concurrent React)。所有 Unif 应用与端能力包的 UI 基座。
|
|
9
|
+
|
|
10
|
+
> 📖 **完整文档**(快速开始 · 组件 · 设计令牌 · 设计原则):
|
|
11
|
+
> **https://unif-design.github.io/react-native-design/**
|
|
9
12
|
|
|
10
13
|
## 安装
|
|
11
14
|
|
|
@@ -13,93 +16,21 @@ Unif 设计系统 —— theme + icons + utils + components,面向 React Native
|
|
|
13
16
|
yarn add @unif/react-native-design
|
|
14
17
|
```
|
|
15
18
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
```sh
|
|
19
|
-
yarn add react-native-svg react-native-gesture-handler react-native-reanimated \
|
|
20
|
-
react-native-worklets react-native-safe-area-context \
|
|
21
|
-
react-native-reanimated-carousel @gorhom/bottom-sheet @sbaiahmed1/react-native-blur
|
|
22
|
-
```
|
|
19
|
+
需要一组 peer(`react-native-svg` / `react-native-gesture-handler` / `react-native-reanimated` / `react-native-worklets` / `react-native-safe-area-context` / `react-native-reanimated-carousel` / `@gorhom/bottom-sheet` / `@sbaiahmed1/react-native-blur`)+ 根挂 `ThemeProvider`,详见[文档站 · 快速开始](https://unif-design.github.io/react-native-design/docs/getting-started)。
|
|
23
20
|
|
|
24
21
|
## 用法
|
|
25
22
|
|
|
26
|
-
在 app 根附近挂一次 `ThemeProvider`,并按需挂载命令式 host:
|
|
27
|
-
|
|
28
|
-
```tsx
|
|
29
|
-
import { ThemeProvider, ToastHost, ConfirmHost } from '@unif/react-native-design';
|
|
30
|
-
|
|
31
|
-
export function App() {
|
|
32
|
-
return (
|
|
33
|
-
<ThemeProvider>
|
|
34
|
-
{/* ...你的导航 / 屏幕... */}
|
|
35
|
-
<ToastHost />
|
|
36
|
-
<ConfirmHost />
|
|
37
|
-
</ThemeProvider>
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
组件内通过 `useThemedStyles` 拿当前主题的 `StyleSheet`:
|
|
43
|
-
|
|
44
23
|
```tsx
|
|
45
|
-
import { Button,
|
|
46
|
-
import { View } from 'react-native';
|
|
24
|
+
import { Button, useColors, useThemedStyles } from '@unif/react-native-design';
|
|
47
25
|
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export function Demo() {
|
|
54
|
-
const styles = useThemedStyles(makeStyles);
|
|
55
|
-
return (
|
|
56
|
-
<View style={styles.wrap}>
|
|
57
|
-
<Button label="保存" onPress={() => {}} />
|
|
58
|
-
</View>
|
|
59
|
-
);
|
|
26
|
+
function MyScreen() {
|
|
27
|
+
const c = useColors();
|
|
28
|
+
return <Button label="提交" onPress={() => {}} />;
|
|
60
29
|
}
|
|
61
30
|
```
|
|
62
31
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
```tsx
|
|
66
|
-
import { toast, confirm } from '@unif/react-native-design';
|
|
67
|
-
|
|
68
|
-
toast.success('已保存');
|
|
69
|
-
|
|
70
|
-
const ok = await confirm({
|
|
71
|
-
title: '确认注销账号?',
|
|
72
|
-
message: '注销后数据无法恢复',
|
|
73
|
-
destructive: true,
|
|
74
|
-
});
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
## 包结构
|
|
78
|
-
|
|
79
|
-
- **theme** —— `ThemeProvider` / `useTheme` / `useColors` / `useShadow` / `useThemedStyles`,以及 color / shadow / type / space / radius / icon / control / motion 等 token,`r` / `rf` 尺寸 & 字号缩放
|
|
80
|
-
- **icons** —— `IconName` 联合类型 + `ICONS` 数据(用 `<Icon name="..." />` 渲染)
|
|
81
|
-
- **components/ui** —— 原子组件:Button、Card、Cell、NavBar、BottomSheet、Toast、Confirm、Input、Search、Tabs、Switch 等约 37 个
|
|
82
|
-
- **components/business** —— 通用业务复合组件:AvatarWithRing、Decorations、GlassStats、VersionPill(耦合 navigation / store 的组件留在消费者仓库)
|
|
83
|
-
- **utils** —— `createLogger(scope)` 日志器、`childTestID` 列表型组件 testID 拼接助手
|
|
84
|
-
|
|
85
|
-
## Example
|
|
86
|
-
|
|
87
|
-
`example/` 是接通本库的 RN 宿主应用:
|
|
88
|
-
|
|
89
|
-
```sh
|
|
90
|
-
yarn
|
|
91
|
-
yarn example start # metro
|
|
92
|
-
yarn example ios # 或 yarn example android
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
源码改动会通过 Metro monorepo 配置直接热更新,不需要重新构建原生。
|
|
96
|
-
|
|
97
|
-
## 贡献
|
|
98
|
-
|
|
99
|
-
- [开发流程](CONTRIBUTING.md#development-workflow)
|
|
100
|
-
- [提交 PR](CONTRIBUTING.md#sending-a-pull-request)
|
|
101
|
-
- [行为准则](CODE_OF_CONDUCT.md)
|
|
32
|
+
组件 API、token 调色板、暗色适配、设计原则 —— 见[文档站](https://unif-design.github.io/react-native-design/)。
|
|
102
33
|
|
|
103
|
-
##
|
|
34
|
+
## 许可
|
|
104
35
|
|
|
105
36
|
MIT
|
package/docs-home.css
ADDED
|
@@ -0,0 +1,983 @@
|
|
|
1
|
+
/* ═══════════════════════════════════════════════════════════════
|
|
2
|
+
* docs-home.css — @unif/react-native-design
|
|
3
|
+
* 5-site shared homepage styles: design tokens + all .hp-* / .pt-* rules.
|
|
4
|
+
* Scoped under .unif-home to avoid polluting Docusaurus document pages
|
|
5
|
+
* or overriding --ifm-* variables.
|
|
6
|
+
*
|
|
7
|
+
* Usage (in your site's CSS):
|
|
8
|
+
* @import "@unif/react-native-design/docs-home.css";
|
|
9
|
+
* ═══════════════════════════════════════════════════════════════ */
|
|
10
|
+
|
|
11
|
+
/* ─────────────────────────────────────────────────────────────
|
|
12
|
+
* 1. DESIGN TOKENS — scoped to .unif-home (light defaults)
|
|
13
|
+
* Source: tokens.css :root block
|
|
14
|
+
* ───────────────────────────────────────────────────────────── */
|
|
15
|
+
|
|
16
|
+
.unif-home {
|
|
17
|
+
/* ===== Brand ===== */
|
|
18
|
+
--primary: #EB6E00;
|
|
19
|
+
--primary-pressed: #D06200;
|
|
20
|
+
--primary-container: #FFF5EB;
|
|
21
|
+
--primary-container-subtle:#FFF8F0;
|
|
22
|
+
--on-primary: #FFFFFF;
|
|
23
|
+
--on-primary-muted: rgba(255,255,255,0.85);
|
|
24
|
+
|
|
25
|
+
/* Brand gradient — only for logo bubble + drawer header */
|
|
26
|
+
--brand-gradient: linear-gradient(135deg, #EB6E00 0%, #E96C00 100%);
|
|
27
|
+
--brand-gradient-soft: linear-gradient(135deg, #FFC18A 0%, #EF8B33 100%);
|
|
28
|
+
|
|
29
|
+
/* ===== Semantic ===== */
|
|
30
|
+
--success: #52C41A;
|
|
31
|
+
--success-container: #F0FFF0;
|
|
32
|
+
--on-success: #FFFFFF;
|
|
33
|
+
--error: #F4511E;
|
|
34
|
+
--error-container: #FFF5F5;
|
|
35
|
+
--on-error: #FFFFFF;
|
|
36
|
+
--info: #3775F6;
|
|
37
|
+
--info-container: #F0F5FF;
|
|
38
|
+
--on-info: #FFFFFF;
|
|
39
|
+
|
|
40
|
+
/* ===== Surface (5 layers) ===== */
|
|
41
|
+
--background: #F5F5F5;
|
|
42
|
+
--surface: #FFFFFF;
|
|
43
|
+
--surface-container: #F5F5F5;
|
|
44
|
+
--surface-container-high: #F0F0F0;
|
|
45
|
+
--surface-container-highest:#E0E0E0;
|
|
46
|
+
|
|
47
|
+
/* ===== Foreground (3 levels) ===== */
|
|
48
|
+
--foreground: #333333;
|
|
49
|
+
--foreground-muted: #666666;
|
|
50
|
+
--foreground-subtle: #999999;
|
|
51
|
+
--on-surface: #333333;
|
|
52
|
+
--on-surface-muted: #666666;
|
|
53
|
+
|
|
54
|
+
/* ===== Outline (3 levels) ===== */
|
|
55
|
+
--outline: #EDEDED;
|
|
56
|
+
--outline-variant: #E8E8E8;
|
|
57
|
+
--outline-faint: #F5F5F5;
|
|
58
|
+
|
|
59
|
+
/* ===== Inverse ===== */
|
|
60
|
+
--inverse-surface: #1C1C1E;
|
|
61
|
+
--inverse-on-surface: #FFFFFF;
|
|
62
|
+
|
|
63
|
+
/* ===== Misc ===== */
|
|
64
|
+
--scrim: rgba(0,0,0,0.5);
|
|
65
|
+
|
|
66
|
+
/* ===== Shadow (light) ===== */
|
|
67
|
+
--shadow-card: 0 1px 4px rgba(0,0,0,0.08);
|
|
68
|
+
--shadow-pop: 0 4px 12px rgba(235,110,0,0.18);
|
|
69
|
+
--shadow-none: none;
|
|
70
|
+
|
|
71
|
+
/* ===== Type ===== */
|
|
72
|
+
--font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
|
|
73
|
+
"Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
|
|
74
|
+
Helvetica, Arial, sans-serif;
|
|
75
|
+
--font-mono: "SF Mono", Menlo, Monaco, Consolas,
|
|
76
|
+
"Liberation Mono", monospace;
|
|
77
|
+
|
|
78
|
+
/* Type scale (px) */
|
|
79
|
+
--t-display: 22px;
|
|
80
|
+
--t-h1: 18px;
|
|
81
|
+
--t-h2: 17px;
|
|
82
|
+
--t-h3: 15px;
|
|
83
|
+
--t-body: 15px;
|
|
84
|
+
--t-sm: 14px;
|
|
85
|
+
--t-xs: 13px;
|
|
86
|
+
--t-2xs: 12px;
|
|
87
|
+
--t-micro: 11px;
|
|
88
|
+
|
|
89
|
+
/* Line height */
|
|
90
|
+
--lh-tight: 1.25;
|
|
91
|
+
--lh-body: 1.45;
|
|
92
|
+
|
|
93
|
+
/* Weight */
|
|
94
|
+
--fw-regular: 400;
|
|
95
|
+
--fw-medium: 500;
|
|
96
|
+
--fw-semi: 600;
|
|
97
|
+
--fw-bold: 700;
|
|
98
|
+
--fw-heavy: 800;
|
|
99
|
+
|
|
100
|
+
/* ===== Spacing (4px base) ===== */
|
|
101
|
+
--space-px: 1px;
|
|
102
|
+
--space-1: 4px;
|
|
103
|
+
--space-2: 6px;
|
|
104
|
+
--space-3: 8px;
|
|
105
|
+
--space-4: 10px;
|
|
106
|
+
--space-5: 12px;
|
|
107
|
+
--space-6: 14px;
|
|
108
|
+
--space-7: 16px;
|
|
109
|
+
--space-8: 20px;
|
|
110
|
+
--space-9: 24px;
|
|
111
|
+
--space-10: 32px;
|
|
112
|
+
|
|
113
|
+
/* ===== Radii ===== */
|
|
114
|
+
--radius-sm: 6px;
|
|
115
|
+
--radius-md: 8px;
|
|
116
|
+
--radius-lg: 10px;
|
|
117
|
+
--radius-xl: 12px;
|
|
118
|
+
--radius-2xl: 14px;
|
|
119
|
+
--radius-3xl: 18px;
|
|
120
|
+
--radius-pill: 999px;
|
|
121
|
+
|
|
122
|
+
/* ===== Control heights ===== */
|
|
123
|
+
--dim-control-sm: 28px;
|
|
124
|
+
--dim-control-md: 36px;
|
|
125
|
+
--dim-control-lg: 44px;
|
|
126
|
+
--dim-hit-target: 44px;
|
|
127
|
+
--dim-navbar-h: 44px;
|
|
128
|
+
--dim-tabbar-h: 50px;
|
|
129
|
+
--dim-send-btn: 32px;
|
|
130
|
+
|
|
131
|
+
/* Avatar sizes */
|
|
132
|
+
--dim-avatar-xs: 18px;
|
|
133
|
+
--dim-avatar-sm: 28px;
|
|
134
|
+
--dim-avatar-md: 32px;
|
|
135
|
+
--dim-avatar-lg: 40px;
|
|
136
|
+
--dim-avatar-xl: 56px;
|
|
137
|
+
|
|
138
|
+
/* ===== Motion ===== */
|
|
139
|
+
--motion-fast: 150ms;
|
|
140
|
+
--motion-base: 200ms;
|
|
141
|
+
--motion-slow: 300ms;
|
|
142
|
+
--motion-pulse: 1600ms;
|
|
143
|
+
--ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
144
|
+
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* ─────────────────────────────────────────────────────────────
|
|
148
|
+
* 2. DARK TOKENS — Docusaurus data-theme attribute
|
|
149
|
+
* ───────────────────────────────────────────────────────────── */
|
|
150
|
+
|
|
151
|
+
[data-theme="dark"] .unif-home,
|
|
152
|
+
.theme-dark .unif-home {
|
|
153
|
+
/* Brand stays orange (4.36:1 on #0A0A0A passes WCAG AA) */
|
|
154
|
+
--primary: #EB6E00;
|
|
155
|
+
--primary-pressed: #D06200;
|
|
156
|
+
--primary-container: #3D1F00;
|
|
157
|
+
--primary-container-subtle:#2A1500;
|
|
158
|
+
|
|
159
|
+
--success: #52C41A;
|
|
160
|
+
--success-container: #0E2810;
|
|
161
|
+
--error: #FF6B40;
|
|
162
|
+
--error-container: #2A1010;
|
|
163
|
+
--info: #5A91FF;
|
|
164
|
+
--info-container: #0F1A33;
|
|
165
|
+
|
|
166
|
+
/* iOS HIG dark — pure black bg, layered greys */
|
|
167
|
+
--background: #0A0A0A;
|
|
168
|
+
--surface: #1C1C1E;
|
|
169
|
+
--surface-container: #2C2C2E;
|
|
170
|
+
--surface-container-high: #3A3A3C;
|
|
171
|
+
--surface-container-highest:#48484A;
|
|
172
|
+
|
|
173
|
+
--foreground: #FFFFFF;
|
|
174
|
+
--foreground-muted: rgba(235,235,245,0.6);
|
|
175
|
+
--foreground-subtle: rgba(235,235,245,0.3);
|
|
176
|
+
--on-surface: #FFFFFF;
|
|
177
|
+
--on-surface-muted: rgba(235,235,245,0.6);
|
|
178
|
+
|
|
179
|
+
--outline: #3A3A3C;
|
|
180
|
+
--outline-variant: #48484A;
|
|
181
|
+
--outline-faint: rgba(84,84,88,0.65);
|
|
182
|
+
|
|
183
|
+
--inverse-surface: #FFFFFF;
|
|
184
|
+
--inverse-on-surface: #000000;
|
|
185
|
+
|
|
186
|
+
--scrim: rgba(0,0,0,0.7);
|
|
187
|
+
|
|
188
|
+
/* Layered surface replaces shadows in dark mode */
|
|
189
|
+
--shadow-card: none;
|
|
190
|
+
--shadow-pop: none;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* ─────────────────────────────────────────────────────────────
|
|
194
|
+
* 3. DARK TOKENS — OS preference fallback (no explicit data-theme)
|
|
195
|
+
* ───────────────────────────────────────────────────────────── */
|
|
196
|
+
|
|
197
|
+
/* OS 偏好兜底:仅当 Docusaurus 尚未在 <html> 注入 data-theme 时才生效。
|
|
198
|
+
* 旧写法 .unif-home:not([data-theme="light"]) 恒为真(data-theme 在 <html> 上、
|
|
199
|
+
* 不在 .unif-home),会让"系统深色 + 站点手动切浅色"时内容区被强制深色。 */
|
|
200
|
+
@media (prefers-color-scheme: dark) {
|
|
201
|
+
html:not([data-theme]) .unif-home {
|
|
202
|
+
--primary-container: #3D1F00;
|
|
203
|
+
--primary-container-subtle:#2A1500;
|
|
204
|
+
--error: #FF6B40;
|
|
205
|
+
--error-container: #2A1010;
|
|
206
|
+
--success-container: #0E2810;
|
|
207
|
+
--info: #5A91FF;
|
|
208
|
+
--info-container: #0F1A33;
|
|
209
|
+
|
|
210
|
+
--background: #0A0A0A;
|
|
211
|
+
--surface: #1C1C1E;
|
|
212
|
+
--surface-container: #2C2C2E;
|
|
213
|
+
--surface-container-high: #3A3A3C;
|
|
214
|
+
--surface-container-highest:#48484A;
|
|
215
|
+
|
|
216
|
+
--foreground: #FFFFFF;
|
|
217
|
+
--foreground-muted: rgba(235,235,245,0.6);
|
|
218
|
+
--foreground-subtle: rgba(235,235,245,0.3);
|
|
219
|
+
--on-surface: #FFFFFF;
|
|
220
|
+
--on-surface-muted: rgba(235,235,245,0.6);
|
|
221
|
+
|
|
222
|
+
--outline: #3A3A3C;
|
|
223
|
+
--outline-variant: #48484A;
|
|
224
|
+
--outline-faint: rgba(84,84,88,0.65);
|
|
225
|
+
|
|
226
|
+
--inverse-surface: #FFFFFF;
|
|
227
|
+
--inverse-on-surface: #000000;
|
|
228
|
+
--scrim: rgba(0,0,0,0.7);
|
|
229
|
+
|
|
230
|
+
--shadow-card: none;
|
|
231
|
+
--shadow-pop: none;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* ─────────────────────────────────────────────────────────────
|
|
236
|
+
* 4. SCOPED TYPOGRAPHY HELPERS
|
|
237
|
+
* (tokens.css global h1/h2/h3/p/.display etc. — re-scoped here
|
|
238
|
+
* so they only apply inside .unif-home pages, not doc pages)
|
|
239
|
+
* ───────────────────────────────────────────────────────────── */
|
|
240
|
+
|
|
241
|
+
.unif-home {
|
|
242
|
+
font-family: var(--font-family);
|
|
243
|
+
font-size: var(--t-body);
|
|
244
|
+
line-height: var(--lh-body);
|
|
245
|
+
color: var(--foreground);
|
|
246
|
+
background: var(--background);
|
|
247
|
+
-webkit-font-smoothing: antialiased;
|
|
248
|
+
-moz-osx-font-smoothing: grayscale;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.unif-home .display { font-size: var(--t-display); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
|
|
252
|
+
.unif-home .sm { font-size: var(--t-sm); }
|
|
253
|
+
.unif-home .xs { font-size: var(--t-xs); color: var(--foreground-muted); }
|
|
254
|
+
.unif-home .xxs { font-size: var(--t-2xs); color: var(--foreground-subtle); }
|
|
255
|
+
.unif-home .micro { font-size: var(--t-micro); color: var(--foreground-subtle); }
|
|
256
|
+
.unif-home code,
|
|
257
|
+
.unif-home .mono { font-family: var(--font-mono); }
|
|
258
|
+
|
|
259
|
+
/* ─────────────────────────────────────────────────────────────
|
|
260
|
+
* 5. HOME PAGE CHROME — .hp root + universal resets
|
|
261
|
+
* ───────────────────────────────────────────────────────────── */
|
|
262
|
+
|
|
263
|
+
.unif-home .hp {
|
|
264
|
+
width: 100%;
|
|
265
|
+
height: 100%;
|
|
266
|
+
background: var(--background);
|
|
267
|
+
color: var(--foreground);
|
|
268
|
+
font-family: var(--font-family);
|
|
269
|
+
-webkit-font-smoothing: antialiased;
|
|
270
|
+
position: relative;
|
|
271
|
+
overflow: hidden;
|
|
272
|
+
display: flex;
|
|
273
|
+
flex-direction: column;
|
|
274
|
+
}
|
|
275
|
+
.unif-home .hp * { box-sizing: border-box; }
|
|
276
|
+
.unif-home .hp a { text-decoration: none; color: inherit; }
|
|
277
|
+
/* Docusaurus 全局 a/a:hover 兜底:首页所有链接永不被加下划线(颜色由各元素显式 hover 规则控制,这里只去下划线,不碰 color 以免覆盖按钮文字色) */
|
|
278
|
+
.unif-home a,
|
|
279
|
+
.unif-home a:hover { text-decoration: none; }
|
|
280
|
+
|
|
281
|
+
/* ─────────────────────────────────────────────────────────────
|
|
282
|
+
* 6. NAV BAR
|
|
283
|
+
* ───────────────────────────────────────────────────────────── */
|
|
284
|
+
|
|
285
|
+
.hp-nav {
|
|
286
|
+
height: 64px;
|
|
287
|
+
flex: 0 0 64px;
|
|
288
|
+
display: flex;
|
|
289
|
+
align-items: center;
|
|
290
|
+
gap: var(--space-8);
|
|
291
|
+
padding: 0 40px;
|
|
292
|
+
border-bottom: 1px solid var(--outline);
|
|
293
|
+
background: var(--surface);
|
|
294
|
+
}
|
|
295
|
+
.hp-brand { display: flex; align-items: center; gap: 10px; }
|
|
296
|
+
.hp-mark {
|
|
297
|
+
width: 30px; height: 30px; border-radius: 8px;
|
|
298
|
+
background: var(--brand-gradient);
|
|
299
|
+
color: #fff;
|
|
300
|
+
display: flex; align-items: center; justify-content: center;
|
|
301
|
+
box-shadow: 0 1px 3px rgba(235,110,0,.35);
|
|
302
|
+
}
|
|
303
|
+
.hp-brand-name { font-size: 16px; font-weight: var(--fw-bold); letter-spacing: -.01em; }
|
|
304
|
+
.hp-nav-links { display: flex; align-items: center; gap: var(--space-7); margin-left: var(--space-4); }
|
|
305
|
+
.hp-nav-link {
|
|
306
|
+
font-size: 14px; font-weight: var(--fw-medium); color: var(--foreground-muted);
|
|
307
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
308
|
+
transition: color var(--motion-fast) var(--ease-out);
|
|
309
|
+
}
|
|
310
|
+
.hp-nav-link:hover { color: var(--foreground); }
|
|
311
|
+
.hp-nav-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
|
|
312
|
+
.hp-icon-btn {
|
|
313
|
+
width: 36px; height: 36px; border-radius: var(--radius-md);
|
|
314
|
+
border: none; background: transparent; color: var(--foreground-muted);
|
|
315
|
+
display: flex; align-items: center; justify-content: center; cursor: pointer;
|
|
316
|
+
transition: background var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out);
|
|
317
|
+
}
|
|
318
|
+
.hp-icon-btn:hover { background: var(--surface-container-high); color: var(--foreground); }
|
|
319
|
+
.hp-nav-divider { width: 1px; height: 20px; background: var(--outline); }
|
|
320
|
+
.hp-ver {
|
|
321
|
+
display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
|
|
322
|
+
border-radius: var(--radius-pill); border: 1px solid var(--outline-variant);
|
|
323
|
+
background: var(--surface-container); color: var(--foreground-muted);
|
|
324
|
+
font-family: var(--font-mono); font-size: 12px; font-weight: var(--fw-medium);
|
|
325
|
+
letter-spacing: .01em; transition: color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
|
|
326
|
+
}
|
|
327
|
+
.hp-ver:hover { color: var(--primary); border-color: var(--primary); }
|
|
328
|
+
|
|
329
|
+
/* ─────────────────────────────────────────────────────────────
|
|
330
|
+
* 7. GENERIC BUTTONS
|
|
331
|
+
* ───────────────────────────────────────────────────────────── */
|
|
332
|
+
|
|
333
|
+
.hp-btn {
|
|
334
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
|
335
|
+
height: 46px; padding: 0 22px; border-radius: var(--radius-md);
|
|
336
|
+
font-size: 15px; font-weight: var(--fw-semi); font-family: var(--font-family);
|
|
337
|
+
border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
|
|
338
|
+
transition: background var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), opacity var(--motion-fast) var(--ease-out);
|
|
339
|
+
}
|
|
340
|
+
.hp-btn-primary { background: var(--primary); color: var(--on-primary); }
|
|
341
|
+
.hp-btn-primary:hover { background: var(--primary-pressed); color: var(--on-primary); text-decoration: none; }
|
|
342
|
+
.hp-btn-primary .hp-arrow { transition: transform var(--motion-base) var(--ease-out); }
|
|
343
|
+
.hp-btn-primary:hover .hp-arrow { transform: translateX(3px); }
|
|
344
|
+
.hp-btn-outline { background: var(--surface); color: var(--foreground); border-color: var(--outline-variant); }
|
|
345
|
+
.hp-btn-outline:hover { border-color: var(--foreground-subtle); color: var(--foreground); text-decoration: none; }
|
|
346
|
+
|
|
347
|
+
/* ─────────────────────────────────────────────────────────────
|
|
348
|
+
* 8. HERO — shared layout
|
|
349
|
+
* ───────────────────────────────────────────────────────────── */
|
|
350
|
+
|
|
351
|
+
.hp-scroll { flex: 1 1 auto; overflow: hidden; }
|
|
352
|
+
.hp-hero { padding: 64px 40px 56px; }
|
|
353
|
+
.hp-eyebrow {
|
|
354
|
+
font-family: var(--font-mono); font-size: 12px; font-weight: var(--fw-semi);
|
|
355
|
+
letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
|
|
356
|
+
display: inline-flex; align-items: center; gap: 8px;
|
|
357
|
+
}
|
|
358
|
+
.hp-eyebrow::before {
|
|
359
|
+
content: ""; width: 18px; height: 1.5px; background: var(--primary); border-radius: 1px;
|
|
360
|
+
}
|
|
361
|
+
.hp-title {
|
|
362
|
+
font-size: 54px; line-height: 1.08; font-weight: var(--fw-heavy);
|
|
363
|
+
letter-spacing: -.025em; margin: 18px 0 0;
|
|
364
|
+
}
|
|
365
|
+
.hp-title .accent { color: var(--primary); }
|
|
366
|
+
.hp-tagline {
|
|
367
|
+
font-size: 18px; line-height: 1.55; color: var(--foreground-muted);
|
|
368
|
+
max-width: 560px; margin: 20px 0 0;
|
|
369
|
+
}
|
|
370
|
+
.hp-cta-row { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
|
|
371
|
+
|
|
372
|
+
/* ─────────────────────────────────────────────────────────────
|
|
373
|
+
* 9. INSTALL COMMAND BLOCK
|
|
374
|
+
* ───────────────────────────────────────────────────────────── */
|
|
375
|
+
|
|
376
|
+
.hp-install {
|
|
377
|
+
display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
|
|
378
|
+
height: 44px; padding: 0 6px 0 16px; border-radius: var(--radius-md);
|
|
379
|
+
background: var(--surface); border: 1px solid var(--outline-variant);
|
|
380
|
+
font-family: var(--font-mono); font-size: 13.5px; color: var(--foreground);
|
|
381
|
+
box-shadow: var(--shadow-card);
|
|
382
|
+
}
|
|
383
|
+
.hp-install .dollar { color: var(--foreground-subtle); }
|
|
384
|
+
.hp-install .pkg { color: var(--foreground); }
|
|
385
|
+
.hp-install-copy {
|
|
386
|
+
width: 32px; height: 32px; border-radius: var(--radius-sm); border: none;
|
|
387
|
+
background: var(--surface-container-high); color: var(--foreground-muted);
|
|
388
|
+
display: flex; align-items: center; justify-content: center; cursor: pointer;
|
|
389
|
+
transition: background var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out);
|
|
390
|
+
}
|
|
391
|
+
.hp-install-copy:hover { background: var(--primary-container); color: var(--primary); }
|
|
392
|
+
.hp-install-copy.copied { color: var(--success); }
|
|
393
|
+
|
|
394
|
+
/* ─────────────────────────────────────────────────────────────
|
|
395
|
+
* 10. HERO SPLIT LAYOUT (Hero B + C)
|
|
396
|
+
* ───────────────────────────────────────────────────────────── */
|
|
397
|
+
|
|
398
|
+
.hp-hero-split { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; }
|
|
399
|
+
.hp-hero-copy { min-width: 0; }
|
|
400
|
+
|
|
401
|
+
/* meta chips under tagline */
|
|
402
|
+
.hp-meta-row { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
|
|
403
|
+
.hp-chip {
|
|
404
|
+
display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
|
|
405
|
+
border-radius: var(--radius-pill); background: var(--surface-container);
|
|
406
|
+
border: 1px solid var(--outline); font-size: 12.5px; font-weight: var(--fw-medium);
|
|
407
|
+
color: var(--foreground-muted);
|
|
408
|
+
}
|
|
409
|
+
.hp-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
|
|
410
|
+
|
|
411
|
+
/* ─────────────────────────────────────────────────────────────
|
|
412
|
+
* 11. PHONE MOCKUP — base + notch + screen (shared by vf + scan + share + gal)
|
|
413
|
+
* ───────────────────────────────────────────────────────────── */
|
|
414
|
+
|
|
415
|
+
.hp-phone {
|
|
416
|
+
width: 300px; height: 600px; border-radius: 44px; margin: 0 auto;
|
|
417
|
+
background: #0A0A0A; padding: 10px;
|
|
418
|
+
box-shadow: 0 24px 60px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.06);
|
|
419
|
+
position: relative;
|
|
420
|
+
}
|
|
421
|
+
/* dark: locked design — phone shell is always dark hardware */
|
|
422
|
+
.theme-dark .hp-phone { box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06); }
|
|
423
|
+
[data-theme="dark"] .hp-phone { box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06); }
|
|
424
|
+
.hp-screen {
|
|
425
|
+
width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
|
|
426
|
+
background: #15171A; position: relative; display: flex; flex-direction: column;
|
|
427
|
+
}
|
|
428
|
+
.hp-notch {
|
|
429
|
+
position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
|
|
430
|
+
width: 96px; height: 26px; border-radius: 999px; background: #000; z-index: 5;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/* ─────────────────────────────────────────────────────────────
|
|
434
|
+
* 12. CAMERA VIEWFINDER SCREEN — .hp-vf-*
|
|
435
|
+
* Device screen 1: Camera / react-native-camera / portal camera site
|
|
436
|
+
* ───────────────────────────────────────────────────────────── */
|
|
437
|
+
|
|
438
|
+
.hp-vf-top {
|
|
439
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
440
|
+
padding: 18px 20px 0; color: rgba(255,255,255,.85);
|
|
441
|
+
}
|
|
442
|
+
.hp-vf-flash {
|
|
443
|
+
font-size: 11px; font-weight: 600; letter-spacing: .08em;
|
|
444
|
+
color: var(--primary); border: 1px solid rgba(235,110,0,.5); border-radius: 999px;
|
|
445
|
+
padding: 3px 9px;
|
|
446
|
+
}
|
|
447
|
+
.hp-vf-time { font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.6); }
|
|
448
|
+
.hp-vf-frame { flex: 1; position: relative; margin: 16px; }
|
|
449
|
+
.hp-corner { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255,255,255,.7); }
|
|
450
|
+
.hp-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
|
|
451
|
+
.hp-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
|
|
452
|
+
.hp-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
|
|
453
|
+
.hp-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
|
|
454
|
+
.hp-reticle {
|
|
455
|
+
position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
|
|
456
|
+
width: 58px; height: 58px; border: 1.5px solid var(--primary); border-radius: 6px;
|
|
457
|
+
}
|
|
458
|
+
.hp-reticle::after {
|
|
459
|
+
content: ""; position: absolute; inset: -7px; border: 1px dashed rgba(235,110,0,.4); border-radius: 10px;
|
|
460
|
+
}
|
|
461
|
+
.hp-watermark {
|
|
462
|
+
position: absolute; left: 4px; bottom: 6px; font-family: var(--font-mono);
|
|
463
|
+
color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.6); line-height: 1.35;
|
|
464
|
+
}
|
|
465
|
+
.hp-watermark .wm-1 { font-size: 12px; font-weight: 700; }
|
|
466
|
+
.hp-watermark .wm-2 { font-size: 10px; opacity: .8; }
|
|
467
|
+
.hp-vf-modes { display: flex; justify-content: center; gap: 22px; padding: 6px 0 14px; }
|
|
468
|
+
.hp-vf-mode {
|
|
469
|
+
font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5);
|
|
470
|
+
letter-spacing: .04em; position: relative;
|
|
471
|
+
}
|
|
472
|
+
.hp-vf-mode.active { color: var(--primary); }
|
|
473
|
+
.hp-vf-mode.active::after {
|
|
474
|
+
content: ""; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
|
|
475
|
+
width: 4px; height: 4px; border-radius: 50%; background: var(--primary);
|
|
476
|
+
}
|
|
477
|
+
.hp-vf-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 30px 26px; }
|
|
478
|
+
.hp-vf-thumb {
|
|
479
|
+
width: 40px; height: 40px; border-radius: 10px;
|
|
480
|
+
background: #2C2C2E; border: 1px solid rgba(255,255,255,.12);
|
|
481
|
+
}
|
|
482
|
+
.hp-shutter {
|
|
483
|
+
width: 64px; height: 64px; border-radius: 50%;
|
|
484
|
+
border: 4px solid rgba(255,255,255,.9);
|
|
485
|
+
display: flex; align-items: center; justify-content: center;
|
|
486
|
+
}
|
|
487
|
+
.hp-shutter span { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
|
|
488
|
+
.hp-vf-flip {
|
|
489
|
+
width: 40px; height: 40px; border-radius: 50%;
|
|
490
|
+
background: rgba(255,255,255,.12); color: #fff;
|
|
491
|
+
display: flex; align-items: center; justify-content: center;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/* ─────────────────────────────────────────────────────────────
|
|
495
|
+
* 13. SCANNER SCREEN — .hp-scan-* + .hp-scene*
|
|
496
|
+
* Device screen 2: HMS Scan / QR code scanner
|
|
497
|
+
* ───────────────────────────────────────────────────────────── */
|
|
498
|
+
|
|
499
|
+
.hp-scan { position: absolute; inset: 0; }
|
|
500
|
+
.hp-scene { position: absolute; inset: 0; overflow: hidden; background: #0c0b0a; }
|
|
501
|
+
.hp-scene-base {
|
|
502
|
+
position: absolute; inset: 0;
|
|
503
|
+
background: radial-gradient(120% 80% at 50% 38%, #2a2520 0%, #15120f 52%, #090807 100%);
|
|
504
|
+
}
|
|
505
|
+
.hp-scene-shelf {
|
|
506
|
+
position: absolute; left: 0; right: 0; top: 62%; height: 2px;
|
|
507
|
+
background: rgba(255,236,210,.10); filter: blur(1px);
|
|
508
|
+
}
|
|
509
|
+
.hp-scene-vignette {
|
|
510
|
+
position: absolute; inset: 0;
|
|
511
|
+
background: radial-gradient(130% 100% at 50% 45%, transparent 45%, rgba(0,0,0,.55) 100%);
|
|
512
|
+
}
|
|
513
|
+
.hp-scan-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; }
|
|
514
|
+
.hp-scan-top {
|
|
515
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
516
|
+
padding: 22px 16px 8px;
|
|
517
|
+
}
|
|
518
|
+
.hp-scan-title {
|
|
519
|
+
color: #fff; font-size: 16px; font-weight: 600;
|
|
520
|
+
text-shadow: 0 1px 6px rgba(0,0,0,.5);
|
|
521
|
+
}
|
|
522
|
+
.hp-scan-disc {
|
|
523
|
+
width: 38px; height: 38px; border-radius: 999px;
|
|
524
|
+
display: flex; align-items: center; justify-content: center;
|
|
525
|
+
background: rgba(20,18,16,.42); border: .5px solid rgba(255,255,255,.16); color: #fff;
|
|
526
|
+
backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
|
|
527
|
+
}
|
|
528
|
+
.hp-scan-disc.lg { width: 50px; height: 50px; background: rgba(28,26,24,.5); }
|
|
529
|
+
.hp-scan-stage {
|
|
530
|
+
flex: 1; display: flex; flex-direction: column;
|
|
531
|
+
align-items: center; justify-content: center; gap: 18px; padding-bottom: 30px;
|
|
532
|
+
}
|
|
533
|
+
.hp-scan-frame {
|
|
534
|
+
width: 176px; height: 176px; position: relative;
|
|
535
|
+
box-shadow: 0 0 0 100vmax rgba(0,0,0,.40); border-radius: 4px;
|
|
536
|
+
}
|
|
537
|
+
.hp-scan-frame .hp-corner { width: 30px; height: 30px; border-color: var(--primary); border-width: 3px; }
|
|
538
|
+
.hp-scan-laser {
|
|
539
|
+
position: absolute; left: 8px; right: 8px; top: 16%; height: 2px; border-radius: 2px;
|
|
540
|
+
background: linear-gradient(90deg, transparent, var(--primary), transparent);
|
|
541
|
+
box-shadow: 0 0 12px 2px rgba(235,110,0,.7);
|
|
542
|
+
}
|
|
543
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
544
|
+
.hp-scan-laser { animation: hp-scanline 2.4s var(--ease-in-out) infinite; }
|
|
545
|
+
}
|
|
546
|
+
@keyframes hp-scanline { 0%, 100% { top: 12%; } 50% { top: 88%; } }
|
|
547
|
+
.hp-scan-hint {
|
|
548
|
+
color: rgba(255,255,255,.86); font-size: 13px; font-weight: 500;
|
|
549
|
+
text-shadow: 0 1px 6px rgba(0,0,0,.55);
|
|
550
|
+
}
|
|
551
|
+
.hp-scan-tools { display: flex; justify-content: center; gap: 40px; padding-bottom: 30px; }
|
|
552
|
+
.hp-scan-act {
|
|
553
|
+
display: flex; flex-direction: column; align-items: center; gap: 7px;
|
|
554
|
+
color: rgba(255,255,255,.82); font-size: 12px; font-weight: 500;
|
|
555
|
+
text-shadow: 0 1px 4px rgba(0,0,0,.4);
|
|
556
|
+
}
|
|
557
|
+
.hp-scan-confirm {
|
|
558
|
+
position: absolute; left: 16px; right: 16px; bottom: 104px; z-index: 4;
|
|
559
|
+
display: flex; align-items: center; gap: 11px;
|
|
560
|
+
background: rgba(20,18,16,.86); border: .5px solid rgba(255,255,255,.16);
|
|
561
|
+
border-radius: var(--radius-xl); padding: 11px 13px;
|
|
562
|
+
box-shadow: 0 8px 24px rgba(0,0,0,.45);
|
|
563
|
+
backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
|
|
564
|
+
}
|
|
565
|
+
.hp-scan-ok {
|
|
566
|
+
width: 30px; height: 30px; border-radius: 50%; background: var(--success); color: #fff;
|
|
567
|
+
display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
|
|
568
|
+
}
|
|
569
|
+
.hp-scan-result { flex: 1; min-width: 0; }
|
|
570
|
+
.hp-scan-result .r1 { font-size: 12.5px; font-weight: 600; color: #fff; }
|
|
571
|
+
.hp-scan-result .r2 {
|
|
572
|
+
font-family: var(--font-mono); font-size: 11px;
|
|
573
|
+
color: rgba(235,235,245,.6); margin-top: 1px;
|
|
574
|
+
}
|
|
575
|
+
.hp-scan-go {
|
|
576
|
+
width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff;
|
|
577
|
+
display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/* ─────────────────────────────────────────────────────────────
|
|
581
|
+
* 14. SHARE SCREEN — .hp-share-* + .hp-sheet*
|
|
582
|
+
* Device screen 3: Umeng share sheet
|
|
583
|
+
* ───────────────────────────────────────────────────────────── */
|
|
584
|
+
|
|
585
|
+
.hp-share { position: absolute; inset: 0; background: #f0eee9; }
|
|
586
|
+
.theme-dark .hp-share { background: #1c1c1e; }
|
|
587
|
+
[data-theme="dark"] .hp-share { background: #1c1c1e; }
|
|
588
|
+
.hp-share-bg { position: absolute; inset: 0; padding-top: 8px; }
|
|
589
|
+
.hp-sb-nav {
|
|
590
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
591
|
+
padding: 26px 18px 14px; font-size: 15px; font-weight: 700; color: #1a1a1a;
|
|
592
|
+
}
|
|
593
|
+
.theme-dark .hp-sb-nav { color: #fff; }
|
|
594
|
+
[data-theme="dark"] .hp-sb-nav { color: #fff; }
|
|
595
|
+
.hp-sb-share {
|
|
596
|
+
width: 32px; height: 32px; border-radius: 50%;
|
|
597
|
+
background: var(--primary); color: #fff;
|
|
598
|
+
display: flex; align-items: center; justify-content: center;
|
|
599
|
+
}
|
|
600
|
+
.hp-sb-card {
|
|
601
|
+
margin: 0 16px; background: #fff; border-radius: 18px;
|
|
602
|
+
padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
|
|
603
|
+
}
|
|
604
|
+
.theme-dark .hp-sb-card { background: #2c2c2e; }
|
|
605
|
+
[data-theme="dark"] .hp-sb-card { background: #2c2c2e; }
|
|
606
|
+
.hp-sb-eyebrow { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: .04em; }
|
|
607
|
+
.hp-sb-title { font-size: 17px; font-weight: 700; color: #1a1a1a; margin: 8px 0 14px; }
|
|
608
|
+
.theme-dark .hp-sb-title { color: #fff; }
|
|
609
|
+
[data-theme="dark"] .hp-sb-title { color: #fff; }
|
|
610
|
+
.hp-sb-line { height: 9px; border-radius: 5px; background: rgba(0,0,0,.07); margin-bottom: 8px; }
|
|
611
|
+
.theme-dark .hp-sb-line { background: rgba(255,255,255,.1); }
|
|
612
|
+
[data-theme="dark"] .hp-sb-line { background: rgba(255,255,255,.1); }
|
|
613
|
+
.hp-sb-line.short { width: 62%; }
|
|
614
|
+
.hp-share-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.32); }
|
|
615
|
+
.hp-sheet {
|
|
616
|
+
position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
|
|
617
|
+
border-radius: 22px 22px 0 0;
|
|
618
|
+
padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
|
|
619
|
+
box-shadow: 0 -8px 30px rgba(0,0,0,.18);
|
|
620
|
+
}
|
|
621
|
+
.theme-dark .hp-sheet { background: #2c2c2e; }
|
|
622
|
+
[data-theme="dark"] .hp-sheet { background: #2c2c2e; }
|
|
623
|
+
.hp-sheet-grab {
|
|
624
|
+
display: block; width: 36px; height: 4px; border-radius: 2px;
|
|
625
|
+
background: rgba(0,0,0,.18); margin: 4px auto 10px;
|
|
626
|
+
}
|
|
627
|
+
.theme-dark .hp-sheet-grab { background: rgba(255,255,255,.25); }
|
|
628
|
+
[data-theme="dark"] .hp-sheet-grab { background: rgba(255,255,255,.25); }
|
|
629
|
+
.hp-sheet-head {
|
|
630
|
+
display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 12px;
|
|
631
|
+
}
|
|
632
|
+
.hp-sheet-title { font-size: 15px; font-weight: 700; color: #1a1a1a; }
|
|
633
|
+
.theme-dark .hp-sheet-title { color: #fff; }
|
|
634
|
+
[data-theme="dark"] .hp-sheet-title { color: #fff; }
|
|
635
|
+
.hp-sheet-x {
|
|
636
|
+
width: 26px; height: 26px; border-radius: 50%;
|
|
637
|
+
background: rgba(0,0,0,.06); color: #888;
|
|
638
|
+
display: flex; align-items: center; justify-content: center;
|
|
639
|
+
}
|
|
640
|
+
.theme-dark .hp-sheet-x { background: rgba(255,255,255,.1); color: #aaa; }
|
|
641
|
+
[data-theme="dark"] .hp-sheet-x { background: rgba(255,255,255,.1); color: #aaa; }
|
|
642
|
+
.hp-sheet-list { background: rgba(0,0,0,.02); border-radius: 14px; overflow: hidden; }
|
|
643
|
+
.theme-dark .hp-sheet-list { background: rgba(255,255,255,.04); }
|
|
644
|
+
[data-theme="dark"] .hp-sheet-list { background: rgba(255,255,255,.04); }
|
|
645
|
+
.hp-sheet-cell { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #999; }
|
|
646
|
+
.hp-sheet-cell + .hp-sheet-cell { border-top: 1px solid rgba(0,0,0,.06); }
|
|
647
|
+
.theme-dark .hp-sheet-cell + .hp-sheet-cell { border-color: rgba(255,255,255,.07); }
|
|
648
|
+
[data-theme="dark"] .hp-sheet-cell + .hp-sheet-cell { border-color: rgba(255,255,255,.07); }
|
|
649
|
+
.hp-sheet-body { flex: 1; min-width: 0; }
|
|
650
|
+
.hp-sheet-body .t { font-size: 14px; font-weight: 600; color: #1a1a1a; }
|
|
651
|
+
.theme-dark .hp-sheet-body .t { color: #fff; }
|
|
652
|
+
[data-theme="dark"] .hp-sheet-body .t { color: #fff; }
|
|
653
|
+
.hp-sheet-body .s { font-size: 11.5px; color: #999; margin-top: 1px; }
|
|
654
|
+
.hp-sheet-cancel {
|
|
655
|
+
margin-top: 12px; height: 46px; border-radius: 13px;
|
|
656
|
+
background: rgba(0,0,0,.05); color: #1a1a1a;
|
|
657
|
+
font-size: 15px; font-weight: 600;
|
|
658
|
+
display: flex; align-items: center; justify-content: center;
|
|
659
|
+
}
|
|
660
|
+
.theme-dark .hp-sheet-cancel { background: rgba(255,255,255,.08); color: #fff; }
|
|
661
|
+
[data-theme="dark"] .hp-sheet-cancel { background: rgba(255,255,255,.08); color: #fff; }
|
|
662
|
+
|
|
663
|
+
/* ─────────────────────────────────────────────────────────────
|
|
664
|
+
* 15. GALLERY SCREEN — .hp-gal-*
|
|
665
|
+
* Device screen 4: Design system / component gallery
|
|
666
|
+
* ───────────────────────────────────────────────────────────── */
|
|
667
|
+
|
|
668
|
+
.hp-gal { position: absolute; inset: 0; background: #f0eee9; display: flex; flex-direction: column; }
|
|
669
|
+
.theme-dark .hp-gal { background: #1c1c1e; }
|
|
670
|
+
[data-theme="dark"] .hp-gal { background: #1c1c1e; }
|
|
671
|
+
.hp-gal-nav { padding: 30px 18px 12px; font-size: 17px; font-weight: 700; color: #1a1a1a; }
|
|
672
|
+
.theme-dark .hp-gal-nav { color: #fff; }
|
|
673
|
+
[data-theme="dark"] .hp-gal-nav { color: #fff; }
|
|
674
|
+
.hp-gal-body { flex: 1; overflow: hidden; padding: 4px 16px; }
|
|
675
|
+
.hp-gal-label {
|
|
676
|
+
font-size: 11px; font-weight: 700; letter-spacing: .08em;
|
|
677
|
+
text-transform: uppercase; color: #aaa; margin: 14px 0 9px;
|
|
678
|
+
}
|
|
679
|
+
.hp-gal-btns { display: flex; gap: 10px; }
|
|
680
|
+
.hp-gal-btn {
|
|
681
|
+
flex: 1; height: 42px; border-radius: 11px;
|
|
682
|
+
display: flex; align-items: center; justify-content: center;
|
|
683
|
+
font-size: 14px; font-weight: 600;
|
|
684
|
+
}
|
|
685
|
+
.hp-gal-btn.primary { background: var(--primary); color: #fff; }
|
|
686
|
+
.hp-gal-btn.ghost { background: transparent; border: 1.5px solid rgba(0,0,0,.14); color: #1a1a1a; }
|
|
687
|
+
.theme-dark .hp-gal-btn.ghost { border-color: rgba(255,255,255,.2); color: #fff; }
|
|
688
|
+
[data-theme="dark"] .hp-gal-btn.ghost { border-color: rgba(255,255,255,.2); color: #fff; }
|
|
689
|
+
.hp-gal-tags { display: flex; gap: 8px; }
|
|
690
|
+
.hp-gal-tag {
|
|
691
|
+
height: 26px; padding: 0 12px; border-radius: 999px;
|
|
692
|
+
display: inline-flex; align-items: center;
|
|
693
|
+
font-size: 12px; font-weight: 600; background: rgba(0,0,0,.06); color: #555;
|
|
694
|
+
}
|
|
695
|
+
.theme-dark .hp-gal-tag { background: rgba(255,255,255,.1); color: #ccc; }
|
|
696
|
+
[data-theme="dark"] .hp-gal-tag { background: rgba(255,255,255,.1); color: #ccc; }
|
|
697
|
+
.hp-gal-tag.green { background: rgba(31,138,91,.14); color: #1f8a5b; }
|
|
698
|
+
.hp-gal-tag.orange { background: var(--primary-container); color: var(--primary); }
|
|
699
|
+
.hp-gal-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
|
|
700
|
+
.theme-dark .hp-gal-card { background: #2c2c2e; }
|
|
701
|
+
[data-theme="dark"] .hp-gal-card { background: #2c2c2e; }
|
|
702
|
+
.hp-gal-cell { display: flex; align-items: center; gap: 12px; padding: 13px 15px; color: #bbb; }
|
|
703
|
+
.hp-gal-cell + .hp-gal-cell { border-top: 1px solid rgba(0,0,0,.06); }
|
|
704
|
+
.theme-dark .hp-gal-cell + .hp-gal-cell { border-color: rgba(255,255,255,.07); }
|
|
705
|
+
[data-theme="dark"] .hp-gal-cell + .hp-gal-cell { border-color: rgba(255,255,255,.07); }
|
|
706
|
+
.hp-gal-ic {
|
|
707
|
+
width: 34px; height: 34px; border-radius: 9px;
|
|
708
|
+
background: var(--primary-container); color: var(--primary);
|
|
709
|
+
display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
|
|
710
|
+
}
|
|
711
|
+
.hp-gal-ct { flex: 1; min-width: 0; }
|
|
712
|
+
.hp-gal-ct .t { font-size: 14px; font-weight: 600; color: #1a1a1a; }
|
|
713
|
+
.theme-dark .hp-gal-ct .t { color: #fff; }
|
|
714
|
+
[data-theme="dark"] .hp-gal-ct .t { color: #fff; }
|
|
715
|
+
.hp-gal-ct .s { font-size: 11.5px; color: #999; margin-top: 1px; }
|
|
716
|
+
.hp-gal-sw {
|
|
717
|
+
width: 42px; height: 25px; border-radius: 999px;
|
|
718
|
+
background: var(--primary); position: relative; flex: 0 0 auto;
|
|
719
|
+
}
|
|
720
|
+
.hp-gal-sw span {
|
|
721
|
+
position: absolute; top: 2.5px; right: 2.5px;
|
|
722
|
+
width: 20px; height: 20px; border-radius: 50%;
|
|
723
|
+
background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/* ─────────────────────────────────────────────────────────────
|
|
727
|
+
* 16. CODE WINDOW — .hp-code + syntax tokens
|
|
728
|
+
* ───────────────────────────────────────────────────────────── */
|
|
729
|
+
|
|
730
|
+
.hp-code {
|
|
731
|
+
border-radius: var(--radius-xl); overflow: hidden; background: var(--surface);
|
|
732
|
+
border: 1px solid var(--outline-variant); box-shadow: 0 12px 40px rgba(0,0,0,.12);
|
|
733
|
+
}
|
|
734
|
+
.theme-dark .hp-code { box-shadow: 0 12px 40px rgba(0,0,0,.5); }
|
|
735
|
+
[data-theme="dark"] .hp-code { box-shadow: 0 12px 40px rgba(0,0,0,.5); }
|
|
736
|
+
.hp-code-bar {
|
|
737
|
+
display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 42px;
|
|
738
|
+
border-bottom: 1px solid var(--outline); background: var(--surface-container);
|
|
739
|
+
}
|
|
740
|
+
.hp-code-dots { display: flex; gap: 6px; }
|
|
741
|
+
.hp-code-dots i {
|
|
742
|
+
width: 11px; height: 11px; border-radius: 50%;
|
|
743
|
+
background: var(--surface-container-highest); display: block;
|
|
744
|
+
}
|
|
745
|
+
.hp-code-file { font-family: var(--font-mono); font-size: 12px; color: var(--foreground-subtle); margin-left: 6px; }
|
|
746
|
+
.hp-code-tag {
|
|
747
|
+
margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--primary);
|
|
748
|
+
background: var(--primary-container); padding: 3px 9px; border-radius: var(--radius-pill); font-weight: 600;
|
|
749
|
+
}
|
|
750
|
+
.hp-code-body {
|
|
751
|
+
padding: 20px 22px; font-family: var(--font-mono); font-size: 12.5px;
|
|
752
|
+
line-height: 1.85; overflow: auto;
|
|
753
|
+
}
|
|
754
|
+
.hp-code-body pre { margin: 0; }
|
|
755
|
+
.hp-code-body .ln {
|
|
756
|
+
color: var(--foreground-subtle); display: inline-block; width: 22px;
|
|
757
|
+
user-select: none; opacity: .55;
|
|
758
|
+
}
|
|
759
|
+
.tok-kw { color: var(--primary); }
|
|
760
|
+
.tok-fn { color: var(--foreground); font-weight: 600; }
|
|
761
|
+
.tok-str { color: var(--success); }
|
|
762
|
+
.tok-dim { color: var(--foreground-subtle); }
|
|
763
|
+
.tok-id { color: var(--foreground); }
|
|
764
|
+
|
|
765
|
+
/* highlighted line + compact variant */
|
|
766
|
+
.hp-cl { display: block; border-radius: 4px; margin: 0 -8px; padding: 0 8px; }
|
|
767
|
+
.hp-cl.hl { background: var(--primary-container); box-shadow: inset 2px 0 0 var(--primary); }
|
|
768
|
+
.hp-code.compact .hp-code-body { font-size: 11.5px; line-height: 1.8; padding: 16px 18px; }
|
|
769
|
+
.hp-code.compact .hp-code-body .ln { width: 18px; }
|
|
770
|
+
|
|
771
|
+
/* ─────────────────────────────────────────────────────────────
|
|
772
|
+
* 17. COMPOSED HERO (Hero D) — code window + scaled viewfinder
|
|
773
|
+
* ───────────────────────────────────────────────────────────── */
|
|
774
|
+
|
|
775
|
+
.hp-hero-final { grid-template-columns: minmax(0, 1fr) 580px; gap: 44px; }
|
|
776
|
+
.hp-combo { position: relative; height: 540px; }
|
|
777
|
+
.hp-combo-code { position: absolute; top: 0; left: 0; width: 540px; z-index: 1; }
|
|
778
|
+
.hp-combo-phone { position: absolute; right: 0; bottom: 0; z-index: 3; transform: scale(.68); transform-origin: bottom right; }
|
|
779
|
+
.hp-combo-badge {
|
|
780
|
+
position: absolute; top: 92px; right: 18px; z-index: 4; white-space: nowrap;
|
|
781
|
+
display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px;
|
|
782
|
+
border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--outline-variant);
|
|
783
|
+
font-size: 12.5px; font-weight: var(--fw-semi); color: var(--foreground);
|
|
784
|
+
box-shadow: var(--shadow-card);
|
|
785
|
+
}
|
|
786
|
+
.theme-dark .hp-combo-badge { box-shadow: 0 6px 18px rgba(0,0,0,.5); }
|
|
787
|
+
[data-theme="dark"] .hp-combo-badge { box-shadow: 0 6px 18px rgba(0,0,0,.5); }
|
|
788
|
+
.hp-combo-badge .dot {
|
|
789
|
+
width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
|
|
790
|
+
box-shadow: 0 0 0 3px var(--primary-container);
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
/* ─────────────────────────────────────────────────────────────
|
|
794
|
+
* 18. FEATURES GRID
|
|
795
|
+
* ───────────────────────────────────────────────────────────── */
|
|
796
|
+
|
|
797
|
+
.hp-features { padding: 8px 40px 56px; }
|
|
798
|
+
.hp-sec-label {
|
|
799
|
+
font-size: 13px; font-weight: var(--fw-semi); color: var(--foreground-subtle);
|
|
800
|
+
letter-spacing: .02em; margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
|
|
801
|
+
}
|
|
802
|
+
.hp-sec-label::after { content: ""; flex: 1; height: 1px; background: var(--outline); }
|
|
803
|
+
.hp-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
|
|
804
|
+
.hp-feature {
|
|
805
|
+
background: var(--surface); border-radius: var(--radius-xl); padding: 22px 20px 24px;
|
|
806
|
+
box-shadow: var(--shadow-card); border: 1px solid var(--outline-faint);
|
|
807
|
+
transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out);
|
|
808
|
+
}
|
|
809
|
+
.theme-dark .hp-feature { border-color: var(--outline); }
|
|
810
|
+
[data-theme="dark"] .hp-feature { border-color: var(--outline); }
|
|
811
|
+
.hp-feature:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
|
|
812
|
+
.theme-dark .hp-feature:hover { box-shadow: none; border-color: var(--primary); }
|
|
813
|
+
[data-theme="dark"] .hp-feature:hover { box-shadow: none; border-color: var(--primary); }
|
|
814
|
+
.hp-feat-icon {
|
|
815
|
+
width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--primary-container);
|
|
816
|
+
color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
|
|
817
|
+
}
|
|
818
|
+
.hp-feat-title { font-size: 16px; font-weight: var(--fw-semi); margin: 0 0 8px; }
|
|
819
|
+
.hp-feat-desc { font-size: 13.5px; line-height: 1.55; color: var(--foreground-muted); margin: 0; text-wrap: pretty; }
|
|
820
|
+
|
|
821
|
+
/* ─────────────────────────────────────────────────────────────
|
|
822
|
+
* 19. FOOTER
|
|
823
|
+
* ───────────────────────────────────────────────────────────── */
|
|
824
|
+
|
|
825
|
+
.hp-footer { flex: 0 0 auto; border-top: 1px solid var(--outline); background: var(--surface); padding: 32px 40px 22px; }
|
|
826
|
+
.hp-footer-top { display: flex; justify-content: space-between; gap: 40px; }
|
|
827
|
+
.hp-footer-brand { max-width: 280px; }
|
|
828
|
+
.hp-footer-tag { font-size: 13px; color: var(--foreground-muted); line-height: 1.5; margin-top: 12px; }
|
|
829
|
+
.hp-footer-cols { display: flex; gap: 64px; }
|
|
830
|
+
.hp-footer-col h4 {
|
|
831
|
+
font-size: 12px; font-weight: var(--fw-semi); color: var(--foreground);
|
|
832
|
+
margin: 0 0 12px; letter-spacing: .02em;
|
|
833
|
+
}
|
|
834
|
+
.hp-footer-col a {
|
|
835
|
+
display: flex; align-items: center; gap: 6px; font-size: 13.5px;
|
|
836
|
+
color: var(--foreground-muted); padding: 4px 0;
|
|
837
|
+
transition: color var(--motion-fast) var(--ease-out);
|
|
838
|
+
}
|
|
839
|
+
.hp-footer-col a:hover { color: var(--primary); }
|
|
840
|
+
.hp-footer-bottom {
|
|
841
|
+
display: flex; justify-content: space-between; align-items: center;
|
|
842
|
+
margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--outline-faint);
|
|
843
|
+
font-size: 12.5px; color: var(--foreground-subtle); font-family: var(--font-mono);
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/* ─────────────────────────────────────────────────────────────
|
|
847
|
+
* 20. PAGE MODE (full-viewport, scrolling) — .hp--page modifier
|
|
848
|
+
* ───────────────────────────────────────────────────────────── */
|
|
849
|
+
|
|
850
|
+
.hp--page { height: auto; min-height: 100vh; overflow: visible; }
|
|
851
|
+
.hp--page .hp-scroll { overflow: visible; flex: 0 0 auto; }
|
|
852
|
+
.hp--page .hp-nav { position: sticky; top: 0; z-index: 30; }
|
|
853
|
+
/* centre content within a 1240px column, 40px min gutters */
|
|
854
|
+
.hp--page .hp-nav,
|
|
855
|
+
.hp--page .hp-hero,
|
|
856
|
+
.hp--page .hp-features,
|
|
857
|
+
.hp--page .hp-footer {
|
|
858
|
+
padding-left: max(40px, calc((100% - 1240px) / 2));
|
|
859
|
+
padding-right: max(40px, calc((100% - 1240px) / 2));
|
|
860
|
+
}
|
|
861
|
+
.hp--page .hp-hero { padding-top: 84px; padding-bottom: 72px; }
|
|
862
|
+
.hp--page .hp-features { padding-bottom: 80px; }
|
|
863
|
+
.hp--page .hp-footer { padding-top: 40px; padding-bottom: 28px; }
|
|
864
|
+
|
|
865
|
+
/* ─────────────────────────────────────────────────────────────
|
|
866
|
+
* 21. PORTAL LANDING — .pt-* + .portal + .hub-*
|
|
867
|
+
* Used by unif.design hub page
|
|
868
|
+
* ───────────────────────────────────────────────────────────── */
|
|
869
|
+
|
|
870
|
+
.portal { background: var(--background); }
|
|
871
|
+
.hub-nav-tag {
|
|
872
|
+
font-family: var(--font-mono); font-size: 11px; font-weight: 600;
|
|
873
|
+
color: var(--foreground-subtle); border: 1px solid var(--outline);
|
|
874
|
+
border-radius: var(--radius-pill); padding: 2px 9px; margin-left: 4px;
|
|
875
|
+
}
|
|
876
|
+
.hub-ver {
|
|
877
|
+
font-family: var(--font-mono); font-size: 12px; color: var(--foreground-subtle);
|
|
878
|
+
border: 1px solid var(--outline-variant); border-radius: var(--radius-pill); padding: 3px 10px;
|
|
879
|
+
}
|
|
880
|
+
.hub-arrow { color: var(--primary); display: flex; transition: transform var(--motion-base) var(--ease-out); }
|
|
881
|
+
|
|
882
|
+
.pt-hero { text-align: center; padding: 80px 40px 40px; max-width: 820px; margin: 0 auto; }
|
|
883
|
+
.pt-hero .hp-eyebrow { justify-content: center; }
|
|
884
|
+
.pt-hero .hp-eyebrow::before { display: none; }
|
|
885
|
+
.pt-title {
|
|
886
|
+
font-size: 52px; line-height: 1.1; font-weight: var(--fw-heavy);
|
|
887
|
+
letter-spacing: -.025em; margin: 16px 0 0;
|
|
888
|
+
}
|
|
889
|
+
.pt-title .accent { color: var(--primary); }
|
|
890
|
+
.pt-tagline {
|
|
891
|
+
font-size: 17px; line-height: 1.6; color: var(--foreground-muted);
|
|
892
|
+
margin: 18px auto 0; max-width: 620px; text-wrap: pretty;
|
|
893
|
+
}
|
|
894
|
+
.pt-search {
|
|
895
|
+
display: inline-flex; align-items: center; gap: 10px; margin: 28px auto 0;
|
|
896
|
+
height: 46px; padding: 0 8px 0 16px; border-radius: var(--radius-pill);
|
|
897
|
+
background: var(--surface); border: 1px solid var(--outline-variant);
|
|
898
|
+
color: var(--foreground-subtle); font-size: 14.5px; box-shadow: var(--shadow-card);
|
|
899
|
+
cursor: text; min-width: 320px; justify-content: flex-start;
|
|
900
|
+
}
|
|
901
|
+
.pt-search kbd {
|
|
902
|
+
margin-left: auto; font-family: var(--font-mono); font-size: 11px;
|
|
903
|
+
color: var(--foreground-subtle); background: var(--surface-container-high);
|
|
904
|
+
border-radius: var(--radius-sm); padding: 3px 7px;
|
|
905
|
+
}
|
|
906
|
+
.pt-stats {
|
|
907
|
+
display: flex; align-items: center; justify-content: center; gap: 14px;
|
|
908
|
+
margin-top: 26px; font-size: 14px; color: var(--foreground-muted);
|
|
909
|
+
}
|
|
910
|
+
.pt-stats b { color: var(--foreground); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
|
|
911
|
+
.pt-stats i { color: var(--outline-variant); font-style: normal; }
|
|
912
|
+
|
|
913
|
+
.pt-section { max-width: 1000px; margin: 0 auto; padding: 12px 40px 8px; width: 100%; }
|
|
914
|
+
.pt-section .hp-sec-label { max-width: none; }
|
|
915
|
+
.pt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 28px; }
|
|
916
|
+
.pt-card {
|
|
917
|
+
display: flex; flex-direction: column; background: var(--surface);
|
|
918
|
+
border: 1px solid var(--outline-faint); border-radius: var(--radius-xl);
|
|
919
|
+
padding: 22px; box-shadow: var(--shadow-card);
|
|
920
|
+
transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out);
|
|
921
|
+
}
|
|
922
|
+
.theme-dark .pt-card { border-color: var(--outline); }
|
|
923
|
+
[data-theme="dark"] .pt-card { border-color: var(--outline); }
|
|
924
|
+
.pt-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.1); border-color: var(--primary); }
|
|
925
|
+
.theme-dark .pt-card:hover { box-shadow: none; }
|
|
926
|
+
[data-theme="dark"] .pt-card:hover { box-shadow: none; }
|
|
927
|
+
.pt-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
|
|
928
|
+
.pt-card-head .hp-mark { width: 40px; height: 40px; border-radius: 11px; }
|
|
929
|
+
.pt-card-name { font-size: 19px; font-weight: var(--fw-bold); margin: 0 0 5px; letter-spacing: -.01em; }
|
|
930
|
+
.pt-card-pkg { font-family: var(--font-mono); font-size: 12.5px; color: var(--primary); }
|
|
931
|
+
.pt-card-desc { font-size: 13.5px; line-height: 1.55; color: var(--foreground-muted); margin: 11px 0 0; text-wrap: pretty; flex: 1; }
|
|
932
|
+
.pt-card-foot {
|
|
933
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
934
|
+
margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--outline-faint);
|
|
935
|
+
font-size: 14px; font-weight: var(--fw-semi); color: var(--foreground);
|
|
936
|
+
}
|
|
937
|
+
.theme-dark .pt-card-foot { border-color: var(--outline); }
|
|
938
|
+
[data-theme="dark"] .pt-card-foot { border-color: var(--outline); }
|
|
939
|
+
.pt-card:hover .hub-arrow { transform: translateX(4px); }
|
|
940
|
+
|
|
941
|
+
.pt-doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 40px; }
|
|
942
|
+
.pt-doc {
|
|
943
|
+
display: flex; align-items: flex-start; gap: 13px; background: var(--surface);
|
|
944
|
+
border: 1px solid var(--outline-faint); border-radius: var(--radius-xl);
|
|
945
|
+
padding: 18px; box-shadow: var(--shadow-card);
|
|
946
|
+
transition: border-color var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out);
|
|
947
|
+
}
|
|
948
|
+
.theme-dark .pt-doc { border-color: var(--outline); }
|
|
949
|
+
[data-theme="dark"] .pt-doc { border-color: var(--outline); }
|
|
950
|
+
.pt-doc:hover { border-color: var(--primary); transform: translateY(-2px); }
|
|
951
|
+
.pt-doc-ic {
|
|
952
|
+
width: 40px; height: 40px; border-radius: 11px;
|
|
953
|
+
background: var(--primary-container); color: var(--primary);
|
|
954
|
+
display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
|
|
955
|
+
}
|
|
956
|
+
.pt-doc-body { flex: 1; min-width: 0; }
|
|
957
|
+
.pt-doc-top { display: flex; align-items: baseline; gap: 8px; }
|
|
958
|
+
.pt-doc-title { font-size: 15.5px; font-weight: var(--fw-bold); }
|
|
959
|
+
.pt-doc-meta { font-family: var(--font-mono); font-size: 11px; color: var(--foreground-subtle); }
|
|
960
|
+
.pt-doc-desc { font-size: 12.5px; line-height: 1.5; color: var(--foreground-muted); margin: 6px 0 0; text-wrap: pretty; }
|
|
961
|
+
.pt-doc-go {
|
|
962
|
+
color: var(--foreground-subtle); flex: 0 0 auto; margin-top: 2px;
|
|
963
|
+
transition: color var(--motion-base) var(--ease-out);
|
|
964
|
+
}
|
|
965
|
+
.pt-doc:hover .pt-doc-go { color: var(--primary); }
|
|
966
|
+
|
|
967
|
+
.portal .hp-footer { padding-top: 36px; padding-bottom: 28px; margin-top: 8px; }
|
|
968
|
+
|
|
969
|
+
/* ─────────────────────────────────────────────────────────────
|
|
970
|
+
* 22. RESPONSIVE BREAKPOINTS
|
|
971
|
+
* ───────────────────────────────────────────────────────────── */
|
|
972
|
+
|
|
973
|
+
@media (max-width: 940px) {
|
|
974
|
+
.hp-hero-split,
|
|
975
|
+
.hp-hero-final { grid-template-columns: 1fr; gap: 48px; }
|
|
976
|
+
.hp--page .hp-feature-grid { grid-template-columns: repeat(2, 1fr); }
|
|
977
|
+
.hp--page .hp-combo { margin: 0 auto; }
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
@media (max-width: 760px) {
|
|
981
|
+
.pt-grid { grid-template-columns: 1fr; }
|
|
982
|
+
.pt-doc-grid { grid-template-columns: 1fr; }
|
|
983
|
+
}
|
package/lib/module/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
// @unif/react-native-design 公共入口:theme(设计令牌)/ icons / utils / 组件(ui · business)。
|
|
4
|
+
// 文档站共享首页样式以 `./docs-home.css` 子路径导出(供各 Docusaurus 文档站 import,见 package.json#exports)。
|
|
5
|
+
// 0.5.1:修 docs-home.css 深色 OS 兜底选择器恒真(系统深色 + 站点切浅色时内容区被强制深色),见 #52。
|
|
3
6
|
export * from "./theme/index.js";
|
|
4
7
|
export * from "./icons/index.js";
|
|
5
8
|
export * from "./utils/testID/index.js";
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,cAAc,kBAAS;AACvB,cAAc,kBAAS;AACvB,cAAc,yBAAgB;AAC9B,cAAc,yBAAgB;AAC9B,cAAc,0BAAiB;AAC/B,cAAc,gCAAuB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,cAAc,kBAAS;AACvB,cAAc,kBAAS;AACvB,cAAc,yBAAgB;AAC9B,cAAc,yBAAgB;AAC9B,cAAc,0BAAiB;AAC/B,cAAc,gCAAuB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unif/react-native-design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Unif 设计系统:theme + icons + utils + components",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -10,11 +10,13 @@
|
|
|
10
10
|
"types": "./lib/typescript/src/index.d.ts",
|
|
11
11
|
"default": "./lib/module/index.js"
|
|
12
12
|
},
|
|
13
|
-
"./package.json": "./package.json"
|
|
13
|
+
"./package.json": "./package.json",
|
|
14
|
+
"./docs-home.css": "./docs-home.css"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
17
|
"src",
|
|
17
18
|
"lib",
|
|
19
|
+
"docs-home.css",
|
|
18
20
|
"android",
|
|
19
21
|
"ios",
|
|
20
22
|
"cpp",
|
package/src/index.tsx
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// @unif/react-native-design 公共入口:theme(设计令牌)/ icons / utils / 组件(ui · business)。
|
|
2
|
+
// 文档站共享首页样式以 `./docs-home.css` 子路径导出(供各 Docusaurus 文档站 import,见 package.json#exports)。
|
|
3
|
+
// 0.5.1:修 docs-home.css 深色 OS 兜底选择器恒真(系统深色 + 站点切浅色时内容区被强制深色),见 #52。
|
|
1
4
|
export * from './theme';
|
|
2
5
|
export * from './icons';
|
|
3
6
|
export * from './utils/testID';
|