@xihan-ui/styles 2.1.0 → 3.0.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.
Files changed (152) hide show
  1. package/CHANGELOG.md +1227 -0
  2. package/README.md +6 -1
  3. package/component-tokens.d.ts +505 -96
  4. package/components.tokens.json +34636 -25846
  5. package/css/accordion.css +34 -8
  6. package/css/alert.css +59 -1
  7. package/css/anchor.css +46 -8
  8. package/css/approval.css +116 -76
  9. package/css/avatar-group.css +1 -1
  10. package/css/avatar.css +13 -5
  11. package/css/back-top.css +61 -42
  12. package/css/badge.css +62 -12
  13. package/css/bar-code.css +1 -1
  14. package/css/breadcrumb.css +62 -3
  15. package/css/button-group.css +4 -4
  16. package/css/button.css +67 -19
  17. package/css/calendar-picker.css +19 -0
  18. package/css/calendar-range-picker.css +39 -2
  19. package/css/card.css +115 -1
  20. package/css/carousel.css +148 -43
  21. package/css/cartesian-chart.css +830 -0
  22. package/css/cascader.css +181 -65
  23. package/css/checkbox-group.css +59 -89
  24. package/css/checkbox.css +16 -49
  25. package/css/citation.css +470 -0
  26. package/css/clipboard.css +20 -63
  27. package/css/code-view.css +101 -6
  28. package/css/collapsible.css +34 -8
  29. package/css/color-field.css +18 -0
  30. package/css/color-picker.css +55 -58
  31. package/css/color-slider.css +22 -15
  32. package/css/color-swatch-picker.css +3 -1
  33. package/css/combobox.css +80 -33
  34. package/css/command.css +45 -43
  35. package/css/context-menu.css +39 -22
  36. package/css/date-field.css +23 -0
  37. package/css/date-picker.css +57 -22
  38. package/css/date-range-picker.css +301 -12
  39. package/css/description.css +17 -1
  40. package/css/descriptions.css +42 -0
  41. package/css/dialog.css +94 -36
  42. package/css/diff-view.css +97 -12
  43. package/css/download-trigger.css +44 -78
  44. package/css/drawer.css +160 -119
  45. package/css/editable.css +19 -0
  46. package/css/empty-state.css +7 -6
  47. package/css/field-array.css +36 -0
  48. package/css/field.css +16 -18
  49. package/css/file-upload.css +125 -135
  50. package/css/flex.css +324 -8
  51. package/css/float-button.css +165 -38
  52. package/css/floating-panel.css +53 -19
  53. package/css/form.css +23 -17
  54. package/css/funnel-chart.css +106 -0
  55. package/css/graph-chart.css +205 -0
  56. package/css/grid-list.css +235 -0
  57. package/css/grid.css +252 -1
  58. package/css/heatmap.css +119 -36
  59. package/css/hierarchy-chart.css +298 -0
  60. package/css/hover-card.css +31 -14
  61. package/css/icon.css +100 -0
  62. package/css/image-cropper.css +33 -7
  63. package/css/image-viewer.css +167 -22
  64. package/css/image.css +23 -4
  65. package/css/input-group.css +11 -13
  66. package/css/json-viewer.css +50 -2
  67. package/css/layout.css +68 -18
  68. package/css/liquid.css +106 -0
  69. package/css/list.css +1 -1
  70. package/css/listbox.css +46 -6
  71. package/css/loading-bar.css +27 -13
  72. package/css/log.css +129 -33
  73. package/css/markdown-stream.css +1 -1
  74. package/css/marquee.css +163 -7
  75. package/css/matrix-code.css +1 -1
  76. package/css/mention.css +35 -19
  77. package/css/menu.css +35 -21
  78. package/css/menubar.css +36 -20
  79. package/css/message-feed.css +172 -51
  80. package/css/navigation-menu.css +172 -11
  81. package/css/notification.css +429 -108
  82. package/css/number-field.css +22 -0
  83. package/css/page-header.css +3 -1
  84. package/css/pagination.css +126 -24
  85. package/css/password-input.css +40 -8
  86. package/css/pie-chart.css +247 -0
  87. package/css/popconfirm.css +44 -50
  88. package/css/popover.css +50 -14
  89. package/css/progress.css +308 -10
  90. package/css/prompt-input.css +36 -0
  91. package/css/question-flow.css +97 -57
  92. package/css/radar-chart.css +233 -0
  93. package/css/radio-group.css +363 -5
  94. package/css/rating.css +21 -23
  95. package/css/reasoning.css +61 -54
  96. package/css/resizable.css +6 -1
  97. package/css/sankey-chart.css +174 -0
  98. package/css/scroll-area.css +32 -0
  99. package/css/scrollbar.css +1 -1
  100. package/css/select.css +74 -55
  101. package/css/side-nav.css +173 -24
  102. package/css/signature-pad.css +16 -1
  103. package/css/skeleton.css +13 -14
  104. package/css/slider.css +35 -13
  105. package/css/sortable.css +37 -7
  106. package/css/sparkline.css +164 -0
  107. package/css/spinner.css +50 -22
  108. package/css/splitter.css +7 -1
  109. package/css/statistic.css +10 -0
  110. package/css/steps.css +248 -29
  111. package/css/switch.css +23 -48
  112. package/css/table.css +158 -118
  113. package/css/tabs.css +231 -19
  114. package/css/tag-group.css +27 -3
  115. package/css/tag.css +53 -12
  116. package/css/tags-input.css +40 -3
  117. package/css/text-field.css +19 -0
  118. package/css/time-field.css +20 -1
  119. package/css/time-picker.css +44 -15
  120. package/css/time-range-picker.css +45 -16
  121. package/css/timeline.css +1 -1
  122. package/css/toggle-group.css +4 -4
  123. package/css/toggle.css +4 -3
  124. package/css/tool-call.css +59 -51
  125. package/css/toolbar.css +101 -3
  126. package/css/tooltip.css +15 -2
  127. package/css/tour.css +42 -12
  128. package/css/transfer.css +98 -75
  129. package/css/tree-select.css +232 -53
  130. package/css/tree.css +201 -55
  131. package/css/truncate.css +55 -12
  132. package/css/typography.css +93 -0
  133. package/css/virtualizer.css +56 -0
  134. package/css/watermark.css +23 -0
  135. package/family/action-control.css +14 -5
  136. package/family/chart.css +480 -0
  137. package/family/check-mark.css +94 -0
  138. package/family/choice-card.css +97 -0
  139. package/family/collection-item.css +9 -15
  140. package/family/field-chrome.css +1 -12
  141. package/family/loading-ring.css +95 -0
  142. package/family/material.css +72 -0
  143. package/family/menu-choice.css +56 -0
  144. package/family/motion.css +207 -10
  145. package/family/tag-list.css +59 -0
  146. package/index.css +22997 -13678
  147. package/index.unlayered.css +12928 -3605
  148. package/package.json +20 -8
  149. package/css/gradient-text.css +0 -91
  150. package/css/icon-wrapper.css +0 -81
  151. package/css/segmented.css +0 -280
  152. package/css/toast.css +0 -499
