@oipage/cli 0.3.0-alpha.5 → 1.0.0-alpha.0

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.
@@ -0,0 +1,180 @@
1
+ /* ============================================================
2
+ @oipage/cli 参考手册 · 章节标题、chip、提示框、代码块、表格、字段清单、正文与页脚
3
+ 版式对齐 webpack 文档站:大标题、宽松正文、淡蓝提示框、浅色代码块。
4
+ ============================================================ */
5
+
6
+ /* ---------- 章节 ---------- */
7
+ .sec { padding-top: 44px; scroll-margin-top: calc(var(--topbar-h) + var(--tabs-h) + 16px); }
8
+ .welcome + .sec { padding-top: 56px; }
9
+ .sec + .sec { border-top: 1px solid var(--rule); margin-top: 44px; }
10
+ .sec > h2 {
11
+ margin: 0;
12
+ font-size: 31px; line-height: 1.5; font-weight: 600;
13
+ color: var(--ink); letter-spacing: .3px;
14
+ }
15
+ .sec > h2 .path {
16
+ font-size: 27px; font-weight: 600; color: var(--ink);
17
+ letter-spacing: .2px;
18
+ }
19
+ .sec > h2 .path b { color: var(--muted); font-weight: 500; }
20
+ .sec > h2 .cmd { font-size: 28px; font-weight: 600; color: var(--ink); }
21
+ .sec-lede {
22
+ margin: 12px 0 0; max-width: var(--measure);
23
+ color: var(--text-dim); font-size: 17px; line-height: 1.9;
24
+ }
25
+ .sub-h {
26
+ margin: 30px 0 0; font-size: 16.5px; font-weight: 600; color: var(--ink);
27
+ padding-bottom: 6px; border-bottom: 1px solid var(--rule);
28
+ }
29
+
30
+ .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
31
+ .chip {
32
+ display: inline-flex; align-items: baseline; gap: 6px;
33
+ padding: 3px 10px; border: 1px solid var(--line); border-radius: 5px;
34
+ font-size: 12.5px; color: var(--text-dim); background: var(--surface-2);
35
+ }
36
+ .chip u { text-decoration: none; color: var(--faint); font-size: 11.5px; }
37
+ .chip.is-default { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
38
+ .chip.is-default u { color: var(--accent); opacity: .75; }
39
+
40
+ /* ---------- 提示框:淡蓝底 + 左侧色条,自带「提示 / 注意」小标题 ---------- */
41
+ .note {
42
+ margin: 20px 0 0; max-width: var(--measure);
43
+ padding: 15px 20px 16px;
44
+ border: 1px solid var(--accent-line);
45
+ border-left: 4px solid var(--accent);
46
+ border-radius: 4px;
47
+ background: var(--accent-wash);
48
+ color: var(--text-dim); font-size: 16px; line-height: 1.85;
49
+ }
50
+ .note::before {
51
+ content: "提示";
52
+ display: block; margin-bottom: 4px;
53
+ font-size: 16px; font-weight: 600; color: var(--ink);
54
+ }
55
+ .note.warn { border-color: #ecd3a6; border-left-color: var(--warn); background: var(--warn-wash); }
56
+ .note.warn::before { content: "注意"; color: var(--warn); }
57
+ .note strong { color: var(--text); font-weight: 600; }
58
+
59
+ /* ---------- 版本徽标(1.0.0 新增 / 调整) ---------- */
60
+ .badge {
61
+ display: inline-block; margin-left: 12px;
62
+ padding: 1px 9px;
63
+ font-size: 11.5px; font-weight: 500; line-height: 20px;
64
+ letter-spacing: .02em;
65
+ border-radius: 999px; vertical-align: 3px;
66
+ white-space: nowrap;
67
+ }
68
+ .badge.new { color: #1a6fd4; background: var(--accent-soft); border: 1px solid var(--accent-line); }
69
+ html[data-theme="dark"] .badge.new { color: #8ec2ff; }
70
+ .badge.dep { color: var(--warn); background: var(--warn-wash); border: 1px solid #f0dcbc; }
71
+ html[data-theme="dark"] .badge.dep { border-color: rgba(255, 182, 77, .35); }
72
+
73
+ /* 废弃 / 变更说明(比提示框更"旧"一层) */
74
+ .dep-note {
75
+ margin: 22px 0 0;
76
+ padding: 12px 16px;
77
+ font-size: 14.5px; line-height: 1.85; color: var(--text-dim);
78
+ background: var(--warn-wash);
79
+ border-left: 3px solid #e2b66a;
80
+ border-radius: 0 4px 4px 0;
81
+ }
82
+ .dep-note strong { color: var(--ink); font-weight: 600; }
83
+
84
+ /* ---------- 代码块:跟随主题,亮色主题下浅底深字 ---------- */
85
+ .code {
86
+ margin: 20px 0 0;
87
+ border: 1px solid var(--code-border); border-radius: 6px;
88
+ background: var(--code-bg); overflow: hidden;
89
+ }
90
+ .code .head {
91
+ display: flex; align-items: center; justify-content: space-between; gap: 12px;
92
+ padding: 7px 12px 7px 14px;
93
+ border-bottom: 1px solid var(--code-border);
94
+ background: var(--code-head);
95
+ }
96
+ .code .file {
97
+ font-size: 12.5px; color: var(--code-comment); min-width: 0;
98
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
99
+ }
100
+ .code .copy {
101
+ flex: 0 0 auto;
102
+ font-family: inherit; font-size: 11.5px;
103
+ color: var(--code-comment); background: transparent;
104
+ border: 1px solid var(--line-strong); border-radius: 4px;
105
+ padding: 3px 9px; cursor: pointer;
106
+ transition: color .15s, border-color .15s;
107
+ }
108
+ .code .copy:hover { color: var(--code-key); border-color: var(--code-key); }
109
+ .code .copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
110
+ .code pre {
111
+ margin: 0; padding: 16px 18px; overflow-x: auto;
112
+ font-size: 13.5px; line-height: 1.75; color: var(--code-text);
113
+ tab-size: 4;
114
+ }
115
+ .code pre b { color: var(--code-comment); font-weight: 400; } /* 注释 */
116
+ .code pre em { color: var(--code-key); font-style: normal; } /* 键名 / 命令 */
117
+ .code pre u { color: var(--code-str); text-decoration: none; } /* 字符串 */
118
+ .code pre s { color: var(--code-num); text-decoration: none; } /* 数字 / 布尔 */
119
+
120
+ /* ---------- 表格 ---------- */
121
+ .table-wrap {
122
+ margin: 20px 0 0;
123
+ border: 1px solid var(--line); border-radius: 6px;
124
+ overflow: hidden; background: var(--panel);
125
+ }
126
+ table { width: 100%; border-collapse: collapse; table-layout: fixed; }
127
+ thead th {
128
+ text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted);
129
+ padding: 10px 14px; background: var(--surface-2);
130
+ border-bottom: 1px solid var(--line);
131
+ }
132
+ tbody td {
133
+ padding: 11px 14px; font-size: 14.5px; color: var(--text-dim);
134
+ border-bottom: 1px solid var(--line); vertical-align: top;
135
+ word-break: break-word; line-height: 1.75;
136
+ }
137
+ tbody tr:last-child td { border-bottom: 0; }
138
+ tbody td:first-child { font-family: "SFMono-Regular", Menlo, Consolas, monospace; color: var(--text); font-size: 13.5px; }
139
+ tbody td a { color: var(--accent); text-decoration: none; }
140
+ tbody td a:hover { text-decoration: underline; }
141
+ tbody td.mono-cell { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13.5px; }
142
+ tbody td code { font-size: 13px; color: var(--text-dim); background: var(--surface-3); padding: 1px 5px; border-radius: 3px; }
143
+ tbody tr:hover td { background: var(--hover); }
144
+
145
+ /* ---------- 字段清单 ---------- */
146
+ .fields { margin: 18px 0 0; border-top: 1px solid var(--line); }
147
+ .field { padding: 16px 0; border-bottom: 1px solid var(--line); }
148
+ .field .sig { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
149
+ .field .sig .n { font-size: 14.5px; color: var(--accent); font-weight: 600; }
150
+ .field .sig .t { font-size: 12.5px; color: var(--muted); }
151
+ .field .d { margin: 5px 0 0; max-width: var(--measure); font-size: 16px; color: var(--text-dim); }
152
+
153
+ .prose { max-width: var(--measure); }
154
+ .prose p { margin: 16px 0 0; color: var(--text-dim); font-size: 17px; }
155
+ .prose ul { margin: 14px 0 0; padding-left: 22px; color: var(--text-dim); font-size: 17px; }
156
+ .prose li { margin: 6px 0; }
157
+ .prose li::marker { color: var(--accent); }
158
+
159
+ /* ---------- 结尾 ---------- */
160
+ .end {
161
+ margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line);
162
+ display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
163
+ font-size: 13px; color: var(--muted);
164
+ }
165
+ .end .links { display: flex; gap: 18px; flex-wrap: wrap; }
166
+ .end a { color: var(--text-dim); text-decoration: none; }
167
+ .end a:hover { color: var(--accent); text-decoration: underline; }
168
+
169
+
170
+ /* ---------- 首页示意图 ---------- */
171
+ .diagram .dia-box { fill: var(--panel); stroke: var(--line-strong); stroke-width: 1.4; }
172
+ .diagram .dia-text { fill: var(--text); font-size: 14px; }
173
+ .diagram .dia-core { fill: var(--accent-soft); stroke: var(--accent-line); stroke-width: 1.6; }
174
+ .diagram .dia-title { fill: var(--accent); font-size: 16px; font-weight: 600; }
175
+ .diagram .dia-sub { fill: var(--muted); font-size: 12.5px; }
176
+ .diagram .dia-cap { fill: var(--faint); font-size: 13px; }
177
+ .diagram .dia-link { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 5 5; }
178
+ .diagram .dia-mark { fill: none; stroke: var(--line-strong); stroke-width: 1.6; }
179
+
180
+ /* ---------- 目录搜索结果 ---------- */
@@ -0,0 +1,295 @@
1
+ /* ============================================================
2
+ @oipage/cli 参考手册 · 顶栏、标签栏、骨架、目录树、正文容器、首页
3
+ 顶栏与标签栏吸顶,侧栏在它们下方吸顶;1080px 以下侧栏收起,见 responsive.css。
4
+ ============================================================ */
5
+
6
+ /* ---------- 顶栏 ---------- */
7
+ .topbar {
8
+ position: sticky; top: 0; z-index: 50;
9
+ height: var(--topbar-h);
10
+ background: var(--topbar);
11
+ color: var(--topbar-text);
12
+ border-bottom: 1px solid rgba(0, 0, 0, .18);
13
+ }
14
+ .topbar-inner {
15
+ max-width: 1440px; height: 100%; margin: 0 auto;
16
+ padding: 0 22px 0 26px;
17
+ display: flex; align-items: center; gap: 24px;
18
+ }
19
+ .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--topbar-text); flex: 0 0 auto; }
20
+ .brand .mark { width: 28px; height: 28px; border-radius: 6px; display: block; }
21
+ .brand .name { font-size: 19px; font-weight: 600; letter-spacing: .2px; }
22
+ .brand .name b { font-weight: 400; color: var(--topbar-dim); }
23
+
24
+ .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; min-width: 0; }
25
+ .topnav { display: flex; align-items: center; gap: 22px; }
26
+ .topnav a {
27
+ color: var(--topbar-dim); text-decoration: none;
28
+ font-size: 14.5px; white-space: nowrap;
29
+ transition: color .15s;
30
+ }
31
+ .topnav a:hover { color: #fff; }
32
+
33
+ .theme {
34
+ display: grid; place-items: center; padding: 0;
35
+ width: 30px; height: 30px; flex: 0 0 30px;
36
+ border: 1px solid var(--topbar-line); border-radius: 7px;
37
+ background: transparent; color: var(--topbar-dim); cursor: pointer;
38
+ transition: color .15s, border-color .15s;
39
+ }
40
+ .theme:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
41
+ .theme:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
42
+ .theme svg { width: 15px; height: 15px; display: block; }
43
+ .theme .i-moon { display: none; }
44
+ html[data-theme="dark"] .theme .i-sun { display: none; }
45
+ html[data-theme="dark"] .theme .i-moon { display: block; }
46
+
47
+ /* ---------- 搜索框 ---------- */
48
+ .search {
49
+ position: relative; flex: 0 1 260px; min-width: 170px;
50
+ display: flex; align-items: center; gap: 8px;
51
+ height: 36px; padding: 0 10px;
52
+ border-radius: 6px;
53
+ background: rgba(255, 255, 255, .10);
54
+ border: 1px solid var(--topbar-line);
55
+ color: var(--topbar-dim);
56
+ }
57
+ .search svg { width: 15px; height: 15px; flex: 0 0 15px; opacity: .8; }
58
+ .search input {
59
+ flex: 1 1 auto; min-width: 0;
60
+ border: 0; outline: 0; background: transparent;
61
+ color: #fff; font-size: 13px; letter-spacing: .2px;
62
+ }
63
+ .search input::placeholder { color: rgba(255, 255, 255, .55); }
64
+ .search kbd {
65
+ flex: 0 0 auto; padding: 0 4px;
66
+ font-family: inherit; font-size: 11px; line-height: 18px;
67
+ color: rgba(255, 255, 255, .7);
68
+ border: 1px solid rgba(255, 255, 255, .22); border-radius: 3px;
69
+ }
70
+
71
+ /* 搜索结果面板 */
72
+ .search-pop {
73
+ position: absolute; top: calc(100% + 8px); right: 0; left: auto;
74
+ width: 340px; max-height: 342px; overflow-y: auto;
75
+ padding: 6px;
76
+ background: var(--panel);
77
+ border: 1px solid var(--line-strong); border-radius: 8px;
78
+ box-shadow: 0 10px 30px rgba(16, 32, 43, .16);
79
+ z-index: 60;
80
+ }
81
+ html[data-theme="dark"] .search-pop { box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
82
+ .search-pop[hidden] { display: none; }
83
+ .q-item {
84
+ display: block;
85
+ width: 100%; padding: 8px 10px;
86
+ font-family: inherit; text-align: left;
87
+ background: transparent; border: 0; border-radius: 5px;
88
+ cursor: pointer; color: var(--text);
89
+ }
90
+ .q-item:hover, .q-item.on { background: var(--accent-soft); }
91
+ .q-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
92
+ .q-item .q-t { font-size: 13.5px; line-height: 1.5; color: var(--text); }
93
+ .q-item .q-g { flex: 0 0 auto; font-size: 11.5px; color: var(--faint); }
94
+ .q-item .q-s { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.7; color: var(--faint); }
95
+ .q-item mark { background: rgba(26, 111, 212, .16); color: var(--ink); border-radius: 2px; padding: 0 1px; }
96
+ html[data-theme="dark"] .q-item mark { background: rgba(90, 169, 255, .22); color: #fff; }
97
+ .q-empty { padding: 10px 12px 12px; font-size: 12.5px; color: var(--faint); }
98
+ .q-hint { padding: 6px 12px 10px; font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--rule); margin-top: 4px; }
99
+
100
+ /* ---------- 标签栏 ---------- */
101
+ .tabs {
102
+ position: sticky; top: var(--topbar-h); z-index: 45;
103
+ height: var(--tabs-h);
104
+ background: var(--page);
105
+ border-bottom: 1px solid var(--line);
106
+ }
107
+ .tabs-inner {
108
+ max-width: 1440px; height: 100%; margin: 0 auto;
109
+ padding: 0 26px;
110
+ display: flex; align-items: center; justify-content: flex-end; gap: 30px;
111
+ }
112
+ .tabs a {
113
+ display: flex; align-items: center; height: 100%;
114
+ color: var(--accent); text-decoration: none;
115
+ font-size: 15px; white-space: nowrap;
116
+ border-bottom: 2px solid transparent;
117
+ }
118
+ .tabs a:hover { border-bottom-color: var(--accent-line); }
119
+ .tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
120
+
121
+ /* ---------- 骨架 ---------- */
122
+ .shell {
123
+ display: grid;
124
+ grid-template-columns: var(--sidebar) minmax(0, 1fr);
125
+ max-width: 1440px;
126
+ margin: 0 auto;
127
+ }
128
+
129
+ /* ---------- 侧栏 ---------- */
130
+ .side {
131
+ position: sticky; top: calc(var(--topbar-h) + var(--tabs-h));
132
+ align-self: start;
133
+ height: calc(100vh - var(--topbar-h) - var(--tabs-h));
134
+ padding: 22px 20px 22px 26px;
135
+ border-right: 1px solid var(--line);
136
+ background: var(--panel);
137
+ overflow-y: auto; min-width: 0;
138
+ }
139
+ .side-head {
140
+ display: flex; align-items: center; justify-content: space-between;
141
+ padding: 0 4px 10px;
142
+ border-bottom: 1px solid var(--rule);
143
+ }
144
+ .side-head span {
145
+ font-size: 12px; letter-spacing: 1px; color: var(--faint);
146
+ text-transform: uppercase;
147
+ }
148
+ .side-head .print {
149
+ font-size: 12px; color: var(--muted); text-decoration: none;
150
+ border-bottom: 1px dotted var(--line-strong);
151
+ }
152
+ .side-head .print:hover { color: var(--accent); border-color: var(--accent); }
153
+
154
+ /* ---------- 目录树 ---------- */
155
+ .tree { margin-top: 12px; }
156
+ .tree-root { list-style: none; margin: 0; padding: 0; }
157
+ .tree-single > a,
158
+ .tree-cap {
159
+ display: flex; align-items: center; gap: 8px;
160
+ width: 100%; padding: 5px 6px;
161
+ border: 0; background: transparent;
162
+ color: var(--text); font-size: 14.5px; font-weight: 600; text-align: left;
163
+ text-decoration: none; cursor: pointer;
164
+ border-radius: 5px;
165
+ }
166
+ .tree-single > a:hover,
167
+ .tree-cap:hover { background: var(--surface-2); }
168
+ .tree-cap:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
169
+ .tree-cap .caret {
170
+ flex: 0 0 12px; width: 12px; height: 12px;
171
+ display: grid; place-items: center;
172
+ color: var(--muted);
173
+ transform: rotate(0deg); transition: transform .18s;
174
+ }
175
+ .tree-cap .caret::before {
176
+ content: "";
177
+ width: 0; height: 0;
178
+ border-left: 5px solid currentColor;
179
+ border-top: 4px solid transparent;
180
+ border-bottom: 4px solid transparent;
181
+ }
182
+ .tree-sec.open .tree-cap .caret { transform: rotate(90deg); }
183
+
184
+ .tree-list {
185
+ list-style: none; margin: 2px 0 6px 10px; padding: 0 0 0 12px;
186
+ border-left: 1px solid var(--line);
187
+ }
188
+ .tree-sec:not(.open) .tree-list { display: none; }
189
+ .tree-list li { position: relative; }
190
+ .tree-list li::before {
191
+ content: ""; position: absolute; left: -12px; top: 16px;
192
+ width: 8px; height: 1px; background: var(--line);
193
+ }
194
+ .tree-list a {
195
+ display: block; padding: 3px 8px;
196
+ color: var(--text-dim); text-decoration: none;
197
+ font-size: 14px; line-height: 1.75; border-radius: 5px;
198
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
199
+ }
200
+ .tree-list a:hover { color: var(--text); background: var(--surface-2); }
201
+ .tree-list a.on { color: var(--accent); background: var(--accent-soft); }
202
+
203
+ .side .foot {
204
+ margin-top: 22px; padding-top: 16px;
205
+ border-top: 1px solid var(--rule);
206
+ font-size: 12px; color: var(--faint); line-height: 1.8;
207
+ }
208
+ .side .foot a { color: var(--text-dim); text-decoration: none; border-bottom: 1px dotted var(--line-strong); }
209
+ .side .foot a:hover { color: var(--accent); }
210
+
211
+ /* ---------- 正文 ---------- */
212
+ .main { min-width: 0; padding: 0 0 96px; }
213
+ .inner { max-width: 1020px; margin: 0 auto; padding: 0 56px; }
214
+
215
+ /* ---------- 首页 ---------- */
216
+ .welcome { padding: 56px 0 8px; }
217
+ .welcome .kicker {
218
+ display: inline-flex; align-items: center; gap: 10px;
219
+ padding: 2px 10px;
220
+ font-size: 12px; letter-spacing: .4px; color: var(--muted);
221
+ background: var(--surface-2); border-radius: 999px;
222
+ }
223
+ .welcome h1 {
224
+ margin: 18px 0 0;
225
+ font-size: clamp(34px, 3.6vw, 46px);
226
+ line-height: 1.45; font-weight: 600; letter-spacing: .5px;
227
+ color: var(--ink);
228
+ }
229
+ .welcome h1 span { color: var(--accent); }
230
+ .welcome .lede {
231
+ margin: 14px 0 0; max-width: 40em;
232
+ font-size: 18px; color: var(--text-dim);
233
+ }
234
+ .welcome .lede code,
235
+ .sec-lede code, .prose code, .note code, .field .d code, .lede code, .chips code {
236
+ font-size: .9em; color: var(--text);
237
+ background: var(--surface-3);
238
+ padding: 1px 6px; border-radius: 4px;
239
+ }
240
+
241
+ /* ---------- 首页示意图 ---------- */
242
+ .diagram {
243
+ margin: 34px 0 0;
244
+ padding: 26px 18px 8px;
245
+ border: 1px solid var(--line);
246
+ border-radius: 10px;
247
+ background: var(--surface);
248
+ overflow: hidden;
249
+ }
250
+ .diagram svg { display: block; width: 100%; height: auto; }
251
+ .diagram .cap-row {
252
+ display: flex; justify-content: space-between;
253
+ padding: 6px 6% 12px;
254
+ font-size: 12.5px; color: var(--muted);
255
+ }
256
+
257
+ /* ---------- 首页命令卡 ---------- */
258
+ .cards {
259
+ margin: 26px 0 0;
260
+ display: grid;
261
+ grid-template-columns: repeat(5, minmax(0, 1fr));
262
+ gap: 12px;
263
+ }
264
+ .card {
265
+ display: block; padding: 14px 16px 16px;
266
+ border: 1px solid var(--line); border-radius: 8px;
267
+ background: var(--panel); text-decoration: none;
268
+ transition: border-color .15s, box-shadow .15s, transform .15s;
269
+ }
270
+ .card:hover {
271
+ border-color: var(--accent-line);
272
+ box-shadow: 0 4px 14px rgba(26, 111, 212, .10);
273
+ transform: translateY(-1px);
274
+ }
275
+ .card .name {
276
+ font-family: "SFMono-Regular", Menlo, Consolas, monospace;
277
+ font-size: 14px; font-weight: 600; color: var(--accent);
278
+ }
279
+ .card .desc { margin-top: 4px; font-size: 13px; line-height: 1.7; color: var(--text-dim); }
280
+
281
+ /* ---------- 概览数字 ---------- */
282
+ .facts {
283
+ margin: 30px 0 0;
284
+ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
285
+ border: 1px solid var(--line); border-radius: 8px;
286
+ background: var(--panel);
287
+ overflow: hidden;
288
+ }
289
+ .facts > div { padding: 14px 18px; min-width: 0; }
290
+ .facts > div + div { border-left: 1px solid var(--line); }
291
+ .facts .k { font-size: 12px; color: var(--muted); }
292
+ .facts .v {
293
+ margin-top: 2px; font-size: 14px; color: var(--text);
294
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
295
+ }
@@ -0,0 +1,49 @@
1
+ /* ============================================================
2
+ @oipage/cli 参考手册 · 响应式断点
3
+ 1240px 收窄间距,1080px 侧栏改为块状目录,720px 进一步压缩。
4
+ 放最后,用来覆盖前面各文件的规则。
5
+ ============================================================ */
6
+
7
+ @media (max-width: 1240px) {
8
+ .topnav { gap: 16px; }
9
+ .topnav a:nth-child(n+3) { display: none; }
10
+ .search { flex-basis: 210px; }
11
+ .inner { padding: 0 36px; }
12
+ }
13
+
14
+ @media (max-width: 1080px) {
15
+ .shell { grid-template-columns: minmax(0, 1fr); }
16
+ .side {
17
+ position: static; height: auto; overflow: visible;
18
+ border-right: 0; border-bottom: 1px solid var(--line);
19
+ padding: 18px 24px 16px;
20
+ }
21
+ .side-head { display: none; }
22
+ .tree { margin-top: 0; }
23
+ .tree-root { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
24
+ .tree-list { margin-left: 8px; padding-left: 12px; }
25
+ .side .foot { display: none; }
26
+ .inner { padding: 0 28px; }
27
+ .welcome { padding-top: 40px; }
28
+ .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
29
+ .tabs-inner { padding: 0 24px; gap: 22px; justify-content: flex-start; }
30
+ .tabs a { font-size: 14.5px; }
31
+ }
32
+
33
+ @media (max-width: 720px) {
34
+ :root { --topbar-h: 56px; --tabs-h: 42px; }
35
+ .topnav, .search kbd, .search { display: none; }
36
+ .brand .name { font-size: 17px; }
37
+ .tabs-inner { gap: 18px; padding: 0 18px; overflow-x: auto; }
38
+ .inner { padding: 0 18px; }
39
+ .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
40
+ .facts > div:nth-child(3) { border-left: 0; }
41
+ .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
42
+ .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
43
+ .diagram { padding: 16px 8px 4px; }
44
+ .sec > h2 { font-size: 25px; }
45
+ .sec > h2 .path, .sec > h2 .cmd { font-size: 22px; }
46
+ .code pre { font-size: 12.5px; padding: 13px; }
47
+ .prose p, .prose ul, .sec-lede, .note, .field .d { font-size: 15.5px; }
48
+ .tree-root { grid-template-columns: minmax(0, 1fr); }
49
+ }
Binary file
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48" height="48" role="img" aria-label="@oipage/cli">
2
+ <rect width="48" height="48" rx="10" fill="#1a6fd4"/>
3
+ <path d="M14.2 16.8 L21.8 24 L14.2 31.2" fill="none" stroke="#ffffff" stroke-width="3.6" stroke-linecap="square"/>
4
+ <rect x="24" y="27.8" width="10.4" height="3.6" fill="#ffffff" fill-opacity="0.92"/>
5
+ </svg>
Binary file
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48" height="48" role="img" aria-label="@oipage/cli">
2
+ <rect width="48" height="48" rx="11" fill="#0f1319"/>
3
+ <rect x="1" y="1" width="46" height="46" rx="10" fill="none" stroke="#ffffff" stroke-opacity="0.08"/>
4
+ <path d="M13.6 16.6 L21.2 24 L13.6 31.4" fill="none" stroke="#4aa8ff" stroke-width="3.6" stroke-linecap="square"/>
5
+ <rect x="23.4" y="27.8" width="11" height="3.6" fill="#dfe5ee"/>
6
+ </svg>
Binary file
Binary file