@icen.ai/ui 0.9.0 → 0.10.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 +138 -80
- package/README.md +66 -91
- package/dist/base.css +208 -179
- package/dist/behaviors/accordion.mjs +8 -8
- package/dist/behaviors/ai-branch.d.mts +1 -1
- package/dist/behaviors/ai-branch.mjs +1010 -94
- package/dist/behaviors/ai-chat.d.mts +7 -7
- package/dist/behaviors/ai-chat.mjs +1071 -161
- package/dist/behaviors/ai-composer.d.mts +44 -12
- package/dist/behaviors/ai-composer.mjs +1997 -524
- package/dist/behaviors/ai-core.d.mts +1 -1
- package/dist/behaviors/ai-core.mjs +1016 -107
- package/dist/behaviors/ai-diff.mjs +1019 -127
- package/dist/behaviors/ai-feedback.d.mts +1 -1
- package/dist/behaviors/ai-feedback.mjs +1035 -126
- package/dist/behaviors/ai-panel.d.mts +8 -8
- package/dist/behaviors/ai-panel.mjs +1284 -266
- package/dist/behaviors/ai-provider.mjs +1003 -101
- package/dist/behaviors/ai-threads.d.mts +1 -1
- package/dist/behaviors/ai-threads.mjs +1068 -154
- package/dist/behaviors/ai-tool.d.mts +2 -2
- package/dist/behaviors/ai-tool.mjs +2037 -396
- package/dist/behaviors/ai-tools.d.mts +89 -16
- package/dist/behaviors/ai-tools.mjs +4448 -372
- package/dist/behaviors/autocomplete.d.mts +53 -0
- package/dist/behaviors/autocomplete.mjs +1600 -0
- package/dist/behaviors/back-top.d.mts +1 -1
- package/dist/behaviors/back-top.mjs +951 -14
- package/dist/behaviors/carousel.d.mts +1 -1
- package/dist/behaviors/carousel.mjs +906 -11
- package/dist/behaviors/cascader.d.mts +48 -0
- package/dist/behaviors/cascader.mjs +1853 -0
- package/dist/behaviors/charts.d.mts +72 -8
- package/dist/behaviors/charts.mjs +1901 -256
- package/dist/behaviors/code-block.d.mts +36 -0
- package/dist/behaviors/code-block.mjs +1611 -0
- package/dist/behaviors/command-palette.d.mts +9 -6
- package/dist/behaviors/command-palette.mjs +161 -59
- package/dist/behaviors/context-menu.d.mts +9 -8
- package/dist/behaviors/context-menu.mjs +1112 -44
- package/dist/behaviors/controls.d.mts +13 -13
- package/dist/behaviors/controls.mjs +989 -130
- package/dist/behaviors/copy.d.mts +21 -2
- package/dist/behaviors/copy.mjs +1206 -42
- package/dist/behaviors/datatable.d.mts +53 -3
- package/dist/behaviors/datatable.mjs +1963 -207
- package/dist/behaviors/date-picker.d.mts +0 -1
- package/dist/behaviors/date-picker.mjs +1340 -293
- package/dist/behaviors/design.d.mts +54 -0
- package/dist/behaviors/design.mjs +109 -0
- package/dist/behaviors/dropdown.d.mts +5 -6
- package/dist/behaviors/dropdown.mjs +262 -110
- package/dist/behaviors/events.d.mts +120 -3
- package/dist/behaviors/events.mjs +47 -2
- package/dist/behaviors/feedback.d.mts +30 -0
- package/dist/behaviors/feedback.mjs +296 -0
- package/dist/behaviors/focus.d.mts +8 -0
- package/dist/behaviors/focus.mjs +24 -0
- package/dist/behaviors/form-validate.d.mts +102 -0
- package/dist/behaviors/form-validate.mjs +6091 -0
- package/dist/behaviors/i18n.d.mts +789 -0
- package/dist/behaviors/i18n.mjs +1711 -0
- package/dist/behaviors/icons.d.mts +93 -0
- package/dist/behaviors/icons.mjs +113 -0
- package/dist/behaviors/input.d.mts +9 -1
- package/dist/behaviors/input.mjs +1056 -60
- package/dist/behaviors/kb-access.d.mts +1 -1
- package/dist/behaviors/kb-access.mjs +2129 -239
- package/dist/behaviors/kb-acl.d.mts +6 -6
- package/dist/behaviors/kb-acl.mjs +1119 -179
- package/dist/behaviors/kb-answer.mjs +2070 -418
- package/dist/behaviors/kb-audit.d.mts +1 -1
- package/dist/behaviors/kb-audit.mjs +1076 -154
- package/dist/behaviors/kb-canvas.mjs +1100 -177
- package/dist/behaviors/kb-chain.mjs +1022 -100
- package/dist/behaviors/kb-checkpoint.d.mts +1 -1
- package/dist/behaviors/kb-checkpoint.mjs +1319 -169
- package/dist/behaviors/kb-chunks.mjs +1152 -213
- package/dist/behaviors/kb-citation.d.mts +1 -1
- package/dist/behaviors/kb-citation.mjs +1201 -179
- package/dist/behaviors/kb-clarify.mjs +1058 -130
- package/dist/behaviors/kb-conflict.mjs +1041 -119
- package/dist/behaviors/kb-connector.mjs +1104 -176
- package/dist/behaviors/kb-core.d.mts +6 -1
- package/dist/behaviors/kb-core.mjs +1077 -162
- package/dist/behaviors/kb-eval.mjs +1971 -144
- package/dist/behaviors/kb-explain.d.mts +1 -1
- package/dist/behaviors/kb-explain.mjs +1024 -102
- package/dist/behaviors/kb-filter.mjs +2008 -178
- package/dist/behaviors/kb-gap.d.mts +1 -1
- package/dist/behaviors/kb-gap.mjs +1043 -121
- package/dist/behaviors/kb-hittest.d.mts +1 -1
- package/dist/behaviors/kb-hittest.mjs +1093 -150
- package/dist/behaviors/kb-metadata.mjs +1052 -130
- package/dist/behaviors/kb-passage.d.mts +2 -2
- package/dist/behaviors/kb-passage.mjs +1101 -161
- package/dist/behaviors/kb-pipeline.d.mts +2 -2
- package/dist/behaviors/kb-pipeline.mjs +1082 -162
- package/dist/behaviors/kb-qa.mjs +1088 -160
- package/dist/behaviors/kb-rerank.mjs +1047 -114
- package/dist/behaviors/kb-retrieval.mjs +2063 -224
- package/dist/behaviors/kb-review.mjs +1990 -159
- package/dist/behaviors/kb-sandbox.d.mts +1 -1
- package/dist/behaviors/kb-sandbox.mjs +1026 -104
- package/dist/behaviors/kb-segment.mjs +1111 -179
- package/dist/behaviors/kb-select.d.mts +24 -0
- package/dist/behaviors/kb-select.mjs +1989 -0
- package/dist/behaviors/kb-sources.d.mts +1 -1
- package/dist/behaviors/kb-sources.mjs +1084 -170
- package/dist/behaviors/kb-sql.d.mts +1 -1
- package/dist/behaviors/kb-sql.mjs +1143 -226
- package/dist/behaviors/kb-trace.d.mts +1 -1
- package/dist/behaviors/kb-trace.mjs +1042 -128
- package/dist/behaviors/kb-visibility.mjs +1086 -158
- package/dist/behaviors/kb-who-can.mjs +1974 -137
- package/dist/behaviors/mentions.d.mts +93 -0
- package/dist/behaviors/mentions.mjs +2152 -0
- package/dist/behaviors/modal.d.mts +4 -3
- package/dist/behaviors/modal.mjs +1055 -33
- package/dist/behaviors/nav.d.mts +1 -1
- package/dist/behaviors/nav.mjs +6 -6
- package/dist/behaviors/notification.d.mts +16 -8
- package/dist/behaviors/notification.mjs +1615 -265
- package/dist/behaviors/panel.d.mts +4 -0
- package/dist/behaviors/panel.mjs +994 -0
- package/dist/behaviors/popover.d.mts +28 -5
- package/dist/behaviors/popover.mjs +225 -24
- package/dist/behaviors/select.d.mts +5 -2
- package/dist/behaviors/select.mjs +1410 -117
- package/dist/behaviors/sidebar.d.mts +1 -1
- package/dist/behaviors/sidebar.mjs +13 -13
- package/dist/behaviors/slider.d.mts +1 -1
- package/dist/behaviors/slider.mjs +9 -9
- package/dist/behaviors/split-pane.d.mts +1 -1
- package/dist/behaviors/split-pane.mjs +7 -7
- package/dist/behaviors/suggestions.d.mts +27 -0
- package/dist/behaviors/suggestions.mjs +1089 -0
- package/dist/behaviors/svg-parse.d.mts +14 -0
- package/dist/behaviors/svg-parse.mjs +37 -0
- package/dist/behaviors/tabs.d.mts +2 -2
- package/dist/behaviors/tabs.mjs +25 -25
- package/dist/behaviors/tag-input.d.mts +23 -5
- package/dist/behaviors/tag-input.mjs +1359 -104
- package/dist/behaviors/theme-switcher.d.mts +24 -0
- package/dist/behaviors/theme-switcher.mjs +1981 -0
- package/dist/behaviors/theme.d.mts +15 -8
- package/dist/behaviors/theme.mjs +390 -28
- package/dist/behaviors/toast.d.mts +24 -25
- package/dist/behaviors/toast.mjs +1266 -88
- package/dist/behaviors/tooltip.d.mts +4 -0
- package/dist/behaviors/tooltip.mjs +378 -0
- package/dist/behaviors/tree-select.d.mts +69 -0
- package/dist/behaviors/tree-select.mjs +1907 -0
- package/dist/behaviors/tree.d.mts +1 -1
- package/dist/behaviors/tree.mjs +15 -15
- package/dist/behaviors/upload.d.mts +3 -2
- package/dist/behaviors/upload.mjs +1076 -66
- package/dist/cli.mjs +5 -6
- package/dist/components/ai-chat.css +666 -573
- package/dist/components/ai-diff.css +153 -132
- package/dist/components/ai-panel.css +351 -343
- package/dist/components/ai-tool.css +393 -238
- package/dist/components/autocomplete.css +61 -0
- package/dist/components/autocomplete.mjs +3 -0
- package/dist/components/back-top.css +34 -31
- package/dist/components/badge.css +44 -41
- package/dist/components/breadcrumb.css +67 -46
- package/dist/components/btn.css +80 -74
- package/dist/components/card.css +117 -106
- package/dist/components/cascader.css +311 -0
- package/dist/components/cascader.mjs +3 -0
- package/dist/components/chart-area.css +8 -2
- package/dist/components/chart-bar.css +95 -33
- package/dist/components/chart-gauge.css +14 -11
- package/dist/components/chart-graph.css +20 -17
- package/dist/components/chart-heatmap.css +96 -90
- package/dist/components/chart-line.css +8 -3
- package/dist/components/chart-pie.css +9 -6
- package/dist/components/chart-radar.css +8 -5
- package/dist/components/chart-scatter.css +9 -6
- package/dist/components/chart-sparkline.css +5 -2
- package/dist/components/chart-stack.css +14 -11
- package/dist/components/charts.css +164 -73
- package/dist/components/code-block.css +418 -0
- package/dist/components/code-block.mjs +4 -0
- package/dist/components/command-palette.css +138 -117
- package/dist/components/content.css +257 -251
- package/dist/components/copy.css +72 -44
- package/dist/components/datatable.css +423 -181
- package/dist/components/date-picker.css +135 -104
- package/dist/components/empty.css +68 -65
- package/dist/components/feedback.css +201 -183
- package/dist/components/form-validate.css +120 -0
- package/dist/components/form-validate.mjs +3 -0
- package/dist/components/form.css +150 -127
- package/dist/components/icon.css +102 -0
- package/dist/components/icon.mjs +3 -0
- package/dist/components/input.css +159 -104
- package/dist/components/kb-agent.css +188 -173
- package/dist/components/kb-data.css +257 -253
- package/dist/components/kb-ground.css +197 -185
- package/dist/components/kb-ingest.css +334 -350
- package/dist/components/kb-ops.css +265 -259
- package/dist/components/kb-perm.css +260 -271
- package/dist/components/kb-search.css +317 -360
- package/dist/components/kb.css +120 -109
- package/dist/components/layout.css +85 -82
- package/dist/components/material-chinese.css +73 -0
- package/dist/components/material-soviet.css +76 -0
- package/dist/components/material.css +275 -0
- package/dist/components/media.css +220 -166
- package/dist/components/mentions.css +189 -0
- package/dist/components/mentions.mjs +3 -0
- package/dist/components/menu.css +113 -105
- package/dist/components/modal.css +107 -112
- package/dist/components/nav.css +118 -115
- package/dist/components/notification.css +238 -174
- package/dist/components/pagination.css +56 -53
- package/dist/components/panel.css +66 -63
- package/dist/components/panel.mjs +1 -0
- package/dist/components/pill.css +81 -71
- package/dist/components/popover.css +67 -53
- package/dist/components/scroll-area.css +113 -110
- package/dist/components/segmented.css +146 -143
- package/dist/components/select.css +206 -186
- package/dist/components/sidebar.css +137 -127
- package/dist/components/slider.css +117 -114
- package/dist/components/split-pane.css +112 -109
- package/dist/components/stat.css +112 -106
- package/dist/components/steps.css +109 -103
- package/dist/components/switch.css +138 -134
- package/dist/components/table.css +131 -107
- package/dist/components/tabs.css +114 -108
- package/dist/components/tag-input.css +48 -133
- package/dist/components/tag.css +81 -71
- package/dist/components/theme-switcher.css +105 -0
- package/dist/components/theme-switcher.mjs +3 -0
- package/dist/components/toast.css +100 -86
- package/dist/components/toolbar.css +45 -42
- package/dist/components/tooltip.css +102 -43
- package/dist/components/tooltip.mjs +1 -0
- package/dist/components/tree-select.css +416 -0
- package/dist/components/tree-select.mjs +3 -0
- package/dist/components/upload.css +135 -92
- package/dist/fonts/LICENSES/ark-pixel/OFL.txt +96 -0
- package/dist/fonts/LICENSES/cubic-11/OFL.txt +108 -0
- package/dist/fonts/LICENSES/galmuri/LICENSE.txt +93 -0
- package/dist/fonts/OFL.txt +96 -0
- package/dist/fonts/README.md +14 -0
- package/dist/fonts/fusion-pixel-12px-zh-hans.woff2 +0 -0
- package/dist/index.d.mts +28 -14
- package/dist/index.mjs +20705 -9601
- package/dist/react.d.mts +91 -0
- package/dist/react.mjs +8208 -0
- package/dist/registry.json +130 -13
- package/dist/tokens/chinese.css +44 -0
- package/dist/tokens/colors.css +365 -1222
- package/dist/tokens/design.css +109 -0
- package/dist/tokens/dtcg.json +11198 -0
- package/dist/tokens/figma.variables.json +7017 -0
- package/dist/tokens/icon-masks.css +78 -0
- package/dist/tokens/pixel.css +50 -0
- package/dist/tokens/soviet.css +44 -0
- package/dist/tokens/style-profiles.css +36 -547
- package/dist/tokens/themes.json +308 -0
- package/dist/tokens/tokens-studio.json +6728 -0
- package/dist/tokens/typography.css +21 -18
- package/dist/tokens.css +1555 -1801
- package/dist/ui.css +11975 -9831
- package/dist/vue.d.mts +344 -0
- package/dist/vue.mjs +7781 -0
- package/docs/spec/ai-input-experience.md +75 -0
- package/docs/spec/ai-native.md +238 -147
- package/docs/spec/design-philosophy.md +189 -0
- package/docs/spec/design-primitives.md +196 -0
- package/docs/spec/kb-family.md +147 -115
- package/package.json +43 -8
- package/dist/retro-effects.css +0 -255
- package/dist/tokens/retro-effects.css +0 -255
- package/docs/research/2026-10-03-ai-kb-components.md +0 -392
- package/docs/research/2026-10-03-kb-permissions.md +0 -992
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@layer icen.components {
|
|
1
2
|
/*
|
|
2
3
|
* @icen.ai/ui — kb-perm.css(权限域:kb-acl / kb-who-can / kb-access / kb-audit / kb-visibility)
|
|
3
4
|
*
|
|
@@ -5,440 +6,428 @@
|
|
|
5
6
|
* - 对授权侧诚实(身份/过滤层徽标/安全计数/审批路由),对受限侧沉默(被裁数量/标题/分数一律不渲染)
|
|
6
7
|
* - 「不知道」与「不能说」不可区分;deny 一票否决置顶;break-glass 行警示粒度 ≥ 常规
|
|
7
8
|
*
|
|
8
|
-
* 共享原语来自 kb.css(.kb-row/.kb-num/.kb-meta/.kb-dot/.kb-badge/.kb-chip/.kb-empty/.kb-notice)。
|
|
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)。
|
|
9
10
|
* 本文件三段分界,各组件作者只填自己的段。
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
/* ══════════════ 段A · kb-acl + kb-who-can(文档权限面板 + 有效权限检查器)══════════════ */
|
|
13
14
|
|
|
14
15
|
/* —— kb-acl:继承 banner / grants 双区 / deny 置顶 / system 不可删 —— */
|
|
15
|
-
.kb-acl { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
|
16
|
+
.icen-kb-acl { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
|
16
17
|
|
|
17
|
-
.kb-acl-inherit {
|
|
18
|
+
.icen-kb-acl-inherit {
|
|
18
19
|
display: flex; align-items: center; gap: 8px;
|
|
19
20
|
padding: 7px 10px;
|
|
20
|
-
font-size: 12px; color: var(--token-text-muted);
|
|
21
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
22
|
-
background: color-mix(in srgb, var(--token-bg) 55%, transparent);
|
|
21
|
+
font-size: 12px; color: var(--icen-token-text-muted);
|
|
22
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
23
|
+
background: color-mix(in srgb, var(--icen-token-bg) 55%, transparent);
|
|
23
24
|
}
|
|
24
|
-
.kb-acl-inherit .kb-acl-chain-link { color: var(--token-text-faint); }
|
|
25
|
-
.kb-acl-inherit.is-broken {
|
|
26
|
-
color: var(--token-warning);
|
|
27
|
-
border-color: color-mix(in srgb, var(--token-warning) 45%, transparent);
|
|
28
|
-
background: color-mix(in srgb, var(--token-warning) 6%, transparent);
|
|
25
|
+
.icen-kb-acl-inherit .icen-kb-acl-chain-link { color: var(--icen-token-text-faint); }
|
|
26
|
+
.icen-kb-acl-inherit.is-broken {
|
|
27
|
+
color: var(--icen-token-warning);
|
|
28
|
+
border-color: color-mix(in srgb, var(--icen-token-warning) 45%, transparent);
|
|
29
|
+
background: color-mix(in srgb, var(--icen-token-warning) 6%, transparent);
|
|
29
30
|
}
|
|
30
|
-
.kb-acl-inherit.is-partial { color: var(--token-info); }
|
|
31
|
+
.icen-kb-acl-inherit.is-partial { color: var(--icen-token-info); }
|
|
31
32
|
|
|
32
|
-
.kb-acl-grant {
|
|
33
|
+
.icen-kb-acl-grant {
|
|
33
34
|
display: flex; align-items: center; gap: 8px;
|
|
34
35
|
min-height: 28px; padding: 2px 0;
|
|
35
|
-
border-bottom: 1px solid var(--token-line-soft);
|
|
36
|
+
border-bottom: 1px solid var(--icen-token-line-soft);
|
|
36
37
|
}
|
|
37
|
-
.kb-acl-grant:last-child { border-bottom: none; }
|
|
38
|
-
.kb-acl-grant.is-deny { order: -1; }
|
|
39
|
-
.kb-acl-grant.is-deny .kb-acl-role { color: var(--token-error
|
|
40
|
-
.kb-acl-grant.is-expiring .kb-acl-meta { color: var(--token-warning); }
|
|
41
|
-
.kb-acl-grant.is-system .kb-acl-remove { display: none; }
|
|
38
|
+
.icen-kb-acl-grant:last-child { border-bottom: none; }
|
|
39
|
+
.icen-kb-acl-grant.is-deny { order: -1; }
|
|
40
|
+
.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
|
+
.icen-kb-acl-grant.is-expiring .icen-kb-acl-meta { color: var(--icen-token-warning); }
|
|
42
|
+
.icen-kb-acl-grant.is-system .icen-kb-acl-remove { display: none; }
|
|
42
43
|
|
|
43
|
-
.kb-acl-subject { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; font-size: 12.5px; color: var(--token-text); }
|
|
44
|
-
.kb-acl-subject[data-kind='group']::before,
|
|
45
|
-
.kb-acl-subject[data-kind='link']::before {
|
|
44
|
+
.icen-kb-acl-subject { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; font-size: 12.5px; color: var(--icen-token-text); }
|
|
45
|
+
.icen-kb-acl-subject[data-icen-kind='group']::before,
|
|
46
|
+
.icen-kb-acl-subject[data-icen-kind='link']::before {
|
|
46
47
|
content: ''; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
|
|
47
|
-
background: var(--token-text-faint);
|
|
48
|
+
background: var(--icen-token-text-faint);
|
|
48
49
|
}
|
|
49
|
-
.kb-acl-role { flex: 0 0 auto; }
|
|
50
|
-
.kb-acl-meta { flex: 0 1 auto; margin-
|
|
51
|
-
.kb-acl-remove { flex: 0 0 auto; }
|
|
52
|
-
.kb-acl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
|
|
50
|
+
.icen-kb-acl-role { flex: 0 0 auto; }
|
|
51
|
+
.icen-kb-acl-meta { flex: 0 1 auto; margin-inline-start: auto; font-size: 11.5px; color: var(--icen-token-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
52
|
+
.icen-kb-acl-remove { flex: 0 0 auto; }
|
|
53
|
+
.icen-kb-acl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
|
|
53
54
|
|
|
54
55
|
/* —— kb-who-can:view-as 检查器(结论 + 扁平原因链)—— */
|
|
55
|
-
.kb-whocan { display: flex; flex-direction: column; gap: 10px; min-
|
|
56
|
-
.kb-whocan-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
57
|
-
.kb-whocan-result { display: flex; flex-direction: column; gap: 8px; }
|
|
58
|
-
.kb-whocan-verdict { font-size: 13px; font-weight: 600; color: var(--token-text); }
|
|
59
|
-
.kb-whocan-result.is-denied .kb-whocan-verdict { color: var(--token-error
|
|
60
|
-
.kb-whocan-deniedby {
|
|
56
|
+
.icen-kb-whocan { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
|
|
57
|
+
.icen-kb-whocan-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
58
|
+
.icen-kb-whocan-result { display: flex; flex-direction: column; gap: 8px; }
|
|
59
|
+
.icen-kb-whocan-verdict { font-size: 13px; font-weight: 600; color: var(--icen-token-text); }
|
|
60
|
+
.icen-kb-whocan-result.is-denied .icen-kb-whocan-verdict { color: var(--icen-token-error); }
|
|
61
|
+
.icen-kb-whocan-deniedby {
|
|
61
62
|
padding: 6px 10px; font-size: 12px;
|
|
62
|
-
color: var(--token-error
|
|
63
|
-
border-
|
|
64
|
-
background: color-mix(in srgb, var(--token-error
|
|
65
|
-
border-radius:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
.kb-whocan-
|
|
69
|
-
.kb-whocan-reason:
|
|
70
|
-
.kb-whocan-reason
|
|
71
|
-
.kb-whocan-
|
|
63
|
+
color: var(--icen-token-error);
|
|
64
|
+
border-inline-start: 2px solid var(--icen-token-error);
|
|
65
|
+
background: color-mix(in srgb, var(--icen-token-error) 6%, transparent);
|
|
66
|
+
border-start-end-radius: var(--icen-radius-sm);
|
|
67
|
+
border-end-end-radius: var(--icen-radius-sm);
|
|
68
|
+
}
|
|
69
|
+
.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: 26px; padding: 2px 0; border-bottom: 1px solid var(--icen-token-line-soft); font-size: 12.5px; }
|
|
71
|
+
.icen-kb-whocan-reason:last-child { border-bottom: none; }
|
|
72
|
+
.icen-kb-whocan-reason .icen-kb-meta { margin-inline-start: auto; }
|
|
73
|
+
.icen-kb-whocan-rule { font-size: 11.5px; color: var(--icen-token-text-faint); }
|
|
72
74
|
|
|
73
75
|
/* —— 段A 装配件细化:kb-acl head / 区块标题 / 动作钮 / 移除钮 —— */
|
|
74
|
-
.kb-acl-head { display: flex; align-items: center; gap: 8px; min-
|
|
75
|
-
.kb-acl-title {
|
|
76
|
+
.icen-kb-acl-head { display: flex; align-items: center; gap: 8px; min-inline-size: 0; }
|
|
77
|
+
.icen-kb-acl-title {
|
|
76
78
|
display: inline-flex; align-items: center; gap: 6px;
|
|
77
|
-
flex: 1 1 auto; min-
|
|
78
|
-
font-size: 13px; font-weight: 600; color: var(--token-text);
|
|
79
|
+
flex: 1 1 auto; min-inline-size: 0;
|
|
80
|
+
font-size: 13px; font-weight: 600; color: var(--icen-token-text);
|
|
79
81
|
}
|
|
80
|
-
.kb-acl-title svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--token-text-faint); }
|
|
81
|
-
.kb-acl-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
82
|
-
.kb-acl-act {
|
|
82
|
+
.icen-kb-acl-title svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--icen-token-text-faint); }
|
|
83
|
+
.icen-kb-acl-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
84
|
+
.icen-kb-acl-act {
|
|
83
85
|
flex: 0 0 auto; height: 24px; padding: 0 10px;
|
|
84
86
|
font: inherit; font-size: 12px; line-height: 1;
|
|
85
|
-
color: var(--token-text-muted);
|
|
87
|
+
color: var(--icen-token-text-muted);
|
|
86
88
|
background: transparent;
|
|
87
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
89
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
88
90
|
cursor: pointer;
|
|
89
91
|
transition: color 0.16s ease-out, background-color 0.16s ease-out, border-color 0.16s ease-out;
|
|
90
92
|
}
|
|
91
|
-
.kb-acl-act:hover { color: var(--token-text); border-color: var(--token-line); }
|
|
93
|
+
.icen-kb-acl-act:hover { color: var(--icen-token-text); border-color: var(--icen-token-line); }
|
|
92
94
|
/* 恢复继承将丢弃本项自定义授权——破坏性动作用描边式 danger(克制,不做实底) */
|
|
93
|
-
.kb-acl-act.is-danger {
|
|
94
|
-
color: var(--token-error
|
|
95
|
-
border-color: color-mix(in srgb, var(--token-error
|
|
95
|
+
.icen-kb-acl-act.is-danger {
|
|
96
|
+
color: var(--icen-token-error);
|
|
97
|
+
border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent);
|
|
96
98
|
}
|
|
97
|
-
.kb-acl-act.is-danger:hover {
|
|
98
|
-
background: color-mix(in srgb, var(--token-error
|
|
99
|
-
border-color: color-mix(in srgb, var(--token-error
|
|
99
|
+
.icen-kb-acl-act.is-danger:hover {
|
|
100
|
+
background: color-mix(in srgb, var(--icen-token-error) 6%, transparent);
|
|
101
|
+
border-color: color-mix(in srgb, var(--icen-token-error) 60%, transparent);
|
|
100
102
|
}
|
|
101
103
|
/* 授权区容器走 flex 列:deny 行的 order:-1(骨架已置)真正生效,区块标题恒在其前 */
|
|
102
|
-
.kb-acl-grants, .kb-acl-links { display: flex; flex-direction: column; }
|
|
103
|
-
.kb-acl-sec { order: -2; font-size: 11.5px; letter-spacing: 0.3px; color: var(--token-text-faint); }
|
|
104
|
-
.kb-acl-note { font-size: 11px; }
|
|
105
|
-
.kb-acl-none { padding: 4px 0; }
|
|
106
|
-
.kb-acl-remove {
|
|
104
|
+
.icen-kb-acl-grants, .icen-kb-acl-links { display: flex; flex-direction: column; }
|
|
105
|
+
.icen-kb-acl-sec { order: -2; font-size: 11.5px; letter-spacing: 0.3px; color: var(--icen-token-text-faint); }
|
|
106
|
+
.icen-kb-acl-note { font-size: 11px; }
|
|
107
|
+
.icen-kb-acl-none { padding: 4px 0; }
|
|
108
|
+
.icen-kb-acl-remove {
|
|
107
109
|
display: inline-flex; align-items: center; justify-content: center;
|
|
108
110
|
width: 22px; height: 22px; padding: 0;
|
|
109
111
|
font: inherit; font-size: 13px; line-height: 1;
|
|
110
|
-
color: var(--token-text-faint);
|
|
111
|
-
background: transparent; border: none; border-radius: var(--radius-sm
|
|
112
|
+
color: var(--icen-token-text-faint);
|
|
113
|
+
background: transparent; border: none; border-radius: var(--icen-radius-sm);
|
|
112
114
|
cursor: pointer;
|
|
113
115
|
transition: color 0.16s ease-out, background-color 0.16s ease-out;
|
|
114
116
|
}
|
|
115
|
-
.kb-acl-remove:hover { color: var(--token-error
|
|
117
|
+
.icen-kb-acl-remove:hover { color: var(--icen-token-error); background: color-mix(in srgb, var(--icen-token-error) 7%, transparent); }
|
|
116
118
|
/* 面板主行动(accent 线框——面板内唯一 accent 级操作) */
|
|
117
|
-
.kb-acl-grant-btn {
|
|
119
|
+
.icen-kb-acl-grant-btn {
|
|
118
120
|
flex: 0 0 auto; height: 26px; padding: 0 12px;
|
|
119
121
|
font: inherit; font-size: 12.5px; line-height: 1;
|
|
120
|
-
color: var(--token-accent);
|
|
122
|
+
color: var(--icen-token-accent-text);
|
|
121
123
|
background: transparent;
|
|
122
|
-
border: 1px solid color-mix(in srgb, var(--token-accent) 45%, transparent);
|
|
123
|
-
border-radius: var(--radius-sm
|
|
124
|
+
border: 1px solid color-mix(in srgb, var(--icen-token-accent) 45%, transparent);
|
|
125
|
+
border-radius: var(--icen-radius-sm);
|
|
124
126
|
cursor: pointer;
|
|
125
127
|
transition: background-color 0.16s ease-out, border-color 0.16s ease-out;
|
|
126
128
|
}
|
|
127
|
-
.kb-acl-grant-btn:hover { background: color-mix(in srgb, var(--token-accent) 8%, transparent); }
|
|
128
|
-
.kb-acl-remove:focus-visible, .kb-acl-act:focus-visible, .kb-acl-grant-btn:focus-visible {
|
|
129
|
-
outline: 2px solid var(--token-accent); outline-offset: -2px;
|
|
129
|
+
.icen-kb-acl-grant-btn:hover { background: color-mix(in srgb, var(--icen-token-accent) 8%, transparent); }
|
|
130
|
+
.icen-kb-acl-remove:focus-visible, .icen-kb-acl-act:focus-visible, .icen-kb-acl-grant-btn:focus-visible {
|
|
131
|
+
outline: 2px solid var(--icen-token-accent); outline-offset: -2px;
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
/* —— 段A 装配件细化:kb-who-can 身份下拉 / 检查钮 / 原因链徽标 —— */
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
color: var(--token-text);
|
|
137
|
-
background: var(--token-bg);
|
|
138
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm, 6px);
|
|
139
|
-
cursor: pointer;
|
|
140
|
-
}
|
|
141
|
-
.kb-whocan-user:focus-visible { outline: none; border-color: var(--token-accent); }
|
|
142
|
-
.kb-whocan-check {
|
|
135
|
+
/* 弹层选择器(icen-select)域钩子:面样式随 select.css,此处只管布局 */
|
|
136
|
+
.icen-kb-whocan-user { flex: 0 1 240px; }
|
|
137
|
+
.icen-kb-whocan-check {
|
|
143
138
|
height: 26px; padding: 0 12px;
|
|
144
139
|
font: inherit; font-size: 12.5px; line-height: 1;
|
|
145
|
-
color: var(--token-text-muted);
|
|
140
|
+
color: var(--icen-token-text-muted);
|
|
146
141
|
background: transparent;
|
|
147
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
142
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
148
143
|
cursor: pointer;
|
|
149
144
|
transition: color 0.16s ease-out, background-color 0.16s ease-out, border-color 0.16s ease-out;
|
|
150
145
|
}
|
|
151
|
-
.kb-whocan-check:hover:not(:disabled) { color: var(--token-text); background: var(--token-bg-soft); border-color: var(--token-line); }
|
|
152
|
-
.kb-whocan-check:focus-visible { outline: 2px solid var(--token-accent); outline-offset: -2px; }
|
|
153
|
-
.kb-whocan-user:disabled, .kb-whocan-check:disabled { opacity: var(--icen-disabled-opacity
|
|
154
|
-
.kb-whocan-source { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--token-text); }
|
|
155
|
-
.kb-whocan-reason .kb-badge { flex: 0 0 auto; }
|
|
146
|
+
.icen-kb-whocan-check:hover:not(:disabled) { color: var(--icen-token-text); background: var(--icen-token-bg-soft); border-color: var(--icen-token-line); }
|
|
147
|
+
.icen-kb-whocan-check:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: -2px; }
|
|
148
|
+
.icen-kb-whocan-user:disabled, .icen-kb-whocan-check:disabled { opacity: var(--icen-disabled-opacity); cursor: not-allowed; }
|
|
149
|
+
.icen-kb-whocan-source { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--icen-token-text); }
|
|
150
|
+
.icen-kb-whocan-reason .icen-kb-badge { flex: 0 0 auto; }
|
|
156
151
|
/* deny 来源:红色 badge(克制——只落在徽标层),主体文本弱化 */
|
|
157
|
-
.kb-whocan-reason.is-deny .kb-badge {
|
|
158
|
-
color: var(--token-error
|
|
159
|
-
border-color: color-mix(in srgb, var(--token-error
|
|
152
|
+
.icen-kb-whocan-reason.is-deny .icen-kb-badge {
|
|
153
|
+
color: var(--icen-token-error);
|
|
154
|
+
border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent);
|
|
160
155
|
}
|
|
161
|
-
.kb-whocan-reason.is-deny .kb-whocan-source { color: var(--token-text-muted); }
|
|
162
|
-
.kb-whocan-role { flex: 0 0 auto; }
|
|
163
|
-
.kb-whocan-none { padding: 4px 0; }
|
|
164
|
-
.kb-whocan-expires { font-size: 11px; }
|
|
156
|
+
.icen-kb-whocan-reason.is-deny .icen-kb-whocan-source { color: var(--icen-token-text-muted); }
|
|
157
|
+
.icen-kb-whocan-role { flex: 0 0 auto; }
|
|
158
|
+
.icen-kb-whocan-none { padding: 4px 0; }
|
|
159
|
+
.icen-kb-whocan-expires { font-size: 11px; }
|
|
165
160
|
|
|
166
161
|
/* ══════════════ 段B · kb-access + kb-audit(访问申请流 + 审计时间线)══════════════ */
|
|
167
162
|
|
|
168
163
|
/* —— kb-access:被拒五件套 + 状态机徽章族 —— */
|
|
169
|
-
.kb-access { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
|
|
170
|
-
.kb-access-denied { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--token-line-soft); border-radius: var(--radius-md
|
|
171
|
-
.kb-access-title { font-size: 13.5px; font-weight: 600; color: var(--token-text); }
|
|
172
|
-
.kb-access-
|
|
173
|
-
.kb-access-
|
|
174
|
-
.kb-access-
|
|
175
|
-
.kb-access-
|
|
176
|
-
.kb-access-form
|
|
177
|
-
.kb-access-
|
|
178
|
-
.kb-access-state
|
|
179
|
-
.kb-access-state .kb-chip[data-state='
|
|
180
|
-
.kb-access-state .kb-chip[data-state='
|
|
181
|
-
.kb-access-state .kb-chip[data-state='
|
|
164
|
+
.icen-kb-access { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
|
|
165
|
+
.icen-kb-access-denied { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-md); }
|
|
166
|
+
.icen-kb-access-title { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--icen-token-text); }
|
|
167
|
+
.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: 12.5px; line-height: 1.7; color: var(--icen-token-text-muted); }
|
|
169
|
+
.icen-kb-access-owner { font-size: 12px; color: var(--icen-token-text-faint); }
|
|
170
|
+
.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: 12px 14px; border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-md); }
|
|
172
|
+
.icen-kb-access-form[hidden] { display: none; }
|
|
173
|
+
.icen-kb-access-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--icen-token-text-muted); }
|
|
174
|
+
.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
|
+
.icen-kb-access-state .icen-kb-chip[data-icen-state='expiring'],
|
|
176
|
+
.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
|
+
.icen-kb-access-state .icen-kb-chip[data-icen-state='revoked'] { color: var(--icen-token-text-faint); }
|
|
182
178
|
/* denied 不做刺眼红色终态(业界静默默契)——中性呈现 */
|
|
183
|
-
.kb-access-queue { display: flex; flex-direction: column; gap: 8px; }
|
|
184
|
-
.kb-access-req { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
185
|
-
.kb-access-req .kb-access-req-actions { margin-
|
|
179
|
+
.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: 8px 10px; border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm); font-size: 12.5px; }
|
|
181
|
+
.icen-kb-access-req .icen-kb-access-req-actions { margin-inline-start: auto; display: inline-flex; gap: 6px; }
|
|
186
182
|
|
|
187
183
|
/* —— kb-audit:通道过滤 + 异味节 + 时间线 —— */
|
|
188
|
-
.kb-audit { display: flex; flex-direction: column; gap: 10px; min-
|
|
189
|
-
.kb-audit-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
190
|
-
.kb-audit-channels { display: inline-flex; gap: 6px; flex-wrap: wrap; }
|
|
191
|
-
.kb-audit-channels .kb-chip[aria-pressed='true'] { color: var(--token-accent); border-color: var(--token-accent); }
|
|
192
|
-
.kb-audit-hygiene { display: flex; flex-direction: column; gap: 6px; }
|
|
193
|
-
.kb-hygiene { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 7px 10px; font-size: 12.5px; border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
194
|
-
.kb-hygiene.is-high { border-color: color-mix(in srgb, var(--token-error
|
|
195
|
-
.kb-hygiene.is-medium { border-color: color-mix(in srgb, var(--token-warning) 40%, transparent); }
|
|
196
|
-
.kb-hygiene .kb-hygiene-act { margin-
|
|
197
|
-
.kb-audit-list { list-style: none; margin: 0; padding: 0; }
|
|
198
|
-
.kb-audit-entry { display: flex; align-items: baseline; gap: 8px; min-height: 28px; padding: 2px 0; border-bottom: 1px solid var(--token-line-soft); font-size: 12.5px; }
|
|
199
|
-
.kb-audit-entry:last-child { border-bottom: none; }
|
|
200
|
-
.kb-audit-entry .kb-audit-detail { flex: 1 1 auto; min-width: 0; color: var(--token-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
184
|
+
.icen-kb-audit { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
|
|
185
|
+
.icen-kb-audit-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
186
|
+
.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); }
|
|
188
|
+
.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: 7px 10px; font-size: 12.5px; border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm); }
|
|
190
|
+
.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
|
+
.icen-kb-hygiene.is-medium { border-color: color-mix(in srgb, var(--icen-token-warning) 40%, transparent); }
|
|
192
|
+
.icen-kb-hygiene .icen-kb-hygiene-act { margin-inline-start: auto; }
|
|
193
|
+
.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: 28px; padding: 2px 0; border-bottom: 1px solid var(--icen-token-line-soft); font-size: 12.5px; }
|
|
195
|
+
.icen-kb-audit-entry:last-child { border-bottom: none; }
|
|
196
|
+
.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; }
|
|
201
197
|
/* break-glass:审计粒度 ≥ 常规 + 常驻警示 */
|
|
202
|
-
.kb-audit-entry.is-breakglass { padding: 4px 8px; border-radius: var(--radius-sm
|
|
203
|
-
.kb-audit-entry.is-breakglass .kb-audit-action { color: var(--token-error
|
|
204
|
-
.kb-audit-actor[data-kind='system'], .kb-audit-actor[data-kind='app'] { color: var(--token-text-faint); }
|
|
198
|
+
.icen-kb-audit-entry.is-breakglass { padding: 4px 8px; border-radius: var(--icen-radius-sm); background: color-mix(in srgb, var(--icen-token-error) 7%, transparent); border-bottom-color: transparent; }
|
|
199
|
+
.icen-kb-audit-entry.is-breakglass .icen-kb-audit-action { color: var(--icen-token-error); border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent); }
|
|
200
|
+
.icen-kb-audit-actor[data-icen-kind='system'], .icen-kb-audit-actor[data-icen-kind='app'] { color: var(--icen-token-text-faint); }
|
|
205
201
|
|
|
206
202
|
/* —— 段B 细化 · kb-access 构件(按钮/表单/角色 chip/队列行)—— */
|
|
207
203
|
|
|
208
204
|
/* 主作用(accent 稀缺资源:被拒五件套的「申请访问」/表单的「提交申请」各为其视图唯一 accent 钮) */
|
|
209
|
-
.kb-access-btn {
|
|
205
|
+
.icen-kb-access-btn {
|
|
210
206
|
display: inline-flex; align-items: center; gap: 6px;
|
|
211
207
|
font: inherit; font-size: 12.5px;
|
|
212
|
-
color: var(--token-on-accent
|
|
213
|
-
background: var(--token-accent);
|
|
214
|
-
border: none; border-radius: var(--radius-sm
|
|
208
|
+
color: var(--icen-token-on-accent);
|
|
209
|
+
background: var(--icen-token-accent-strong);
|
|
210
|
+
border: none; border-radius: var(--icen-radius-sm);
|
|
215
211
|
padding: 6px 14px; cursor: pointer;
|
|
216
212
|
}
|
|
217
|
-
.kb-access-btn:hover { background: var(--token-accent-deep
|
|
218
|
-
.kb-access-btn:focus-visible, .kb-access-act:focus-visible { outline: 2px solid var(--token-accent); outline-offset: 2px; }
|
|
219
|
-
.kb-access-btn svg { width: 12px; height: 12px; flex: 0 0 auto; }
|
|
213
|
+
.icen-kb-access-btn:hover { background: var(--icen-token-accent-deep); }
|
|
214
|
+
.icen-kb-access-btn:focus-visible, .icen-kb-access-act:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 2px; }
|
|
215
|
+
.icen-kb-access-btn svg { width: 12px; height: 12px; flex: 0 0 auto; }
|
|
220
216
|
/* 次作用 ghost(切换身份 / 批准 / 拒绝):永不用 accent,避免与主行动争夺 */
|
|
221
|
-
.kb-access-btn--ghost {
|
|
222
|
-
color: var(--token-text-muted);
|
|
217
|
+
.icen-kb-access-btn--ghost {
|
|
218
|
+
color: var(--icen-token-text-muted);
|
|
223
219
|
background: transparent;
|
|
224
|
-
border: 1px solid var(--token-line-soft);
|
|
220
|
+
border: 1px solid var(--icen-token-line-soft);
|
|
225
221
|
}
|
|
226
|
-
.kb-access-btn--ghost:hover {
|
|
227
|
-
color: var(--token-text);
|
|
228
|
-
border-color: var(--token-line);
|
|
229
|
-
background: var(--token-bg-soft);
|
|
222
|
+
.icen-kb-access-btn--ghost:hover {
|
|
223
|
+
color: var(--icen-token-text);
|
|
224
|
+
border-color: var(--icen-token-line);
|
|
225
|
+
background: var(--icen-token-bg-soft);
|
|
230
226
|
}
|
|
231
227
|
/* 状态行文字钮(申请续期/重新申请):链接级弱化,不用按钮盒子 */
|
|
232
|
-
.kb-access-act {
|
|
228
|
+
.icen-kb-access-act {
|
|
233
229
|
font: inherit; font-size: 12px;
|
|
234
|
-
color: var(--token-accent);
|
|
230
|
+
color: var(--icen-token-accent);
|
|
235
231
|
background: none; border: none; padding: 0;
|
|
236
232
|
cursor: pointer; text-decoration: underline;
|
|
237
233
|
text-underline-offset: 3px;
|
|
238
234
|
}
|
|
239
|
-
.kb-access-act:hover { color: var(--token-accent-deep
|
|
235
|
+
.icen-kb-access-act:hover { color: var(--icen-token-accent-deep); }
|
|
240
236
|
|
|
241
237
|
/* 表单控件:理由 / 角色三选 / 时长 */
|
|
242
|
-
.kb-access-reason {
|
|
238
|
+
.icen-kb-access-reason {
|
|
243
239
|
font: inherit; font-size: 12.5px; line-height: 1.6;
|
|
244
|
-
color: var(--token-text);
|
|
245
|
-
background: var(--token-bg);
|
|
246
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
240
|
+
color: var(--icen-token-text);
|
|
241
|
+
background: var(--icen-token-bg);
|
|
242
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
247
243
|
padding: 7px 9px; resize: vertical; min-height: 56px;
|
|
248
244
|
}
|
|
249
|
-
.kb-access-reason:focus-visible, .kb-access-duration:focus-visible,
|
|
250
|
-
.kb-access-approve-role:focus-visible, .kb-access-note:focus-visible {
|
|
251
|
-
outline: 2px solid var(--token-accent); outline-offset: 1px;
|
|
245
|
+
.icen-kb-access-reason:focus-visible, .icen-kb-access-duration:focus-visible,
|
|
246
|
+
.icen-kb-access-approve-role:focus-visible, .icen-kb-access-note:focus-visible {
|
|
247
|
+
outline: 2px solid var(--icen-token-accent); outline-offset: 1px;
|
|
252
248
|
}
|
|
253
|
-
.kb-access-roles { display: inline-flex; gap: 6px; flex-wrap: wrap; }
|
|
254
|
-
.kb-access-role {
|
|
249
|
+
.icen-kb-access-roles { display: inline-flex; gap: 6px; flex-wrap: wrap; }
|
|
250
|
+
.icen-kb-access-role {
|
|
255
251
|
display: inline-flex; align-items: center;
|
|
256
252
|
font: inherit; font-size: 12px;
|
|
257
|
-
color: var(--token-text-muted);
|
|
258
|
-
background: var(--token-bg);
|
|
259
|
-
border: 1px solid var(--token-line-soft);
|
|
260
|
-
border-radius:
|
|
253
|
+
color: var(--icen-token-text-muted);
|
|
254
|
+
background: var(--icen-token-bg);
|
|
255
|
+
border: 1px solid var(--icen-token-line-soft);
|
|
256
|
+
border-radius: var(--icen-radius-full);
|
|
261
257
|
padding: 3px 10px; cursor: pointer;
|
|
262
258
|
}
|
|
263
|
-
.kb-access-role:hover { border-color: var(--token-line); color: var(--token-text); }
|
|
264
|
-
.kb-access-role.is-on {
|
|
265
|
-
color: var(--token-accent);
|
|
266
|
-
border-color: color-mix(in srgb, var(--token-accent) 50%, transparent);
|
|
267
|
-
background: var(--token-accent-subtle
|
|
268
|
-
}
|
|
269
|
-
.kb-access-duration-row { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--token-text-muted); }
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm, 6px);
|
|
275
|
-
padding: 3px 6px; cursor: pointer;
|
|
276
|
-
}
|
|
277
|
-
.kb-access-route { align-self: flex-start; }
|
|
278
|
-
.kb-access-submit {
|
|
259
|
+
.icen-kb-access-role:hover { border-color: var(--icen-token-line); color: var(--icen-token-text); }
|
|
260
|
+
.icen-kb-access-role.is-on {
|
|
261
|
+
color: var(--icen-token-accent);
|
|
262
|
+
border-color: color-mix(in srgb, var(--icen-token-accent) 50%, transparent);
|
|
263
|
+
background: var(--icen-token-accent-subtle);
|
|
264
|
+
}
|
|
265
|
+
.icen-kb-access-duration-row { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--icen-token-text-muted); }
|
|
266
|
+
/* 弹层选择器(icen-select)域钩子:面样式随 select.css,此处只管布局 */
|
|
267
|
+
.icen-kb-access-duration { flex: 0 1 150px; }
|
|
268
|
+
.icen-kb-access-route { align-self: flex-start; }
|
|
269
|
+
.icen-kb-access-submit {
|
|
279
270
|
align-self: flex-start;
|
|
280
271
|
font: inherit; font-size: 12.5px;
|
|
281
|
-
color: var(--token-on-accent
|
|
282
|
-
background: var(--token-accent);
|
|
283
|
-
border: none; border-radius: var(--radius-sm
|
|
272
|
+
color: var(--icen-token-on-accent);
|
|
273
|
+
background: var(--icen-token-accent-strong);
|
|
274
|
+
border: none; border-radius: var(--icen-radius-sm);
|
|
284
275
|
padding: 6px 14px; cursor: pointer;
|
|
285
276
|
}
|
|
286
|
-
.kb-access-submit:hover { background: var(--token-accent-deep
|
|
287
|
-
.kb-access-countdown { font-size: 11.5px; color: var(--token-text-muted); }
|
|
277
|
+
.icen-kb-access-submit:hover { background: var(--icen-token-accent-deep); }
|
|
278
|
+
.icen-kb-access-countdown { font-size: 11.5px; color: var(--icen-token-text-muted); }
|
|
288
279
|
|
|
289
280
|
/* 队列行(approver 视角) */
|
|
290
|
-
.kb-access-req-user { font-weight: 600; color: var(--token-text); }
|
|
291
|
-
.kb-access-req-resource { color: var(--token-text); }
|
|
292
|
-
.kb-access-req-at { font-size: 11px; color: var(--token-text-faint); }
|
|
293
|
-
.kb-access-req-reason { flex: 1 1 160px; min-width: 120px; }
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
background: var(--token-bg);
|
|
298
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm, 6px);
|
|
299
|
-
padding: 3px 6px; cursor: pointer;
|
|
300
|
-
}
|
|
301
|
-
.kb-access-note {
|
|
281
|
+
.icen-kb-access-req-user { font-weight: 600; color: var(--icen-token-text); }
|
|
282
|
+
.icen-kb-access-req-resource { color: var(--icen-token-text); }
|
|
283
|
+
.icen-kb-access-req-at { font-size: 11px; color: var(--icen-token-text-faint); }
|
|
284
|
+
.icen-kb-access-req-reason { flex: 1 1 160px; min-width: 120px; }
|
|
285
|
+
/* 弹层选择器(icen-select)域钩子:面样式随 select.css,此处只管布局 */
|
|
286
|
+
.icen-kb-access-approve-role { flex: 0 1 auto; }
|
|
287
|
+
.icen-kb-access-note {
|
|
302
288
|
font: inherit; font-size: 12px;
|
|
303
|
-
color: var(--token-text);
|
|
304
|
-
background: var(--token-bg);
|
|
305
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
289
|
+
color: var(--icen-token-text);
|
|
290
|
+
background: var(--icen-token-bg);
|
|
291
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
306
292
|
padding: 4px 8px; resize: none; min-width: 140px;
|
|
307
293
|
}
|
|
308
|
-
.kb-access-req-decided { color: var(--token-text-faint); }
|
|
294
|
+
.icen-kb-access-req-decided { color: var(--icen-token-text-faint); }
|
|
309
295
|
|
|
310
296
|
/* —— 段B 细化 · kb-audit 构件(chip 钮 / 导出钮 / 异味行 / 过滤断崖)—— */
|
|
311
297
|
|
|
312
298
|
/* 通道 chip 是原生 button:补指针与过渡(激活态配色由上方 aria-pressed 规则承担) */
|
|
313
|
-
.kb-audit-channels .kb-chip { cursor: pointer; transition: color 0.16s ease-out, border-color 0.16s ease-out; }
|
|
314
|
-
.kb-audit-channels .kb-chip:focus-visible { outline: 2px solid var(--token-accent); outline-offset: 1px; }
|
|
315
|
-
.kb-audit-export {
|
|
299
|
+
.icen-kb-audit-channels .icen-kb-chip { cursor: pointer; transition: color 0.16s ease-out, border-color 0.16s ease-out; }
|
|
300
|
+
.icen-kb-audit-channels .icen-kb-chip:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 1px; }
|
|
301
|
+
.icen-kb-audit-export {
|
|
316
302
|
font: inherit; font-size: 11.5px;
|
|
317
|
-
color: var(--token-text-muted);
|
|
303
|
+
color: var(--icen-token-text-muted);
|
|
318
304
|
background: transparent;
|
|
319
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
305
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
320
306
|
padding: 3px 10px; cursor: pointer;
|
|
321
|
-
margin-
|
|
307
|
+
margin-inline-start: auto;
|
|
322
308
|
}
|
|
323
|
-
.kb-audit-export:hover { color: var(--token-text); border-color: var(--token-line); background: var(--token-bg-soft); }
|
|
324
|
-
.kb-audit-export:focus-visible { outline: 2px solid var(--token-accent); outline-offset: 1px; }
|
|
309
|
+
.icen-kb-audit-export:hover { color: var(--icen-token-text); border-color: var(--icen-token-line); background: var(--icen-token-bg-soft); }
|
|
310
|
+
.icen-kb-audit-export:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 1px; }
|
|
325
311
|
/* 过滤显隐:行本身是 flex,hidden 属性会被 display 覆盖——必须显式归零 */
|
|
326
|
-
.kb-audit-entry[hidden] { display: none; }
|
|
327
|
-
.kb-audit-at { flex: 0 0 auto; font-size: 11px; color: var(--token-text-faint); }
|
|
328
|
-
.kb-audit-actor { flex: 0 1 auto; min-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
329
|
-
.kb-audit-action { flex: 0 0 auto; }
|
|
330
|
-
.kb-audit-alert { flex: 0 0 auto; }
|
|
312
|
+
.icen-kb-audit-entry[hidden] { display: none; }
|
|
313
|
+
.icen-kb-audit-at { flex: 0 0 auto; font-size: 11px; color: var(--icen-token-text-faint); }
|
|
314
|
+
.icen-kb-audit-actor { flex: 0 1 auto; min-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
315
|
+
.icen-kb-audit-action { flex: 0 0 auto; }
|
|
316
|
+
.icen-kb-audit-alert { flex: 0 0 auto; }
|
|
331
317
|
|
|
332
318
|
/* 权限异味行内件 */
|
|
333
|
-
.kb-hygiene-kind { flex: 0 0 auto; }
|
|
334
|
-
.kb-hygiene.is-high .kb-hygiene-kind { color: var(--token-error
|
|
335
|
-
.kb-hygiene.is-medium .kb-hygiene-kind { color: var(--token-warning); border-color: color-mix(in srgb, var(--token-warning) 45%, transparent); }
|
|
336
|
-
.kb-hygiene-resource { font-weight: 600; color: var(--token-text); }
|
|
337
|
-
.kb-hygiene-metric { flex: 0 0 auto; font-size: 11.5px; }
|
|
338
|
-
.kb-hygiene-hint { flex: 1 1 140px; min-width: 100px; }
|
|
339
|
-
.kb-hygiene-act {
|
|
319
|
+
.icen-kb-hygiene-kind { flex: 0 0 auto; }
|
|
320
|
+
.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
|
+
.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
|
+
.icen-kb-hygiene-resource { font-weight: 600; color: var(--icen-token-text); }
|
|
323
|
+
.icen-kb-hygiene-metric { flex: 0 0 auto; font-size: 11.5px; }
|
|
324
|
+
.icen-kb-hygiene-hint { flex: 1 1 140px; min-width: 100px; }
|
|
325
|
+
.icen-kb-hygiene-act {
|
|
340
326
|
font: inherit; font-size: 11.5px;
|
|
341
|
-
color: var(--token-text-muted);
|
|
327
|
+
color: var(--icen-token-text-muted);
|
|
342
328
|
background: transparent;
|
|
343
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
329
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
344
330
|
padding: 2px 10px; cursor: pointer;
|
|
345
331
|
}
|
|
346
|
-
.kb-hygiene-act:hover { color: var(--token-text); border-color: var(--token-line); background: var(--token-bg-soft); }
|
|
347
|
-
.kb-hygiene-act:focus-visible { outline: 2px solid var(--token-accent); outline-offset: 1px; }
|
|
332
|
+
.icen-kb-hygiene-act:hover { color: var(--icen-token-text); border-color: var(--icen-token-line); background: var(--icen-token-bg-soft); }
|
|
333
|
+
.icen-kb-hygiene-act:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 1px; }
|
|
348
334
|
|
|
349
335
|
/* ══════════════ 段C · kb-visibility(检索可见性对照器,admin 专用)══════════════ */
|
|
350
336
|
|
|
351
|
-
.kb-visibility { display: flex; flex-direction: column; gap: 10px; min-
|
|
352
|
-
.kb-visibility-warn {
|
|
337
|
+
.icen-kb-visibility { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
|
|
338
|
+
.icen-kb-visibility-warn {
|
|
353
339
|
padding: 7px 10px; font-size: 12px;
|
|
354
|
-
color: var(--token-warning);
|
|
355
|
-
border-
|
|
356
|
-
background: color-mix(in srgb, var(--token-warning) 6%, transparent);
|
|
357
|
-
border-radius:
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
.kb-visibility-bar
|
|
361
|
-
|
|
362
|
-
.kb-
|
|
363
|
-
.kb-visibility-
|
|
364
|
-
.kb-visibility-col
|
|
365
|
-
.kb-visibility-
|
|
340
|
+
color: var(--icen-token-warning);
|
|
341
|
+
border-inline-start: 2px solid var(--icen-token-warning);
|
|
342
|
+
background: color-mix(in srgb, var(--icen-token-warning) 6%, transparent);
|
|
343
|
+
border-start-end-radius: var(--icen-radius-sm);
|
|
344
|
+
border-end-end-radius: var(--icen-radius-sm);
|
|
345
|
+
}
|
|
346
|
+
.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); }
|
|
348
|
+
/* 过滤层徽标 .icen-kb-layer-chip 三态定义在 kb.css 基座(检索域 kit 也消费,勿在此重复) */
|
|
349
|
+
.icen-kb-visibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
|
|
350
|
+
.icen-kb-visibility-col { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-md); min-width: 0; }
|
|
351
|
+
.icen-kb-visibility-col header { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--icen-token-text); }
|
|
352
|
+
.icen-kb-visibility-count { font-size: 11.5px; color: var(--icen-token-text-faint); }
|
|
366
353
|
/* metadata 级:锁 + 标题 + 打码摘要 + 申请入口(知道存在,内容不可见) */
|
|
367
|
-
.kb-visibility-hit { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; border-bottom: 1px solid var(--token-line-soft); font-size: 12.5px; }
|
|
368
|
-
.kb-visibility-hit:last-child { border-bottom: none; }
|
|
369
|
-
.kb-visibility-hit[data-visibility='metadata'] .kb-visibility-snippet,
|
|
370
|
-
.kb-visibility-hit[data-visibility='summary'] .kb-visibility-snippet {
|
|
371
|
-
display: block; height: 10px; border-radius: 3px;
|
|
372
|
-
background: color-mix(in srgb, var(--token-text-faint) 18%, transparent);
|
|
354
|
+
.icen-kb-visibility-hit { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; border-bottom: 1px solid var(--icen-token-line-soft); font-size: 12.5px; }
|
|
355
|
+
.icen-kb-visibility-hit:last-child { border-bottom: none; }
|
|
356
|
+
.icen-kb-visibility-hit[data-icen-visibility='metadata'] .icen-kb-visibility-snippet,
|
|
357
|
+
.icen-kb-visibility-hit[data-icen-visibility='summary'] .icen-kb-visibility-snippet {
|
|
358
|
+
display: block; height: 10px; border-radius: 3px; /* guard:allow-radius 微构件(bar/dot/track/指示器等图形级,不属容器圆角面) */
|
|
359
|
+
background: color-mix(in srgb, var(--icen-token-text-faint) 18%, transparent);
|
|
373
360
|
}
|
|
374
|
-
.kb-visibility-hit[data-visibility='summary'] .kb-visibility-summary { font-size: 12px; color: var(--token-text-muted); line-height: 1.6; }
|
|
375
|
-
.kb-visibility-lesson { font-size: 12px; line-height: 1.8; color: var(--token-text-muted); padding-top: 6px; border-top: 1px solid var(--token-line-soft); }
|
|
361
|
+
.icen-kb-visibility-hit[data-icen-visibility='summary'] .icen-kb-visibility-summary { font-size: 12px; color: var(--icen-token-text-muted); line-height: 1.6; }
|
|
362
|
+
.icen-kb-visibility-lesson { font-size: 12px; line-height: 1.8; color: var(--icen-token-text-muted); padding-top: 6px; border-top: 1px solid var(--icen-token-line-soft); }
|
|
376
363
|
|
|
377
364
|
/* —— 段C 细化(实现补齐;上方骨架规则不动)—— */
|
|
378
365
|
|
|
379
|
-
/* 身份 chip 是可点控件:补指针语义(kb-chip 基座不含 cursor;.kb-layer-chip 的已在 kb.css) */
|
|
380
|
-
.kb-visibility-idn { cursor: pointer; }
|
|
381
|
-
.kb-visibility-idn:focus-visible { outline: 2px solid var(--token-accent); outline-offset: 1px; }
|
|
366
|
+
/* 身份 chip 是可点控件:补指针语义(kb-chip 基座不含 cursor;.icen-kb-layer-chip 的已在 kb.css) */
|
|
367
|
+
.icen-kb-visibility-idn { cursor: pointer; }
|
|
368
|
+
.icen-kb-visibility-idn:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 1px; }
|
|
382
369
|
|
|
383
370
|
/* 身份聚焦:点击 bar 内身份 chip 高亮对应列(accent 弱化底,不与警示条抢注意力) */
|
|
384
|
-
.kb-visibility-col.is-focused {
|
|
385
|
-
border-color: color-mix(in srgb, var(--token-accent) 55%, transparent);
|
|
386
|
-
background: color-mix(in srgb, var(--token-accent) 4%, transparent);
|
|
371
|
+
.icen-kb-visibility-col.is-focused {
|
|
372
|
+
border-color: color-mix(in srgb, var(--icen-token-accent) 55%, transparent);
|
|
373
|
+
background: color-mix(in srgb, var(--icen-token-accent) 4%, transparent);
|
|
387
374
|
}
|
|
388
375
|
|
|
389
376
|
/* 列头:身份 label 主位 + note 弱化(只放身份,不放有效角色——角色求值属 kb-who-can 职责) */
|
|
390
|
-
.kb-visibility-col header .kb-meta { font-weight: 400; }
|
|
377
|
+
.icen-kb-visibility-col header .icen-kb-meta { font-weight: 400; }
|
|
391
378
|
|
|
392
379
|
/* 命中行标题:锁图标(metadata/restricted 级)+ 标题单行省略 */
|
|
393
|
-
.kb-visibility-hit-title { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--token-text); }
|
|
394
|
-
.kb-visibility-hit-title svg { width: 12px; height: 12px; flex: 0 0 auto; color: var(--token-text-faint); }
|
|
395
|
-
.kb-visibility-hit-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
396
|
-
.kb-visibility-hits { display: flex; flex-direction: column; }
|
|
380
|
+
.icen-kb-visibility-hit-title { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--icen-token-text); }
|
|
381
|
+
.icen-kb-visibility-hit-title svg { width: 12px; height: 12px; flex: 0 0 auto; color: var(--icen-token-text-faint); }
|
|
382
|
+
.icen-kb-visibility-hit-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
383
|
+
.icen-kb-visibility-hits { display: flex; flex-direction: column; }
|
|
397
384
|
|
|
398
385
|
/* summary 级:「原文不可用」禁用钮——显式禁用不做可点假象(摘要权限 ≠ 原文权限) */
|
|
399
|
-
.kb-visibility-origoff {
|
|
386
|
+
.icen-kb-visibility-origoff {
|
|
400
387
|
align-self: flex-start;
|
|
401
388
|
padding: 0; border: none; background: none;
|
|
402
389
|
font: inherit; font-size: 11.5px;
|
|
403
|
-
color: var(--token-text-faint);
|
|
390
|
+
color: var(--icen-token-text-faint);
|
|
404
391
|
cursor: not-allowed;
|
|
405
392
|
}
|
|
406
393
|
|
|
407
394
|
/* restricted 级:「申请访问」文字钮(展示件——真实申请流由宿主接 kb-access) */
|
|
408
|
-
.kb-visibility-request {
|
|
395
|
+
.icen-kb-visibility-request {
|
|
409
396
|
align-self: flex-start;
|
|
410
397
|
padding: 0; border: none; background: none;
|
|
411
398
|
font: inherit; font-size: 11.5px;
|
|
412
|
-
color: var(--token-text-muted);
|
|
399
|
+
color: var(--icen-token-text-muted);
|
|
413
400
|
cursor: pointer;
|
|
414
401
|
}
|
|
415
|
-
.kb-visibility-request:hover { color: var(--token-text); text-decoration: underline; }
|
|
416
|
-
.kb-visibility-request:focus-visible { outline: 2px solid var(--token-accent); outline-offset: 2px; }
|
|
402
|
+
.icen-kb-visibility-request:hover { color: var(--icen-token-text); text-decoration: underline; }
|
|
403
|
+
.icen-kb-visibility-request:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 2px; }
|
|
417
404
|
|
|
418
405
|
/* 教学段列表(三条安全课)+ 尾注 */
|
|
419
|
-
.kb-visibility-lesson ul { list-style: disc; margin: 0 0 6px; padding-
|
|
406
|
+
.icen-kb-visibility-lesson ul { list-style: disc; margin: 0 0 6px; padding-inline-start: 18px; }
|
|
420
407
|
|
|
421
|
-
/* 检索身份选择器 .kb-retrieval-idn(-group) 与 .kb-retrieval .kb-notice[hidden] 归 kb-search.css
|
|
408
|
+
/* 检索身份选择器 .icen-kb-retrieval-idn(-group) 与 .icen-kb-retrieval .icen-kb-notice[hidden] 归 kb-search.css
|
|
422
409
|
(检索域 kit 自持;kit/kb-retrieval 只带 kb.css + kb-search.css,放这里会缺样式) */
|
|
423
410
|
|
|
424
411
|
/* —— .is-revoked:权限收回后的历史引用中性态(spec §9.0-6;revoked 引用属权限呈现,故置于段C 尾。
|
|
425
412
|
faint 中性,禁红——「不知道」与「不能说」不可区分) —— */
|
|
426
413
|
|
|
427
414
|
/* hover 卡内标题后的中性 chip */
|
|
428
|
-
.kb-chip.is-revoked {
|
|
429
|
-
color: var(--token-text-faint);
|
|
430
|
-
border-color: var(--token-line-soft);
|
|
415
|
+
.icen-kb-chip.is-revoked {
|
|
416
|
+
color: var(--icen-token-text-faint);
|
|
417
|
+
border-color: var(--icen-token-line-soft);
|
|
431
418
|
background: transparent;
|
|
432
419
|
}
|
|
433
420
|
|
|
434
421
|
/* 正文角标 revoked 态:虚线框弱化、hover 不点亮 accent(保持可点/可悬停看卡,不删不留裸链) */
|
|
435
|
-
.kb-citation.is-revoked {
|
|
436
|
-
color: var(--token-text-faint);
|
|
422
|
+
.icen-kb-citation.is-revoked {
|
|
423
|
+
color: var(--icen-token-text-faint);
|
|
437
424
|
border-style: dashed;
|
|
438
|
-
border-color: color-mix(in srgb, var(--token-text-faint) 45%, transparent);
|
|
425
|
+
border-color: color-mix(in srgb, var(--icen-token-text-faint) 45%, transparent);
|
|
439
426
|
}
|
|
440
|
-
.kb-citation.is-revoked:hover {
|
|
441
|
-
color: var(--token-text-faint);
|
|
442
|
-
border-color: color-mix(in srgb, var(--token-text-faint) 45%, transparent);
|
|
427
|
+
.icen-kb-citation.is-revoked:hover {
|
|
428
|
+
color: var(--icen-token-text-faint);
|
|
429
|
+
border-color: color-mix(in srgb, var(--icen-token-text-faint) 45%, transparent);
|
|
443
430
|
background: transparent;
|
|
444
431
|
}
|
|
432
|
+
|
|
433
|
+
}
|