@icen.ai/ui 0.10.0 → 0.11.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.
- package/AGENTS.md +79 -309
- package/LICENSE +21 -0
- package/README.md +43 -54
- package/dist/base.css +57 -16
- package/dist/behaviors/accordion.mjs +1 -1
- package/dist/behaviors/ai-branch.mjs +1 -0
- package/dist/behaviors/ai-chat.d.mts +2 -2
- package/dist/behaviors/ai-chat.mjs +53 -10
- package/dist/behaviors/ai-composer.d.mts +5 -5
- package/dist/behaviors/ai-composer.mjs +21 -10
- package/dist/behaviors/ai-core.mjs +1 -0
- package/dist/behaviors/ai-diff.mjs +1 -0
- package/dist/behaviors/ai-feedback.mjs +1 -0
- package/dist/behaviors/ai-panel.d.mts +2 -2
- package/dist/behaviors/ai-panel.mjs +1 -0
- package/dist/behaviors/ai-provider.d.mts +1 -1
- package/dist/behaviors/ai-provider.mjs +1 -0
- package/dist/behaviors/ai-threads.mjs +1 -0
- package/dist/behaviors/ai-tool.d.mts +1 -1
- package/dist/behaviors/ai-tool.mjs +57 -24
- package/dist/behaviors/ai-tools.mjs +937 -28
- package/dist/behaviors/autocomplete.d.mts +1 -1
- package/dist/behaviors/autocomplete.mjs +1 -0
- package/dist/behaviors/back-top.mjs +1 -0
- package/dist/behaviors/carousel.mjs +8 -1
- package/dist/behaviors/cascader.mjs +14 -0
- package/dist/behaviors/charts.mjs +56 -20
- package/dist/behaviors/code-block.mjs +9 -1
- package/dist/behaviors/command-palette.mjs +3 -3
- package/dist/behaviors/context-menu.d.mts +2 -2
- package/dist/behaviors/context-menu.mjs +1 -0
- package/dist/behaviors/controls.d.mts +8 -8
- package/dist/behaviors/controls.mjs +37 -6
- package/dist/behaviors/copy.mjs +1 -0
- package/dist/behaviors/datatable.d.mts +3 -3
- package/dist/behaviors/datatable.mjs +76 -11
- package/dist/behaviors/date-picker.mjs +1 -0
- package/dist/behaviors/events.d.mts +10 -10
- package/dist/behaviors/events.mjs +11 -1
- package/dist/behaviors/form-validate.d.mts +10 -1
- package/dist/behaviors/form-validate.mjs +266 -4611
- package/dist/behaviors/i18n.d.mts +1 -0
- package/dist/behaviors/i18n.mjs +2 -0
- package/dist/behaviors/input.mjs +3 -0
- package/dist/behaviors/kb-access.d.mts +2 -2
- package/dist/behaviors/kb-access.mjs +8 -2
- package/dist/behaviors/kb-acl.d.mts +2 -2
- package/dist/behaviors/kb-acl.mjs +1 -0
- package/dist/behaviors/kb-answer.d.mts +2 -2
- package/dist/behaviors/kb-answer.mjs +56 -23
- package/dist/behaviors/kb-audit.d.mts +2 -2
- package/dist/behaviors/kb-audit.mjs +1 -0
- package/dist/behaviors/kb-canvas.d.mts +3 -3
- package/dist/behaviors/kb-canvas.mjs +1 -0
- package/dist/behaviors/kb-chain.d.mts +2 -2
- package/dist/behaviors/kb-chain.mjs +1 -0
- package/dist/behaviors/kb-checkpoint.d.mts +2 -2
- package/dist/behaviors/kb-checkpoint.mjs +1 -0
- package/dist/behaviors/kb-chunks.d.mts +2 -2
- package/dist/behaviors/kb-chunks.mjs +1 -0
- package/dist/behaviors/kb-citation.d.mts +2 -2
- package/dist/behaviors/kb-citation.mjs +20 -6
- package/dist/behaviors/kb-clarify.d.mts +2 -2
- package/dist/behaviors/kb-clarify.mjs +1 -0
- package/dist/behaviors/kb-conflict.d.mts +2 -2
- package/dist/behaviors/kb-conflict.mjs +1 -0
- package/dist/behaviors/kb-connector.d.mts +2 -2
- package/dist/behaviors/kb-connector.mjs +1 -0
- package/dist/behaviors/kb-core.d.mts +1 -1
- package/dist/behaviors/kb-core.mjs +1 -0
- package/dist/behaviors/kb-eval.d.mts +2 -2
- package/dist/behaviors/kb-eval.mjs +8 -2
- package/dist/behaviors/kb-explain.d.mts +2 -2
- package/dist/behaviors/kb-explain.mjs +13 -2
- package/dist/behaviors/kb-filter.d.mts +2 -2
- package/dist/behaviors/kb-filter.mjs +8 -2
- package/dist/behaviors/kb-gap.d.mts +2 -2
- package/dist/behaviors/kb-gap.mjs +1 -0
- package/dist/behaviors/kb-hittest.d.mts +2 -2
- package/dist/behaviors/kb-hittest.mjs +2 -1
- package/dist/behaviors/kb-metadata.mjs +6 -0
- package/dist/behaviors/kb-passage.d.mts +2 -2
- package/dist/behaviors/kb-passage.mjs +1 -0
- package/dist/behaviors/kb-pipeline.d.mts +2 -2
- package/dist/behaviors/kb-pipeline.mjs +1 -0
- package/dist/behaviors/kb-qa.mjs +1 -0
- package/dist/behaviors/kb-rerank.d.mts +2 -2
- package/dist/behaviors/kb-rerank.mjs +1 -0
- package/dist/behaviors/kb-retrieval.d.mts +2 -2
- package/dist/behaviors/kb-retrieval.mjs +18 -4
- package/dist/behaviors/kb-review.d.mts +2 -2
- package/dist/behaviors/kb-review.mjs +8 -2
- package/dist/behaviors/kb-sandbox.d.mts +2 -2
- package/dist/behaviors/kb-sandbox.mjs +7 -1
- package/dist/behaviors/kb-segment.d.mts +2 -2
- package/dist/behaviors/kb-segment.mjs +2 -1
- package/dist/behaviors/kb-select.mjs +8 -2
- package/dist/behaviors/kb-sources.d.mts +2 -2
- package/dist/behaviors/kb-sources.mjs +1 -0
- package/dist/behaviors/kb-sql.d.mts +2 -2
- package/dist/behaviors/kb-sql.mjs +1 -0
- package/dist/behaviors/kb-trace.d.mts +2 -2
- package/dist/behaviors/kb-trace.mjs +9 -3
- package/dist/behaviors/kb-visibility.d.mts +2 -2
- package/dist/behaviors/kb-visibility.mjs +1 -0
- package/dist/behaviors/kb-who-can.d.mts +2 -2
- package/dist/behaviors/kb-who-can.mjs +8 -2
- package/dist/behaviors/mentions.d.mts +1 -1
- package/dist/behaviors/mentions.mjs +1 -0
- package/dist/behaviors/modal.d.mts +1 -1
- package/dist/behaviors/modal.mjs +1 -0
- package/dist/behaviors/notification.d.mts +2 -2
- package/dist/behaviors/notification.mjs +14 -3
- package/dist/behaviors/panel.mjs +1 -0
- package/dist/behaviors/scroll-area.d.mts +17 -0
- package/dist/behaviors/scroll-area.mjs +59 -0
- package/dist/behaviors/select.mjs +8 -2
- package/dist/behaviors/slider.mjs +3 -3
- package/dist/behaviors/split-pane.mjs +2 -0
- package/dist/behaviors/suggestions.mjs +1 -0
- package/dist/behaviors/tabs.mjs +10 -0
- package/dist/behaviors/tag-input.mjs +1 -0
- package/dist/behaviors/theme-switcher.d.mts +2 -2
- package/dist/behaviors/theme-switcher.mjs +17 -2
- package/dist/behaviors/theme.mjs +16 -2
- package/dist/behaviors/toast.d.mts +2 -2
- package/dist/behaviors/toast.mjs +1 -0
- package/dist/behaviors/tree-select.mjs +14 -0
- package/dist/behaviors/tree.mjs +4 -4
- package/dist/behaviors/upload.mjs +1 -0
- package/dist/behaviors/url-safety.d.mts +8 -0
- package/dist/behaviors/url-safety.mjs +11 -0
- package/dist/components/accordion.d.mts +2 -0
- package/dist/components/ai-branch.d.mts +2 -0
- package/dist/components/ai-chat.css +40 -33
- package/dist/components/ai-chat.d.mts +2 -0
- package/dist/components/ai-composer.d.mts +2 -0
- package/dist/components/ai-context.d.mts +2 -0
- package/dist/components/ai-context.mjs +1 -0
- package/dist/components/ai-diff.css +6 -6
- package/dist/components/ai-diff.d.mts +2 -0
- package/dist/components/ai-feedback.d.mts +2 -0
- package/dist/components/ai-files.d.mts +2 -0
- package/dist/components/ai-message.d.mts +2 -0
- package/dist/components/ai-panel.css +12 -10
- package/dist/components/ai-reasoning.d.mts +2 -0
- package/dist/components/ai-subagent.d.mts +2 -0
- package/dist/components/ai-subagent.mjs +1 -0
- package/dist/components/ai-threads.d.mts +2 -0
- package/dist/components/ai-todo.d.mts +2 -0
- package/dist/components/ai-todo.mjs +1 -0
- package/dist/components/ai-tool-call.d.mts +2 -0
- package/dist/components/ai-tool-call.mjs +1 -0
- package/dist/components/ai-tool.css +16 -16
- package/dist/components/ai-usage.d.mts +2 -0
- package/dist/components/alert.d.mts +2 -0
- package/dist/components/autocomplete.css +12 -12
- package/dist/components/autocomplete.d.mts +2 -0
- package/dist/components/avatar.d.mts +2 -0
- package/dist/components/back-top.css +47 -16
- package/dist/components/back-top.d.mts +2 -0
- package/dist/components/badge.css +1 -1
- package/dist/components/badge.d.mts +2 -0
- package/dist/components/breadcrumb.css +26 -8
- package/dist/components/breadcrumb.d.mts +2 -0
- package/dist/components/btn.css +67 -62
- package/dist/components/btn.d.mts +2 -0
- package/dist/components/card.css +22 -22
- package/dist/components/card.d.mts +2 -0
- package/dist/components/carousel.d.mts +2 -0
- package/dist/components/cascader.css +56 -35
- package/dist/components/cascader.d.mts +2 -0
- package/dist/components/chart-area.css +46 -0
- package/dist/components/chart-area.d.mts +2 -0
- package/dist/components/chart-bar.css +66 -19
- package/dist/components/chart-bar.d.mts +2 -0
- package/dist/components/chart-calendar.d.mts +2 -0
- package/dist/components/chart-gauge.css +23 -3
- package/dist/components/chart-gauge.d.mts +2 -0
- package/dist/components/chart-graph.css +15 -3
- package/dist/components/chart-graph.d.mts +2 -0
- package/dist/components/chart-heatmap.css +117 -95
- package/dist/components/chart-heatmap.d.mts +2 -0
- package/dist/components/chart-line.css +54 -0
- package/dist/components/chart-line.d.mts +2 -0
- package/dist/components/chart-map.d.mts +2 -0
- package/dist/components/chart-pie.css +29 -0
- package/dist/components/chart-pie.d.mts +2 -0
- package/dist/components/chart-radar.css +50 -1
- package/dist/components/chart-radar.d.mts +2 -0
- package/dist/components/chart-scatter.css +39 -2
- package/dist/components/chart-scatter.d.mts +2 -0
- package/dist/components/chart-sparkline.css +20 -0
- package/dist/components/chart-sparkline.d.mts +2 -0
- package/dist/components/chart-stack.css +16 -5
- package/dist/components/chart-stack.d.mts +2 -0
- package/dist/components/charts.css +80 -35
- package/dist/components/charts.d.mts +2 -0
- package/dist/components/code-block.css +10 -8
- package/dist/components/code-block.d.mts +2 -0
- package/dist/components/command-palette.css +45 -38
- package/dist/components/command-palette.d.mts +2 -0
- package/dist/components/content.css +62 -57
- package/dist/components/context-menu.d.mts +2 -0
- package/dist/components/copy.css +10 -10
- package/dist/components/copy.d.mts +2 -0
- package/dist/components/datatable.css +72 -59
- package/dist/components/datatable.d.mts +2 -0
- package/dist/components/date-picker.css +26 -26
- package/dist/components/date-picker.d.mts +2 -0
- package/dist/components/desc.d.mts +2 -0
- package/dist/components/dropdown.d.mts +2 -0
- package/dist/components/empty.css +16 -16
- package/dist/components/empty.d.mts +2 -0
- package/dist/components/feedback.css +31 -29
- package/dist/components/form-validate.css +20 -6
- package/dist/components/form-validate.d.mts +2 -0
- package/dist/components/form.css +17 -14
- package/dist/components/form.d.mts +2 -0
- package/dist/components/icon.css +21 -10
- package/dist/components/icon.d.mts +2 -0
- package/dist/components/input.css +22 -22
- package/dist/components/input.d.mts +2 -0
- package/dist/components/kb-access.d.mts +2 -0
- package/dist/components/kb-acl.d.mts +2 -0
- package/dist/components/kb-agent.css +134 -55
- package/dist/components/kb-answer.d.mts +2 -0
- package/dist/components/kb-audit.d.mts +2 -0
- package/dist/components/kb-canvas.d.mts +2 -0
- package/dist/components/kb-chain.d.mts +2 -0
- package/dist/components/kb-checkpoint.d.mts +2 -0
- package/dist/components/kb-chunks.d.mts +2 -0
- package/dist/components/kb-citation.d.mts +2 -0
- package/dist/components/kb-clarify.d.mts +2 -0
- package/dist/components/kb-conflict.d.mts +2 -0
- package/dist/components/kb-connector.d.mts +2 -0
- package/dist/components/kb-data.css +192 -80
- package/dist/components/kb-eval.d.mts +2 -0
- package/dist/components/kb-explain.d.mts +2 -0
- package/dist/components/kb-filter.d.mts +2 -0
- package/dist/components/kb-gap.d.mts +2 -0
- package/dist/components/kb-ground.css +165 -73
- package/dist/components/kb-hittest.d.mts +2 -0
- package/dist/components/kb-ingest.css +308 -113
- package/dist/components/kb-metadata.d.mts +2 -0
- package/dist/components/kb-ops.css +189 -75
- package/dist/components/kb-passage.d.mts +2 -0
- package/dist/components/kb-perm.css +158 -87
- package/dist/components/kb-pipeline.d.mts +2 -0
- package/dist/components/kb-qa.d.mts +2 -0
- package/dist/components/kb-rerank.d.mts +2 -0
- package/dist/components/kb-retrieval.d.mts +2 -0
- package/dist/components/kb-review.d.mts +2 -0
- package/dist/components/kb-sandbox.d.mts +2 -0
- package/dist/components/kb-search.css +353 -116
- package/dist/components/kb-segment.d.mts +2 -0
- package/dist/components/kb-sources.d.mts +2 -0
- package/dist/components/kb-sql.d.mts +2 -0
- package/dist/components/kb-trace.d.mts +2 -0
- package/dist/components/kb-visibility.d.mts +2 -0
- package/dist/components/kb-who-can.d.mts +2 -0
- package/dist/components/kb.css +60 -36
- package/dist/components/kb.d.mts +2 -0
- package/dist/components/kbd.d.mts +2 -0
- package/dist/components/layout.css +10 -10
- package/dist/components/layout.d.mts +2 -0
- package/dist/components/list.d.mts +2 -0
- package/dist/components/material-chinese.css +10 -0
- package/dist/components/material-soviet.css +10 -0
- package/dist/components/material.css +61 -18
- package/dist/components/media-card.d.mts +2 -0
- package/dist/components/media.css +22 -27
- package/dist/components/mentions.css +18 -17
- package/dist/components/mentions.d.mts +2 -0
- package/dist/components/menu.css +32 -28
- package/dist/components/modal.css +30 -27
- package/dist/components/modal.d.mts +2 -0
- package/dist/components/nav.css +48 -44
- package/dist/components/nav.d.mts +2 -0
- package/dist/components/notification.css +31 -25
- package/dist/components/notification.d.mts +2 -0
- package/dist/components/pagination.css +15 -13
- package/dist/components/pagination.d.mts +2 -0
- package/dist/components/panel.css +19 -20
- package/dist/components/panel.d.mts +2 -0
- package/dist/components/pill.css +8 -7
- package/dist/components/pill.d.mts +2 -0
- package/dist/components/popover.css +32 -23
- package/dist/components/popover.d.mts +2 -0
- package/dist/components/progress.d.mts +2 -0
- package/dist/components/rating.d.mts +2 -0
- package/dist/components/result.d.mts +2 -0
- package/dist/components/scroll-area.css +84 -112
- package/dist/components/scroll-area.d.mts +2 -0
- package/dist/components/scroll-area.mjs +1 -0
- package/dist/components/segmented.css +47 -29
- package/dist/components/segmented.d.mts +2 -0
- package/dist/components/select.css +80 -41
- package/dist/components/select.d.mts +2 -0
- package/dist/components/sidebar.css +42 -38
- package/dist/components/sidebar.d.mts +2 -0
- package/dist/components/skeleton.d.mts +2 -0
- package/dist/components/slider.css +26 -22
- package/dist/components/slider.d.mts +2 -0
- package/dist/components/spinner.d.mts +2 -0
- package/dist/components/split-pane.css +16 -7
- package/dist/components/split-pane.d.mts +2 -0
- package/dist/components/stat.css +17 -16
- package/dist/components/stat.d.mts +2 -0
- package/dist/components/steps.css +26 -26
- package/dist/components/steps.d.mts +2 -0
- package/dist/components/switch.css +78 -39
- package/dist/components/switch.d.mts +2 -0
- package/dist/components/table.css +54 -32
- package/dist/components/table.d.mts +2 -0
- package/dist/components/tabs.css +53 -32
- package/dist/components/tabs.d.mts +2 -0
- package/dist/components/tag-input.css +12 -8
- package/dist/components/tag-input.d.mts +2 -0
- package/dist/components/tag.css +20 -12
- package/dist/components/tag.d.mts +2 -0
- package/dist/components/theme-switcher.css +7 -7
- package/dist/components/theme-switcher.d.mts +2 -0
- package/dist/components/timeline.d.mts +2 -0
- package/dist/components/toast.css +34 -30
- package/dist/components/toast.d.mts +2 -0
- package/dist/components/toolbar.css +19 -18
- package/dist/components/toolbar.d.mts +2 -0
- package/dist/components/tooltip.css +9 -8
- package/dist/components/tooltip.d.mts +2 -0
- package/dist/components/tree-select.css +63 -40
- package/dist/components/tree-select.d.mts +2 -0
- package/dist/components/tree.d.mts +2 -0
- package/dist/components/upload.css +9 -11
- package/dist/components/upload.d.mts +2 -0
- package/dist/index.d.mts +85 -84
- package/dist/index.mjs +14764 -14311
- package/dist/react.d.mts +18 -18
- package/dist/react.mjs +135 -36
- package/dist/registry.json +795 -64
- package/dist/tokens/colors.css +6 -0
- package/dist/tokens/design.css +130 -30
- package/dist/tokens/dtcg.json +6189 -1461
- package/dist/tokens/figma.variables.json +4107 -345
- package/dist/tokens/pixel.css +3 -0
- package/dist/tokens/scrollbars.css +40 -0
- package/dist/tokens/tokens-studio.json +5191 -271
- package/dist/tokens.css +304 -81
- package/dist/ui.css +4050 -2148
- package/dist/vue.d.mts +17 -17
- package/dist/vue.mjs +129 -34
- package/docs/spec/design-philosophy.md +5 -5
- package/docs/spec/design-primitives.md +10 -10
- package/docs/spec/scrollbars.md +46 -0
- package/package.json +16 -3
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
.icen-mentions {
|
|
20
20
|
display: block;
|
|
21
21
|
width: 100%;
|
|
22
|
-
padding: var(--icen-density-space-
|
|
22
|
+
padding: var(--icen-density-space-sm) var(--icen-field-padding-inline);
|
|
23
23
|
background: var(--icen-token-control);
|
|
24
|
-
border:
|
|
25
|
-
border-radius: var(--icen-radius
|
|
26
|
-
box-shadow: var(--icen-token-shadow-
|
|
24
|
+
border: var(--icen-control-border-width) solid var(--icen-token-control-border);
|
|
25
|
+
border-radius: var(--icen-control-radius);
|
|
26
|
+
box-shadow: var(--icen-token-shadow-field);
|
|
27
27
|
cursor: text;
|
|
28
28
|
transition: border-color var(--icen-tx-fast), box-shadow var(--icen-tx-fast);
|
|
29
29
|
}
|
|
30
|
-
.icen-mentions:hover { border-color: var(--icen-
|
|
30
|
+
.icen-mentions:hover { border-color: var(--icen-token-control-border-hover); }
|
|
31
31
|
.icen-mentions:focus-within {
|
|
32
32
|
border-color: var(--icen-control-focus-border);
|
|
33
33
|
box-shadow: var(--icen-control-focus-shadow);
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
opacity: var(--icen-disabled-opacity);
|
|
56
56
|
cursor: not-allowed;
|
|
57
57
|
user-select: none;
|
|
58
|
+
pointer-events: none; /* 禁用编辑器不吃 hover 抬边 */
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
/* 提及 token:文本流中的 inline pill(原子单元,光标不可进入,整体删除) */
|
|
@@ -100,11 +101,11 @@
|
|
|
100
101
|
z-index: var(--icen-z-popover);
|
|
101
102
|
overflow-y: auto;
|
|
102
103
|
overscroll-behavior: contain;
|
|
103
|
-
padding:
|
|
104
|
-
background: var(--icen-token-
|
|
105
|
-
border: 1px solid var(--icen-token-
|
|
106
|
-
border-radius: var(--icen-radius-
|
|
107
|
-
box-shadow: var(--icen-token-shadow-
|
|
104
|
+
padding: var(--icen-density-space-xs);
|
|
105
|
+
background: var(--icen-token-surface);
|
|
106
|
+
border: 1px solid var(--icen-token-material-edge);
|
|
107
|
+
border-radius: var(--icen-radius-lg);
|
|
108
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
|
|
108
109
|
transform-origin: top center;
|
|
109
110
|
animation: icen-pop-in var(--icen-tx-fast);
|
|
110
111
|
}
|
|
@@ -120,13 +121,13 @@
|
|
|
120
121
|
.icen-mentions-option {
|
|
121
122
|
display: flex;
|
|
122
123
|
align-items: center;
|
|
123
|
-
gap: var(--icen-
|
|
124
|
-
padding:
|
|
125
|
-
font-size: var(--icen-
|
|
124
|
+
gap: var(--icen-control-gap-sm);
|
|
125
|
+
padding: 4px var(--icen-density-space-sm);
|
|
126
|
+
font-size: var(--icen-font-size-control);
|
|
126
127
|
color: var(--icen-token-text);
|
|
127
|
-
border-radius: var(--icen-radius-
|
|
128
|
+
border-radius: var(--icen-radius-xs);
|
|
128
129
|
cursor: pointer;
|
|
129
|
-
min-block-size: var(--icen-
|
|
130
|
+
min-block-size: var(--icen-control-height-sm);
|
|
130
131
|
transition:
|
|
131
132
|
background-color var(--icen-tx-fast),
|
|
132
133
|
color var(--icen-tx-fast);
|
|
@@ -138,8 +139,8 @@
|
|
|
138
139
|
.icen-mentions-option,
|
|
139
140
|
.icen-mention-token { transition: none; }
|
|
140
141
|
}
|
|
141
|
-
.icen-mentions-option:hover:not(.is-disabled) { background: var(--icen-token-fill-
|
|
142
|
-
.icen-mentions-option.is-active { background: var(--icen-token-fill-
|
|
142
|
+
.icen-mentions-option:hover:not(.is-disabled) { background: var(--icen-token-fill-hover); }
|
|
143
|
+
.icen-mentions-option.is-active { background: var(--icen-token-fill-selected); }
|
|
143
144
|
.icen-mentions-option.is-disabled {
|
|
144
145
|
opacity: var(--icen-disabled-opacity);
|
|
145
146
|
cursor: not-allowed;
|
package/dist/components/menu.css
CHANGED
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
overscroll-behavior: contain;
|
|
36
36
|
margin: 0;
|
|
37
37
|
padding: var(--icen-density-space-xs);
|
|
38
|
-
background: color-mix(in srgb, var(--icen-token-
|
|
39
|
-
backdrop-filter: blur(
|
|
40
|
-
-webkit-backdrop-filter: blur(
|
|
41
|
-
border: 1px solid var(--icen-token-
|
|
42
|
-
box-shadow: var(--icen-token-shadow-
|
|
38
|
+
background: color-mix(in srgb, var(--icen-token-surface) 94%, transparent);
|
|
39
|
+
backdrop-filter: blur(var(--icen-material-blur-floating)) saturate(var(--icen-material-saturate));
|
|
40
|
+
-webkit-backdrop-filter: blur(var(--icen-material-blur-floating)) saturate(var(--icen-material-saturate));
|
|
41
|
+
border: 1px solid var(--icen-token-material-edge);
|
|
42
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
|
|
43
43
|
border-radius: var(--icen-radius-lg);
|
|
44
44
|
transform-origin: top center;
|
|
45
|
-
animation: icen-menu-in var(--menu-in-duration, var(--icen-duration-fast)) var(--icen-ease-
|
|
45
|
+
animation: icen-menu-in var(--menu-in-duration, var(--icen-duration-fast)) var(--icen-ease-enter);
|
|
46
46
|
}
|
|
47
47
|
.icen-menu[data-icen-state='closing'] { pointer-events: none; }
|
|
48
48
|
.icen-menu[data-icen-side='top'] { transform-origin: bottom center; }
|
|
@@ -61,9 +61,10 @@
|
|
|
61
61
|
/* ── 分组标签 / 头(context-menu 的 header 项) ── */
|
|
62
62
|
.icen-menu-label {
|
|
63
63
|
padding: var(--icen-density-space-xs) var(--icen-density-space-sm);
|
|
64
|
-
font-size: var(--icen-
|
|
64
|
+
font-size: var(--icen-font-size-caption);
|
|
65
65
|
font-weight: 600;
|
|
66
|
-
|
|
66
|
+
letter-spacing: var(--icen-letter-spacing-caption);
|
|
67
|
+
color: var(--icen-token-text-muted);
|
|
67
68
|
}
|
|
68
69
|
.icen-menu-header {
|
|
69
70
|
padding: var(--icen-density-space-sm) calc(var(--icen-density-space-sm) + 2px) var(--icen-density-space-xs);
|
|
@@ -93,17 +94,18 @@
|
|
|
93
94
|
position: relative;
|
|
94
95
|
display: flex;
|
|
95
96
|
align-items: center;
|
|
96
|
-
gap: var(--icen-
|
|
97
|
-
min-block-size: var(--icen-
|
|
97
|
+
gap: var(--icen-control-gap-sm);
|
|
98
|
+
min-block-size: var(--icen-control-height-sm);
|
|
98
99
|
width: 100%;
|
|
99
|
-
padding:
|
|
100
|
+
padding: 4px var(--icen-density-space-sm);
|
|
100
101
|
background: none;
|
|
101
102
|
border: 0;
|
|
102
103
|
font: inherit;
|
|
103
|
-
font-size: var(--icen-
|
|
104
|
+
font-size: var(--icen-font-size-control);
|
|
105
|
+
line-height: 1.35;
|
|
104
106
|
text-align: start;
|
|
105
107
|
color: var(--icen-token-text);
|
|
106
|
-
border-radius: var(--icen-radius-
|
|
108
|
+
border-radius: var(--icen-radius-xs);
|
|
107
109
|
cursor: pointer;
|
|
108
110
|
user-select: none;
|
|
109
111
|
transition:
|
|
@@ -111,12 +113,12 @@
|
|
|
111
113
|
color var(--icen-tx-fast);
|
|
112
114
|
}
|
|
113
115
|
.icen-menu-item:hover:not(.is-disabled) {
|
|
114
|
-
background: var(--icen-token-fill-
|
|
116
|
+
background: var(--icen-token-fill-hover);
|
|
115
117
|
}
|
|
116
118
|
.icen-menu-item.is-highlighted,
|
|
117
119
|
.icen-menu-item:focus-visible {
|
|
118
|
-
background: var(--icen-token-
|
|
119
|
-
color: var(--icen-token-
|
|
120
|
+
background: var(--icen-token-fill-selected);
|
|
121
|
+
color: var(--icen-token-text);
|
|
120
122
|
outline: none;
|
|
121
123
|
}
|
|
122
124
|
.icen-menu-item:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: -2px; box-shadow: none; }
|
|
@@ -138,14 +140,15 @@
|
|
|
138
140
|
display: inline-flex;
|
|
139
141
|
align-items: center;
|
|
140
142
|
justify-content: center;
|
|
141
|
-
inline-size:
|
|
142
|
-
block-size:
|
|
143
|
+
inline-size: 18px;
|
|
144
|
+
block-size: 18px;
|
|
143
145
|
flex-shrink: 0;
|
|
146
|
+
color: var(--icen-token-text-muted);
|
|
144
147
|
}
|
|
145
|
-
.icen-menu-item-icon > svg { inline-size:
|
|
148
|
+
.icen-menu-item-icon > svg { inline-size: var(--icen-control-icon); block-size: var(--icen-control-icon); }
|
|
146
149
|
.icen-menu:has(.icen-menu-item-icon) .icen-menu-item:not(:has(> .icen-menu-item-icon))::before {
|
|
147
150
|
content: '';
|
|
148
|
-
inline-size:
|
|
151
|
+
inline-size: 18px;
|
|
149
152
|
flex: none;
|
|
150
153
|
}
|
|
151
154
|
.icen-menu-item-label {
|
|
@@ -159,13 +162,14 @@
|
|
|
159
162
|
display: block;
|
|
160
163
|
font-size: var(--icen-density-font-size-xs);
|
|
161
164
|
line-height: 1.3;
|
|
162
|
-
color: var(--icen-token-text-
|
|
163
|
-
margin-top:
|
|
165
|
+
color: var(--icen-token-text-muted);
|
|
166
|
+
margin-top: 1px;
|
|
164
167
|
}
|
|
165
168
|
.icen-menu-item-shortcut {
|
|
166
169
|
font-size: var(--icen-density-font-size-xs);
|
|
167
170
|
color: var(--icen-token-text-faint);
|
|
168
171
|
font-family: var(--icen-font-mono);
|
|
172
|
+
letter-spacing: .04em;
|
|
169
173
|
margin-inline-start: var(--icen-density-space-sm);
|
|
170
174
|
white-space: nowrap;
|
|
171
175
|
flex: none;
|
|
@@ -183,24 +187,24 @@
|
|
|
183
187
|
.icen-menu-separator {
|
|
184
188
|
margin: var(--icen-density-space-xs) calc(var(--icen-density-space-sm) + 2px);
|
|
185
189
|
height: 1px;
|
|
186
|
-
background: var(--icen-token-
|
|
190
|
+
background: var(--icen-token-separator-soft);
|
|
187
191
|
}
|
|
188
192
|
|
|
189
|
-
/* ── 进场:fade + scale(.
|
|
193
|
+
/* ── 进场:fade + scale(.98→1),按侧别反向位移 2px(浮层统一收敛配方) ── */
|
|
190
194
|
@keyframes icen-menu-in {
|
|
191
|
-
from { opacity: 0; transform: scale(0.
|
|
195
|
+
from { opacity: 0; transform: scale(0.98) translateY(-2px); }
|
|
192
196
|
to { opacity: 1; transform: scale(1) translateY(0); }
|
|
193
197
|
}
|
|
194
198
|
@keyframes icen-menu-in-top {
|
|
195
|
-
from { opacity: 0; transform: scale(0.
|
|
199
|
+
from { opacity: 0; transform: scale(0.98) translateY(2px); }
|
|
196
200
|
to { opacity: 1; transform: scale(1) translateY(0); }
|
|
197
201
|
}
|
|
198
202
|
@keyframes icen-menu-in-left {
|
|
199
|
-
from { opacity: 0; transform: scale(0.
|
|
203
|
+
from { opacity: 0; transform: scale(0.98) translateX(2px); }
|
|
200
204
|
to { opacity: 1; transform: scale(1) translateX(0); }
|
|
201
205
|
}
|
|
202
206
|
@keyframes icen-menu-in-right {
|
|
203
|
-
from { opacity: 0; transform: scale(0.
|
|
207
|
+
from { opacity: 0; transform: scale(0.98) translateX(-2px); }
|
|
204
208
|
to { opacity: 1; transform: scale(1) translateX(0); }
|
|
205
209
|
}
|
|
206
210
|
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
align-items: center;
|
|
33
33
|
justify-content: center;
|
|
34
34
|
padding: var(--icen-density-space-md);
|
|
35
|
-
background:
|
|
36
|
-
backdrop-filter:
|
|
37
|
-
-webkit-backdrop-filter:
|
|
35
|
+
background: var(--icen-token-scrim);
|
|
36
|
+
backdrop-filter: none;
|
|
37
|
+
-webkit-backdrop-filter: none;
|
|
38
38
|
opacity: 1;
|
|
39
39
|
transition: opacity var(--icen-duration-fast) var(--icen-ease-out), display var(--icen-duration-fast) allow-discrete;
|
|
40
40
|
}
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
max-width: 480px;
|
|
49
49
|
max-height: calc(100vh - 32px);
|
|
50
50
|
max-block-size: calc(100dvh - 2 * var(--icen-density-space-md));
|
|
51
|
-
background: var(--icen-token-
|
|
51
|
+
background: var(--icen-token-surface);
|
|
52
52
|
color: var(--icen-token-text);
|
|
53
|
-
border: 1px solid var(--icen-token-
|
|
54
|
-
box-shadow: var(--icen-token-shadow-overlay);
|
|
53
|
+
border: 1px solid var(--icen-token-material-edge);
|
|
54
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-overlay);
|
|
55
55
|
border-radius: var(--icen-radius-xl);
|
|
56
|
-
--modal-enter-transform: translateY(
|
|
56
|
+
--modal-enter-transform: translateY(4px) scale(.985);
|
|
57
57
|
opacity: 1;
|
|
58
58
|
transform: translate(0, 0) scale(1);
|
|
59
|
-
transition: opacity var(--icen-duration-fast) var(--icen-ease-out), transform var(--icen-duration-normal) var(--icen-ease-
|
|
59
|
+
transition: opacity var(--icen-duration-fast) var(--icen-ease-out), transform var(--icen-duration-normal) var(--icen-ease-enter);
|
|
60
60
|
}
|
|
61
61
|
.icen-modal:focus { outline: none; }
|
|
62
62
|
.icen-modal:focus-visible {
|
|
@@ -81,17 +81,18 @@
|
|
|
81
81
|
align-items: flex-start;
|
|
82
82
|
justify-content: space-between;
|
|
83
83
|
gap: var(--icen-density-space-md);
|
|
84
|
-
padding: var(--icen-density-space-lg) var(--icen-density-space-lg) var(--icen-density-space-
|
|
84
|
+
padding: var(--icen-density-space-lg) var(--icen-density-space-lg) var(--icen-density-space-xs);
|
|
85
85
|
}
|
|
86
86
|
.icen-modal-title {
|
|
87
87
|
margin: 0;
|
|
88
|
-
font-size: var(--icen-
|
|
89
|
-
font-weight:
|
|
88
|
+
font-size: var(--icen-font-size-title);
|
|
89
|
+
font-weight: var(--icen-font-weight-title);
|
|
90
|
+
letter-spacing: -.01em;
|
|
90
91
|
line-height: 1.3;
|
|
91
92
|
font-family: var(--icen-font-heading);
|
|
92
93
|
}
|
|
93
94
|
.icen-modal-description {
|
|
94
|
-
margin:
|
|
95
|
+
margin: 3px 0 0;
|
|
95
96
|
font-size: var(--icen-density-font-size-sm);
|
|
96
97
|
color: var(--icen-token-text-muted);
|
|
97
98
|
line-height: 1.5;
|
|
@@ -100,24 +101,24 @@
|
|
|
100
101
|
display: inline-flex;
|
|
101
102
|
align-items: center;
|
|
102
103
|
justify-content: center;
|
|
103
|
-
inline-size:
|
|
104
|
-
block-size:
|
|
104
|
+
inline-size: 28px;
|
|
105
|
+
block-size: 28px;
|
|
105
106
|
padding: 0;
|
|
106
107
|
flex-shrink: 0;
|
|
107
108
|
background: none;
|
|
108
109
|
border: 0;
|
|
109
110
|
cursor: pointer;
|
|
110
|
-
color: var(--icen-token-text-
|
|
111
|
+
color: var(--icen-token-text-muted);
|
|
111
112
|
font-size: var(--icen-density-font-size-lg);
|
|
112
113
|
line-height: 1;
|
|
113
|
-
border-radius: var(--icen-radius-
|
|
114
|
+
border-radius: var(--icen-radius-full);
|
|
114
115
|
transition:
|
|
115
116
|
background-color var(--icen-tx-fast),
|
|
116
117
|
color var(--icen-tx-fast);
|
|
117
118
|
}
|
|
118
|
-
.icen-modal-close > svg { inline-size:
|
|
119
|
+
.icen-modal-close > svg { inline-size: 14px; block-size: 14px; }
|
|
119
120
|
.icen-modal-close:hover {
|
|
120
|
-
background: var(--icen-token-
|
|
121
|
+
background: var(--icen-token-fill-hover);
|
|
121
122
|
color: var(--icen-token-text);
|
|
122
123
|
}
|
|
123
124
|
.icen-modal-close:focus-visible {
|
|
@@ -129,17 +130,18 @@
|
|
|
129
130
|
flex: 1;
|
|
130
131
|
overflow-y: auto;
|
|
131
132
|
overscroll-behavior: contain;
|
|
132
|
-
padding:
|
|
133
|
-
font-size: var(--icen-
|
|
134
|
-
line-height: 1.
|
|
133
|
+
padding: var(--icen-density-space-xs) var(--icen-density-space-lg) var(--icen-density-space-lg);
|
|
134
|
+
font-size: var(--icen-font-size-control);
|
|
135
|
+
line-height: 1.55;
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
.icen-modal-footer {
|
|
138
139
|
display: flex;
|
|
139
140
|
justify-content: flex-end;
|
|
140
141
|
gap: var(--icen-density-space-sm);
|
|
141
|
-
padding: var(--icen-density-space-
|
|
142
|
-
|
|
142
|
+
padding: var(--icen-density-space-sm) var(--icen-density-space-lg);
|
|
143
|
+
background: var(--icen-token-surface-chrome);
|
|
144
|
+
border-top: 1px solid var(--icen-token-separator-soft);
|
|
143
145
|
}
|
|
144
146
|
.icen-modal-footer--start { justify-content: flex-start; }
|
|
145
147
|
.icen-modal-footer--between { justify-content: space-between; }
|
|
@@ -162,28 +164,28 @@
|
|
|
162
164
|
left: 0; top: 0; bottom: 0; /* guard:allow-physical --sheet-left 是按物理侧边命名的变体(贴左缘抽屉),RTL 语义不变 */
|
|
163
165
|
width: 360px;
|
|
164
166
|
height: 100%;
|
|
165
|
-
border-radius: 0 var(--icen-radius-
|
|
167
|
+
border-radius: 0 var(--icen-radius-lg) var(--icen-radius-lg) 0; /* guard:allow-physical 圆角贴着物理左缘(sheet-left 变体),RTL 语义不变 */
|
|
166
168
|
--modal-enter-transform: translateX(-16px);
|
|
167
169
|
}
|
|
168
170
|
.icen-modal--sheet-right {
|
|
169
171
|
right: 0; top: 0; bottom: 0; /* guard:allow-physical --sheet-right 是按物理侧边命名的变体(贴右缘抽屉),RTL 语义不变 */
|
|
170
172
|
width: 360px;
|
|
171
173
|
height: 100%;
|
|
172
|
-
border-radius: var(--icen-radius-
|
|
174
|
+
border-radius: var(--icen-radius-lg) 0 0 var(--icen-radius-lg); /* guard:allow-physical 圆角贴着物理右缘(sheet-right 变体),RTL 语义不变 */
|
|
173
175
|
--modal-enter-transform: translateX(16px);
|
|
174
176
|
}
|
|
175
177
|
.icen-modal--sheet-top {
|
|
176
178
|
top: 0; inset-inline: 0;
|
|
177
179
|
width: 100%;
|
|
178
180
|
height: 300px;
|
|
179
|
-
border-radius: 0 0 var(--icen-radius-
|
|
181
|
+
border-radius: 0 0 var(--icen-radius-lg) var(--icen-radius-lg);
|
|
180
182
|
--modal-enter-transform: translateY(-16px);
|
|
181
183
|
}
|
|
182
184
|
.icen-modal--sheet-bottom {
|
|
183
185
|
bottom: 0; inset-inline: 0;
|
|
184
186
|
width: 100%;
|
|
185
187
|
height: 300px;
|
|
186
|
-
border-radius: var(--icen-radius-
|
|
188
|
+
border-radius: var(--icen-radius-lg) var(--icen-radius-lg) 0 0;
|
|
187
189
|
--modal-enter-transform: translateY(16px);
|
|
188
190
|
}
|
|
189
191
|
.icen-modal--sheet-left.icen-modal--sm, .icen-modal--sheet-right.icen-modal--sm { width: 280px; }
|
|
@@ -205,4 +207,5 @@
|
|
|
205
207
|
.icen-modal-backdrop, .icen-modal { transition: none; }
|
|
206
208
|
}
|
|
207
209
|
|
|
210
|
+
|
|
208
211
|
}
|
package/dist/components/nav.css
CHANGED
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
align-items: center;
|
|
21
21
|
flex-wrap: wrap;
|
|
22
22
|
gap: var(--icen-density-space-sm);
|
|
23
|
-
height:
|
|
23
|
+
height: 52px;
|
|
24
24
|
padding: 0 var(--icen-density-space-md);
|
|
25
|
-
background: var(--icen-token-surface-glass);
|
|
26
|
-
backdrop-filter: blur(
|
|
27
|
-
-webkit-backdrop-filter: blur(
|
|
28
|
-
border-bottom: 1px solid var(--icen-token-
|
|
25
|
+
background: var(--icen-token-surface-glass-chrome);
|
|
26
|
+
backdrop-filter: blur(var(--icen-material-blur-chrome)) saturate(var(--icen-material-saturate));
|
|
27
|
+
-webkit-backdrop-filter: blur(var(--icen-material-blur-chrome)) saturate(var(--icen-material-saturate));
|
|
28
|
+
border-bottom: 1px solid var(--icen-token-separator-soft);
|
|
29
29
|
transition:
|
|
30
30
|
background-color var(--icen-tx-slow),
|
|
31
31
|
border-color var(--icen-tx-slow),
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
.icen-nav:has(.icen-nav-bottom) {
|
|
37
37
|
height: auto;
|
|
38
|
-
min-height:
|
|
38
|
+
min-height: 52px;
|
|
39
39
|
}
|
|
40
40
|
.icen-nav--sticky {
|
|
41
41
|
position: sticky;
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
|
|
52
52
|
/* scroll-reactive:未滚动更透、底边线透明;滚动后底色更实 + blur 加倍 */
|
|
53
53
|
.icen-nav[data-icen-scroll-reactive]:not(.is-scrolled) {
|
|
54
|
-
background: color-mix(in srgb, var(--icen-token-surface-glass)
|
|
55
|
-
backdrop-filter: blur(
|
|
56
|
-
-webkit-backdrop-filter: blur(
|
|
54
|
+
background: color-mix(in srgb, var(--icen-token-surface-glass-chrome) 72%, transparent);
|
|
55
|
+
backdrop-filter: blur(10px);
|
|
56
|
+
-webkit-backdrop-filter: blur(10px);
|
|
57
57
|
border-bottom-color: transparent;
|
|
58
|
+
box-shadow: none;
|
|
58
59
|
}
|
|
59
60
|
.icen-nav.is-scrolled {
|
|
60
|
-
background: color-mix(in srgb, var(--icen-token-surface-glass)
|
|
61
|
-
|
|
62
|
-
-
|
|
63
|
-
box-shadow: var(--icen-token-shadow-elevated);
|
|
61
|
+
background: color-mix(in srgb, var(--icen-token-surface-glass-chrome) 94%, transparent);
|
|
62
|
+
border-bottom-color: var(--icen-token-separator-soft);
|
|
63
|
+
box-shadow: 0 1px 0 color-mix(in srgb, var(--icen-token-text) 4%, transparent);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/* hide-on-scroll 模式:向下滚隐藏,向上滚恢复。仅 sticky/fixed 生效。 */
|
|
@@ -90,10 +90,12 @@
|
|
|
90
90
|
position: relative;
|
|
91
91
|
display: inline-flex;
|
|
92
92
|
align-items: center;
|
|
93
|
-
gap: var(--icen-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
gap: var(--icen-control-gap-sm);
|
|
94
|
+
min-block-size: 28px;
|
|
95
|
+
border-radius: var(--icen-control-radius);
|
|
96
|
+
padding: 3px 8px;
|
|
97
|
+
font-size: var(--icen-font-size-control);
|
|
98
|
+
font-weight: var(--icen-font-weight-control);
|
|
97
99
|
color: var(--icen-token-text-muted);
|
|
98
100
|
background: none;
|
|
99
101
|
border: 0;
|
|
@@ -104,13 +106,13 @@
|
|
|
104
106
|
color var(--icen-tx-fast);
|
|
105
107
|
}
|
|
106
108
|
.icen-nav-btn > svg {
|
|
107
|
-
width:
|
|
108
|
-
height:
|
|
109
|
+
width: var(--icen-control-icon);
|
|
110
|
+
height: var(--icen-control-icon);
|
|
109
111
|
flex-shrink: 0;
|
|
110
112
|
}
|
|
111
113
|
.icen-nav-btn:not(.is-active):hover {
|
|
112
114
|
color: var(--icen-token-text);
|
|
113
|
-
background: var(--icen-token-
|
|
115
|
+
background: var(--icen-token-fill-hover);
|
|
114
116
|
}
|
|
115
117
|
.icen-nav-btn:focus-visible {
|
|
116
118
|
outline: none;
|
|
@@ -118,10 +120,10 @@
|
|
|
118
120
|
}
|
|
119
121
|
.icen-nav-btn.is-active,
|
|
120
122
|
.icen-nav-btn[aria-current='page'] {
|
|
121
|
-
background: var(--icen-token-
|
|
122
|
-
color: var(--icen-token-
|
|
123
|
-
font-weight:
|
|
124
|
-
box-shadow:
|
|
123
|
+
background: var(--icen-token-fill-selected);
|
|
124
|
+
color: var(--icen-token-text);
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
box-shadow: none;
|
|
125
127
|
}
|
|
126
128
|
.icen-nav-btn.is-disabled,
|
|
127
129
|
.icen-nav-btn:disabled,
|
|
@@ -129,24 +131,25 @@
|
|
|
129
131
|
opacity: var(--icen-disabled-opacity);
|
|
130
132
|
pointer-events: none;
|
|
131
133
|
}
|
|
132
|
-
.icen-nav-btn--icon { padding:
|
|
134
|
+
.icen-nav-btn--icon { padding: 3px 7px; }
|
|
133
135
|
.icen-nav-btn--icon > svg { width: 16px; height: 16px; }
|
|
134
136
|
|
|
135
137
|
.icen-nav-divider {
|
|
136
138
|
width: 1px;
|
|
137
|
-
height:
|
|
139
|
+
height: 18px;
|
|
138
140
|
margin: 0 2px;
|
|
139
|
-
background: var(--icen-token-
|
|
141
|
+
background: var(--icen-token-separator);
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
/* 品牌徽标位 */
|
|
143
145
|
.icen-nav-brand {
|
|
144
146
|
display: inline-flex;
|
|
145
147
|
align-items: center;
|
|
146
|
-
gap: var(--icen-
|
|
148
|
+
gap: var(--icen-control-gap-sm);
|
|
147
149
|
font-family: var(--icen-font-heading);
|
|
148
|
-
font-size: var(--icen-
|
|
150
|
+
font-size: var(--icen-font-size-title);
|
|
149
151
|
font-weight: 600;
|
|
152
|
+
letter-spacing: -.01em;
|
|
150
153
|
color: var(--icen-token-text);
|
|
151
154
|
text-decoration: none;
|
|
152
155
|
}
|
|
@@ -172,19 +175,19 @@
|
|
|
172
175
|
.icen-nav-search {
|
|
173
176
|
display: flex;
|
|
174
177
|
align-items: center;
|
|
175
|
-
gap: var(--icen-
|
|
176
|
-
padding: 0 var(--icen-
|
|
177
|
-
height:
|
|
178
|
+
gap: var(--icen-control-gap-sm);
|
|
179
|
+
padding: 0 var(--icen-field-padding-inline);
|
|
180
|
+
height: var(--icen-control-height-sm);
|
|
178
181
|
min-width: 180px;
|
|
179
182
|
background: var(--icen-token-control);
|
|
180
|
-
border: 1px solid var(--icen-token-
|
|
181
|
-
border-radius: var(--icen-radius
|
|
182
|
-
color: var(--icen-token-text-
|
|
183
|
+
border: 1px solid var(--icen-token-control-border);
|
|
184
|
+
border-radius: var(--icen-control-radius);
|
|
185
|
+
color: var(--icen-token-text-muted);
|
|
183
186
|
font-size: var(--icen-density-font-size-sm);
|
|
184
187
|
cursor: pointer;
|
|
185
|
-
transition: border-color var(--icen-tx-fast);
|
|
188
|
+
transition: border-color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
186
189
|
}
|
|
187
|
-
.icen-nav-search:hover { border-color: var(--icen-token-
|
|
190
|
+
.icen-nav-search:hover { border-color: var(--icen-token-control-border-hover); background: var(--icen-token-surface); }
|
|
188
191
|
.icen-nav-search svg { width: 14px; height: 14px; flex-shrink: 0; }
|
|
189
192
|
.icen-nav-search-kbd {
|
|
190
193
|
margin-inline-start: auto;
|
|
@@ -226,23 +229,24 @@
|
|
|
226
229
|
.icen-nav-link {
|
|
227
230
|
display: inline-flex;
|
|
228
231
|
align-items: center;
|
|
229
|
-
gap: var(--icen-
|
|
230
|
-
padding:
|
|
231
|
-
font-size: var(--icen-
|
|
232
|
+
gap: var(--icen-control-gap-sm);
|
|
233
|
+
padding: 3px 8px;
|
|
234
|
+
font-size: var(--icen-font-size-control);
|
|
232
235
|
color: var(--icen-token-text-muted);
|
|
233
236
|
text-decoration: none;
|
|
234
|
-
border-radius: var(--icen-radius
|
|
237
|
+
border-radius: var(--icen-control-radius);
|
|
235
238
|
transition: color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
236
239
|
}
|
|
237
240
|
.icen-nav-link:hover {
|
|
238
241
|
color: var(--icen-token-text);
|
|
239
|
-
background: var(--icen-token-
|
|
242
|
+
background: var(--icen-token-fill-hover);
|
|
240
243
|
text-decoration: none;
|
|
241
244
|
}
|
|
242
245
|
.icen-nav-link.is-active,
|
|
243
246
|
.icen-nav-link[aria-current='page'] {
|
|
244
|
-
color: var(--icen-token-
|
|
245
|
-
background: var(--icen-token-
|
|
247
|
+
color: var(--icen-token-text);
|
|
248
|
+
background: var(--icen-token-fill-selected);
|
|
249
|
+
font-weight: var(--icen-font-weight-control);
|
|
246
250
|
}
|
|
247
251
|
|
|
248
252
|
/* 导航用户区(头像 + 下拉触发器) */
|