@xihan-ui/styles 3.0.0 → 3.2.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/CHANGELOG.md +63 -0
- package/README.md +1 -1
- package/component-tokens.d.ts +29 -0
- package/components.tokens.json +683 -27
- package/css/alert.css +2 -2
- package/css/approval.css +4 -4
- package/css/button.css +9 -5
- package/css/calendar-picker.css +3 -3
- package/css/calendar-range-picker.css +7 -7
- package/css/carousel.css +45 -13
- package/css/cartesian-chart.css +11 -11
- package/css/cascader.css +10 -10
- package/css/citation.css +2 -2
- package/css/code-view.css +6 -6
- package/css/color-picker.css +81 -0
- package/css/color-swatch-picker.css +9 -4
- package/css/combobox.css +12 -4
- package/css/command.css +1 -1
- package/css/date-field.css +39 -0
- package/css/date-picker.css +86 -9
- package/css/date-range-picker.css +47 -7
- package/css/diff-view.css +8 -8
- package/css/field-array.css +1 -1
- package/css/field.css +4 -0
- package/css/file-upload.css +1 -1
- package/css/float-button.css +140 -27
- package/css/form.css +14 -6
- package/css/graph-chart.css +2 -2
- package/css/highlight.css +1 -1
- package/css/image.css +1 -1
- package/css/mention.css +1 -1
- package/css/message-feed.css +1 -1
- package/css/notification.css +26 -20
- package/css/number-field.css +18 -18
- package/css/page-header.css +2 -2
- package/css/password-input.css +2 -2
- package/css/popconfirm.css +3 -3
- package/css/question-flow.css +8 -8
- package/css/radar-chart.css +6 -6
- package/css/rating.css +1 -1
- package/css/select.css +2 -2
- package/css/separator.css +2 -2
- package/css/side-nav.css +13 -13
- package/css/skeleton.css +5 -5
- package/css/slider.css +6 -6
- package/css/sortable.css +2 -2
- package/css/table.css +19 -2
- package/css/tags-input.css +1 -1
- package/css/time-picker.css +59 -2
- package/css/tool-call.css +7 -7
- package/css/tooltip.css +1 -1
- package/css/tree-select.css +2 -2
- package/css/tree.css +81 -11
- package/dist/css/accordion.css +269 -0
- package/dist/css/affix.css +47 -0
- package/dist/css/alert.css +247 -0
- package/dist/css/anchor.css +252 -0
- package/dist/css/approval.css +501 -0
- package/dist/css/avatar-group.css +99 -0
- package/dist/css/avatar.css +98 -0
- package/dist/css/back-top.css +161 -0
- package/dist/css/badge.css +205 -0
- package/dist/css/bar-code.css +62 -0
- package/dist/css/breadcrumb.css +230 -0
- package/dist/css/button-group.css +263 -0
- package/dist/css/button.css +219 -0
- package/dist/css/calendar-picker.css +467 -0
- package/dist/css/calendar-range-picker.css +554 -0
- package/dist/css/card.css +221 -0
- package/dist/css/carousel.css +710 -0
- package/dist/css/cartesian-chart.css +830 -0
- package/dist/css/cascader.css +961 -0
- package/dist/css/checkbox-group.css +358 -0
- package/dist/css/checkbox.css +257 -0
- package/dist/css/citation.css +470 -0
- package/dist/css/clipboard.css +315 -0
- package/dist/css/code-view.css +374 -0
- package/dist/css/collapsible.css +185 -0
- package/dist/css/color-field.css +176 -0
- package/dist/css/color-picker.css +595 -0
- package/dist/css/color-slider.css +281 -0
- package/dist/css/color-swatch-picker.css +250 -0
- package/dist/css/color-swatch.css +35 -0
- package/dist/css/combobox.css +574 -0
- package/dist/css/command.css +399 -0
- package/dist/css/context-menu.css +420 -0
- package/dist/css/date-field.css +317 -0
- package/dist/css/date-picker.css +868 -0
- package/dist/css/date-range-picker.css +886 -0
- package/dist/css/description.css +67 -0
- package/dist/css/descriptions.css +299 -0
- package/dist/css/dialog.css +455 -0
- package/dist/css/diff-view.css +513 -0
- package/dist/css/download-trigger.css +151 -0
- package/dist/css/drawer.css +552 -0
- package/dist/css/editable.css +295 -0
- package/dist/css/empty-state.css +163 -0
- package/dist/css/field-array.css +226 -0
- package/dist/css/field.css +166 -0
- package/dist/css/fieldset.css +102 -0
- package/dist/css/file-upload.css +429 -0
- package/dist/css/flex.css +441 -0
- package/dist/css/float-button.css +569 -0
- package/dist/css/floating-panel.css +429 -0
- package/dist/css/focus.css +46 -0
- package/dist/css/forced-colors.css +93 -0
- package/dist/css/form.css +393 -0
- package/dist/css/funnel-chart.css +106 -0
- package/dist/css/graph-chart.css +205 -0
- package/dist/css/grid-list.css +235 -0
- package/dist/css/grid.css +1201 -0
- package/dist/css/heatmap.css +552 -0
- package/dist/css/hierarchy-chart.css +298 -0
- package/dist/css/highlight.css +41 -0
- package/dist/css/hover-card.css +226 -0
- package/dist/css/icon.css +225 -0
- package/dist/css/image-cropper.css +373 -0
- package/dist/css/image-viewer.css +538 -0
- package/dist/css/image.css +98 -0
- package/dist/css/infinite-scroll.css +77 -0
- package/dist/css/input-group.css +275 -0
- package/dist/css/json-viewer.css +379 -0
- package/dist/css/kbd.css +72 -0
- package/dist/css/label.css +78 -0
- package/dist/css/layers.css +7 -0
- package/dist/css/layout.css +372 -0
- package/dist/css/liquid.css +106 -0
- package/dist/css/list.css +152 -0
- package/dist/css/listbox.css +390 -0
- package/dist/css/loading-bar.css +141 -0
- package/dist/css/log.css +306 -0
- package/dist/css/markdown-stream.css +149 -0
- package/dist/css/marquee.css +378 -0
- package/dist/css/masonry.css +70 -0
- package/dist/css/matrix-code.css +67 -0
- package/dist/css/mention.css +393 -0
- package/dist/css/menu.css +364 -0
- package/dist/css/menubar.css +456 -0
- package/dist/css/message-feed.css +318 -0
- package/dist/css/navigation-menu.css +513 -0
- package/dist/css/notification.css +782 -0
- package/dist/css/number-animation.css +44 -0
- package/dist/css/number-field.css +252 -0
- package/dist/css/overlay-arrow.css +56 -0
- package/dist/css/page-header.css +184 -0
- package/dist/css/pagination.css +450 -0
- package/dist/css/password-input.css +391 -0
- package/dist/css/pie-chart.css +247 -0
- package/dist/css/pin-input.css +199 -0
- package/dist/css/pointer.css +36 -0
- package/dist/css/popconfirm.css +320 -0
- package/dist/css/popover.css +279 -0
- package/dist/css/progress.css +501 -0
- package/dist/css/prompt-input.css +260 -0
- package/dist/css/question-flow.css +553 -0
- package/dist/css/radar-chart.css +233 -0
- package/dist/css/radio-group.css +598 -0
- package/dist/css/rating.css +294 -0
- package/dist/css/reasoning.css +343 -0
- package/dist/css/reset.css +117 -0
- package/dist/css/resizable.css +242 -0
- package/dist/css/sankey-chart.css +174 -0
- package/dist/css/scroll-area.css +240 -0
- package/dist/css/scrollbar.css +204 -0
- package/dist/css/select.css +612 -0
- package/dist/css/separator.css +122 -0
- package/dist/css/side-nav.css +476 -0
- package/dist/css/signature-pad.css +179 -0
- package/dist/css/skeleton.css +161 -0
- package/dist/css/slider.css +374 -0
- package/dist/css/sortable.css +228 -0
- package/dist/css/sparkline.css +164 -0
- package/dist/css/spinner.css +236 -0
- package/dist/css/splitter.css +159 -0
- package/dist/css/statistic.css +137 -0
- package/dist/css/steps.css +627 -0
- package/dist/css/switch.css +351 -0
- package/dist/css/table.css +1145 -0
- package/dist/css/tabs.css +944 -0
- package/dist/css/tag-group.css +247 -0
- package/dist/css/tag.css +310 -0
- package/dist/css/tags-input.css +322 -0
- package/dist/css/text-field.css +197 -0
- package/dist/css/time-field.css +277 -0
- package/dist/css/time-picker.css +707 -0
- package/dist/css/time-range-picker.css +746 -0
- package/dist/css/timeline.css +423 -0
- package/dist/css/timer.css +123 -0
- package/dist/css/timestamp.css +34 -0
- package/dist/css/toggle-group.css +424 -0
- package/dist/css/toggle.css +146 -0
- package/dist/css/tone.css +189 -0
- package/dist/css/tool-call.css +429 -0
- package/dist/css/toolbar.css +365 -0
- package/dist/css/tooltip.css +218 -0
- package/dist/css/tour.css +439 -0
- package/dist/css/transfer.css +638 -0
- package/dist/css/tree-select.css +878 -0
- package/dist/css/tree.css +733 -0
- package/dist/css/truncate.css +108 -0
- package/dist/css/typography.css +472 -0
- package/dist/css/undefined.css +58 -0
- package/dist/css/virtualizer.css +166 -0
- package/dist/css/visually-hidden.css +20 -0
- package/dist/css/watermark.css +82 -0
- package/dist/family/action-control.css +487 -0
- package/dist/family/chart.css +480 -0
- package/dist/family/check-mark.css +94 -0
- package/dist/family/choice-card.css +97 -0
- package/dist/family/collection-item.css +764 -0
- package/dist/family/field-chrome.css +287 -0
- package/dist/family/loading-ring.css +95 -0
- package/dist/family/material.css +72 -0
- package/dist/family/menu-choice.css +56 -0
- package/dist/family/motion.css +363 -0
- package/dist/family/swatch.css +59 -0
- package/dist/family/tag-list.css +59 -0
- package/family/action-control.css +3 -12
- package/index.css +7307 -6759
- package/index.unlayered.css +7309 -6761
- package/package.json +165 -164
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2021-Present XiHanFun and contributors.
|
|
3
|
+
* Licensed under the MIT License. See LICENSE in the project root for license information.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* 定义 question flow 样式。 */
|
|
7
|
+
|
|
8
|
+
/* 共享关键帧由 family/motion.css 提供,本皮肤 @import 它,单独引入仍成立;
|
|
9
|
+
独立皮肤同时传递引入选项行与四颗钮的动作控件配方,full bundle 递归去重。 */
|
|
10
|
+
@import '../family/motion.css';
|
|
11
|
+
@import '../family/action-control.css';
|
|
12
|
+
@import '../family/check-mark.css';
|
|
13
|
+
|
|
14
|
+
@layer xihan.components {
|
|
15
|
+
/* 皮肤在场的标记:开发模式下按 scope 探一次,取不到就说明这份皮肤没被引入。 */
|
|
16
|
+
.xh-scope-question-flow {
|
|
17
|
+
--xh-question-flow-skin: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* 一张静态内容面:--xh-border-default 描边 + surface 底 + 无影(边界只由描边承担)。
|
|
21
|
+
三个视觉轴都落在 root 上:形态管底与描边怎么画,语气管用哪族颜色,尺寸管内衬、按钮高度与字号 */
|
|
22
|
+
.xh-scope-question-flow[data-part='root'] {
|
|
23
|
+
/* 作者塞进翻页钮的图标按档取尺,与皮肤画的兜底字形同一把尺 */
|
|
24
|
+
--xh-icon-size: var(--xh-question-flow-icon-size, var(--xh-glyph-size-md));
|
|
25
|
+
/* 尺寸缺省档:不写 data-size 时按中档走 */
|
|
26
|
+
--xh-_question-flow-p: var(--xh-space-4);
|
|
27
|
+
--xh-_question-flow-gap: var(--xh-space-3);
|
|
28
|
+
--xh-_question-flow-h: var(--xh-control-h-md);
|
|
29
|
+
--xh-_question-flow-px: var(--xh-control-px-md);
|
|
30
|
+
--xh-_question-flow-font-size: var(--xh-control-font-md);
|
|
31
|
+
--xh-_question-flow-indicator: var(--xh-control-indicator-md);
|
|
32
|
+
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
gap: var(--xh-question-flow-gap, var(--xh-_question-flow-gap));
|
|
36
|
+
padding: var(--xh-question-flow-padding, var(--xh-_question-flow-p));
|
|
37
|
+
border: var(--xh-stroke-thin) solid var(--xh-question-flow-border, var(--xh-border-default));
|
|
38
|
+
border-radius: var(--xh-question-flow-radius, var(--xh-shape-surface));
|
|
39
|
+
background: var(--xh-question-flow-bg, var(--xh-bg-surface));
|
|
40
|
+
box-shadow: var(--xh-question-flow-shadow, none);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* 卡片出现时滑入;落在首帧就在的列表条目里(历史消息)时直接呈现,不跟着整屏一起入场 */
|
|
44
|
+
.xh-scope-question-flow[data-part='root']:not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
|
|
45
|
+
animation: xh-item-in var(--xh-motion-duration-enter) var(--xh-motion-ease-enter-strong);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* 上面声明的 display 会盖掉 UA 的 [hidden]{display:none},这里补回 */
|
|
49
|
+
.xh-scope-question-flow[data-part='root'][hidden] {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* —— 形态 —— */
|
|
54
|
+
/* 描边式是缺省档,写在上面那条基础规则里 */
|
|
55
|
+
/* 填充式:底色顶替描边表达边界。描边只退成透明而不去掉,
|
|
56
|
+
1px 的位置留着,与 outline 档并排时基线对得上;
|
|
57
|
+
淡底承载面向选项行与几颗中性钮下发 hover 200 → pressed 300 */
|
|
58
|
+
.xh-scope-question-flow[data-part='root'][data-variant='subtle'] {
|
|
59
|
+
--xh-action-host-bg-hover: var(--xh-bg-subtle-hover);
|
|
60
|
+
--xh-action-host-bg-pressed: var(--xh-bg-subtle-active);
|
|
61
|
+
|
|
62
|
+
border-color: transparent;
|
|
63
|
+
background: var(--xh-question-flow-bg, var(--xh-_tone-subtle, var(--xh-bg-subtle)));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* 无壳:底与描边都透明,影一并收掉——底都不画了,一圈投影就成了没有来处的暗边 */
|
|
67
|
+
.xh-scope-question-flow[data-part='root'][data-variant='ghost'] {
|
|
68
|
+
border-color: transparent;
|
|
69
|
+
background: transparent;
|
|
70
|
+
box-shadow: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* —— 尺寸 —— */
|
|
74
|
+
.xh-scope-question-flow[data-part='root'][data-size='sm'] {
|
|
75
|
+
--xh-_question-flow-p: var(--xh-space-3);
|
|
76
|
+
--xh-_question-flow-gap: var(--xh-space-2);
|
|
77
|
+
--xh-_question-flow-h: var(--xh-control-h-sm);
|
|
78
|
+
--xh-_question-flow-px: var(--xh-control-px-sm);
|
|
79
|
+
--xh-_question-flow-font-size: var(--xh-control-font-sm);
|
|
80
|
+
--xh-_question-flow-indicator: var(--xh-control-indicator-sm);
|
|
81
|
+
--xh-icon-size: var(--xh-question-flow-icon-size, var(--xh-glyph-size-sm));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.xh-scope-question-flow[data-part='root'][data-size='md'] {
|
|
85
|
+
--xh-_question-flow-p: var(--xh-space-4);
|
|
86
|
+
--xh-_question-flow-gap: var(--xh-space-3);
|
|
87
|
+
--xh-_question-flow-h: var(--xh-control-h-md);
|
|
88
|
+
--xh-_question-flow-px: var(--xh-control-px-md);
|
|
89
|
+
--xh-_question-flow-font-size: var(--xh-control-font-md);
|
|
90
|
+
--xh-_question-flow-indicator: var(--xh-control-indicator-md);
|
|
91
|
+
--xh-icon-size: var(--xh-question-flow-icon-size, var(--xh-glyph-size-md));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.xh-scope-question-flow[data-part='root'][data-size='lg'] {
|
|
95
|
+
--xh-_question-flow-p: var(--xh-space-5);
|
|
96
|
+
--xh-_question-flow-gap: var(--xh-space-4);
|
|
97
|
+
--xh-_question-flow-h: var(--xh-control-h-lg);
|
|
98
|
+
--xh-_question-flow-px: var(--xh-control-px-lg);
|
|
99
|
+
--xh-_question-flow-font-size: var(--xh-control-font-lg);
|
|
100
|
+
--xh-_question-flow-indicator: var(--xh-control-indicator-lg);
|
|
101
|
+
--xh-icon-size: var(--xh-question-flow-icon-size, var(--xh-glyph-size-lg));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* 视口定高并裁切:高度由机器量出来写进私有槽,量到之前按内容撑开。
|
|
105
|
+
换题时高度过渡到新那一题,卡片跟着长高或收矮 */
|
|
106
|
+
.xh-scope-question-flow[data-part='viewport'] {
|
|
107
|
+
--xh-_question-flow-viewport-h: auto;
|
|
108
|
+
|
|
109
|
+
display: block;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
block-size: var(--xh-question-flow-viewport-h, var(--xh-_question-flow-viewport-h));
|
|
112
|
+
transition: block-size var(--xh-motion-duration-move) var(--xh-motion-ease-continuous);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.xh-scope-question-flow[data-part='viewport'][hidden] {
|
|
116
|
+
display: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* 轨道把全部题目纵向排开,靠位移把当前题推进视口 */
|
|
120
|
+
.xh-scope-question-flow[data-part='track'] {
|
|
121
|
+
--xh-_question-flow-track-y: 0;
|
|
122
|
+
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
gap: var(--xh-question-flow-track-gap, var(--xh-_question-flow-gap));
|
|
126
|
+
translate: 0 var(--xh-question-flow-track-y, var(--xh-_question-flow-track-y));
|
|
127
|
+
transition: translate var(--xh-motion-duration-move) var(--xh-motion-ease-continuous);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.xh-scope-question-flow[data-part='track'][hidden] {
|
|
131
|
+
display: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* 一题的整块。非当前题淡出并让开指针:它仍留在轨道上,高度才有得可量 */
|
|
135
|
+
.xh-scope-question-flow[data-part='question'] {
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
gap: var(--xh-question-flow-question-gap, var(--xh-space-2));
|
|
139
|
+
opacity: 0;
|
|
140
|
+
pointer-events: none;
|
|
141
|
+
transition: opacity var(--xh-motion-duration-enter) var(--xh-motion-ease-enter-strong);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.xh-scope-question-flow[data-part='question'][hidden] {
|
|
145
|
+
display: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.xh-scope-question-flow[data-part='question'][data-current] {
|
|
149
|
+
opacity: 1;
|
|
150
|
+
pointer-events: auto;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* 题干就是这一题的标题,也是选项组的可访问名:走 Surface 标题档 14/600 */
|
|
154
|
+
.xh-scope-question-flow[data-part='prompt'] {
|
|
155
|
+
display: block;
|
|
156
|
+
margin: 0;
|
|
157
|
+
color: var(--xh-question-flow-prompt-fg, var(--xh-fg-default));
|
|
158
|
+
font-size: var(--xh-question-flow-prompt-font-size, var(--xh-text-label-size));
|
|
159
|
+
font-weight: var(--xh-question-flow-prompt-font-weight, var(--xh-font-weight-semibold));
|
|
160
|
+
line-height: var(--xh-leading-tight);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.xh-scope-question-flow[data-part='prompt'][hidden] {
|
|
164
|
+
display: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.xh-scope-question-flow[data-part='group'] {
|
|
168
|
+
display: flex;
|
|
169
|
+
flex-direction: column;
|
|
170
|
+
gap: var(--xh-question-flow-group-gap, var(--xh-space-1));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.xh-scope-question-flow[data-part='group'][hidden] {
|
|
174
|
+
display: none;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* 一个选项:整行可点、可聚焦,记号在左。盒型、悬停 / 按下 / 禁用面由 Action Control 的 row 档给
|
|
178
|
+
(ghost 形态:白底承载 hover 100 → pressed 200,按下只换面不缩放;禁用守卫认 data-disabled),
|
|
179
|
+
这里只把使用者槽映射到桥接槽,内衬与间距沿用本组件的档位;字色三态同一支,选中档在下面换一档。
|
|
180
|
+
行高不吃家族的单行档:row 档允许换行、高度随内容,一条会折行的选项文案走正文行高 */
|
|
181
|
+
.xh-scope-question-flow[data-part='item'] {
|
|
182
|
+
--xh-action-gap: var(--xh-question-flow-item-gap, var(--xh-space-1_5));
|
|
183
|
+
--xh-action-padding-inline: var(--xh-question-flow-item-px, var(--xh-space-2));
|
|
184
|
+
--xh-action-padding-block: var(--xh-question-flow-item-py, var(--xh-space-1));
|
|
185
|
+
--xh-action-radius: var(--xh-question-flow-item-radius, var(--xh-_action-profile-radius));
|
|
186
|
+
--xh-action-font-size: var(--xh-question-flow-item-font-size, var(--xh-_question-flow-font-size));
|
|
187
|
+
--xh-action-bg-rest: var(--xh-question-flow-item-bg, var(--xh-_action-variant-bg-rest));
|
|
188
|
+
--xh-action-bg-hover: var(--xh-question-flow-item-bg-hover, var(--xh-_action-variant-bg-hover));
|
|
189
|
+
--xh-action-fg-rest: var(--xh-question-flow-item-fg, var(--xh-fg-muted));
|
|
190
|
+
--xh-action-fg-hover: var(--xh-question-flow-item-fg, var(--xh-fg-muted));
|
|
191
|
+
--xh-action-fg-pressed: var(--xh-question-flow-item-fg, var(--xh-fg-muted));
|
|
192
|
+
|
|
193
|
+
line-height: var(--xh-leading-normal);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.xh-scope-question-flow[data-part='item'][hidden] {
|
|
197
|
+
display: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* 当前题的选项按位次错开开幕,换题时随 data-current 重跑:一道题的选项总是同一批一起露面,
|
|
201
|
+
位次就是到达顺序。落在首帧就在的列表条目里(历史消息)时直接呈现。
|
|
202
|
+
backwards 不能省:等待期间起帧不生效的话,后面几条会先露一下再跳回去。
|
|
203
|
+
第 6 条起并到同一拍上 */
|
|
204
|
+
.xh-scope-question-flow[data-part='question'][data-current] [data-part='item']:where(.xh-scope-question-flow):not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
|
|
205
|
+
animation: xh-rise-in var(--xh-motion-duration-enter) var(--xh-motion-ease-enter-strong) backwards;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.xh-scope-question-flow[data-part='question'][data-current] [data-part='item']:where(.xh-scope-question-flow):nth-child(2):not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
|
|
209
|
+
animation-delay: calc(var(--xh-motion-stagger-step) * 1);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.xh-scope-question-flow[data-part='question'][data-current] [data-part='item']:where(.xh-scope-question-flow):nth-child(3):not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
|
|
213
|
+
animation-delay: calc(var(--xh-motion-stagger-step) * 2);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.xh-scope-question-flow[data-part='question'][data-current] [data-part='item']:where(.xh-scope-question-flow):nth-child(4):not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
|
|
217
|
+
animation-delay: calc(var(--xh-motion-stagger-step) * 3);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.xh-scope-question-flow[data-part='question'][data-current] [data-part='item']:where(.xh-scope-question-flow):nth-child(5):not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
|
|
221
|
+
animation-delay: calc(var(--xh-motion-stagger-step) * 4);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.xh-scope-question-flow[data-part='question'][data-current] [data-part='item']:where(.xh-scope-question-flow):nth-child(n + 6):not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
|
|
225
|
+
animation-delay: calc(var(--xh-motion-stagger-step) * 5);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* 选中的那条读起来更重一档(禁用项无论选没选都是家族给的禁用色) */
|
|
229
|
+
.xh-scope-question-flow[data-part='item'][data-state='checked'] {
|
|
230
|
+
--xh-action-fg-rest: var(--xh-question-flow-item-fg-checked, var(--xh-fg-default));
|
|
231
|
+
--xh-action-fg-hover: var(--xh-question-flow-item-fg-checked, var(--xh-fg-default));
|
|
232
|
+
--xh-action-fg-pressed: var(--xh-question-flow-item-fg-checked, var(--xh-fg-default));
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* 记号盒:多选是圆角方格,单选是圆。选中态填色,纯装饰不进可访问名 */
|
|
236
|
+
.xh-scope-question-flow[data-part='item-indicator'] {
|
|
237
|
+
/* 盒里那枚记号按盒比例量(与 Checkbox 同一比例),作者塞进来的图标读同一把尺。
|
|
238
|
+
根上那把是展示型图标档,比指示符盒还大一档,画进这个盒里会溢出四个像素 */
|
|
239
|
+
--xh-_question-flow-indicator-glyph: calc(var(--xh-question-flow-indicator-size, var(--xh-_question-flow-indicator)) * 0.75);
|
|
240
|
+
--xh-icon-size: var(--xh-question-flow-indicator-icon-size, var(--xh-_question-flow-indicator-glyph));
|
|
241
|
+
|
|
242
|
+
display: inline-flex;
|
|
243
|
+
flex: none;
|
|
244
|
+
align-items: center;
|
|
245
|
+
justify-content: center;
|
|
246
|
+
border: var(--xh-stroke-thin) solid var(--xh-question-flow-indicator-border, var(--xh-border-control));
|
|
247
|
+
border-radius: var(--xh-question-flow-indicator-radius, var(--xh-shape-inset));
|
|
248
|
+
background: var(--xh-question-flow-indicator-bg, transparent);
|
|
249
|
+
color: var(--xh-question-flow-indicator-fg, var(--xh-_tone-on, var(--xh-fg-on-brand)));
|
|
250
|
+
inline-size: var(--xh-question-flow-indicator-size, var(--xh-_question-flow-indicator));
|
|
251
|
+
block-size: var(--xh-question-flow-indicator-size, var(--xh-_question-flow-indicator));
|
|
252
|
+
transition:
|
|
253
|
+
background-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter),
|
|
254
|
+
border-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter),
|
|
255
|
+
color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.xh-scope-question-flow[data-part='item-indicator'][hidden] {
|
|
259
|
+
display: none;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* 单选那一档把方格收成圆:正方盒取 circle */
|
|
263
|
+
.xh-scope-question-flow[data-part='item-indicator'][data-select-mode='single'] {
|
|
264
|
+
border-radius: var(--xh-question-flow-indicator-radius-single, var(--xh-shape-circle));
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/* 多选的记号是勾选格:没写内容时勾由勾选标记配方画在 ::before 上,常驻、按状态淡变并轻缩放;
|
|
268
|
+
作者往部件里塞了自己的图形,配方与下面的圆点都不画。
|
|
269
|
+
单选那一档画实心点,由伪元素自己的底色画;直径按记号盒的一半量,与其余单选控件的圆点同源——
|
|
270
|
+
盒换档时点跟着换。圆点与 RadioGroup 同一套动效:没选中时缩放为 0(盒留在原位,翻面时整行不跳),
|
|
271
|
+
选中时落位略涨过 1 再收回、收起走强减速不过冲,换色走 micro */
|
|
272
|
+
.xh-scope-question-flow[data-part='item-indicator'][data-select-mode='single']:empty::before {
|
|
273
|
+
content: '';
|
|
274
|
+
display: inline-block;
|
|
275
|
+
inline-size: var(--xh-question-flow-dot-size, calc(var(--xh-question-flow-indicator-size, var(--xh-_question-flow-indicator)) / 2));
|
|
276
|
+
block-size: var(--xh-question-flow-dot-size, calc(var(--xh-question-flow-indicator-size, var(--xh-_question-flow-indicator)) / 2));
|
|
277
|
+
border-radius: var(--xh-question-flow-dot-radius, var(--xh-shape-circle));
|
|
278
|
+
background-color: currentColor;
|
|
279
|
+
scale: 0;
|
|
280
|
+
transition:
|
|
281
|
+
scale var(--xh-motion-duration-nudge) var(--xh-motion-ease-enter-strong),
|
|
282
|
+
background-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.xh-scope-question-flow[data-part='item-indicator'][data-select-mode='single'][data-state='checked']:empty::before {
|
|
286
|
+
scale: 1;
|
|
287
|
+
transition:
|
|
288
|
+
scale var(--xh-motion-duration-nudge) var(--xh-motion-ease-settle),
|
|
289
|
+
background-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.xh-scope-question-flow[data-part='item-indicator'][data-state='checked'] {
|
|
293
|
+
border-color: var(--xh-question-flow-indicator-border-checked, var(--xh-_tone, var(--xh-bg-brand)));
|
|
294
|
+
background: var(--xh-question-flow-indicator-bg-checked, var(--xh-_tone, var(--xh-bg-brand)));
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.xh-scope-question-flow[data-part='item-text'] {
|
|
298
|
+
display: block;
|
|
299
|
+
flex: 1 1 auto;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.xh-scope-question-flow[data-part='item-text'][hidden] {
|
|
303
|
+
display: none;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* 选项带一行说明:说明另起一行、与文字左缘对齐,两行之间不留行距;字色取次级、字号小一档 */
|
|
307
|
+
.xh-scope-question-flow[data-part='item']:has(> [data-part='item-description']) {
|
|
308
|
+
flex-wrap: wrap;
|
|
309
|
+
row-gap: 0;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.xh-scope-question-flow[data-part='item-description'] {
|
|
313
|
+
display: block;
|
|
314
|
+
flex: 1 0 100%;
|
|
315
|
+
padding-inline-start: calc(var(--xh-question-flow-indicator-size, var(--xh-_question-flow-indicator)) + var(--xh-question-flow-item-gap, var(--xh-space-1_5)));
|
|
316
|
+
color: var(--xh-question-flow-item-description-fg, var(--xh-fg-subtle));
|
|
317
|
+
font-size: var(--xh-question-flow-item-description-font-size, var(--xh-text-caption-size));
|
|
318
|
+
text-align: start;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.xh-scope-question-flow[data-part='item-description'][hidden] {
|
|
322
|
+
display: none;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* 题目说明(含多选的数量要求):题干下一行的次级文字 */
|
|
326
|
+
.xh-scope-question-flow[data-part='description'] {
|
|
327
|
+
display: block;
|
|
328
|
+
margin: 0;
|
|
329
|
+
color: var(--xh-question-flow-description-fg, var(--xh-fg-muted));
|
|
330
|
+
font-size: var(--xh-question-flow-description-font-size, var(--xh-text-secondary-size));
|
|
331
|
+
line-height: var(--xh-leading-normal);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.xh-scope-question-flow[data-part='description'][hidden] {
|
|
335
|
+
display: none;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* 自由文本:与选项同等算数的一条答案,占满整行 */
|
|
339
|
+
.xh-scope-question-flow[data-part='note'] {
|
|
340
|
+
display: block;
|
|
341
|
+
inline-size: 100%;
|
|
342
|
+
padding-inline: var(--xh-question-flow-note-px, var(--xh-space-2));
|
|
343
|
+
padding-block: var(--xh-question-flow-note-py, var(--xh-space-1_5));
|
|
344
|
+
border: var(--xh-stroke-thin) solid var(--xh-question-flow-note-border, var(--xh-border-control));
|
|
345
|
+
border-radius: var(--xh-question-flow-note-radius, var(--xh-shape-control));
|
|
346
|
+
background: var(--xh-question-flow-note-bg, var(--xh-bg-surface));
|
|
347
|
+
color: var(--xh-question-flow-note-fg, var(--xh-fg-default));
|
|
348
|
+
font-family: inherit;
|
|
349
|
+
font-size: var(--xh-question-flow-note-font-size, var(--xh-_question-flow-font-size));
|
|
350
|
+
transition: border-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.xh-scope-question-flow[data-part='note'][hidden] {
|
|
354
|
+
display: none;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.xh-scope-question-flow[data-part='note']::placeholder {
|
|
358
|
+
color: var(--xh-question-flow-placeholder-fg, var(--xh-fg-subtle));
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.xh-scope-question-flow[data-part='note']:disabled {
|
|
362
|
+
color: var(--xh-fg-disabled);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/* 页脚:左边步进,右边动作。
|
|
366
|
+
两侧的钮都不收缩、文案也不折行,一行摆不下时整条页脚顶出卡片;
|
|
367
|
+
允许换行后摆不下的那一组落到下一行 */
|
|
368
|
+
.xh-scope-question-flow[data-part='footer'] {
|
|
369
|
+
display: flex;
|
|
370
|
+
flex-wrap: wrap;
|
|
371
|
+
align-items: center;
|
|
372
|
+
justify-content: space-between;
|
|
373
|
+
gap: var(--xh-question-flow-footer-gap, var(--xh-space-3));
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.xh-scope-question-flow[data-part='footer'][hidden] {
|
|
377
|
+
display: none;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/* 两颗翻页钮是方形图标钮,中间夹着计数:盒几何、悬停 / 按下与 0.97 按压、焦点环、禁用面全由
|
|
381
|
+
Action Control 的 icon 档 xs 位给(24px = --xh-control-action-size;ghost 形态,白底 100 → 200),
|
|
382
|
+
组件只映射既有使用者槽:尺寸、内衬、圆角(inset)、底与字色 */
|
|
383
|
+
.xh-scope-question-flow[data-part='prev-trigger'],
|
|
384
|
+
.xh-scope-question-flow[data-part='next-trigger'] {
|
|
385
|
+
--xh-action-visual-size: var(--xh-question-flow-step-size, var(--xh-_action-profile-visual-size));
|
|
386
|
+
--xh-action-padding-inline: var(--xh-question-flow-step-padding, var(--xh-_action-profile-padding-inline));
|
|
387
|
+
--xh-action-radius: var(--xh-question-flow-step-radius, var(--xh-shape-inset));
|
|
388
|
+
--xh-action-bg-rest: var(--xh-question-flow-step-bg, var(--xh-_action-variant-bg-rest));
|
|
389
|
+
--xh-action-bg-hover: var(--xh-question-flow-step-bg-hover, var(--xh-_action-variant-bg-hover));
|
|
390
|
+
--xh-action-fg-rest: var(--xh-question-flow-step-fg, var(--xh-fg-subtle));
|
|
391
|
+
--xh-action-fg-hover: var(--xh-question-flow-step-fg-hover, var(--xh-fg-default));
|
|
392
|
+
--xh-action-fg-pressed: var(--xh-question-flow-step-fg-hover, var(--xh-fg-default));
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/* 家族那条 display 会把 UA 的 [hidden]{display:none} 盖掉 */
|
|
396
|
+
.xh-scope-question-flow[data-part='prev-trigger'][hidden],
|
|
397
|
+
.xh-scope-question-flow[data-part='next-trigger'][hidden] {
|
|
398
|
+
display: none;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* 没写内容就由皮肤画箭头;作者往按钮里塞了自己的图形,这两条即不命中 */
|
|
402
|
+
.xh-scope-question-flow[data-part='prev-trigger']:empty::before {
|
|
403
|
+
content: '';
|
|
404
|
+
display: inline-block;
|
|
405
|
+
inline-size: var(--xh-icon-size, var(--xh-glyph-size-md));
|
|
406
|
+
block-size: var(--xh-icon-size, var(--xh-glyph-size-md));
|
|
407
|
+
vertical-align: var(--xh-glyph-baseline-shift);
|
|
408
|
+
background-color: currentColor;
|
|
409
|
+
-webkit-mask: var(--xh-glyph-mark-chevron-up) center / contain no-repeat;
|
|
410
|
+
mask: var(--xh-glyph-mark-chevron-up) center / contain no-repeat;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.xh-scope-question-flow[data-part='next-trigger']:empty::before {
|
|
414
|
+
content: '';
|
|
415
|
+
display: inline-block;
|
|
416
|
+
inline-size: var(--xh-icon-size, var(--xh-glyph-size-md));
|
|
417
|
+
block-size: var(--xh-icon-size, var(--xh-glyph-size-md));
|
|
418
|
+
vertical-align: var(--xh-glyph-baseline-shift);
|
|
419
|
+
background-color: currentColor;
|
|
420
|
+
-webkit-mask: var(--xh-glyph-mark-chevron-down) center / contain no-repeat;
|
|
421
|
+
mask: var(--xh-glyph-mark-chevron-down) center / contain no-repeat;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/* 给眼睛看的 N / M:等宽数字,换题时不左右晃 */
|
|
425
|
+
.xh-scope-question-flow[data-part='counter'] {
|
|
426
|
+
display: inline-flex;
|
|
427
|
+
align-items: center;
|
|
428
|
+
color: var(--xh-question-flow-counter-fg, var(--xh-fg-subtle));
|
|
429
|
+
font-size: var(--xh-question-flow-counter-font-size, var(--xh-text-caption-size));
|
|
430
|
+
font-variant-numeric: tabular-nums;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.xh-scope-question-flow[data-part='counter'][hidden] {
|
|
434
|
+
display: none;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* 两颗动作钮是离散动作控件:盒几何、悬停 / 按下与 0.97 按压、焦点环、禁用面全由 Action Control 的 text 档给,
|
|
438
|
+
组件只映射既有使用者槽。跳过走 ghost 档:安静的文字钮(白底 100 → 200);提交走 solid 档:这一组里的主要动作,
|
|
439
|
+
与 Button 缺省同为品牌实心。两颗共用的几何与字号写在一起 */
|
|
440
|
+
.xh-scope-question-flow[data-part='skip-trigger'],
|
|
441
|
+
.xh-scope-question-flow[data-part='submit-trigger'] {
|
|
442
|
+
--xh-action-gap: var(--xh-question-flow-action-gap, var(--xh-space-1));
|
|
443
|
+
--xh-action-visual-size: var(--xh-question-flow-action-h, var(--xh-_question-flow-h));
|
|
444
|
+
--xh-action-padding-inline: var(--xh-question-flow-action-px, var(--xh-_question-flow-px));
|
|
445
|
+
--xh-action-radius: var(--xh-question-flow-action-radius, var(--xh-shape-control));
|
|
446
|
+
--xh-action-font-size: var(--xh-question-flow-action-font-size, var(--xh-text-label-size));
|
|
447
|
+
|
|
448
|
+
font-weight: var(--xh-question-flow-action-font-weight, var(--xh-text-label-weight));
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/* 家族那条 display 会把 UA 的 [hidden]{display:none} 盖掉 */
|
|
452
|
+
.xh-scope-question-flow[data-part='skip-trigger'][hidden],
|
|
453
|
+
.xh-scope-question-flow[data-part='submit-trigger'][hidden] {
|
|
454
|
+
display: none;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* 跳过钮:底与字色映到 ghost 档的桥接槽,悬停时字色提到正文档 */
|
|
458
|
+
.xh-scope-question-flow[data-part='skip-trigger'] {
|
|
459
|
+
--xh-action-bg-rest: var(--xh-question-flow-skip-bg, var(--xh-_action-variant-bg-rest));
|
|
460
|
+
--xh-action-bg-hover: var(--xh-question-flow-skip-bg-hover, var(--xh-_action-variant-bg-hover));
|
|
461
|
+
--xh-action-fg-rest: var(--xh-question-flow-skip-fg, var(--xh-fg-muted));
|
|
462
|
+
--xh-action-fg-hover: var(--xh-question-flow-skip-fg-hover, var(--xh-fg-default));
|
|
463
|
+
--xh-action-fg-pressed: var(--xh-question-flow-skip-fg-hover, var(--xh-fg-default));
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/* 提交钮:品牌实心,内顶高光把实心块顶出一道边,与跳过那颗的描边同一档厚度(三态同一支,
|
|
467
|
+
答不动时的置灰面由家族收掉、高光随之撤掉,出口一直在那里只是按不动);底 / 字与置灰底映到 solid 档的桥接槽 */
|
|
468
|
+
.xh-scope-question-flow[data-part='submit-trigger'] {
|
|
469
|
+
--xh-action-bg-rest: var(--xh-question-flow-submit-bg, var(--xh-_action-variant-bg-rest));
|
|
470
|
+
--xh-action-bg-hover: var(--xh-question-flow-submit-bg-hover, var(--xh-_action-variant-bg-hover));
|
|
471
|
+
--xh-action-bg-pressed: var(--xh-question-flow-submit-bg-active, var(--xh-_action-variant-bg-pressed));
|
|
472
|
+
--xh-action-bg-disabled: var(--xh-question-flow-submit-bg-off, var(--xh-_action-variant-bg-disabled));
|
|
473
|
+
--xh-action-fg-rest: var(--xh-question-flow-submit-fg, var(--xh-_action-variant-fg-rest));
|
|
474
|
+
--xh-action-fg-hover: var(--xh-question-flow-submit-fg, var(--xh-_action-variant-fg-hover));
|
|
475
|
+
--xh-action-fg-pressed: var(--xh-question-flow-submit-fg, var(--xh-_action-variant-fg-pressed));
|
|
476
|
+
--xh-action-highlight-rest: transparent;
|
|
477
|
+
--xh-action-shadow-rest: var(--xh-question-flow-submit-shadow, var(--xh-_highlight-tone));
|
|
478
|
+
--xh-action-shadow-hover: var(--xh-question-flow-submit-shadow, var(--xh-_highlight-tone));
|
|
479
|
+
--xh-action-shadow-pressed: var(--xh-question-flow-submit-shadow, var(--xh-_highlight-tone));
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/* 面是实心的,环色与面同族,画在面里就看不出来;环改取面自己的前景色——
|
|
483
|
+
那一族色本来就要在这块面上把字读清楚,与面的对比是按可读性定的。
|
|
484
|
+
置灰档的底换成置灰底、字换成置灰色,环取过来就跟底一起糊了,那一档走公共层的环 */
|
|
485
|
+
.xh-scope-question-flow[data-part='submit-trigger']:not([data-disabled]) {
|
|
486
|
+
--xh-action-ring-color-focus-visible: currentColor;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/* 交卷之后才露出的那一格 */
|
|
490
|
+
.xh-scope-question-flow[data-part='result'] {
|
|
491
|
+
display: inline-flex;
|
|
492
|
+
align-self: flex-start;
|
|
493
|
+
align-items: center;
|
|
494
|
+
gap: var(--xh-question-flow-result-gap, var(--xh-space-1));
|
|
495
|
+
padding-inline: var(--xh-question-flow-result-px, var(--xh-space-1_5));
|
|
496
|
+
padding-block: var(--xh-question-flow-result-py, var(--xh-space-0_5));
|
|
497
|
+
border: var(--xh-stroke-thin) solid transparent;
|
|
498
|
+
border-radius: var(--xh-question-flow-result-radius, var(--xh-shape-pill));
|
|
499
|
+
background: var(--xh-question-flow-result-bg, var(--xh-_tone-subtle));
|
|
500
|
+
color: var(--xh-question-flow-result-fg, var(--xh-_tone-fg));
|
|
501
|
+
font-size: var(--xh-question-flow-result-font-size, var(--xh-text-caption-size));
|
|
502
|
+
font-weight: var(--xh-question-flow-result-font-weight, var(--xh-font-weight-medium));
|
|
503
|
+
line-height: var(--xh-control-indicator-md);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/* 落定结果弹出;落在首帧就在的列表条目里(历史消息)时直接呈现,不跟着整屏一起入场 */
|
|
507
|
+
.xh-scope-question-flow[data-part='result']:not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
|
|
508
|
+
animation: xh-pop-in var(--xh-motion-duration-enter) var(--xh-motion-ease-enter-strong);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.xh-scope-question-flow[data-part='result'][hidden] {
|
|
512
|
+
display: none;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/* 视觉隐藏的播报区:不能 display:none,那样读屏就取不到它了 */
|
|
516
|
+
.xh-scope-question-flow[data-part='live-region'] {
|
|
517
|
+
position: absolute;
|
|
518
|
+
inline-size: 1px;
|
|
519
|
+
block-size: 1px;
|
|
520
|
+
padding: 0;
|
|
521
|
+
margin: -1px;
|
|
522
|
+
border: 0;
|
|
523
|
+
overflow: hidden;
|
|
524
|
+
clip-path: inset(50%);
|
|
525
|
+
white-space: nowrap;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
@media (forced-colors: active) {
|
|
529
|
+
/* 兜底字形是 mask 挖出来的一块底色,这一档里底色被系统换成 Canvas,字形跟着消失。
|
|
530
|
+
字形退出强制换色、直接写系统色(不能取 currentColor:退出强制换色的伪元素读到的是被系统换掉之前的作者色):
|
|
531
|
+
按钮面上取 ButtonText,悬停与按下时家族把按钮涂成 Highlight、字形换 HighlightText;
|
|
532
|
+
落在勾选盒自己的实心面上(这一档里是 Canvas),整行悬停不换面,取 CanvasText;
|
|
533
|
+
禁用取 GrayText */
|
|
534
|
+
.xh-scope-question-flow[data-part='item-indicator'][data-select-mode='single']:empty::before {
|
|
535
|
+
forced-color-adjust: none;
|
|
536
|
+
background-color: CanvasText;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.xh-scope-question-flow:is([data-part='prev-trigger'], [data-part='next-trigger']):empty::before {
|
|
540
|
+
forced-color-adjust: none;
|
|
541
|
+
background-color: ButtonText;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.xh-scope-question-flow:is([data-part='prev-trigger'], [data-part='next-trigger']):not([data-disabled]):not([data-loading]):is(:hover, :active, [data-pressed]):empty::before {
|
|
545
|
+
background-color: HighlightText;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.xh-scope-question-flow[data-part='item'][data-disabled] .xh-scope-question-flow[data-part='item-indicator'][data-select-mode='single']:empty::before,
|
|
549
|
+
.xh-scope-question-flow:is([data-part='prev-trigger'], [data-part='next-trigger'])[data-disabled]:empty::before {
|
|
550
|
+
background-color: GrayText;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|