@@ -0,0 +1,235 @@
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
+ /* GridList 的行复用 Collection Item;拖动把手由组合进来的 Sortable 负责。 */
7
+ @import '../family/action-control.css';
8
+ @import '../family/check-mark.css';
9
+ @import '../family/collection-item.css';
10
+ @import '../family/loading-ring.css';
11
+ @import '../family/motion.css';
12
+
13
+ @layer xihan.components {
14
+ [data-scope='grid-list'] {
15
+ --xh-grid-list-skin: 1;
16
+ }
17
+
18
+ [data-scope='grid-list'][data-part='root'] {
19
+ --xh-_grid-list-indicator: var(--xh-control-indicator-md);
20
+ --xh-_grid-list-indicator-glyph: calc(var(--xh-_grid-list-indicator) * 0.75);
21
+ --xh-_grid-list-indicator-accent: var(--xh-_tone-border-control, var(--xh-bg-brand));
22
+ --xh-_grid-list-indicator-on-accent: var(--xh-_tone-on, var(--xh-fg-on-brand));
23
+ --xh-icon-size: var(--xh-grid-list-icon-size, var(--xh-glyph-size-md));
24
+ /* 占位文案与条目同档:字号与行内内衬随尺寸档 */
25
+ --xh-_grid-list-state-font-size: var(--xh-control-font-md);
26
+ --xh-_grid-list-state-px: var(--xh-control-px-md);
27
+
28
+ display: flex;
29
+ flex-direction: column;
30
+ box-sizing: border-box;
31
+ gap: var(--xh-grid-list-gap, var(--xh-list-option-gap));
32
+ inline-size: 100%;
33
+ min-inline-size: 0;
34
+ padding: var(--xh-grid-list-p, var(--xh-space-1));
35
+ border: var(--xh-stroke-thin) solid transparent;
36
+ border-radius: var(--xh-grid-list-radius, var(--xh-shape-surface));
37
+ background: var(--xh-grid-list-bg, transparent);
38
+ }
39
+
40
+ [data-scope='grid-list'][data-part='root'][data-variant='outline'] {
41
+ border-color: var(--xh-grid-list-border, var(--xh-border-default));
42
+ background: var(--xh-grid-list-bg, var(--xh-bg-surface));
43
+ }
44
+
45
+ [data-scope='grid-list'][data-part='root'][data-variant='subtle'] {
46
+ background: var(--xh-grid-list-bg, var(--xh-bg-subtle));
47
+ }
48
+
49
+ [data-scope='grid-list'][data-part='root'][data-invalid] {
50
+ border-color: var(--xh-grid-list-border-invalid, var(--xh-border-invalid));
51
+ }
52
+
53
+ [data-scope='grid-list'][data-part='root']:focus-visible {
54
+ outline: var(--xh-ring-width) solid var(--xh-ring-focus);
55
+ outline-offset: var(--xh-ring-offset);
56
+ }
57
+
58
+ [data-scope='grid-list'][data-part='root'][data-size='sm'] {
59
+ --xh-_grid-list-indicator: var(--xh-control-indicator-sm);
60
+ --xh-_grid-list-state-font-size: var(--xh-control-font-sm);
61
+ --xh-_grid-list-state-px: var(--xh-control-px-sm);
62
+ --xh-icon-size: var(--xh-grid-list-icon-size, var(--xh-glyph-size-sm));
63
+ }
64
+
65
+ [data-scope='grid-list'][data-part='root'][data-size='lg'] {
66
+ --xh-_grid-list-indicator: var(--xh-control-indicator-lg);
67
+ --xh-_grid-list-state-font-size: var(--xh-control-font-lg);
68
+ --xh-_grid-list-state-px: var(--xh-control-px-lg);
69
+ --xh-icon-size: var(--xh-grid-list-icon-size, var(--xh-glyph-size-lg));
70
+ }
71
+
72
+ [data-scope='grid-list'][data-part='label'] {
73
+ padding-block: var(--xh-grid-list-label-py, var(--xh-space-1));
74
+ padding-inline: var(--xh-grid-list-label-px, var(--xh-control-px-md));
75
+ color: var(--xh-grid-list-label-fg, var(--xh-fg-default));
76
+ font-size: var(--xh-grid-list-label-font-size, var(--xh-text-label-size));
77
+ font-weight: var(--xh-grid-list-label-font-weight, var(--xh-font-weight-semibold));
78
+ line-height: var(--xh-leading-normal);
79
+ }
80
+
81
+ /* 行走 Collection Item 的 page 语境(页内持久集合),与 Table、Transfer 同一种选中标记:品牌淡底行面 +
82
+ 淡底前景(selected+hover 20% / +pressed 28%),外加行首勾选框;两者都由家族与勾选标记配方给,
83
+ 这里只映射圆角与选中面的公开槽 */
84
+ [data-scope='grid-list'][data-part='row'] {
85
+ --xh-collection-radius: var(--xh-grid-list-row-radius, var(--xh-shape-control));
86
+ --xh-collection-bg-selected: var(--xh-grid-list-row-bg-selected, var(--xh-bg-brand-subtle));
87
+ --xh-collection-fg-selected: var(--xh-grid-list-row-fg-selected, var(--xh-fg-on-brand-subtle));
88
+ --xh-collection-fg-selected-hover: var(--xh-grid-list-row-fg-selected, var(--xh-fg-on-brand-subtle));
89
+ --xh-collection-fg-selected-highlight: var(--xh-grid-list-row-fg-selected, var(--xh-fg-on-brand-subtle));
90
+ --xh-collection-fg-selected-pressed: var(--xh-grid-list-row-fg-selected, var(--xh-fg-on-brand-subtle));
91
+
92
+ /* 家族只过渡换面的两支;重新取数时整列淡下同样走 micro,opacity 补进同一份列表 */
93
+ transition:
94
+ background-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter),
95
+ color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter),
96
+ opacity var(--xh-motion-duration-micro) var(--xh-motion-ease-enter);
97
+ }
98
+
99
+ /* Headless 会预先保留下一次 roving focus 的 highlighted 行(指针点过的行也记着);容器尚未真正获得
100
+ 键盘焦点时,这只是内部导航位置,不能提前画成焦点态:面退回静息(选中行退回选中面),指针移入仍按
101
+ 悬停那一档回应 */
102
+ [data-scope='grid-list'][data-part='row'][data-highlighted]:not(:focus-visible) {
103
+ --xh-collection-bg-keyboard-highlight: transparent;
104
+ --xh-collection-outline-keyboard-highlight: transparent;
105
+ --xh-collection-bg-selected-highlight: var(--xh-grid-list-row-bg-selected, var(--xh-bg-brand-subtle));
106
+ --xh-collection-outline-selected-highlight: transparent;
107
+ }
108
+
109
+ [data-scope='grid-list'][data-part='row'][data-highlighted]:not(:focus-visible):hover {
110
+ --xh-collection-bg-keyboard-highlight: var(--xh-bg-subtle);
111
+ --xh-collection-bg-selected-highlight: var(--xh-bg-brand-subtle-hover);
112
+ }
113
+
114
+ [data-scope='grid-list'][data-part='root'][data-readonly]
115
+ [data-scope='grid-list'][data-part='row'] {
116
+ cursor: default;
117
+ }
118
+
119
+ /* 已有行时重新取数:不换成占位,行保留上一帧、按 micro 淡到禁用透明度,数据到了再淡回;
120
+ 这一段不接指针——取数在途时选中与行内动作都不生效。aria-busy 与这一副可见回执同源 */
121
+ [data-scope='grid-list'][data-part='root'][data-loading]
122
+ [data-scope='grid-list'][data-part='row'] {
123
+ opacity: var(--xh-grid-list-row-loading-opacity, var(--xh-state-disabled-opacity));
124
+ pointer-events: none;
125
+ }
126
+
127
+ /* content 保持真实 gridcell 盒;里面两行自己排,不依赖 Collection Item 的直接子项网格。 */
128
+ [data-scope='grid-list'][data-part='row-content'] {
129
+ display: flex;
130
+ grid-row: 1 / span 2;
131
+ grid-column: text;
132
+ flex-direction: column;
133
+ gap: var(--xh-grid-list-row-content-gap, var(--xh-space-1));
134
+ min-inline-size: 0;
135
+ }
136
+
137
+ [data-scope='grid-list'][data-part='row-text'],
138
+ [data-scope='grid-list'][data-part='row-description'] {
139
+ grid-row: auto;
140
+ grid-column: auto;
141
+ min-inline-size: 0;
142
+ overflow: hidden;
143
+ text-overflow: ellipsis;
144
+ }
145
+
146
+ [data-scope='grid-list'][data-part='row-text'] {
147
+ color: inherit;
148
+ white-space: nowrap;
149
+ }
150
+
151
+ [data-scope='grid-list'][data-part='row-description'] {
152
+ color: var(--xh-grid-list-row-description-fg, var(--xh-fg-muted));
153
+ font-size: var(--xh-grid-list-row-description-font-size, var(--xh-control-caption-md));
154
+ white-space: nowrap;
155
+ }
156
+
157
+ [data-scope='grid-list'][data-part='row-actions'] {
158
+ display: flex;
159
+ grid-row: 1 / span 2;
160
+ grid-column: suffix / span 2;
161
+ gap: var(--xh-grid-list-row-actions-gap, var(--xh-space-1));
162
+ align-items: center;
163
+ margin-inline-start: var(--xh-grid-list-row-actions-ms, var(--xh-control-gap-md));
164
+ }
165
+
166
+ [data-scope='grid-list'][data-part='row-action'] {
167
+ --xh-action-font-size: var(--xh-grid-list-row-action-font-size, var(--xh-control-font-sm));
168
+ }
169
+
170
+ /* 行首方框:静息透明底 + 控件盒描边,勾上换语气实心面。框里的勾由勾选标记配方画(常驻、按状态淡变并轻缩放),
171
+ 尺寸读这里改接的 --xh-icon-size:方框边长 × 0.75,与 Checkbox 同一比例 */
172
+ [data-scope='grid-list'][data-part='row-selection-indicator'] {
173
+ --xh-icon-size: var(--xh-grid-list-row-indicator-glyph-size, var(--xh-_grid-list-indicator-glyph));
174
+
175
+ display: grid;
176
+ grid-row: 1 / span 2;
177
+ grid-column: prefix;
178
+ place-items: center;
179
+ inline-size: var(--xh-grid-list-row-indicator-size, var(--xh-_grid-list-indicator));
180
+ block-size: var(--xh-grid-list-row-indicator-size, var(--xh-_grid-list-indicator));
181
+ margin-inline-end: var(--xh-grid-list-row-indicator-me, var(--xh-control-gap-md));
182
+ border: var(--xh-stroke-thin) solid var(--xh-grid-list-row-indicator-border, var(--xh-border-control));
183
+ border-radius: var(--xh-grid-list-row-indicator-radius, var(--xh-shape-inset));
184
+ background: var(--xh-grid-list-row-indicator-bg, transparent);
185
+ color: var(--xh-grid-list-row-indicator-fg-selected, var(--xh-_grid-list-indicator-on-accent));
186
+ transition:
187
+ background-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter),
188
+ border-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter);
189
+ }
190
+
191
+ [data-scope='grid-list'][data-part='row-selection-indicator'][data-state='checked'] {
192
+ border-color: var(--xh-grid-list-row-indicator-border-selected, var(--xh-_grid-list-indicator-accent));
193
+ background: var(--xh-grid-list-row-indicator-bg-selected, var(--xh-_grid-list-indicator-accent));
194
+ }
195
+
196
+ /* 空态与加载态占同一个位置、同一副排版:一行文案居中,字号与行内内衬随尺寸档与条目同档,次要文字色,
197
+ 块向内距一档,不设最小高 */
198
+ [data-scope='grid-list'][data-part='empty'],
199
+ [data-scope='grid-list'][data-part='loading'] {
200
+ display: flex;
201
+ align-items: center;
202
+ justify-content: center;
203
+ gap: var(--xh-grid-list-state-gap, var(--xh-control-gap-md));
204
+ padding-block: var(--xh-grid-list-state-py, var(--xh-space-3));
205
+ padding-inline: var(--xh-grid-list-state-px, var(--xh-_grid-list-state-px));
206
+ color: var(--xh-grid-list-state-fg, var(--xh-fg-muted));
207
+ font-size: var(--xh-grid-list-state-font-size, var(--xh-_grid-list-state-font-size));
208
+ line-height: var(--xh-leading-normal);
209
+ text-align: center;
210
+ }
211
+
212
+ /* 还没有行、正在取:一枚加载环排在文案之前。环由加载环配方画成(轨道 + 起始边、随 data-loading 淡入并转),
213
+ 这里只给它盒子:直径取尺寸档的图标档 */
214
+ [data-scope='grid-list'][data-part='loading']::before {
215
+ content: '';
216
+ flex: none;
217
+ inline-size: var(--xh-icon-size, var(--xh-glyph-size-md));
218
+ block-size: var(--xh-icon-size, var(--xh-glyph-size-md));
219
+ }
220
+
221
+ [data-scope='grid-list'][data-part='row-selection-indicator'][hidden],
222
+ [data-scope='grid-list'][data-part='row-content'][hidden],
223
+ [data-scope='grid-list'][data-part='row-actions'][hidden],
224
+ [data-scope='grid-list'][data-part='empty'][hidden],
225
+ [data-scope='grid-list'][data-part='loading'][hidden],
226
+ [data-scope='grid-list'][data-part='root'][hidden] {
227
+ display: none;
228
+ }
229
+
230
+ @media print {
231
+ [data-scope='grid-list'][data-part='row-actions'] {
232
+ display: none;
233
+ }
234
+ }
235
+ }
package/css/grid.css CHANGED
@@ -460,10 +460,12 @@
460
460
  [data-scope='grid'][data-part='item'] {
461
461
  grid-column-start: var(--xh-_grid-start);
462
462
  grid-column-end: span var(--xh-_grid-span);
463
+ grid-row-end: span var(--xh-_grid-row-span);
463
464
 
464
- /* 两个槽位在每一格上都声明一遍,嵌套时内层的格子不吃外层那一格的值 */
465
+ /* 三个槽位在每一格上都声明一遍,嵌套时内层的格子不吃外层那一格的值 */
465
466
  --xh-_grid-span: 1;
466
467
  --xh-_grid-start: auto;
468
+ --xh-_grid-row-span: 1;
467
469
  }
