@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
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* 共享原语来自 kb.css(.icen-kb-row/.icen-kb-num/.icen-kb-meta/.icen-kb-dot/.icen-kb-badge/.icen-kb-chip/.icen-kb-empty/.icen-kb-notice)。
|
|
10
10
|
* 本文件三段分界,各组件作者只填自己的段。
|
|
11
|
+
* 视觉口径:28px 行节奏、6px 控件圆角、8px 面板圆角、发丝分隔线、focus ring 统一取 --icen-ring。
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
14
|
/* ══════════════ 段A · kb-acl + kb-who-can(文档权限面板 + 有效权限检查器)══════════════ */
|
|
@@ -17,8 +18,9 @@
|
|
|
17
18
|
|
|
18
19
|
.icen-kb-acl-inherit {
|
|
19
20
|
display: flex; align-items: center; gap: 8px;
|
|
20
|
-
padding:
|
|
21
|
-
font-size:
|
|
21
|
+
padding: 8px 10px;
|
|
22
|
+
font-size: var(--icen-density-font-size-xs);
|
|
23
|
+
color: var(--icen-token-text-muted);
|
|
22
24
|
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
23
25
|
background: color-mix(in srgb, var(--icen-token-bg) 55%, transparent);
|
|
24
26
|
}
|
|
@@ -32,23 +34,25 @@
|
|
|
32
34
|
|
|
33
35
|
.icen-kb-acl-grant {
|
|
34
36
|
display: flex; align-items: center; gap: 8px;
|
|
35
|
-
min-height:
|
|
37
|
+
min-height: var(--icen-density-item-height); padding: 2px 0;
|
|
36
38
|
border-bottom: 1px solid var(--icen-token-line-soft);
|
|
39
|
+
transition: background-color var(--icen-tx-fast);
|
|
37
40
|
}
|
|
41
|
+
.icen-kb-acl-grant:hover { background: var(--icen-token-fill-hover); }
|
|
38
42
|
.icen-kb-acl-grant:last-child { border-bottom: none; }
|
|
39
43
|
.icen-kb-acl-grant.is-deny { order: -1; }
|
|
40
44
|
.icen-kb-acl-grant.is-deny .icen-kb-acl-role { color: var(--icen-token-error); border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent); }
|
|
41
45
|
.icen-kb-acl-grant.is-expiring .icen-kb-acl-meta { color: var(--icen-token-warning); }
|
|
42
46
|
.icen-kb-acl-grant.is-system .icen-kb-acl-remove { display: none; }
|
|
43
47
|
|
|
44
|
-
.icen-kb-acl-subject { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; font-size:
|
|
48
|
+
.icen-kb-acl-subject { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; font-size: var(--icen-density-font-size-md); color: var(--icen-token-text); }
|
|
45
49
|
.icen-kb-acl-subject[data-icen-kind='group']::before,
|
|
46
50
|
.icen-kb-acl-subject[data-icen-kind='link']::before {
|
|
47
51
|
content: ''; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
|
|
48
52
|
background: var(--icen-token-text-faint);
|
|
49
53
|
}
|
|
50
54
|
.icen-kb-acl-role { flex: 0 0 auto; }
|
|
51
|
-
.icen-kb-acl-meta { flex: 0 1 auto; margin-inline-start: auto; font-size:
|
|
55
|
+
.icen-kb-acl-meta { flex: 0 1 auto; margin-inline-start: auto; font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
52
56
|
.icen-kb-acl-remove { flex: 0 0 auto; }
|
|
53
57
|
.icen-kb-acl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
|
|
54
58
|
|
|
@@ -56,10 +60,10 @@
|
|
|
56
60
|
.icen-kb-whocan { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
|
|
57
61
|
.icen-kb-whocan-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
58
62
|
.icen-kb-whocan-result { display: flex; flex-direction: column; gap: 8px; }
|
|
59
|
-
.icen-kb-whocan-verdict { font-size:
|
|
63
|
+
.icen-kb-whocan-verdict { font-size: var(--icen-density-font-size-md); font-weight: 600; color: var(--icen-token-text); }
|
|
60
64
|
.icen-kb-whocan-result.is-denied .icen-kb-whocan-verdict { color: var(--icen-token-error); }
|
|
61
65
|
.icen-kb-whocan-deniedby {
|
|
62
|
-
padding:
|
|
66
|
+
padding: 7px 10px; font-size: var(--icen-density-font-size-xs);
|
|
63
67
|
color: var(--icen-token-error);
|
|
64
68
|
border-inline-start: 2px solid var(--icen-token-error);
|
|
65
69
|
background: color-mix(in srgb, var(--icen-token-error) 6%, transparent);
|
|
@@ -67,30 +71,31 @@
|
|
|
67
71
|
border-end-end-radius: var(--icen-radius-sm);
|
|
68
72
|
}
|
|
69
73
|
.icen-kb-whocan-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
|
|
70
|
-
.icen-kb-whocan-reason { display: flex; align-items: baseline; gap: 8px; min-height:
|
|
74
|
+
.icen-kb-whocan-reason { display: flex; align-items: baseline; gap: 8px; min-height: var(--icen-density-item-height); padding: 2px 0; border-bottom: 1px solid var(--icen-token-line-soft); font-size: var(--icen-density-font-size-md); }
|
|
71
75
|
.icen-kb-whocan-reason:last-child { border-bottom: none; }
|
|
72
76
|
.icen-kb-whocan-reason .icen-kb-meta { margin-inline-start: auto; }
|
|
73
|
-
.icen-kb-whocan-rule { font-size:
|
|
77
|
+
.icen-kb-whocan-rule { font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-faint); }
|
|
74
78
|
|
|
75
79
|
/* —— 段A 装配件细化:kb-acl head / 区块标题 / 动作钮 / 移除钮 —— */
|
|
76
80
|
.icen-kb-acl-head { display: flex; align-items: center; gap: 8px; min-inline-size: 0; }
|
|
77
81
|
.icen-kb-acl-title {
|
|
78
82
|
display: inline-flex; align-items: center; gap: 6px;
|
|
79
83
|
flex: 1 1 auto; min-inline-size: 0;
|
|
80
|
-
font-size:
|
|
84
|
+
font-size: var(--icen-density-font-size-md); font-weight: 600; color: var(--icen-token-text);
|
|
81
85
|
}
|
|
82
86
|
.icen-kb-acl-title svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--icen-token-text-faint); }
|
|
83
87
|
.icen-kb-acl-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
84
88
|
.icen-kb-acl-act {
|
|
85
|
-
flex: 0 0 auto; height:
|
|
86
|
-
font: inherit; font-size:
|
|
89
|
+
flex: 0 0 auto; min-height: var(--icen-density-item-height); padding: 0 12px;
|
|
90
|
+
font: inherit; font-size: var(--icen-density-font-size-xs); line-height: 1;
|
|
87
91
|
color: var(--icen-token-text-muted);
|
|
88
92
|
background: transparent;
|
|
89
93
|
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
90
94
|
cursor: pointer;
|
|
91
|
-
transition: color
|
|
95
|
+
transition: color var(--icen-tx-fast), background-color var(--icen-tx-fast), border-color var(--icen-tx-fast);
|
|
92
96
|
}
|
|
93
|
-
.icen-kb-acl-act:hover { color: var(--icen-token-text); border-color: var(--icen-token-line); }
|
|
97
|
+
.icen-kb-acl-act:hover { color: var(--icen-token-text); border-color: var(--icen-token-line); background: var(--icen-token-fill-hover); }
|
|
98
|
+
.icen-kb-acl-act:active { background: var(--icen-token-fill-pressed); }
|
|
94
99
|
/* 恢复继承将丢弃本项自定义授权——破坏性动作用描边式 danger(克制,不做实底) */
|
|
95
100
|
.icen-kb-acl-act.is-danger {
|
|
96
101
|
color: var(--icen-token-error);
|
|
@@ -102,50 +107,60 @@
|
|
|
102
107
|
}
|
|
103
108
|
/* 授权区容器走 flex 列:deny 行的 order:-1(骨架已置)真正生效,区块标题恒在其前 */
|
|
104
109
|
.icen-kb-acl-grants, .icen-kb-acl-links { display: flex; flex-direction: column; }
|
|
105
|
-
.icen-kb-acl-sec { order: -2; font-size:
|
|
106
|
-
.icen-kb-acl-note { font-size:
|
|
110
|
+
.icen-kb-acl-sec { order: -2; font-size: var(--icen-density-font-size-xs); letter-spacing: 0.3px; color: var(--icen-token-text-faint); }
|
|
111
|
+
.icen-kb-acl-note { font-size: var(--icen-density-font-size-xs); }
|
|
107
112
|
.icen-kb-acl-none { padding: 4px 0; }
|
|
108
113
|
.icen-kb-acl-remove {
|
|
109
114
|
display: inline-flex; align-items: center; justify-content: center;
|
|
110
|
-
width:
|
|
111
|
-
font: inherit; font-size:
|
|
115
|
+
width: 24px; height: 24px; padding: 0; /* WCAG 2.5.8 下限(22 → 24;移除是删数据操作) */
|
|
116
|
+
font: inherit; font-size: var(--icen-density-font-size-md); line-height: 1;
|
|
112
117
|
color: var(--icen-token-text-faint);
|
|
113
118
|
background: transparent; border: none; border-radius: var(--icen-radius-sm);
|
|
114
119
|
cursor: pointer;
|
|
115
|
-
transition: color
|
|
120
|
+
transition: color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
116
121
|
}
|
|
117
122
|
.icen-kb-acl-remove:hover { color: var(--icen-token-error); background: color-mix(in srgb, var(--icen-token-error) 7%, transparent); }
|
|
123
|
+
.icen-kb-acl-remove:active { background: color-mix(in srgb, var(--icen-token-error) 12%, transparent); }
|
|
118
124
|
/* 面板主行动(accent 线框——面板内唯一 accent 级操作) */
|
|
119
125
|
.icen-kb-acl-grant-btn {
|
|
120
|
-
flex: 0 0 auto; height:
|
|
121
|
-
font: inherit; font-size:
|
|
126
|
+
flex: 0 0 auto; min-height: var(--icen-density-item-height); padding: 0 12px;
|
|
127
|
+
font: inherit; font-size: var(--icen-density-font-size-xs); line-height: 1;
|
|
122
128
|
color: var(--icen-token-accent-text);
|
|
123
129
|
background: transparent;
|
|
124
130
|
border: 1px solid color-mix(in srgb, var(--icen-token-accent) 45%, transparent);
|
|
125
131
|
border-radius: var(--icen-radius-sm);
|
|
126
132
|
cursor: pointer;
|
|
127
|
-
transition: background-color
|
|
133
|
+
transition: background-color var(--icen-tx-fast), border-color var(--icen-tx-fast);
|
|
128
134
|
}
|
|
129
135
|
.icen-kb-acl-grant-btn:hover { background: color-mix(in srgb, var(--icen-token-accent) 8%, transparent); }
|
|
130
|
-
.icen-kb-acl-
|
|
131
|
-
|
|
136
|
+
.icen-kb-acl-grant-btn:active { background: color-mix(in srgb, var(--icen-token-accent) 13%, transparent); }
|
|
137
|
+
|
|
138
|
+
/* 焦点环:所有自绘控件同一物理(面色 + accent 外环) */
|
|
139
|
+
.icen-kb-acl-remove:focus-visible,
|
|
140
|
+
.icen-kb-acl-act:focus-visible,
|
|
141
|
+
.icen-kb-acl-grant-btn:focus-visible {
|
|
142
|
+
outline: none;
|
|
143
|
+
box-shadow: var(--icen-ring);
|
|
132
144
|
}
|
|
133
145
|
|
|
134
146
|
/* —— 段A 装配件细化:kb-who-can 身份下拉 / 检查钮 / 原因链徽标 —— */
|
|
135
147
|
/* 弹层选择器(icen-select)域钩子:面样式随 select.css,此处只管布局 */
|
|
136
148
|
.icen-kb-whocan-user { flex: 0 1 240px; }
|
|
137
149
|
.icen-kb-whocan-check {
|
|
138
|
-
height:
|
|
139
|
-
font: inherit; font-size:
|
|
150
|
+
min-height: var(--icen-density-item-height); padding: 0 12px;
|
|
151
|
+
font: inherit; font-size: var(--icen-density-font-size-xs); line-height: 1;
|
|
140
152
|
color: var(--icen-token-text-muted);
|
|
141
153
|
background: transparent;
|
|
142
154
|
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
143
155
|
cursor: pointer;
|
|
144
|
-
transition: color
|
|
145
|
-
}
|
|
146
|
-
.icen-kb-whocan-check:hover:not(:disabled) { color: var(--icen-token-text); background: var(--icen-token-
|
|
147
|
-
.icen-kb-whocan-check:
|
|
148
|
-
.icen-kb-whocan-
|
|
156
|
+
transition: color var(--icen-tx-fast), background-color var(--icen-tx-fast), border-color var(--icen-tx-fast);
|
|
157
|
+
}
|
|
158
|
+
.icen-kb-whocan-check:hover:not(:disabled) { color: var(--icen-token-text); background: var(--icen-token-fill-hover); border-color: var(--icen-token-line); }
|
|
159
|
+
.icen-kb-whocan-check:active:not(:disabled) { background: var(--icen-token-fill-pressed); }
|
|
160
|
+
.icen-kb-whocan-check:focus-visible { outline: none; box-shadow: var(--icen-ring); }
|
|
161
|
+
/* .icen-kb-whocan-user 是 icen-select 容器元素,:disabled 永不命中(容器禁用态由
|
|
162
|
+
select.css 的 [aria-disabled] 面处理);只有真按钮 .icen-kb-whocan-check 走原生 disabled */
|
|
163
|
+
.icen-kb-whocan-check:disabled { opacity: var(--icen-disabled-opacity); cursor: not-allowed; }
|
|
149
164
|
.icen-kb-whocan-source { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--icen-token-text); }
|
|
150
165
|
.icen-kb-whocan-reason .icen-kb-badge { flex: 0 0 auto; }
|
|
151
166
|
/* deny 来源:红色 badge(克制——只落在徽标层),主体文本弱化 */
|
|
@@ -156,42 +171,47 @@
|
|
|
156
171
|
.icen-kb-whocan-reason.is-deny .icen-kb-whocan-source { color: var(--icen-token-text-muted); }
|
|
157
172
|
.icen-kb-whocan-role { flex: 0 0 auto; }
|
|
158
173
|
.icen-kb-whocan-none { padding: 4px 0; }
|
|
159
|
-
.icen-kb-whocan-expires { font-size:
|
|
174
|
+
.icen-kb-whocan-expires { font-size: var(--icen-density-font-size-xs); }
|
|
160
175
|
|
|
161
176
|
/* ══════════════ 段B · kb-access + kb-audit(访问申请流 + 审计时间线)══════════════ */
|
|
162
177
|
|
|
163
178
|
/* —— kb-access:被拒五件套 + 状态机徽章族 —— */
|
|
164
179
|
.icen-kb-access { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
|
|
165
|
-
.icen-kb-access-denied {
|
|
166
|
-
|
|
180
|
+
.icen-kb-access-denied {
|
|
181
|
+
display: flex; flex-direction: column; gap: 6px;
|
|
182
|
+
padding: 16px;
|
|
183
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-md);
|
|
184
|
+
background: color-mix(in srgb, var(--icen-token-bg) 45%, transparent);
|
|
185
|
+
}
|
|
186
|
+
.icen-kb-access-title { display: flex; align-items: center; gap: 6px; font-size: var(--icen-density-font-size-md); font-weight: 600; color: var(--icen-token-text); }
|
|
167
187
|
.icen-kb-access-title svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--icen-token-text-faint); }
|
|
168
|
-
.icen-kb-access-why { margin: 0; font-size:
|
|
169
|
-
.icen-kb-access-owner { font-size:
|
|
188
|
+
.icen-kb-access-why { margin: 0; font-size: var(--icen-density-font-size-xs); line-height: 1.7; color: var(--icen-token-text-muted); }
|
|
189
|
+
.icen-kb-access-owner { font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-faint); }
|
|
170
190
|
.icen-kb-access-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
|
|
171
|
-
.icen-kb-access-form { display: flex; flex-direction: column; gap: 8px; padding:
|
|
191
|
+
.icen-kb-access-form { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-md); background: var(--icen-token-surface-raised); }
|
|
172
192
|
.icen-kb-access-form[hidden] { display: none; }
|
|
173
|
-
.icen-kb-access-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size:
|
|
193
|
+
.icen-kb-access-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-muted); }
|
|
174
194
|
.icen-kb-access-state .icen-kb-chip[data-icen-state='granted'] { color: var(--icen-token-success); border-color: color-mix(in srgb, var(--icen-token-success) 45%, transparent); }
|
|
175
195
|
.icen-kb-access-state .icen-kb-chip[data-icen-state='expiring'],
|
|
176
196
|
.icen-kb-access-state .icen-kb-chip[data-icen-state='expired'] { color: var(--icen-token-warning); border-color: color-mix(in srgb, var(--icen-token-warning) 45%, transparent); }
|
|
177
197
|
.icen-kb-access-state .icen-kb-chip[data-icen-state='revoked'] { color: var(--icen-token-text-faint); }
|
|
178
198
|
/* denied 不做刺眼红色终态(业界静默默契)——中性呈现 */
|
|
179
199
|
.icen-kb-access-queue { display: flex; flex-direction: column; gap: 8px; }
|
|
180
|
-
.icen-kb-access-req { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding:
|
|
200
|
+
.icen-kb-access-req { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm); font-size: var(--icen-density-font-size-md); }
|
|
181
201
|
.icen-kb-access-req .icen-kb-access-req-actions { margin-inline-start: auto; display: inline-flex; gap: 6px; }
|
|
182
202
|
|
|
183
203
|
/* —— kb-audit:通道过滤 + 异味节 + 时间线 —— */
|
|
184
204
|
.icen-kb-audit { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
|
|
185
205
|
.icen-kb-audit-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
186
206
|
.icen-kb-audit-channels { display: inline-flex; gap: 6px; flex-wrap: wrap; }
|
|
187
|
-
.icen-kb-audit-channels .icen-kb-chip[aria-pressed='true'] { color: var(--icen-token-accent-text); border-color: var(--icen-token-accent); }
|
|
207
|
+
.icen-kb-audit-channels .icen-kb-chip[aria-pressed='true'] { color: var(--icen-token-accent-text); border-color: var(--icen-token-accent); background: var(--icen-token-accent-subtle); }
|
|
188
208
|
.icen-kb-audit-hygiene { display: flex; flex-direction: column; gap: 6px; }
|
|
189
|
-
.icen-kb-hygiene { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding:
|
|
209
|
+
.icen-kb-hygiene { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 8px 12px; font-size: var(--icen-density-font-size-md); border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm); }
|
|
190
210
|
.icen-kb-hygiene.is-high { border-color: color-mix(in srgb, var(--icen-token-error) 40%, transparent); background: color-mix(in srgb, var(--icen-token-error) 5%, transparent); }
|
|
191
211
|
.icen-kb-hygiene.is-medium { border-color: color-mix(in srgb, var(--icen-token-warning) 40%, transparent); }
|
|
192
212
|
.icen-kb-hygiene .icen-kb-hygiene-act { margin-inline-start: auto; }
|
|
193
213
|
.icen-kb-audit-list { list-style: none; margin: 0; padding: 0; }
|
|
194
|
-
.icen-kb-audit-entry { display: flex; align-items: baseline; gap: 8px; min-height:
|
|
214
|
+
.icen-kb-audit-entry { display: flex; align-items: baseline; gap: 8px; min-height: var(--icen-density-item-height); padding: 2px 0; border-bottom: 1px solid var(--icen-token-line-soft); font-size: var(--icen-density-font-size-md); }
|
|
195
215
|
.icen-kb-audit-entry:last-child { border-bottom: none; }
|
|
196
216
|
.icen-kb-audit-entry .icen-kb-audit-detail { flex: 1 1 auto; min-width: 0; color: var(--icen-token-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
197
217
|
/* break-glass:审计粒度 ≥ 常规 + 常驻警示 */
|
|
@@ -204,14 +224,16 @@
|
|
|
204
224
|
/* 主作用(accent 稀缺资源:被拒五件套的「申请访问」/表单的「提交申请」各为其视图唯一 accent 钮) */
|
|
205
225
|
.icen-kb-access-btn {
|
|
206
226
|
display: inline-flex; align-items: center; gap: 6px;
|
|
207
|
-
|
|
227
|
+
min-height: var(--icen-density-item-height); padding: 0 14px;
|
|
228
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
208
229
|
color: var(--icen-token-on-accent);
|
|
209
230
|
background: var(--icen-token-accent-strong);
|
|
210
231
|
border: none; border-radius: var(--icen-radius-sm);
|
|
211
|
-
|
|
232
|
+
cursor: pointer;
|
|
233
|
+
transition: background-color var(--icen-tx-fast), box-shadow var(--icen-tx-fast);
|
|
212
234
|
}
|
|
213
235
|
.icen-kb-access-btn:hover { background: var(--icen-token-accent-deep); }
|
|
214
|
-
.icen-kb-access-btn:
|
|
236
|
+
.icen-kb-access-btn:active { background: var(--icen-token-accent-deep); box-shadow: inset 0 1px 2px color-mix(in srgb, black 18%, transparent); }
|
|
215
237
|
.icen-kb-access-btn svg { width: 12px; height: 12px; flex: 0 0 auto; }
|
|
216
238
|
/* 次作用 ghost(切换身份 / 批准 / 拒绝):永不用 accent,避免与主行动争夺 */
|
|
217
239
|
.icen-kb-access-btn--ghost {
|
|
@@ -222,95 +244,117 @@
|
|
|
222
244
|
.icen-kb-access-btn--ghost:hover {
|
|
223
245
|
color: var(--icen-token-text);
|
|
224
246
|
border-color: var(--icen-token-line);
|
|
225
|
-
background: var(--icen-token-
|
|
247
|
+
background: var(--icen-token-fill-hover);
|
|
226
248
|
}
|
|
227
249
|
/* 状态行文字钮(申请续期/重新申请):链接级弱化,不用按钮盒子 */
|
|
228
250
|
.icen-kb-access-act {
|
|
229
|
-
font: inherit; font-size:
|
|
230
|
-
color: var(--icen-token-accent);
|
|
251
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
252
|
+
color: var(--icen-token-accent-text); /* 12px 链接字对 canvas 需 AA(裸 accent 3.76:1 不达) */
|
|
231
253
|
background: none; border: none; padding: 0;
|
|
232
254
|
cursor: pointer; text-decoration: underline;
|
|
233
255
|
text-underline-offset: 3px;
|
|
234
256
|
}
|
|
235
257
|
.icen-kb-access-act:hover { color: var(--icen-token-accent-deep); }
|
|
236
258
|
|
|
259
|
+
/* 焦点环:段B 的两个自绘按钮共用(文字钮不套环,链接语义靠下划线) */
|
|
260
|
+
.icen-kb-access-btn:focus-visible,
|
|
261
|
+
.icen-kb-access-act:focus-visible {
|
|
262
|
+
outline: none;
|
|
263
|
+
box-shadow: var(--icen-ring);
|
|
264
|
+
}
|
|
265
|
+
|
|
237
266
|
/* 表单控件:理由 / 角色三选 / 时长 */
|
|
238
267
|
.icen-kb-access-reason {
|
|
239
|
-
font: inherit; font-size:
|
|
268
|
+
font: inherit; font-size: var(--icen-density-font-size-md); line-height: 1.6;
|
|
240
269
|
color: var(--icen-token-text);
|
|
241
270
|
background: var(--icen-token-bg);
|
|
242
271
|
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
243
|
-
padding:
|
|
272
|
+
padding: 8px 10px; resize: vertical; min-height: 64px;
|
|
273
|
+
transition: border-color var(--icen-tx-fast), box-shadow var(--icen-tx-fast);
|
|
244
274
|
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
275
|
+
/* duration/approve-role 是 icen-select 容器元素(div 不可聚焦):焦点环由内部
|
|
276
|
+
trigger 的 icen-focus-ring 提供,这里只保留真输入框的兜底描边 */
|
|
277
|
+
.icen-kb-access-reason:focus-visible,
|
|
278
|
+
.icen-kb-access-note:focus-visible {
|
|
279
|
+
outline: none;
|
|
280
|
+
border-color: var(--icen-control-focus-border);
|
|
281
|
+
box-shadow: var(--icen-control-focus-shadow);
|
|
248
282
|
}
|
|
249
283
|
.icen-kb-access-roles { display: inline-flex; gap: 6px; flex-wrap: wrap; }
|
|
250
284
|
.icen-kb-access-role {
|
|
251
285
|
display: inline-flex; align-items: center;
|
|
252
|
-
|
|
286
|
+
min-height: 22px; padding: 0 10px;
|
|
287
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
253
288
|
color: var(--icen-token-text-muted);
|
|
254
289
|
background: var(--icen-token-bg);
|
|
255
290
|
border: 1px solid var(--icen-token-line-soft);
|
|
256
291
|
border-radius: var(--icen-radius-full);
|
|
257
|
-
|
|
292
|
+
cursor: pointer;
|
|
293
|
+
transition: color var(--icen-tx-fast), border-color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
258
294
|
}
|
|
259
295
|
.icen-kb-access-role:hover { border-color: var(--icen-token-line); color: var(--icen-token-text); }
|
|
260
296
|
.icen-kb-access-role.is-on {
|
|
261
|
-
color: var(--icen-token-accent);
|
|
297
|
+
color: var(--icen-token-accent-text); /* accent 叠 accent-subtle 浅色 ~3.5:1,12px 字低于 AA */
|
|
262
298
|
border-color: color-mix(in srgb, var(--icen-token-accent) 50%, transparent);
|
|
263
299
|
background: var(--icen-token-accent-subtle);
|
|
264
300
|
}
|
|
265
|
-
.icen-kb-access-
|
|
301
|
+
.icen-kb-access-role:focus-visible { outline: none; box-shadow: var(--icen-ring); }
|
|
302
|
+
.icen-kb-access-duration-row { display: inline-flex; align-items: center; gap: 8px; font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-muted); }
|
|
266
303
|
/* 弹层选择器(icen-select)域钩子:面样式随 select.css,此处只管布局 */
|
|
267
304
|
.icen-kb-access-duration { flex: 0 1 150px; }
|
|
268
305
|
.icen-kb-access-route { align-self: flex-start; }
|
|
269
306
|
.icen-kb-access-submit {
|
|
270
307
|
align-self: flex-start;
|
|
271
|
-
|
|
308
|
+
min-height: var(--icen-density-item-height); padding: 0 14px;
|
|
309
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
272
310
|
color: var(--icen-token-on-accent);
|
|
273
311
|
background: var(--icen-token-accent-strong);
|
|
274
312
|
border: none; border-radius: var(--icen-radius-sm);
|
|
275
|
-
|
|
313
|
+
cursor: pointer;
|
|
314
|
+
transition: background-color var(--icen-tx-fast);
|
|
276
315
|
}
|
|
277
316
|
.icen-kb-access-submit:hover { background: var(--icen-token-accent-deep); }
|
|
278
|
-
.icen-kb-access-
|
|
317
|
+
.icen-kb-access-submit:active { background: var(--icen-token-accent-deep); box-shadow: inset 0 1px 2px color-mix(in srgb, black 18%, transparent); }
|
|
318
|
+
.icen-kb-access-submit:focus-visible { outline: none; box-shadow: var(--icen-ring); }
|
|
319
|
+
.icen-kb-access-countdown { font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-muted); font-variant-numeric: tabular-nums; }
|
|
279
320
|
|
|
280
321
|
/* 队列行(approver 视角) */
|
|
281
322
|
.icen-kb-access-req-user { font-weight: 600; color: var(--icen-token-text); }
|
|
282
323
|
.icen-kb-access-req-resource { color: var(--icen-token-text); }
|
|
283
|
-
.icen-kb-access-req-at { font-size:
|
|
324
|
+
.icen-kb-access-req-at { font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-faint); }
|
|
284
325
|
.icen-kb-access-req-reason { flex: 1 1 160px; min-width: 120px; }
|
|
285
326
|
/* 弹层选择器(icen-select)域钩子:面样式随 select.css,此处只管布局 */
|
|
286
327
|
.icen-kb-access-approve-role { flex: 0 1 auto; }
|
|
287
328
|
.icen-kb-access-note {
|
|
288
|
-
font: inherit; font-size:
|
|
329
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
289
330
|
color: var(--icen-token-text);
|
|
290
331
|
background: var(--icen-token-bg);
|
|
291
332
|
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
292
|
-
padding:
|
|
333
|
+
padding: 5px 8px; resize: none; min-width: 140px;
|
|
334
|
+
transition: border-color var(--icen-tx-fast), box-shadow var(--icen-tx-fast);
|
|
293
335
|
}
|
|
294
336
|
.icen-kb-access-req-decided { color: var(--icen-token-text-faint); }
|
|
295
337
|
|
|
296
338
|
/* —— 段B 细化 · kb-audit 构件(chip 钮 / 导出钮 / 异味行 / 过滤断崖)—— */
|
|
297
339
|
|
|
298
340
|
/* 通道 chip 是原生 button:补指针与过渡(激活态配色由上方 aria-pressed 规则承担) */
|
|
299
|
-
.icen-kb-audit-channels .icen-kb-chip { cursor: pointer; transition: color
|
|
300
|
-
.icen-kb-audit-channels .icen-kb-chip:
|
|
341
|
+
.icen-kb-audit-channels .icen-kb-chip { cursor: pointer; transition: color var(--icen-tx-fast), border-color var(--icen-tx-fast), background-color var(--icen-tx-fast); }
|
|
342
|
+
.icen-kb-audit-channels .icen-kb-chip:hover { border-color: var(--icen-token-line); color: var(--icen-token-text); }
|
|
301
343
|
.icen-kb-audit-export {
|
|
302
|
-
font: inherit; font-size:
|
|
344
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
303
345
|
color: var(--icen-token-text-muted);
|
|
304
346
|
background: transparent;
|
|
305
347
|
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
306
|
-
padding:
|
|
348
|
+
padding: 0 10px; cursor: pointer;
|
|
349
|
+
min-block-size: var(--icen-density-item-height); /* WCAG 2.5.8 下限(紧凑视觉靠 padding 保留) */
|
|
307
350
|
margin-inline-start: auto;
|
|
351
|
+
transition: color var(--icen-tx-fast), border-color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
308
352
|
}
|
|
309
|
-
.icen-kb-audit-export:hover { color: var(--icen-token-text); border-color: var(--icen-token-line); background: var(--icen-token-
|
|
310
|
-
.icen-kb-audit-export:
|
|
353
|
+
.icen-kb-audit-export:hover { color: var(--icen-token-text); border-color: var(--icen-token-line); background: var(--icen-token-fill-hover); }
|
|
354
|
+
.icen-kb-audit-export:active { background: var(--icen-token-fill-pressed); }
|
|
311
355
|
/* 过滤显隐:行本身是 flex,hidden 属性会被 display 覆盖——必须显式归零 */
|
|
312
356
|
.icen-kb-audit-entry[hidden] { display: none; }
|
|
313
|
-
.icen-kb-audit-at { flex: 0 0 auto; font-size:
|
|
357
|
+
.icen-kb-audit-at { flex: 0 0 auto; font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-faint); font-variant-numeric: tabular-nums; }
|
|
314
358
|
.icen-kb-audit-actor { flex: 0 1 auto; min-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
315
359
|
.icen-kb-audit-action { flex: 0 0 auto; }
|
|
316
360
|
.icen-kb-audit-alert { flex: 0 0 auto; }
|
|
@@ -320,23 +364,30 @@
|
|
|
320
364
|
.icen-kb-hygiene.is-high .icen-kb-hygiene-kind { color: var(--icen-token-error); border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent); }
|
|
321
365
|
.icen-kb-hygiene.is-medium .icen-kb-hygiene-kind { color: var(--icen-token-warning); border-color: color-mix(in srgb, var(--icen-token-warning) 45%, transparent); }
|
|
322
366
|
.icen-kb-hygiene-resource { font-weight: 600; color: var(--icen-token-text); }
|
|
323
|
-
.icen-kb-hygiene-metric { flex: 0 0 auto; font-size:
|
|
367
|
+
.icen-kb-hygiene-metric { flex: 0 0 auto; font-size: var(--icen-density-font-size-xs); }
|
|
324
368
|
.icen-kb-hygiene-hint { flex: 1 1 140px; min-width: 100px; }
|
|
325
369
|
.icen-kb-hygiene-act {
|
|
326
|
-
font: inherit; font-size:
|
|
370
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
327
371
|
color: var(--icen-token-text-muted);
|
|
328
372
|
background: transparent;
|
|
329
373
|
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
330
|
-
padding:
|
|
374
|
+
padding: 0 10px; cursor: pointer;
|
|
375
|
+
min-block-size: 26px; /* WCAG 2.5.8 下限(紧凑行内操作) */
|
|
376
|
+
transition: color var(--icen-tx-fast), border-color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
331
377
|
}
|
|
332
|
-
.icen-kb-hygiene-act:hover { color: var(--icen-token-text); border-color: var(--icen-token-line); background: var(--icen-token-
|
|
333
|
-
.icen-kb-hygiene-act:
|
|
378
|
+
.icen-kb-hygiene-act:hover { color: var(--icen-token-text); border-color: var(--icen-token-line); background: var(--icen-token-fill-hover); }
|
|
379
|
+
.icen-kb-hygiene-act:active { background: var(--icen-token-fill-pressed); }
|
|
380
|
+
|
|
381
|
+
/* 焦点环:段B 的 chip / 导出 / 异味操作统一 */
|
|
382
|
+
.icen-kb-audit-channels .icen-kb-chip:focus-visible,
|
|
383
|
+
.icen-kb-audit-export:focus-visible,
|
|
384
|
+
.icen-kb-hygiene-act:focus-visible { outline: none; box-shadow: var(--icen-ring); }
|
|
334
385
|
|
|
335
386
|
/* ══════════════ 段C · kb-visibility(检索可见性对照器,admin 专用)══════════════ */
|
|
336
387
|
|
|
337
388
|
.icen-kb-visibility { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
|
|
338
389
|
.icen-kb-visibility-warn {
|
|
339
|
-
padding:
|
|
390
|
+
padding: 8px 10px; font-size: var(--icen-density-font-size-xs);
|
|
340
391
|
color: var(--icen-token-warning);
|
|
341
392
|
border-inline-start: 2px solid var(--icen-token-warning);
|
|
342
393
|
background: color-mix(in srgb, var(--icen-token-warning) 6%, transparent);
|
|
@@ -344,28 +395,35 @@
|
|
|
344
395
|
border-end-end-radius: var(--icen-radius-sm);
|
|
345
396
|
}
|
|
346
397
|
.icen-kb-visibility-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
347
|
-
.icen-kb-visibility-bar .icen-kb-chip[aria-pressed='true'] { color: var(--icen-token-accent); border-color: var(--icen-token-accent); }
|
|
398
|
+
.icen-kb-visibility-bar .icen-kb-chip[aria-pressed='true'] { color: var(--icen-token-accent-text); border-color: var(--icen-token-accent); background: var(--icen-token-accent-subtle); }
|
|
348
399
|
/* 过滤层徽标 .icen-kb-layer-chip 三态定义在 kb.css 基座(检索域 kit 也消费,勿在此重复) */
|
|
349
400
|
.icen-kb-visibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
|
|
350
|
-
.icen-kb-visibility-col {
|
|
351
|
-
|
|
352
|
-
|
|
401
|
+
.icen-kb-visibility-col {
|
|
402
|
+
display: flex; flex-direction: column; gap: 8px;
|
|
403
|
+
padding: 12px;
|
|
404
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-md);
|
|
405
|
+
background: color-mix(in srgb, var(--icen-token-bg) 45%, transparent);
|
|
406
|
+
min-width: 0;
|
|
407
|
+
transition: border-color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
408
|
+
}
|
|
409
|
+
.icen-kb-visibility-col header { display: flex; align-items: baseline; gap: 8px; font-size: var(--icen-density-font-size-md); font-weight: 600; color: var(--icen-token-text); }
|
|
410
|
+
.icen-kb-visibility-count { font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-faint); }
|
|
353
411
|
/* metadata 级:锁 + 标题 + 打码摘要 + 申请入口(知道存在,内容不可见) */
|
|
354
|
-
.icen-kb-visibility-hit { display: flex; flex-direction: column; gap:
|
|
412
|
+
.icen-kb-visibility-hit { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--icen-token-line-soft); font-size: var(--icen-density-font-size-xs); }
|
|
355
413
|
.icen-kb-visibility-hit:last-child { border-bottom: none; }
|
|
356
414
|
.icen-kb-visibility-hit[data-icen-visibility='metadata'] .icen-kb-visibility-snippet,
|
|
357
415
|
.icen-kb-visibility-hit[data-icen-visibility='summary'] .icen-kb-visibility-snippet {
|
|
358
416
|
display: block; height: 10px; border-radius: 3px; /* guard:allow-radius 微构件(bar/dot/track/指示器等图形级,不属容器圆角面) */
|
|
359
417
|
background: color-mix(in srgb, var(--icen-token-text-faint) 18%, transparent);
|
|
360
418
|
}
|
|
361
|
-
.icen-kb-visibility-hit[data-icen-visibility='summary'] .icen-kb-visibility-summary { font-size:
|
|
362
|
-
.icen-kb-visibility-lesson { font-size:
|
|
419
|
+
.icen-kb-visibility-hit[data-icen-visibility='summary'] .icen-kb-visibility-summary { font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-muted); line-height: 1.7; }
|
|
420
|
+
.icen-kb-visibility-lesson { font-size: var(--icen-density-font-size-xs); line-height: 1.8; color: var(--icen-token-text-muted); padding-top: 8px; border-top: 1px solid var(--icen-token-line-soft); }
|
|
363
421
|
|
|
364
422
|
/* —— 段C 细化(实现补齐;上方骨架规则不动)—— */
|
|
365
423
|
|
|
366
424
|
/* 身份 chip 是可点控件:补指针语义(kb-chip 基座不含 cursor;.icen-kb-layer-chip 的已在 kb.css) */
|
|
367
425
|
.icen-kb-visibility-idn { cursor: pointer; }
|
|
368
|
-
.icen-kb-visibility-idn:
|
|
426
|
+
.icen-kb-visibility-idn:hover { border-color: var(--icen-token-line); color: var(--icen-token-text); }
|
|
369
427
|
|
|
370
428
|
/* 身份聚焦:点击 bar 内身份 chip 高亮对应列(accent 弱化底,不与警示条抢注意力) */
|
|
371
429
|
.icen-kb-visibility-col.is-focused {
|
|
@@ -386,7 +444,7 @@
|
|
|
386
444
|
.icen-kb-visibility-origoff {
|
|
387
445
|
align-self: flex-start;
|
|
388
446
|
padding: 0; border: none; background: none;
|
|
389
|
-
font: inherit; font-size:
|
|
447
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
390
448
|
color: var(--icen-token-text-faint);
|
|
391
449
|
cursor: not-allowed;
|
|
392
450
|
}
|
|
@@ -395,12 +453,12 @@
|
|
|
395
453
|
.icen-kb-visibility-request {
|
|
396
454
|
align-self: flex-start;
|
|
397
455
|
padding: 0; border: none; background: none;
|
|
398
|
-
font: inherit; font-size:
|
|
456
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
399
457
|
color: var(--icen-token-text-muted);
|
|
400
458
|
cursor: pointer;
|
|
401
459
|
}
|
|
402
460
|
.icen-kb-visibility-request:hover { color: var(--icen-token-text); text-decoration: underline; }
|
|
403
|
-
.icen-kb-visibility-request:focus-visible { outline:
|
|
461
|
+
.icen-kb-visibility-request:focus-visible { outline: none; box-shadow: var(--icen-ring); }
|
|
404
462
|
|
|
405
463
|
/* 教学段列表(三条安全课)+ 尾注 */
|
|
406
464
|
.icen-kb-visibility-lesson ul { list-style: disc; margin: 0 0 6px; padding-inline-start: 18px; }
|
|
@@ -430,4 +488,17 @@
|
|
|
430
488
|
background: transparent;
|
|
431
489
|
}
|
|
432
490
|
|
|
491
|
+
/* 高对比模式:权限边界不能只靠底色差(deny / break-glass / 警示条保留可辨描边) */
|
|
492
|
+
@media (forced-colors: active) {
|
|
493
|
+
.icen-kb-acl-inherit.is-broken,
|
|
494
|
+
.icen-kb-whocan-deniedby,
|
|
495
|
+
.icen-kb-audit-entry.is-breakglass,
|
|
496
|
+
.icen-kb-hygiene.is-high,
|
|
497
|
+
.icen-kb-hygiene.is-medium,
|
|
498
|
+
.icen-kb-visibility-warn { border: 1px solid CanvasText; }
|
|
499
|
+
.icen-kb-access-denied,
|
|
500
|
+
.icen-kb-access-form,
|
|
501
|
+
.icen-kb-visibility-col { border-color: CanvasText; }
|
|
502
|
+
}
|
|
503
|
+
|
|
433
504
|
}
|