@icen.ai/ui 0.9.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 +82 -254
- package/LICENSE +21 -0
- package/README.md +60 -96
- package/dist/base.css +258 -188
- package/dist/behaviors/accordion.mjs +8 -8
- package/dist/behaviors/ai-branch.d.mts +1 -1
- package/dist/behaviors/ai-branch.mjs +1011 -94
- package/dist/behaviors/ai-chat.d.mts +9 -9
- package/dist/behaviors/ai-chat.mjs +1122 -169
- package/dist/behaviors/ai-composer.d.mts +47 -15
- package/dist/behaviors/ai-composer.mjs +2018 -534
- package/dist/behaviors/ai-core.d.mts +1 -1
- package/dist/behaviors/ai-core.mjs +1017 -107
- package/dist/behaviors/ai-diff.mjs +1020 -127
- package/dist/behaviors/ai-feedback.d.mts +1 -1
- package/dist/behaviors/ai-feedback.mjs +1036 -126
- package/dist/behaviors/ai-panel.d.mts +10 -10
- package/dist/behaviors/ai-panel.mjs +1285 -266
- package/dist/behaviors/ai-provider.d.mts +1 -1
- package/dist/behaviors/ai-provider.mjs +1004 -101
- package/dist/behaviors/ai-threads.d.mts +1 -1
- package/dist/behaviors/ai-threads.mjs +1069 -154
- package/dist/behaviors/ai-tool.d.mts +3 -3
- package/dist/behaviors/ai-tool.mjs +2087 -413
- package/dist/behaviors/ai-tools.d.mts +89 -16
- package/dist/behaviors/ai-tools.mjs +5365 -380
- package/dist/behaviors/autocomplete.d.mts +53 -0
- package/dist/behaviors/autocomplete.mjs +1601 -0
- package/dist/behaviors/back-top.d.mts +1 -1
- package/dist/behaviors/back-top.mjs +952 -14
- package/dist/behaviors/carousel.d.mts +1 -1
- package/dist/behaviors/carousel.mjs +914 -12
- package/dist/behaviors/cascader.d.mts +48 -0
- package/dist/behaviors/cascader.mjs +1867 -0
- package/dist/behaviors/charts.d.mts +72 -8
- package/dist/behaviors/charts.mjs +1953 -272
- package/dist/behaviors/code-block.d.mts +36 -0
- package/dist/behaviors/code-block.mjs +1619 -0
- package/dist/behaviors/command-palette.d.mts +9 -6
- package/dist/behaviors/command-palette.mjs +164 -62
- package/dist/behaviors/context-menu.d.mts +10 -9
- package/dist/behaviors/context-menu.mjs +1113 -44
- package/dist/behaviors/controls.d.mts +21 -21
- package/dist/behaviors/controls.mjs +1024 -134
- package/dist/behaviors/copy.d.mts +21 -2
- package/dist/behaviors/copy.mjs +1207 -42
- package/dist/behaviors/datatable.d.mts +55 -5
- package/dist/behaviors/datatable.mjs +2033 -212
- package/dist/behaviors/date-picker.d.mts +0 -1
- package/dist/behaviors/date-picker.mjs +1341 -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 +127 -10
- package/dist/behaviors/events.mjs +58 -3
- 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 +111 -0
- package/dist/behaviors/form-validate.mjs +1746 -0
- package/dist/behaviors/i18n.d.mts +790 -0
- package/dist/behaviors/i18n.mjs +1713 -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 +1059 -60
- package/dist/behaviors/kb-access.d.mts +3 -3
- package/dist/behaviors/kb-access.mjs +2135 -239
- package/dist/behaviors/kb-acl.d.mts +8 -8
- package/dist/behaviors/kb-acl.mjs +1120 -179
- package/dist/behaviors/kb-answer.d.mts +2 -2
- package/dist/behaviors/kb-answer.mjs +2120 -435
- package/dist/behaviors/kb-audit.d.mts +3 -3
- package/dist/behaviors/kb-audit.mjs +1077 -154
- package/dist/behaviors/kb-canvas.d.mts +3 -3
- package/dist/behaviors/kb-canvas.mjs +1101 -177
- package/dist/behaviors/kb-chain.d.mts +2 -2
- package/dist/behaviors/kb-chain.mjs +1023 -100
- package/dist/behaviors/kb-checkpoint.d.mts +3 -3
- package/dist/behaviors/kb-checkpoint.mjs +1320 -169
- package/dist/behaviors/kb-chunks.d.mts +2 -2
- package/dist/behaviors/kb-chunks.mjs +1153 -213
- package/dist/behaviors/kb-citation.d.mts +3 -3
- package/dist/behaviors/kb-citation.mjs +1221 -185
- package/dist/behaviors/kb-clarify.d.mts +2 -2
- package/dist/behaviors/kb-clarify.mjs +1059 -130
- package/dist/behaviors/kb-conflict.d.mts +2 -2
- package/dist/behaviors/kb-conflict.mjs +1042 -119
- package/dist/behaviors/kb-connector.d.mts +2 -2
- package/dist/behaviors/kb-connector.mjs +1105 -176
- package/dist/behaviors/kb-core.d.mts +7 -2
- package/dist/behaviors/kb-core.mjs +1078 -162
- package/dist/behaviors/kb-eval.d.mts +2 -2
- package/dist/behaviors/kb-eval.mjs +1977 -144
- package/dist/behaviors/kb-explain.d.mts +3 -3
- package/dist/behaviors/kb-explain.mjs +1037 -104
- package/dist/behaviors/kb-filter.d.mts +2 -2
- package/dist/behaviors/kb-filter.mjs +2014 -178
- package/dist/behaviors/kb-gap.d.mts +3 -3
- package/dist/behaviors/kb-gap.mjs +1044 -121
- package/dist/behaviors/kb-hittest.d.mts +3 -3
- package/dist/behaviors/kb-hittest.mjs +1095 -151
- package/dist/behaviors/kb-metadata.mjs +1058 -130
- package/dist/behaviors/kb-passage.d.mts +4 -4
- package/dist/behaviors/kb-passage.mjs +1102 -161
- package/dist/behaviors/kb-pipeline.d.mts +4 -4
- package/dist/behaviors/kb-pipeline.mjs +1083 -162
- package/dist/behaviors/kb-qa.mjs +1089 -160
- package/dist/behaviors/kb-rerank.d.mts +2 -2
- package/dist/behaviors/kb-rerank.mjs +1048 -114
- package/dist/behaviors/kb-retrieval.d.mts +2 -2
- package/dist/behaviors/kb-retrieval.mjs +2079 -226
- package/dist/behaviors/kb-review.d.mts +2 -2
- package/dist/behaviors/kb-review.mjs +1996 -159
- package/dist/behaviors/kb-sandbox.d.mts +3 -3
- package/dist/behaviors/kb-sandbox.mjs +1033 -105
- package/dist/behaviors/kb-segment.d.mts +2 -2
- package/dist/behaviors/kb-segment.mjs +1112 -179
- package/dist/behaviors/kb-select.d.mts +24 -0
- package/dist/behaviors/kb-select.mjs +1995 -0
- package/dist/behaviors/kb-sources.d.mts +3 -3
- package/dist/behaviors/kb-sources.mjs +1085 -170
- package/dist/behaviors/kb-sql.d.mts +3 -3
- package/dist/behaviors/kb-sql.mjs +1144 -226
- package/dist/behaviors/kb-trace.d.mts +3 -3
- package/dist/behaviors/kb-trace.mjs +1051 -131
- package/dist/behaviors/kb-visibility.d.mts +2 -2
- package/dist/behaviors/kb-visibility.mjs +1087 -158
- package/dist/behaviors/kb-who-can.d.mts +2 -2
- package/dist/behaviors/kb-who-can.mjs +1980 -137
- package/dist/behaviors/mentions.d.mts +93 -0
- package/dist/behaviors/mentions.mjs +2153 -0
- package/dist/behaviors/modal.d.mts +4 -3
- package/dist/behaviors/modal.mjs +1056 -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 +1629 -268
- package/dist/behaviors/panel.d.mts +4 -0
- package/dist/behaviors/panel.mjs +995 -0
- package/dist/behaviors/popover.d.mts +28 -5
- package/dist/behaviors/popover.mjs +225 -24
- package/dist/behaviors/scroll-area.d.mts +17 -0
- package/dist/behaviors/scroll-area.mjs +59 -0
- package/dist/behaviors/select.d.mts +5 -2
- package/dist/behaviors/select.mjs +1416 -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 +12 -12
- package/dist/behaviors/split-pane.d.mts +1 -1
- package/dist/behaviors/split-pane.mjs +9 -7
- package/dist/behaviors/suggestions.d.mts +27 -0
- package/dist/behaviors/suggestions.mjs +1090 -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 +35 -25
- package/dist/behaviors/tag-input.d.mts +23 -5
- package/dist/behaviors/tag-input.mjs +1360 -104
- package/dist/behaviors/theme-switcher.d.mts +24 -0
- package/dist/behaviors/theme-switcher.mjs +1996 -0
- package/dist/behaviors/theme.d.mts +15 -8
- package/dist/behaviors/theme.mjs +406 -30
- package/dist/behaviors/toast.d.mts +24 -25
- package/dist/behaviors/toast.mjs +1267 -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 +1921 -0
- package/dist/behaviors/tree.d.mts +1 -1
- package/dist/behaviors/tree.mjs +18 -18
- package/dist/behaviors/upload.d.mts +3 -2
- package/dist/behaviors/upload.mjs +1077 -66
- package/dist/behaviors/url-safety.d.mts +8 -0
- package/dist/behaviors/url-safety.mjs +11 -0
- package/dist/cli.mjs +5 -6
- package/dist/components/accordion.d.mts +2 -0
- package/dist/components/ai-branch.d.mts +2 -0
- package/dist/components/ai-chat.css +682 -582
- 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 +153 -132
- 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 +353 -343
- 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 +397 -242
- package/dist/components/ai-usage.d.mts +2 -0
- package/dist/components/alert.d.mts +2 -0
- package/dist/components/autocomplete.css +61 -0
- package/dist/components/autocomplete.d.mts +2 -0
- package/dist/components/autocomplete.mjs +3 -0
- package/dist/components/avatar.d.mts +2 -0
- package/dist/components/back-top.css +74 -40
- package/dist/components/back-top.d.mts +2 -0
- package/dist/components/badge.css +44 -41
- package/dist/components/badge.d.mts +2 -0
- package/dist/components/breadcrumb.css +85 -46
- package/dist/components/breadcrumb.d.mts +2 -0
- package/dist/components/btn.css +105 -94
- package/dist/components/btn.d.mts +2 -0
- package/dist/components/card.css +124 -113
- package/dist/components/card.d.mts +2 -0
- package/dist/components/carousel.d.mts +2 -0
- package/dist/components/cascader.css +332 -0
- package/dist/components/cascader.d.mts +2 -0
- package/dist/components/cascader.mjs +3 -0
- package/dist/components/chart-area.css +54 -2
- package/dist/components/chart-area.d.mts +2 -0
- package/dist/components/chart-bar.css +147 -38
- package/dist/components/chart-bar.d.mts +2 -0
- package/dist/components/chart-calendar.d.mts +2 -0
- package/dist/components/chart-gauge.css +36 -13
- package/dist/components/chart-gauge.d.mts +2 -0
- package/dist/components/chart-graph.css +35 -20
- package/dist/components/chart-graph.d.mts +2 -0
- package/dist/components/chart-heatmap.css +67 -39
- package/dist/components/chart-heatmap.d.mts +2 -0
- package/dist/components/chart-line.css +62 -3
- package/dist/components/chart-line.d.mts +2 -0
- package/dist/components/chart-map.d.mts +2 -0
- package/dist/components/chart-pie.css +38 -6
- package/dist/components/chart-pie.d.mts +2 -0
- package/dist/components/chart-radar.css +57 -5
- package/dist/components/chart-radar.d.mts +2 -0
- package/dist/components/chart-scatter.css +47 -7
- package/dist/components/chart-scatter.d.mts +2 -0
- package/dist/components/chart-sparkline.css +25 -2
- package/dist/components/chart-sparkline.d.mts +2 -0
- package/dist/components/chart-stack.css +27 -13
- package/dist/components/chart-stack.d.mts +2 -0
- package/dist/components/charts.css +220 -84
- package/dist/components/charts.d.mts +2 -0
- package/dist/components/code-block.css +420 -0
- package/dist/components/code-block.d.mts +2 -0
- package/dist/components/code-block.mjs +4 -0
- package/dist/components/command-palette.css +150 -122
- package/dist/components/command-palette.d.mts +2 -0
- package/dist/components/content.css +274 -263
- package/dist/components/context-menu.d.mts +2 -0
- package/dist/components/copy.css +73 -45
- package/dist/components/copy.d.mts +2 -0
- package/dist/components/datatable.css +457 -202
- package/dist/components/datatable.d.mts +2 -0
- package/dist/components/date-picker.css +136 -105
- 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 +72 -69
- package/dist/components/empty.d.mts +2 -0
- package/dist/components/feedback.css +211 -191
- package/dist/components/form-validate.css +134 -0
- package/dist/components/form-validate.d.mts +2 -0
- package/dist/components/form-validate.mjs +3 -0
- package/dist/components/form.css +157 -131
- package/dist/components/form.d.mts +2 -0
- package/dist/components/icon.css +113 -0
- package/dist/components/icon.d.mts +2 -0
- package/dist/components/icon.mjs +3 -0
- package/dist/components/input.css +163 -108
- 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 +300 -206
- 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 +431 -315
- 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 +333 -229
- package/dist/components/kb-hittest.d.mts +2 -0
- package/dist/components/kb-ingest.css +613 -434
- package/dist/components/kb-metadata.d.mts +2 -0
- package/dist/components/kb-ops.css +422 -302
- package/dist/components/kb-passage.d.mts +2 -0
- package/dist/components/kb-perm.css +374 -314
- 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 +653 -459
- 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 +170 -135
- package/dist/components/kb.d.mts +2 -0
- package/dist/components/kbd.d.mts +2 -0
- package/dist/components/layout.css +86 -83
- package/dist/components/layout.d.mts +2 -0
- package/dist/components/list.d.mts +2 -0
- package/dist/components/material-chinese.css +83 -0
- package/dist/components/material-soviet.css +86 -0
- package/dist/components/material.css +318 -0
- package/dist/components/media-card.d.mts +2 -0
- package/dist/components/media.css +225 -176
- package/dist/components/mentions.css +190 -0
- package/dist/components/mentions.d.mts +2 -0
- package/dist/components/mentions.mjs +3 -0
- package/dist/components/menu.css +121 -109
- package/dist/components/modal.css +116 -118
- package/dist/components/modal.d.mts +2 -0
- package/dist/components/nav.css +136 -129
- package/dist/components/nav.d.mts +2 -0
- package/dist/components/notification.css +247 -177
- package/dist/components/notification.d.mts +2 -0
- package/dist/components/pagination.css +62 -57
- package/dist/components/pagination.d.mts +2 -0
- package/dist/components/panel.css +70 -68
- package/dist/components/panel.d.mts +2 -0
- package/dist/components/panel.mjs +1 -0
- package/dist/components/pill.css +83 -72
- package/dist/components/pill.d.mts +2 -0
- package/dist/components/popover.css +80 -57
- 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 +29 -54
- package/dist/components/scroll-area.d.mts +2 -0
- package/dist/components/scroll-area.mjs +1 -0
- package/dist/components/segmented.css +167 -146
- package/dist/components/segmented.d.mts +2 -0
- package/dist/components/select.css +250 -191
- package/dist/components/select.d.mts +2 -0
- package/dist/components/sidebar.css +157 -143
- package/dist/components/sidebar.d.mts +2 -0
- package/dist/components/skeleton.d.mts +2 -0
- package/dist/components/slider.css +135 -128
- package/dist/components/slider.d.mts +2 -0
- package/dist/components/spinner.d.mts +2 -0
- package/dist/components/split-pane.css +120 -108
- package/dist/components/split-pane.d.mts +2 -0
- package/dist/components/stat.css +116 -109
- package/dist/components/stat.d.mts +2 -0
- package/dist/components/steps.css +114 -108
- package/dist/components/steps.d.mts +2 -0
- package/dist/components/switch.css +192 -149
- package/dist/components/switch.d.mts +2 -0
- package/dist/components/table.css +158 -112
- package/dist/components/table.d.mts +2 -0
- package/dist/components/tabs.css +143 -116
- package/dist/components/tabs.d.mts +2 -0
- package/dist/components/tag-input.css +52 -133
- package/dist/components/tag-input.d.mts +2 -0
- package/dist/components/tag.css +90 -72
- package/dist/components/tag.d.mts +2 -0
- package/dist/components/theme-switcher.css +105 -0
- package/dist/components/theme-switcher.d.mts +2 -0
- package/dist/components/theme-switcher.mjs +3 -0
- package/dist/components/timeline.d.mts +2 -0
- package/dist/components/toast.css +115 -97
- package/dist/components/toast.d.mts +2 -0
- package/dist/components/toolbar.css +47 -43
- package/dist/components/toolbar.d.mts +2 -0
- package/dist/components/tooltip.css +103 -43
- package/dist/components/tooltip.d.mts +2 -0
- package/dist/components/tooltip.mjs +1 -0
- package/dist/components/tree-select.css +439 -0
- package/dist/components/tree-select.d.mts +2 -0
- package/dist/components/tree-select.mjs +3 -0
- package/dist/components/tree.d.mts +2 -0
- package/dist/components/upload.css +138 -97
- package/dist/components/upload.d.mts +2 -0
- 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 +85 -70
- package/dist/index.mjs +17330 -5773
- package/dist/react.d.mts +91 -0
- package/dist/react.mjs +8307 -0
- package/dist/registry.json +918 -70
- package/dist/tokens/chinese.css +44 -0
- package/dist/tokens/colors.css +371 -1222
- package/dist/tokens/design.css +209 -0
- package/dist/tokens/dtcg.json +15926 -0
- package/dist/tokens/figma.variables.json +10779 -0
- package/dist/tokens/icon-masks.css +78 -0
- package/dist/tokens/pixel.css +53 -0
- package/dist/tokens/scrollbars.css +40 -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 +11648 -0
- package/dist/tokens/typography.css +21 -18
- package/dist/tokens.css +1783 -1806
- package/dist/ui.css +14796 -10750
- package/dist/vue.d.mts +344 -0
- package/dist/vue.mjs +7876 -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/docs/spec/scrollbars.md +46 -0
- package/package.json +56 -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,499 @@
|
|
|
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
|
* 本文件三段分界,各组件作者只填自己的段。
|
|
11
|
+
* 视觉口径:28px 行节奏、6px 控件圆角、8px 面板圆角、发丝分隔线、focus ring 统一取 --icen-ring。
|
|
10
12
|
*/
|
|
11
13
|
|
|
12
14
|
/* ══════════════ 段A · kb-acl + kb-who-can(文档权限面板 + 有效权限检查器)══════════════ */
|
|
13
15
|
|
|
14
16
|
/* —— kb-acl:继承 banner / grants 双区 / deny 置顶 / system 不可删 —— */
|
|
15
|
-
.kb-acl { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
|
17
|
+
.icen-kb-acl { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
|
16
18
|
|
|
17
|
-
.kb-acl-inherit {
|
|
19
|
+
.icen-kb-acl-inherit {
|
|
18
20
|
display: flex; align-items: center; gap: 8px;
|
|
19
|
-
padding:
|
|
20
|
-
font-size:
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
padding: 8px 10px;
|
|
22
|
+
font-size: var(--icen-density-font-size-xs);
|
|
23
|
+
color: var(--icen-token-text-muted);
|
|
24
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
25
|
+
background: color-mix(in srgb, var(--icen-token-bg) 55%, transparent);
|
|
23
26
|
}
|
|
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);
|
|
27
|
+
.icen-kb-acl-inherit .icen-kb-acl-chain-link { color: var(--icen-token-text-faint); }
|
|
28
|
+
.icen-kb-acl-inherit.is-broken {
|
|
29
|
+
color: var(--icen-token-warning);
|
|
30
|
+
border-color: color-mix(in srgb, var(--icen-token-warning) 45%, transparent);
|
|
31
|
+
background: color-mix(in srgb, var(--icen-token-warning) 6%, transparent);
|
|
29
32
|
}
|
|
30
|
-
.kb-acl-inherit.is-partial { color: var(--token-info); }
|
|
33
|
+
.icen-kb-acl-inherit.is-partial { color: var(--icen-token-info); }
|
|
31
34
|
|
|
32
|
-
.kb-acl-grant {
|
|
35
|
+
.icen-kb-acl-grant {
|
|
33
36
|
display: flex; align-items: center; gap: 8px;
|
|
34
|
-
min-height:
|
|
35
|
-
border-bottom: 1px solid var(--token-line-soft);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.kb-acl-grant
|
|
39
|
-
.kb-acl-grant
|
|
40
|
-
.kb-acl-grant.is-
|
|
41
|
-
.kb-acl-grant.is-
|
|
42
|
-
|
|
43
|
-
.kb-acl-
|
|
44
|
-
|
|
45
|
-
.kb-acl-subject
|
|
37
|
+
min-height: var(--icen-density-item-height); padding: 2px 0;
|
|
38
|
+
border-bottom: 1px solid var(--icen-token-line-soft);
|
|
39
|
+
transition: background-color var(--icen-tx-fast);
|
|
40
|
+
}
|
|
41
|
+
.icen-kb-acl-grant:hover { background: var(--icen-token-fill-hover); }
|
|
42
|
+
.icen-kb-acl-grant:last-child { border-bottom: none; }
|
|
43
|
+
.icen-kb-acl-grant.is-deny { order: -1; }
|
|
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); }
|
|
45
|
+
.icen-kb-acl-grant.is-expiring .icen-kb-acl-meta { color: var(--icen-token-warning); }
|
|
46
|
+
.icen-kb-acl-grant.is-system .icen-kb-acl-remove { display: none; }
|
|
47
|
+
|
|
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); }
|
|
49
|
+
.icen-kb-acl-subject[data-icen-kind='group']::before,
|
|
50
|
+
.icen-kb-acl-subject[data-icen-kind='link']::before {
|
|
46
51
|
content: ''; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
|
|
47
|
-
background: var(--token-text-faint);
|
|
52
|
+
background: var(--icen-token-text-faint);
|
|
48
53
|
}
|
|
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; }
|
|
54
|
+
.icen-kb-acl-role { flex: 0 0 auto; }
|
|
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; }
|
|
56
|
+
.icen-kb-acl-remove { flex: 0 0 auto; }
|
|
57
|
+
.icen-kb-acl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
|
|
53
58
|
|
|
54
59
|
/* —— 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:
|
|
59
|
-
.kb-whocan-result.is-denied .kb-whocan-verdict { color: var(--token-error
|
|
60
|
-
.kb-whocan-deniedby {
|
|
61
|
-
padding:
|
|
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-
|
|
60
|
+
.icen-kb-whocan { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
|
|
61
|
+
.icen-kb-whocan-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
62
|
+
.icen-kb-whocan-result { display: flex; flex-direction: column; gap: 8px; }
|
|
63
|
+
.icen-kb-whocan-verdict { font-size: var(--icen-density-font-size-md); font-weight: 600; color: var(--icen-token-text); }
|
|
64
|
+
.icen-kb-whocan-result.is-denied .icen-kb-whocan-verdict { color: var(--icen-token-error); }
|
|
65
|
+
.icen-kb-whocan-deniedby {
|
|
66
|
+
padding: 7px 10px; font-size: var(--icen-density-font-size-xs);
|
|
67
|
+
color: var(--icen-token-error);
|
|
68
|
+
border-inline-start: 2px solid var(--icen-token-error);
|
|
69
|
+
background: color-mix(in srgb, var(--icen-token-error) 6%, transparent);
|
|
70
|
+
border-start-end-radius: var(--icen-radius-sm);
|
|
71
|
+
border-end-end-radius: var(--icen-radius-sm);
|
|
72
|
+
}
|
|
73
|
+
.icen-kb-whocan-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
|
|
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); }
|
|
75
|
+
.icen-kb-whocan-reason:last-child { border-bottom: none; }
|
|
76
|
+
.icen-kb-whocan-reason .icen-kb-meta { margin-inline-start: auto; }
|
|
77
|
+
.icen-kb-whocan-rule { font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-faint); }
|
|
72
78
|
|
|
73
79
|
/* —— 段A 装配件细化:kb-acl head / 区块标题 / 动作钮 / 移除钮 —— */
|
|
74
|
-
.kb-acl-head { display: flex; align-items: center; gap: 8px; min-
|
|
75
|
-
.kb-acl-title {
|
|
80
|
+
.icen-kb-acl-head { display: flex; align-items: center; gap: 8px; min-inline-size: 0; }
|
|
81
|
+
.icen-kb-acl-title {
|
|
76
82
|
display: inline-flex; align-items: center; gap: 6px;
|
|
77
|
-
flex: 1 1 auto; min-
|
|
78
|
-
font-size:
|
|
79
|
-
}
|
|
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 {
|
|
83
|
-
flex: 0 0 auto; height:
|
|
84
|
-
font: inherit; font-size:
|
|
85
|
-
color: var(--token-text-muted);
|
|
83
|
+
flex: 1 1 auto; min-inline-size: 0;
|
|
84
|
+
font-size: var(--icen-density-font-size-md); font-weight: 600; color: var(--icen-token-text);
|
|
85
|
+
}
|
|
86
|
+
.icen-kb-acl-title svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--icen-token-text-faint); }
|
|
87
|
+
.icen-kb-acl-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
88
|
+
.icen-kb-acl-act {
|
|
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;
|
|
91
|
+
color: var(--icen-token-text-muted);
|
|
86
92
|
background: transparent;
|
|
87
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
93
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
88
94
|
cursor: pointer;
|
|
89
|
-
transition: color
|
|
95
|
+
transition: color var(--icen-tx-fast), background-color var(--icen-tx-fast), border-color var(--icen-tx-fast);
|
|
90
96
|
}
|
|
91
|
-
.kb-acl-act:hover { color: var(--token-text); border-color: var(--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); }
|
|
92
99
|
/* 恢复继承将丢弃本项自定义授权——破坏性动作用描边式 danger(克制,不做实底) */
|
|
93
|
-
.kb-acl-act.is-danger {
|
|
94
|
-
color: var(--token-error
|
|
95
|
-
border-color: color-mix(in srgb, var(--token-error
|
|
100
|
+
.icen-kb-acl-act.is-danger {
|
|
101
|
+
color: var(--icen-token-error);
|
|
102
|
+
border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent);
|
|
96
103
|
}
|
|
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
|
|
104
|
+
.icen-kb-acl-act.is-danger:hover {
|
|
105
|
+
background: color-mix(in srgb, var(--icen-token-error) 6%, transparent);
|
|
106
|
+
border-color: color-mix(in srgb, var(--icen-token-error) 60%, transparent);
|
|
100
107
|
}
|
|
101
108
|
/* 授权区容器走 flex 列:deny 行的 order:-1(骨架已置)真正生效,区块标题恒在其前 */
|
|
102
|
-
.kb-acl-grants, .kb-acl-links { display: flex; flex-direction: column; }
|
|
103
|
-
.kb-acl-sec { order: -2; font-size:
|
|
104
|
-
.kb-acl-note { font-size:
|
|
105
|
-
.kb-acl-none { padding: 4px 0; }
|
|
106
|
-
.kb-acl-remove {
|
|
109
|
+
.icen-kb-acl-grants, .icen-kb-acl-links { display: flex; flex-direction: column; }
|
|
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); }
|
|
112
|
+
.icen-kb-acl-none { padding: 4px 0; }
|
|
113
|
+
.icen-kb-acl-remove {
|
|
107
114
|
display: inline-flex; align-items: center; justify-content: center;
|
|
108
|
-
width:
|
|
109
|
-
font: inherit; font-size:
|
|
110
|
-
color: var(--token-text-faint);
|
|
111
|
-
background: transparent; border: none; border-radius: var(--radius-sm
|
|
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;
|
|
117
|
+
color: var(--icen-token-text-faint);
|
|
118
|
+
background: transparent; border: none; border-radius: var(--icen-radius-sm);
|
|
112
119
|
cursor: pointer;
|
|
113
|
-
transition: color
|
|
120
|
+
transition: color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
114
121
|
}
|
|
115
|
-
.kb-acl-remove:hover { color: var(--token-error
|
|
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); }
|
|
116
124
|
/* 面板主行动(accent 线框——面板内唯一 accent 级操作) */
|
|
117
|
-
.kb-acl-grant-btn {
|
|
118
|
-
flex: 0 0 auto; height:
|
|
119
|
-
font: inherit; font-size:
|
|
120
|
-
color: var(--token-accent);
|
|
125
|
+
.icen-kb-acl-grant-btn {
|
|
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;
|
|
128
|
+
color: var(--icen-token-accent-text);
|
|
121
129
|
background: transparent;
|
|
122
|
-
border: 1px solid color-mix(in srgb, var(--token-accent) 45%, transparent);
|
|
123
|
-
border-radius: var(--radius-sm
|
|
130
|
+
border: 1px solid color-mix(in srgb, var(--icen-token-accent) 45%, transparent);
|
|
131
|
+
border-radius: var(--icen-radius-sm);
|
|
124
132
|
cursor: pointer;
|
|
125
|
-
transition: background-color
|
|
133
|
+
transition: background-color var(--icen-tx-fast), border-color var(--icen-tx-fast);
|
|
126
134
|
}
|
|
127
|
-
.kb-acl-grant-btn:hover { background: color-mix(in srgb, var(--token-accent) 8%, transparent); }
|
|
128
|
-
.kb-acl-
|
|
129
|
-
|
|
135
|
+
.icen-kb-acl-grant-btn:hover { background: color-mix(in srgb, var(--icen-token-accent) 8%, transparent); }
|
|
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);
|
|
130
144
|
}
|
|
131
145
|
|
|
132
146
|
/* —— 段A 装配件细化:kb-who-can 身份下拉 / 检查钮 / 原因链徽标 —— */
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
cursor: pointer;
|
|
140
|
-
}
|
|
141
|
-
.kb-whocan-user:focus-visible { outline: none; border-color: var(--token-accent); }
|
|
142
|
-
.kb-whocan-check {
|
|
143
|
-
height: 26px; padding: 0 12px;
|
|
144
|
-
font: inherit; font-size: 12.5px; line-height: 1;
|
|
145
|
-
color: var(--token-text-muted);
|
|
147
|
+
/* 弹层选择器(icen-select)域钩子:面样式随 select.css,此处只管布局 */
|
|
148
|
+
.icen-kb-whocan-user { flex: 0 1 240px; }
|
|
149
|
+
.icen-kb-whocan-check {
|
|
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;
|
|
152
|
+
color: var(--icen-token-text-muted);
|
|
146
153
|
background: transparent;
|
|
147
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
154
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
148
155
|
cursor: pointer;
|
|
149
|
-
transition: color
|
|
150
|
-
}
|
|
151
|
-
.kb-whocan-check:hover:not(:disabled) { color: var(--token-text); background: var(--token-
|
|
152
|
-
.kb-whocan-check:
|
|
153
|
-
.
|
|
154
|
-
.kb-whocan-
|
|
155
|
-
.
|
|
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; }
|
|
164
|
+
.icen-kb-whocan-source { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--icen-token-text); }
|
|
165
|
+
.icen-kb-whocan-reason .icen-kb-badge { flex: 0 0 auto; }
|
|
156
166
|
/* 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
|
|
167
|
+
.icen-kb-whocan-reason.is-deny .icen-kb-badge {
|
|
168
|
+
color: var(--icen-token-error);
|
|
169
|
+
border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent);
|
|
160
170
|
}
|
|
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:
|
|
171
|
+
.icen-kb-whocan-reason.is-deny .icen-kb-whocan-source { color: var(--icen-token-text-muted); }
|
|
172
|
+
.icen-kb-whocan-role { flex: 0 0 auto; }
|
|
173
|
+
.icen-kb-whocan-none { padding: 4px 0; }
|
|
174
|
+
.icen-kb-whocan-expires { font-size: var(--icen-density-font-size-xs); }
|
|
165
175
|
|
|
166
176
|
/* ══════════════ 段B · kb-access + kb-audit(访问申请流 + 审计时间线)══════════════ */
|
|
167
177
|
|
|
168
178
|
/* —— kb-access:被拒五件套 + 状态机徽章族 —— */
|
|
169
|
-
.kb-access { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
|
|
170
|
-
.kb-access-denied {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
.kb-access-
|
|
177
|
-
.kb-access-
|
|
178
|
-
.kb-access-
|
|
179
|
-
.kb-access-
|
|
180
|
-
.kb-access-
|
|
181
|
-
.kb-access-
|
|
179
|
+
.icen-kb-access { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
|
|
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); }
|
|
187
|
+
.icen-kb-access-title svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--icen-token-text-faint); }
|
|
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); }
|
|
190
|
+
.icen-kb-access-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
|
|
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); }
|
|
192
|
+
.icen-kb-access-form[hidden] { display: none; }
|
|
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); }
|
|
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); }
|
|
195
|
+
.icen-kb-access-state .icen-kb-chip[data-icen-state='expiring'],
|
|
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); }
|
|
197
|
+
.icen-kb-access-state .icen-kb-chip[data-icen-state='revoked'] { color: var(--icen-token-text-faint); }
|
|
182
198
|
/* 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:
|
|
185
|
-
.kb-access-req .kb-access-req-actions { margin-
|
|
199
|
+
.icen-kb-access-queue { display: flex; flex-direction: column; gap: 8px; }
|
|
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); }
|
|
201
|
+
.icen-kb-access-req .icen-kb-access-req-actions { margin-inline-start: auto; display: inline-flex; gap: 6px; }
|
|
186
202
|
|
|
187
203
|
/* —— 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:
|
|
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:
|
|
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; }
|
|
204
|
+
.icen-kb-audit { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
|
|
205
|
+
.icen-kb-audit-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
206
|
+
.icen-kb-audit-channels { display: inline-flex; gap: 6px; flex-wrap: wrap; }
|
|
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); }
|
|
208
|
+
.icen-kb-audit-hygiene { display: flex; flex-direction: column; gap: 6px; }
|
|
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); }
|
|
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); }
|
|
211
|
+
.icen-kb-hygiene.is-medium { border-color: color-mix(in srgb, var(--icen-token-warning) 40%, transparent); }
|
|
212
|
+
.icen-kb-hygiene .icen-kb-hygiene-act { margin-inline-start: auto; }
|
|
213
|
+
.icen-kb-audit-list { list-style: none; margin: 0; padding: 0; }
|
|
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); }
|
|
215
|
+
.icen-kb-audit-entry:last-child { border-bottom: none; }
|
|
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; }
|
|
201
217
|
/* 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); }
|
|
218
|
+
.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; }
|
|
219
|
+
.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); }
|
|
220
|
+
.icen-kb-audit-actor[data-icen-kind='system'], .icen-kb-audit-actor[data-icen-kind='app'] { color: var(--icen-token-text-faint); }
|
|
205
221
|
|
|
206
222
|
/* —— 段B 细化 · kb-access 构件(按钮/表单/角色 chip/队列行)—— */
|
|
207
223
|
|
|
208
224
|
/* 主作用(accent 稀缺资源:被拒五件套的「申请访问」/表单的「提交申请」各为其视图唯一 accent 钮) */
|
|
209
|
-
.kb-access-btn {
|
|
225
|
+
.icen-kb-access-btn {
|
|
210
226
|
display: inline-flex; align-items: center; gap: 6px;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
.kb-access-btn
|
|
227
|
+
min-height: var(--icen-density-item-height); padding: 0 14px;
|
|
228
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
229
|
+
color: var(--icen-token-on-accent);
|
|
230
|
+
background: var(--icen-token-accent-strong);
|
|
231
|
+
border: none; border-radius: var(--icen-radius-sm);
|
|
232
|
+
cursor: pointer;
|
|
233
|
+
transition: background-color var(--icen-tx-fast), box-shadow var(--icen-tx-fast);
|
|
234
|
+
}
|
|
235
|
+
.icen-kb-access-btn:hover { background: var(--icen-token-accent-deep); }
|
|
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); }
|
|
237
|
+
.icen-kb-access-btn svg { width: 12px; height: 12px; flex: 0 0 auto; }
|
|
220
238
|
/* 次作用 ghost(切换身份 / 批准 / 拒绝):永不用 accent,避免与主行动争夺 */
|
|
221
|
-
.kb-access-btn--ghost {
|
|
222
|
-
color: var(--token-text-muted);
|
|
239
|
+
.icen-kb-access-btn--ghost {
|
|
240
|
+
color: var(--icen-token-text-muted);
|
|
223
241
|
background: transparent;
|
|
224
|
-
border: 1px solid var(--token-line-soft);
|
|
242
|
+
border: 1px solid var(--icen-token-line-soft);
|
|
225
243
|
}
|
|
226
|
-
.kb-access-btn--ghost:hover {
|
|
227
|
-
color: var(--token-text);
|
|
228
|
-
border-color: var(--token-line);
|
|
229
|
-
background: var(--token-
|
|
244
|
+
.icen-kb-access-btn--ghost:hover {
|
|
245
|
+
color: var(--icen-token-text);
|
|
246
|
+
border-color: var(--icen-token-line);
|
|
247
|
+
background: var(--icen-token-fill-hover);
|
|
230
248
|
}
|
|
231
249
|
/* 状态行文字钮(申请续期/重新申请):链接级弱化,不用按钮盒子 */
|
|
232
|
-
.kb-access-act {
|
|
233
|
-
font: inherit; font-size:
|
|
234
|
-
color: var(--token-accent);
|
|
250
|
+
.icen-kb-access-act {
|
|
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 不达) */
|
|
235
253
|
background: none; border: none; padding: 0;
|
|
236
254
|
cursor: pointer; text-decoration: underline;
|
|
237
255
|
text-underline-offset: 3px;
|
|
238
256
|
}
|
|
239
|
-
.kb-access-act:hover { color: var(--token-accent-deep
|
|
257
|
+
.icen-kb-access-act:hover { color: var(--icen-token-accent-deep); }
|
|
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
|
+
}
|
|
240
265
|
|
|
241
266
|
/* 表单控件:理由 / 角色三选 / 时长 */
|
|
242
|
-
.kb-access-reason {
|
|
243
|
-
font: inherit; font-size:
|
|
244
|
-
color: var(--token-text);
|
|
245
|
-
background: var(--token-bg);
|
|
246
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
247
|
-
padding:
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
.kb-access-
|
|
254
|
-
|
|
267
|
+
.icen-kb-access-reason {
|
|
268
|
+
font: inherit; font-size: var(--icen-density-font-size-md); line-height: 1.6;
|
|
269
|
+
color: var(--icen-token-text);
|
|
270
|
+
background: var(--icen-token-bg);
|
|
271
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
272
|
+
padding: 8px 10px; resize: vertical; min-height: 64px;
|
|
273
|
+
transition: border-color var(--icen-tx-fast), box-shadow var(--icen-tx-fast);
|
|
274
|
+
}
|
|
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);
|
|
282
|
+
}
|
|
283
|
+
.icen-kb-access-roles { display: inline-flex; gap: 6px; flex-wrap: wrap; }
|
|
284
|
+
.icen-kb-access-role {
|
|
255
285
|
display: inline-flex; align-items: center;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
border
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
.kb-access-route { align-self: flex-start; }
|
|
278
|
-
.kb-access-submit {
|
|
286
|
+
min-height: 22px; padding: 0 10px;
|
|
287
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
288
|
+
color: var(--icen-token-text-muted);
|
|
289
|
+
background: var(--icen-token-bg);
|
|
290
|
+
border: 1px solid var(--icen-token-line-soft);
|
|
291
|
+
border-radius: var(--icen-radius-full);
|
|
292
|
+
cursor: pointer;
|
|
293
|
+
transition: color var(--icen-tx-fast), border-color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
294
|
+
}
|
|
295
|
+
.icen-kb-access-role:hover { border-color: var(--icen-token-line); color: var(--icen-token-text); }
|
|
296
|
+
.icen-kb-access-role.is-on {
|
|
297
|
+
color: var(--icen-token-accent-text); /* accent 叠 accent-subtle 浅色 ~3.5:1,12px 字低于 AA */
|
|
298
|
+
border-color: color-mix(in srgb, var(--icen-token-accent) 50%, transparent);
|
|
299
|
+
background: var(--icen-token-accent-subtle);
|
|
300
|
+
}
|
|
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); }
|
|
303
|
+
/* 弹层选择器(icen-select)域钩子:面样式随 select.css,此处只管布局 */
|
|
304
|
+
.icen-kb-access-duration { flex: 0 1 150px; }
|
|
305
|
+
.icen-kb-access-route { align-self: flex-start; }
|
|
306
|
+
.icen-kb-access-submit {
|
|
279
307
|
align-self: flex-start;
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
308
|
+
min-height: var(--icen-density-item-height); padding: 0 14px;
|
|
309
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
310
|
+
color: var(--icen-token-on-accent);
|
|
311
|
+
background: var(--icen-token-accent-strong);
|
|
312
|
+
border: none; border-radius: var(--icen-radius-sm);
|
|
313
|
+
cursor: pointer;
|
|
314
|
+
transition: background-color var(--icen-tx-fast);
|
|
285
315
|
}
|
|
286
|
-
.kb-access-submit:hover { background: var(--token-accent-deep
|
|
287
|
-
.kb-access-
|
|
316
|
+
.icen-kb-access-submit:hover { background: var(--icen-token-accent-deep); }
|
|
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; }
|
|
288
320
|
|
|
289
321
|
/* 队列行(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:
|
|
293
|
-
.kb-access-req-reason { flex: 1 1 160px; min-width: 120px; }
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm, 6px);
|
|
306
|
-
padding: 4px 8px; resize: none; min-width: 140px;
|
|
307
|
-
}
|
|
308
|
-
.kb-access-req-decided { color: var(--token-text-faint); }
|
|
322
|
+
.icen-kb-access-req-user { font-weight: 600; color: var(--icen-token-text); }
|
|
323
|
+
.icen-kb-access-req-resource { color: var(--icen-token-text); }
|
|
324
|
+
.icen-kb-access-req-at { font-size: var(--icen-density-font-size-xs); color: var(--icen-token-text-faint); }
|
|
325
|
+
.icen-kb-access-req-reason { flex: 1 1 160px; min-width: 120px; }
|
|
326
|
+
/* 弹层选择器(icen-select)域钩子:面样式随 select.css,此处只管布局 */
|
|
327
|
+
.icen-kb-access-approve-role { flex: 0 1 auto; }
|
|
328
|
+
.icen-kb-access-note {
|
|
329
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
330
|
+
color: var(--icen-token-text);
|
|
331
|
+
background: var(--icen-token-bg);
|
|
332
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
333
|
+
padding: 5px 8px; resize: none; min-width: 140px;
|
|
334
|
+
transition: border-color var(--icen-tx-fast), box-shadow var(--icen-tx-fast);
|
|
335
|
+
}
|
|
336
|
+
.icen-kb-access-req-decided { color: var(--icen-token-text-faint); }
|
|
309
337
|
|
|
310
338
|
/* —— 段B 细化 · kb-audit 构件(chip 钮 / 导出钮 / 异味行 / 过滤断崖)—— */
|
|
311
339
|
|
|
312
340
|
/* 通道 chip 是原生 button:补指针与过渡(激活态配色由上方 aria-pressed 规则承担) */
|
|
313
|
-
.kb-audit-channels .kb-chip { cursor: pointer; transition: color
|
|
314
|
-
.kb-audit-channels .kb-chip:
|
|
315
|
-
.kb-audit-export {
|
|
316
|
-
font: inherit; font-size:
|
|
317
|
-
color: var(--token-text-muted);
|
|
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); }
|
|
343
|
+
.icen-kb-audit-export {
|
|
344
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
345
|
+
color: var(--icen-token-text-muted);
|
|
318
346
|
background: transparent;
|
|
319
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
320
|
-
padding:
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
347
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
348
|
+
padding: 0 10px; cursor: pointer;
|
|
349
|
+
min-block-size: var(--icen-density-item-height); /* WCAG 2.5.8 下限(紧凑视觉靠 padding 保留) */
|
|
350
|
+
margin-inline-start: auto;
|
|
351
|
+
transition: color var(--icen-tx-fast), border-color var(--icen-tx-fast), background-color var(--icen-tx-fast);
|
|
352
|
+
}
|
|
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); }
|
|
325
355
|
/* 过滤显隐:行本身是 flex,hidden 属性会被 display 覆盖——必须显式归零 */
|
|
326
|
-
.kb-audit-entry[hidden] { display: none; }
|
|
327
|
-
.kb-audit-at { flex: 0 0 auto; font-size:
|
|
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; }
|
|
356
|
+
.icen-kb-audit-entry[hidden] { display: none; }
|
|
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; }
|
|
358
|
+
.icen-kb-audit-actor { flex: 0 1 auto; min-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
359
|
+
.icen-kb-audit-action { flex: 0 0 auto; }
|
|
360
|
+
.icen-kb-audit-alert { flex: 0 0 auto; }
|
|
331
361
|
|
|
332
362
|
/* 权限异味行内件 */
|
|
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:
|
|
338
|
-
.kb-hygiene-hint { flex: 1 1 140px; min-width: 100px; }
|
|
339
|
-
.kb-hygiene-act {
|
|
340
|
-
font: inherit; font-size:
|
|
341
|
-
color: var(--token-text-muted);
|
|
363
|
+
.icen-kb-hygiene-kind { flex: 0 0 auto; }
|
|
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); }
|
|
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); }
|
|
366
|
+
.icen-kb-hygiene-resource { font-weight: 600; color: var(--icen-token-text); }
|
|
367
|
+
.icen-kb-hygiene-metric { flex: 0 0 auto; font-size: var(--icen-density-font-size-xs); }
|
|
368
|
+
.icen-kb-hygiene-hint { flex: 1 1 140px; min-width: 100px; }
|
|
369
|
+
.icen-kb-hygiene-act {
|
|
370
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
371
|
+
color: var(--icen-token-text-muted);
|
|
342
372
|
background: transparent;
|
|
343
|
-
border: 1px solid var(--token-line-soft); border-radius: var(--radius-sm
|
|
344
|
-
padding:
|
|
373
|
+
border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
|
|
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);
|
|
345
377
|
}
|
|
346
|
-
.kb-hygiene-act:hover { color: var(--token-text); border-color: var(--token-line); background: var(--token-
|
|
347
|
-
.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); }
|
|
348
385
|
|
|
349
386
|
/* ══════════════ 段C · kb-visibility(检索可见性对照器,admin 专用)══════════════ */
|
|
350
387
|
|
|
351
|
-
.kb-visibility { display: flex; flex-direction: column; gap: 10px; min-
|
|
352
|
-
.kb-visibility-warn {
|
|
353
|
-
padding:
|
|
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
|
-
|
|
388
|
+
.icen-kb-visibility { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
|
|
389
|
+
.icen-kb-visibility-warn {
|
|
390
|
+
padding: 8px 10px; font-size: var(--icen-density-font-size-xs);
|
|
391
|
+
color: var(--icen-token-warning);
|
|
392
|
+
border-inline-start: 2px solid var(--icen-token-warning);
|
|
393
|
+
background: color-mix(in srgb, var(--icen-token-warning) 6%, transparent);
|
|
394
|
+
border-start-end-radius: var(--icen-radius-sm);
|
|
395
|
+
border-end-end-radius: var(--icen-radius-sm);
|
|
396
|
+
}
|
|
397
|
+
.icen-kb-visibility-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
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); }
|
|
399
|
+
/* 过滤层徽标 .icen-kb-layer-chip 三态定义在 kb.css 基座(检索域 kit 也消费,勿在此重复) */
|
|
400
|
+
.icen-kb-visibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
|
|
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); }
|
|
366
411
|
/* metadata 级:锁 + 标题 + 打码摘要 + 申请入口(知道存在,内容不可见) */
|
|
367
|
-
.kb-visibility-hit { display: flex; flex-direction: column; gap:
|
|
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);
|
|
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); }
|
|
413
|
+
.icen-kb-visibility-hit:last-child { border-bottom: none; }
|
|
414
|
+
.icen-kb-visibility-hit[data-icen-visibility='metadata'] .icen-kb-visibility-snippet,
|
|
415
|
+
.icen-kb-visibility-hit[data-icen-visibility='summary'] .icen-kb-visibility-snippet {
|
|
416
|
+
display: block; height: 10px; border-radius: 3px; /* guard:allow-radius 微构件(bar/dot/track/指示器等图形级,不属容器圆角面) */
|
|
417
|
+
background: color-mix(in srgb, var(--icen-token-text-faint) 18%, transparent);
|
|
373
418
|
}
|
|
374
|
-
.kb-visibility-hit[data-visibility='summary'] .kb-visibility-summary { font-size:
|
|
375
|
-
.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); }
|
|
376
421
|
|
|
377
422
|
/* —— 段C 细化(实现补齐;上方骨架规则不动)—— */
|
|
378
423
|
|
|
379
|
-
/* 身份 chip 是可点控件:补指针语义(kb-chip 基座不含 cursor;.kb-layer-chip 的已在 kb.css) */
|
|
380
|
-
.kb-visibility-idn { cursor: pointer; }
|
|
381
|
-
.kb-visibility-idn:
|
|
424
|
+
/* 身份 chip 是可点控件:补指针语义(kb-chip 基座不含 cursor;.icen-kb-layer-chip 的已在 kb.css) */
|
|
425
|
+
.icen-kb-visibility-idn { cursor: pointer; }
|
|
426
|
+
.icen-kb-visibility-idn:hover { border-color: var(--icen-token-line); color: var(--icen-token-text); }
|
|
382
427
|
|
|
383
428
|
/* 身份聚焦:点击 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);
|
|
429
|
+
.icen-kb-visibility-col.is-focused {
|
|
430
|
+
border-color: color-mix(in srgb, var(--icen-token-accent) 55%, transparent);
|
|
431
|
+
background: color-mix(in srgb, var(--icen-token-accent) 4%, transparent);
|
|
387
432
|
}
|
|
388
433
|
|
|
389
434
|
/* 列头:身份 label 主位 + note 弱化(只放身份,不放有效角色——角色求值属 kb-who-can 职责) */
|
|
390
|
-
.kb-visibility-col header .kb-meta { font-weight: 400; }
|
|
435
|
+
.icen-kb-visibility-col header .icen-kb-meta { font-weight: 400; }
|
|
391
436
|
|
|
392
437
|
/* 命中行标题:锁图标(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; }
|
|
438
|
+
.icen-kb-visibility-hit-title { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--icen-token-text); }
|
|
439
|
+
.icen-kb-visibility-hit-title svg { width: 12px; height: 12px; flex: 0 0 auto; color: var(--icen-token-text-faint); }
|
|
440
|
+
.icen-kb-visibility-hit-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
441
|
+
.icen-kb-visibility-hits { display: flex; flex-direction: column; }
|
|
397
442
|
|
|
398
443
|
/* summary 级:「原文不可用」禁用钮——显式禁用不做可点假象(摘要权限 ≠ 原文权限) */
|
|
399
|
-
.kb-visibility-origoff {
|
|
444
|
+
.icen-kb-visibility-origoff {
|
|
400
445
|
align-self: flex-start;
|
|
401
446
|
padding: 0; border: none; background: none;
|
|
402
|
-
font: inherit; font-size:
|
|
403
|
-
color: var(--token-text-faint);
|
|
447
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
448
|
+
color: var(--icen-token-text-faint);
|
|
404
449
|
cursor: not-allowed;
|
|
405
450
|
}
|
|
406
451
|
|
|
407
452
|
/* restricted 级:「申请访问」文字钮(展示件——真实申请流由宿主接 kb-access) */
|
|
408
|
-
.kb-visibility-request {
|
|
453
|
+
.icen-kb-visibility-request {
|
|
409
454
|
align-self: flex-start;
|
|
410
455
|
padding: 0; border: none; background: none;
|
|
411
|
-
font: inherit; font-size:
|
|
412
|
-
color: var(--token-text-muted);
|
|
456
|
+
font: inherit; font-size: var(--icen-density-font-size-xs);
|
|
457
|
+
color: var(--icen-token-text-muted);
|
|
413
458
|
cursor: pointer;
|
|
414
459
|
}
|
|
415
|
-
.kb-visibility-request:hover { color: var(--token-text); text-decoration: underline; }
|
|
416
|
-
.kb-visibility-request:focus-visible { outline:
|
|
460
|
+
.icen-kb-visibility-request:hover { color: var(--icen-token-text); text-decoration: underline; }
|
|
461
|
+
.icen-kb-visibility-request:focus-visible { outline: none; box-shadow: var(--icen-ring); }
|
|
417
462
|
|
|
418
463
|
/* 教学段列表(三条安全课)+ 尾注 */
|
|
419
|
-
.kb-visibility-lesson ul { list-style: disc; margin: 0 0 6px; padding-
|
|
464
|
+
.icen-kb-visibility-lesson ul { list-style: disc; margin: 0 0 6px; padding-inline-start: 18px; }
|
|
420
465
|
|
|
421
|
-
/* 检索身份选择器 .kb-retrieval-idn(-group) 与 .kb-retrieval .kb-notice[hidden] 归 kb-search.css
|
|
466
|
+
/* 检索身份选择器 .icen-kb-retrieval-idn(-group) 与 .icen-kb-retrieval .icen-kb-notice[hidden] 归 kb-search.css
|
|
422
467
|
(检索域 kit 自持;kit/kb-retrieval 只带 kb.css + kb-search.css,放这里会缺样式) */
|
|
423
468
|
|
|
424
469
|
/* —— .is-revoked:权限收回后的历史引用中性态(spec §9.0-6;revoked 引用属权限呈现,故置于段C 尾。
|
|
425
470
|
faint 中性,禁红——「不知道」与「不能说」不可区分) —— */
|
|
426
471
|
|
|
427
472
|
/* hover 卡内标题后的中性 chip */
|
|
428
|
-
.kb-chip.is-revoked {
|
|
429
|
-
color: var(--token-text-faint);
|
|
430
|
-
border-color: var(--token-line-soft);
|
|
473
|
+
.icen-kb-chip.is-revoked {
|
|
474
|
+
color: var(--icen-token-text-faint);
|
|
475
|
+
border-color: var(--icen-token-line-soft);
|
|
431
476
|
background: transparent;
|
|
432
477
|
}
|
|
433
478
|
|
|
434
479
|
/* 正文角标 revoked 态:虚线框弱化、hover 不点亮 accent(保持可点/可悬停看卡,不删不留裸链) */
|
|
435
|
-
.kb-citation.is-revoked {
|
|
436
|
-
color: var(--token-text-faint);
|
|
480
|
+
.icen-kb-citation.is-revoked {
|
|
481
|
+
color: var(--icen-token-text-faint);
|
|
437
482
|
border-style: dashed;
|
|
438
|
-
border-color: color-mix(in srgb, var(--token-text-faint) 45%, transparent);
|
|
483
|
+
border-color: color-mix(in srgb, var(--icen-token-text-faint) 45%, transparent);
|
|
439
484
|
}
|
|
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);
|
|
485
|
+
.icen-kb-citation.is-revoked:hover {
|
|
486
|
+
color: var(--icen-token-text-faint);
|
|
487
|
+
border-color: color-mix(in srgb, var(--icen-token-text-faint) 45%, transparent);
|
|
443
488
|
background: transparent;
|
|
444
489
|
}
|
|
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
|
+
|
|
504
|
+
}
|