468
470
 
469
471
  /* —— 跨列 —— */
@@ -942,6 +944,255 @@
942
944
  }
943
945
  }
944
946
 
947
+ /* —— 跨行 —— */
948
+ /* 占一行是格子上的缺省,这里从跨两行起逐值写。行高由内容撑出时跨几行就占几条行轨道,
949
+ 同一行里其余的格子按各自内容排,不被拉成同高 */
950
+ [data-scope='grid'][data-part='item'][data-row-span='2'] {
951
+ --xh-_grid-row-span: 2;
952
+ }
953
+
954
+ [data-scope='grid'][data-part='item'][data-row-span='3'] {
955
+ --xh-_grid-row-span: 3;
956
+ }
957
+
958
+ [data-scope='grid'][data-part='item'][data-row-span='4'] {
959
+ --xh-_grid-row-span: 4;
960
+ }
961
+
962
+ [data-scope='grid'][data-part='item'][data-row-span='5'] {
963
+ --xh-_grid-row-span: 5;
964
+ }
965
+
966
+ [data-scope='grid'][data-part='item'][data-row-span='6'] {
967
+ --xh-_grid-row-span: 6;
968
+ }
969
+
970
+ [data-scope='grid'][data-part='item'][data-row-span='7'] {
971
+ --xh-_grid-row-span: 7;
972
+ }
973
+
974
+ [data-scope='grid'][data-part='item'][data-row-span='8'] {
975
+ --xh-_grid-row-span: 8;
976
+ }
977
+
978
+ [data-scope='grid'][data-part='item'][data-row-span='9'] {
979
+ --xh-_grid-row-span: 9;
980
+ }
981
+
982
+ [data-scope='grid'][data-part='item'][data-row-span='10'] {
983
+ --xh-_grid-row-span: 10;
984
+ }
985
+
986
+ [data-scope='grid'][data-part='item'][data-row-span='11'] {
987
+ --xh-_grid-row-span: 11;
988
+ }
989
+
990
+ [data-scope='grid'][data-part='item'][data-row-span='12'] {
991
+ --xh-_grid-row-span: 12;
992
+ }
993
+
994
+ /* —— 逐档跨行 —— */
995
+ /* 与逐档跨列逐字同构:移动优先,没写的档沿用比它窄的那一档;每档都从 1 写起,某一档收回一行同样合法 */
996
+ @media (min-width: 640px) {
997
+ [data-scope='grid'][data-part='item'][data-row-span-sm='1'] {
998
+ --xh-_grid-row-span: 1;
999
+ }
1000
+
1001
+ [data-scope='grid'][data-part='item'][data-row-span-sm='2'] {
1002
+ --xh-_grid-row-span: 2;
1003
+ }
1004
+
1005
+ [data-scope='grid'][data-part='item'][data-row-span-sm='3'] {
1006
+ --xh-_grid-row-span: 3;
1007
+ }
1008
+
1009
+ [data-scope='grid'][data-part='item'][data-row-span-sm='4'] {
1010
+ --xh-_grid-row-span: 4;
1011
+ }
1012
+
1013
+ [data-scope='grid'][data-part='item'][data-row-span-sm='5'] {
1014
+ --xh-_grid-row-span: 5;
1015
+ }
1016
+
1017
+ [data-scope='grid'][data-part='item'][data-row-span-sm='6'] {
1018
+ --xh-_grid-row-span: 6;
1019
+ }
1020
+
1021
+ [data-scope='grid'][data-part='item'][data-row-span-sm='7'] {
1022
+ --xh-_grid-row-span: 7;
1023
+ }
1024
+
1025
+ [data-scope='grid'][data-part='item'][data-row-span-sm='8'] {
1026
+ --xh-_grid-row-span: 8;
1027
+ }
1028
+
1029
+ [data-scope='grid'][data-part='item'][data-row-span-sm='9'] {
1030
+ --xh-_grid-row-span: 9;
1031
+ }
1032
+
1033
+ [data-scope='grid'][data-part='item'][data-row-span-sm='10'] {
1034
+ --xh-_grid-row-span: 10;
1035
+ }
1036
+
1037
+ [data-scope='grid'][data-part='item'][data-row-span-sm='11'] {
1038
+ --xh-_grid-row-span: 11;
1039
+ }
1040
+
1041
+ [data-scope='grid'][data-part='item'][data-row-span-sm='12'] {
1042
+ --xh-_grid-row-span: 12;
1043
+ }
1044
+ }
1045
+
1046
+ @media (min-width: 768px) {
1047
+ [data-scope='grid'][data-part='item'][data-row-span-md='1'] {
1048
+ --xh-_grid-row-span: 1;
1049
+ }
1050
+
1051
+ [data-scope='grid'][data-part='item'][data-row-span-md='2'] {
1052
+ --xh-_grid-row-span: 2;
1053
+ }
1054
+
1055
+ [data-scope='grid'][data-part='item'][data-row-span-md='3'] {
1056
+ --xh-_grid-row-span: 3;
1057
+ }
1058
+
1059
+ [data-scope='grid'][data-part='item'][data-row-span-md='4'] {
1060
+ --xh-_grid-row-span: 4;
1061
+ }
1062
+
1063
+ [data-scope='grid'][data-part='item'][data-row-span-md='5'] {
1064
+ --xh-_grid-row-span: 5;
1065
+ }
1066
+
1067
+ [data-scope='grid'][data-part='item'][data-row-span-md='6'] {
1068
+ --xh-_grid-row-span: 6;
1069
+ }
1070
+
1071
+ [data-scope='grid'][data-part='item'][data-row-span-md='7'] {
1072
+ --xh-_grid-row-span: 7;
1073
+ }
1074
+
1075
+ [data-scope='grid'][data-part='item'][data-row-span-md='8'] {
1076
+ --xh-_grid-row-span: 8;
1077
+ }
1078
+
1079
+ [data-scope='grid'][data-part='item'][data-row-span-md='9'] {
1080
+ --xh-_grid-row-span: 9;
1081
+ }
1082
+
1083
+ [data-scope='grid'][data-part='item'][data-row-span-md='10'] {
1084
+ --xh-_grid-row-span: 10;
1085
+ }
1086
+
1087
+ [data-scope='grid'][data-part='item'][data-row-span-md='11'] {
1088
+ --xh-_grid-row-span: 11;
1089
+ }
1090
+
1091
+ [data-scope='grid'][data-part='item'][data-row-span-md='12'] {
1092
+ --xh-_grid-row-span: 12;
1093
+ }
1094
+ }
1095
+
1096
+ @media (min-width: 1024px) {
1097
+ [data-scope='grid'][data-part='item'][data-row-span-lg='1'] {
1098
+ --xh-_grid-row-span: 1;
1099
+ }
1100
+
1101
+ [data-scope='grid'][data-part='item'][data-row-span-lg='2'] {
1102
+ --xh-_grid-row-span: 2;
1103
+ }
1104
+
1105
+ [data-scope='grid'][data-part='item'][data-row-span-lg='3'] {
1106
+ --xh-_grid-row-span: 3;
1107
+ }
1108
+
1109
+ [data-scope='grid'][data-part='item'][data-row-span-lg='4'] {
1110
+ --xh-_grid-row-span: 4;
1111
+ }
1112
+
1113
+ [data-scope='grid'][data-part='item'][data-row-span-lg='5'] {
1114
+ --xh-_grid-row-span: 5;
1115
+ }
1116
+
1117
+ [data-scope='grid'][data-part='item'][data-row-span-lg='6'] {
1118
+ --xh-_grid-row-span: 6;
1119
+ }
1120
+
1121
+ [data-scope='grid'][data-part='item'][data-row-span-lg='7'] {
1122
+ --xh-_grid-row-span: 7;
1123
+ }
1124
+
1125
+ [data-scope='grid'][data-part='item'][data-row-span-lg='8'] {
1126
+ --xh-_grid-row-span: 8;
1127
+ }
1128
+
1129
+ [data-scope='grid'][data-part='item'][data-row-span-lg='9'] {
1130
+ --xh-_grid-row-span: 9;
1131
+ }
1132
+
1133
+ [data-scope='grid'][data-part='item'][data-row-span-lg='10'] {
1134
+ --xh-_grid-row-span: 10;
1135
+ }
1136
+
1137
+ [data-scope='grid'][data-part='item'][data-row-span-lg='11'] {
1138
+ --xh-_grid-row-span: 11;
1139
+ }
1140
+
1141
+ [data-scope='grid'][data-part='item'][data-row-span-lg='12'] {
1142
+ --xh-_grid-row-span: 12;
1143
+ }
1144
+ }
1145
+
1146
+ @media (min-width: 1280px) {
1147
+ [data-scope='grid'][data-part='item'][data-row-span-xl='1'] {
1148
+ --xh-_grid-row-span: 1;
1149
+ }
1150
+
1151
+ [data-scope='grid'][data-part='item'][data-row-span-xl='2'] {
1152
+ --xh-_grid-row-span: 2;
1153
+ }
1154
+
1155
+ [data-scope='grid'][data-part='item'][data-row-span-xl='3'] {
1156
+ --xh-_grid-row-span: 3;
1157
+ }
1158
+
1159
+ [data-scope='grid'][data-part='item'][data-row-span-xl='4'] {
1160
+ --xh-_grid-row-span: 4;
1161
+ }
1162
+
1163
+ [data-scope='grid'][data-part='item'][data-row-span-xl='5'] {
1164
+ --xh-_grid-row-span: 5;
1165
+ }
1166
+
1167
+ [data-scope='grid'][data-part='item'][data-row-span-xl='6'] {
1168
+ --xh-_grid-row-span: 6;
1169
+ }
1170
+
1171
+ [data-scope='grid'][data-part='item'][data-row-span-xl='7'] {
1172
+ --xh-_grid-row-span: 7;
1173
+ }
1174
+
1175
+ [data-scope='grid'][data-part='item'][data-row-span-xl='8'] {
1176
+ --xh-_grid-row-span: 8;
1177
+ }
1178
+
1179
+ [data-scope='grid'][data-part='item'][data-row-span-xl='9'] {
1180
+ --xh-_grid-row-span: 9;
1181
+ }
1182
+
1183
+ [data-scope='grid'][data-part='item'][data-row-span-xl='10'] {
1184
+ --xh-_grid-row-span: 10;
1185
+ }
1186
+
1187
+ [data-scope='grid'][data-part='item'][data-row-span-xl='11'] {
1188
+ --xh-_grid-row-span: 11;
1189
+ }
1190
+
1191
+ [data-scope='grid'][data-part='item'][data-row-span-xl='12'] {
1192
+ --xh-_grid-row-span: 12;
1193
+ }
1194
+ }
1195
+
945
1196
  /* 声明过任何 display 就盖掉了 UA 的 [hidden]{display:none},收起态得自己还回去。
946
1197
  写在文件末尾:兜底必须排在该部件所有 display 声明之后 */
947
1198
  [data-scope='grid'][data-part='root'][hidden] {