@xihan-ui/styles 1.0.0 → 2.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.
- package/CHANGELOG.md +5146 -6
- package/README.md +22 -2
- package/component-tokens.d.ts +4212 -0
- package/component-tokens.js +2 -0
- package/components.tokens.json +80116 -0
- package/css/accordion.css +131 -75
- package/css/affix.css +16 -1
- package/css/alert.css +114 -67
- package/css/anchor.css +99 -27
- package/css/approval.css +461 -0
- package/css/avatar-group.css +14 -6
- package/css/avatar.css +33 -9
- package/css/back-top.css +103 -48
- package/css/badge.css +42 -14
- package/css/bar-code.css +62 -0
- package/css/breadcrumb.css +40 -21
- package/css/button-group.css +146 -24
- package/css/button.css +116 -99
- package/css/calendar-picker.css +448 -0
- package/css/calendar-range-picker.css +517 -0
- package/css/card.css +54 -77
- package/css/carousel.css +412 -68
- package/css/cascader.css +429 -246
- package/css/checkbox-group.css +225 -77
- package/css/checkbox.css +174 -37
- package/css/clipboard.css +266 -47
- package/css/code-view.css +279 -0
- package/css/collapsible.css +108 -63
- package/css/color-field.css +158 -0
- package/css/color-picker.css +172 -184
- package/css/color-slider.css +274 -0
- package/css/color-swatch-picker.css +243 -0
- package/css/color-swatch.css +35 -0
- package/css/combobox.css +267 -273
- package/css/command.css +399 -0
- package/css/context-menu.css +183 -108
- package/css/date-field.css +94 -121
- package/css/date-picker.css +486 -249
- package/css/date-range-picker.css +559 -0
- package/css/description.css +51 -0
- package/css/descriptions.css +133 -87
- package/css/dialog.css +247 -68
- package/css/diff-view.css +428 -0
- package/css/download-trigger.css +155 -46
- package/css/drawer.css +194 -111
- package/css/editable.css +172 -152
- package/css/empty-state.css +80 -11
- package/css/field-array.css +190 -0
- package/css/field.css +84 -31
- package/css/fieldset.css +51 -18
- package/css/file-upload.css +134 -36
- package/css/flex.css +20 -1
- package/css/float-button.css +238 -57
- package/css/floating-panel.css +173 -92
- package/css/focus.css +46 -0
- package/css/forced-colors.css +93 -0
- package/css/form.css +254 -77
- package/css/gradient-text.css +34 -10
- package/css/grid.css +516 -5
- package/css/heatmap.css +87 -29
- package/css/highlight.css +20 -5
- package/css/hover-card.css +97 -47
- package/css/icon-wrapper.css +15 -3
- package/css/icon.css +74 -8
- package/css/image-cropper.css +143 -29
- package/css/image-viewer.css +150 -89
- package/css/image.css +30 -1
- package/css/infinite-scroll.css +51 -1
- package/css/input-group.css +277 -0
- package/css/json-viewer.css +102 -45
- package/css/kbd.css +72 -0
- package/css/label.css +78 -0
- package/css/layers.css +5 -0
- package/css/layout.css +175 -31
- package/css/list.css +24 -3
- package/css/listbox.css +208 -67
- package/css/loading-bar.css +52 -3
- package/css/log.css +144 -9
- package/css/markdown-stream.css +149 -0
- package/css/marquee.css +27 -1
- package/css/masonry.css +7 -0
- package/css/matrix-code.css +67 -0
- package/css/mention.css +234 -152
- package/css/menu.css +180 -83
- package/css/menubar.css +204 -136
- package/css/message-feed.css +197 -0
- package/css/navigation-menu.css +144 -90
- package/css/notification.css +178 -100
- package/css/number-animation.css +7 -0
- package/css/number-field.css +120 -277
- package/css/overlay-arrow.css +12 -7
- package/css/page-header.css +99 -14
- package/css/pagination.css +175 -135
- package/css/password-input.css +222 -219
- package/css/pin-input.css +101 -67
- package/css/pointer.css +36 -0
- package/css/popconfirm.css +185 -94
- package/css/popover.css +121 -77
- package/css/progress.css +60 -12
- package/css/prompt-input.css +224 -0
- package/css/question-flow.css +513 -0
- package/css/radio-group.css +147 -30
- package/css/rating.css +193 -43
- package/css/reasoning.css +336 -0
- package/css/reset.css +84 -6
- package/css/resizable.css +237 -0
- package/css/scroll-area.css +68 -7
- package/css/scrollbar.css +47 -13
- package/css/segmented.css +94 -29
- package/css/select.css +288 -274
- package/css/separator.css +101 -1
- package/css/side-nav.css +133 -75
- package/css/signature-pad.css +74 -54
- package/css/skeleton.css +84 -11
- package/css/slider.css +132 -39
- package/css/sortable.css +198 -0
- package/css/spinner.css +126 -12
- package/css/splitter.css +29 -8
- package/css/statistic.css +55 -0
- package/css/steps.css +206 -72
- package/css/switch.css +268 -36
- package/css/table.css +695 -118
- package/css/tabs.css +604 -42
- package/css/tag-group.css +219 -0
- package/css/tag.css +118 -28
- package/css/tags-input.css +156 -274
- package/css/text-field.css +101 -249
- package/css/time-field.css +100 -128
- package/css/time-picker.css +323 -252
- package/css/time-range-picker.css +719 -0
- package/css/timeline.css +202 -68
- package/css/timer.css +56 -52
- package/css/timestamp.css +34 -0
- package/css/toast.css +373 -144
- package/css/toggle-group.css +309 -76
- package/css/toggle.css +116 -85
- package/css/tone.css +47 -0
- package/css/tool-call.css +421 -0
- package/css/toolbar.css +181 -33
- package/css/tooltip.css +107 -36
- package/css/tour.css +183 -152
- package/css/transfer.css +351 -138
- package/css/tree-select.css +323 -216
- package/css/tree.css +294 -62
- package/css/truncate.css +65 -0
- package/css/typography.css +228 -5
- package/css/undefined.css +10 -1
- package/css/virtualizer.css +9 -10
- package/css/visually-hidden.css +7 -0
- package/css/watermark.css +7 -0
- package/family/action-control.css +487 -0
- package/family/collection-item.css +721 -0
- package/family/field-chrome.css +298 -0
- package/family/motion.css +166 -0
- package/family/swatch.css +59 -0
- package/index.css +41705 -126
- package/index.unlayered.css +33692 -17339
- package/package.json +51 -17
- package/css/calendar.css +0 -367
- package/css/code-block.css +0 -91
- package/css/composer.css +0 -134
- package/css/countdown.css +0 -26
- package/css/dynamic-input.css +0 -220
- package/css/ellipsis.css +0 -52
- package/css/hotkeys.css +0 -90
- package/css/popselect.css +0 -391
- package/css/qr-code.css +0 -55
- package/css/result.css +0 -119
- package/css/space.css +0 -117
- package/css/thread.css +0 -120
- package/css/time.css +0 -25
package/css/grid.css
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
/* 定义 grid 样式。 */
|
|
7
|
+
|
|
1
8
|
@layer xihan.components {
|
|
2
9
|
/* 皮肤在场的标记:开发模式下按 scope 探一次,取不到就说明这份皮肤没被引入。 */
|
|
3
10
|
[data-scope='grid'] {
|
|
@@ -11,8 +18,11 @@
|
|
|
11
18
|
grid-template-columns: var(--xh-grid-columns, repeat(var(--xh-_grid-cols), minmax(0, 1fr)));
|
|
12
19
|
/* 不写 gap 档位就不留间距 */
|
|
13
20
|
gap: var(--xh-grid-gap, var(--xh-space-0));
|
|
14
|
-
/*
|
|
21
|
+
/* 列数、行数与自适应列宽下限都收在根上这几个槽位里,换档只改这里;
|
|
22
|
+
每一层都声明一遍,嵌套时内层不吃外层的值 */
|
|
15
23
|
--xh-_grid-cols: 1;
|
|
24
|
+
--xh-_grid-rows: 1;
|
|
25
|
+
--xh-_grid-col-min: var(--xh-layout-col-min-md);
|
|
16
26
|
}
|
|
17
27
|
|
|
18
28
|
/* —— 列数 —— */
|
|
@@ -266,6 +276,81 @@
|
|
|
266
276
|
}
|
|
267
277
|
}
|
|
268
278
|
|
|
279
|
+
/* —— 行数 —— */
|
|
280
|
+
/* 不写 data-rows 就不声明行轨道:行数由内容自己撑出来,这是缺省。
|
|
281
|
+
写了就把这几行排成显式轨道,超出的项落进隐式行。
|
|
282
|
+
使用者槽位排在档位之前,写死一份轨道表即盖过所有行数档 */
|
|
283
|
+
[data-scope='grid'][data-part='root'][data-rows] {
|
|
284
|
+
grid-template-rows: var(--xh-grid-rows, repeat(var(--xh-_grid-rows), minmax(0, auto)));
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
[data-scope='grid'][data-part='root'][data-rows='2'] {
|
|
288
|
+
--xh-_grid-rows: 2;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
[data-scope='grid'][data-part='root'][data-rows='3'] {
|
|
292
|
+
--xh-_grid-rows: 3;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
[data-scope='grid'][data-part='root'][data-rows='4'] {
|
|
296
|
+
--xh-_grid-rows: 4;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
[data-scope='grid'][data-part='root'][data-rows='5'] {
|
|
300
|
+
--xh-_grid-rows: 5;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
[data-scope='grid'][data-part='root'][data-rows='6'] {
|
|
304
|
+
--xh-_grid-rows: 6;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
[data-scope='grid'][data-part='root'][data-rows='7'] {
|
|
308
|
+
--xh-_grid-rows: 7;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
[data-scope='grid'][data-part='root'][data-rows='8'] {
|
|
312
|
+
--xh-_grid-rows: 8;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
[data-scope='grid'][data-part='root'][data-rows='9'] {
|
|
316
|
+
--xh-_grid-rows: 9;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
[data-scope='grid'][data-part='root'][data-rows='10'] {
|
|
320
|
+
--xh-_grid-rows: 10;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
[data-scope='grid'][data-part='root'][data-rows='11'] {
|
|
324
|
+
--xh-_grid-rows: 11;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
[data-scope='grid'][data-part='root'][data-rows='12'] {
|
|
328
|
+
--xh-_grid-rows: 12;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* —— 自适应列宽 —— */
|
|
332
|
+
/* 写了下限就按「放得下几列就几列」排,data-cols 那条轨道表让位;
|
|
333
|
+
下限只收档位名,四档各指一个令牌 */
|
|
334
|
+
[data-scope='grid'][data-part='root'][data-min-col] {
|
|
335
|
+
grid-template-columns: var(--xh-grid-columns, repeat(auto-fill, minmax(var(--xh-_grid-col-min), 1fr)));
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
[data-scope='grid'][data-part='root'][data-min-col='xs'] {
|
|
339
|
+
--xh-_grid-col-min: var(--xh-layout-col-min-xs);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
[data-scope='grid'][data-part='root'][data-min-col='sm'] {
|
|
343
|
+
--xh-_grid-col-min: var(--xh-layout-col-min-sm);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
[data-scope='grid'][data-part='root'][data-min-col='md'] {
|
|
347
|
+
--xh-_grid-col-min: var(--xh-layout-col-min-md);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
[data-scope='grid'][data-part='root'][data-min-col='lg'] {
|
|
351
|
+
--xh-_grid-col-min: var(--xh-layout-col-min-lg);
|
|
352
|
+
}
|
|
353
|
+
|
|
269
354
|
/* —— 间距档位 —— */
|
|
270
355
|
/* 每一档指向一个间距令牌,行与行之间也吃这同一份间距 */
|
|
271
356
|
[data-scope='grid'][data-part='root'][data-gap='xs'] {
|
|
@@ -288,6 +373,50 @@
|
|
|
288
373
|
gap: var(--xh-grid-gap, var(--xh-layout-gap-xl));
|
|
289
374
|
}
|
|
290
375
|
|
|
376
|
+
/* —— 行间距与列间距 —— */
|
|
377
|
+
/* 只改一条轴上的间距,另一条仍跟着 gap 走。两组规则与 gap 档位同权重,
|
|
378
|
+
靠源码序排在它之后取胜;根规则那条 gap 权重更低,恒盖得住 */
|
|
379
|
+
|
|
380
|
+
[data-scope='grid'][data-part='root'][data-row-gap='xs'] {
|
|
381
|
+
row-gap: var(--xh-grid-row-gap, var(--xh-layout-gap-xs));
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
[data-scope='grid'][data-part='root'][data-row-gap='sm'] {
|
|
385
|
+
row-gap: var(--xh-grid-row-gap, var(--xh-layout-gap-sm));
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
[data-scope='grid'][data-part='root'][data-row-gap='md'] {
|
|
389
|
+
row-gap: var(--xh-grid-row-gap, var(--xh-layout-gap-md));
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
[data-scope='grid'][data-part='root'][data-row-gap='lg'] {
|
|
393
|
+
row-gap: var(--xh-grid-row-gap, var(--xh-layout-gap-lg));
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
[data-scope='grid'][data-part='root'][data-row-gap='xl'] {
|
|
397
|
+
row-gap: var(--xh-grid-row-gap, var(--xh-layout-gap-xl));
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
[data-scope='grid'][data-part='root'][data-column-gap='xs'] {
|
|
401
|
+
column-gap: var(--xh-grid-column-gap, var(--xh-layout-gap-xs));
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
[data-scope='grid'][data-part='root'][data-column-gap='sm'] {
|
|
405
|
+
column-gap: var(--xh-grid-column-gap, var(--xh-layout-gap-sm));
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
[data-scope='grid'][data-part='root'][data-column-gap='md'] {
|
|
409
|
+
column-gap: var(--xh-grid-column-gap, var(--xh-layout-gap-md));
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
[data-scope='grid'][data-part='root'][data-column-gap='lg'] {
|
|
413
|
+
column-gap: var(--xh-grid-column-gap, var(--xh-layout-gap-lg));
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
[data-scope='grid'][data-part='root'][data-column-gap='xl'] {
|
|
417
|
+
column-gap: var(--xh-grid-column-gap, var(--xh-layout-gap-xl));
|
|
418
|
+
}
|
|
419
|
+
|
|
291
420
|
/* —— 块向对齐 —— */
|
|
292
421
|
/* 管的是每一项在自己那格里怎么摆,不是格子在容器里怎么摆:列宽由轨道表定死,容器不留富余 */
|
|
293
422
|
[data-scope='grid'][data-part='root'][data-align='start'] {
|
|
@@ -311,19 +440,19 @@
|
|
|
311
440
|
}
|
|
312
441
|
|
|
313
442
|
/* —— 行内对齐 —— */
|
|
314
|
-
[data-scope='grid'][data-part='root'][data-justify='start'] {
|
|
443
|
+
[data-scope='grid'][data-part='root'][data-justify-items='start'] {
|
|
315
444
|
justify-items: start;
|
|
316
445
|
}
|
|
317
446
|
|
|
318
|
-
[data-scope='grid'][data-part='root'][data-justify='center'] {
|
|
447
|
+
[data-scope='grid'][data-part='root'][data-justify-items='center'] {
|
|
319
448
|
justify-items: center;
|
|
320
449
|
}
|
|
321
450
|
|
|
322
|
-
[data-scope='grid'][data-part='root'][data-justify='end'] {
|
|
451
|
+
[data-scope='grid'][data-part='root'][data-justify-items='end'] {
|
|
323
452
|
justify-items: end;
|
|
324
453
|
}
|
|
325
454
|
|
|
326
|
-
[data-scope='grid'][data-part='root'][data-justify='stretch'] {
|
|
455
|
+
[data-scope='grid'][data-part='root'][data-justify-items='stretch'] {
|
|
327
456
|
justify-items: stretch;
|
|
328
457
|
}
|
|
329
458
|
|
|
@@ -431,6 +560,388 @@
|
|
|
431
560
|
--xh-_grid-start: 12;
|
|
432
561
|
}
|
|
433
562
|
|
|
563
|
+
/* —— 逐档跨列与错列 —— */
|
|
564
|
+
/* 与逐档列数逐字同构:移动优先,先按 data-span / data-offset 排定,
|
|
565
|
+
视口每宽到一档就换成那一档的值,没写的档沿用比它窄的那一档。
|
|
566
|
+
每档都从 1 写起:base 跨多列、某一档收回一列同样是合法的一档。
|
|
567
|
+
宽度写字面量,理由同上面的逐档列数 */
|
|
568
|
+
|
|
569
|
+
@media (min-width: 640px) {
|
|
570
|
+
[data-scope='grid'][data-part='item'][data-span-sm='1'] {
|
|
571
|
+
--xh-_grid-span: 1;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
[data-scope='grid'][data-part='item'][data-span-sm='2'] {
|
|
575
|
+
--xh-_grid-span: 2;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
[data-scope='grid'][data-part='item'][data-span-sm='3'] {
|
|
579
|
+
--xh-_grid-span: 3;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
[data-scope='grid'][data-part='item'][data-span-sm='4'] {
|
|
583
|
+
--xh-_grid-span: 4;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
[data-scope='grid'][data-part='item'][data-span-sm='5'] {
|
|
587
|
+
--xh-_grid-span: 5;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
[data-scope='grid'][data-part='item'][data-span-sm='6'] {
|
|
591
|
+
--xh-_grid-span: 6;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
[data-scope='grid'][data-part='item'][data-span-sm='7'] {
|
|
595
|
+
--xh-_grid-span: 7;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
[data-scope='grid'][data-part='item'][data-span-sm='8'] {
|
|
599
|
+
--xh-_grid-span: 8;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
[data-scope='grid'][data-part='item'][data-span-sm='9'] {
|
|
603
|
+
--xh-_grid-span: 9;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
[data-scope='grid'][data-part='item'][data-span-sm='10'] {
|
|
607
|
+
--xh-_grid-span: 10;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
[data-scope='grid'][data-part='item'][data-span-sm='11'] {
|
|
611
|
+
--xh-_grid-span: 11;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
[data-scope='grid'][data-part='item'][data-span-sm='12'] {
|
|
615
|
+
--xh-_grid-span: 12;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
[data-scope='grid'][data-part='item'][data-offset-sm='1'] {
|
|
619
|
+
--xh-_grid-start: 2;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
[data-scope='grid'][data-part='item'][data-offset-sm='2'] {
|
|
623
|
+
--xh-_grid-start: 3;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
[data-scope='grid'][data-part='item'][data-offset-sm='3'] {
|
|
627
|
+
--xh-_grid-start: 4;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
[data-scope='grid'][data-part='item'][data-offset-sm='4'] {
|
|
631
|
+
--xh-_grid-start: 5;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
[data-scope='grid'][data-part='item'][data-offset-sm='5'] {
|
|
635
|
+
--xh-_grid-start: 6;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
[data-scope='grid'][data-part='item'][data-offset-sm='6'] {
|
|
639
|
+
--xh-_grid-start: 7;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
[data-scope='grid'][data-part='item'][data-offset-sm='7'] {
|
|
643
|
+
--xh-_grid-start: 8;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
[data-scope='grid'][data-part='item'][data-offset-sm='8'] {
|
|
647
|
+
--xh-_grid-start: 9;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
[data-scope='grid'][data-part='item'][data-offset-sm='9'] {
|
|
651
|
+
--xh-_grid-start: 10;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
[data-scope='grid'][data-part='item'][data-offset-sm='10'] {
|
|
655
|
+
--xh-_grid-start: 11;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
[data-scope='grid'][data-part='item'][data-offset-sm='11'] {
|
|
659
|
+
--xh-_grid-start: 12;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
@media (min-width: 768px) {
|
|
664
|
+
[data-scope='grid'][data-part='item'][data-span-md='1'] {
|
|
665
|
+
--xh-_grid-span: 1;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
[data-scope='grid'][data-part='item'][data-span-md='2'] {
|
|
669
|
+
--xh-_grid-span: 2;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
[data-scope='grid'][data-part='item'][data-span-md='3'] {
|
|
673
|
+
--xh-_grid-span: 3;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
[data-scope='grid'][data-part='item'][data-span-md='4'] {
|
|
677
|
+
--xh-_grid-span: 4;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
[data-scope='grid'][data-part='item'][data-span-md='5'] {
|
|
681
|
+
--xh-_grid-span: 5;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
[data-scope='grid'][data-part='item'][data-span-md='6'] {
|
|
685
|
+
--xh-_grid-span: 6;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
[data-scope='grid'][data-part='item'][data-span-md='7'] {
|
|
689
|
+
--xh-_grid-span: 7;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
[data-scope='grid'][data-part='item'][data-span-md='8'] {
|
|
693
|
+
--xh-_grid-span: 8;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
[data-scope='grid'][data-part='item'][data-span-md='9'] {
|
|
697
|
+
--xh-_grid-span: 9;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
[data-scope='grid'][data-part='item'][data-span-md='10'] {
|
|
701
|
+
--xh-_grid-span: 10;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
[data-scope='grid'][data-part='item'][data-span-md='11'] {
|
|
705
|
+
--xh-_grid-span: 11;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
[data-scope='grid'][data-part='item'][data-span-md='12'] {
|
|
709
|
+
--xh-_grid-span: 12;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
[data-scope='grid'][data-part='item'][data-offset-md='1'] {
|
|
713
|
+
--xh-_grid-start: 2;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
[data-scope='grid'][data-part='item'][data-offset-md='2'] {
|
|
717
|
+
--xh-_grid-start: 3;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
[data-scope='grid'][data-part='item'][data-offset-md='3'] {
|
|
721
|
+
--xh-_grid-start: 4;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
[data-scope='grid'][data-part='item'][data-offset-md='4'] {
|
|
725
|
+
--xh-_grid-start: 5;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
[data-scope='grid'][data-part='item'][data-offset-md='5'] {
|
|
729
|
+
--xh-_grid-start: 6;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
[data-scope='grid'][data-part='item'][data-offset-md='6'] {
|
|
733
|
+
--xh-_grid-start: 7;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
[data-scope='grid'][data-part='item'][data-offset-md='7'] {
|
|
737
|
+
--xh-_grid-start: 8;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
[data-scope='grid'][data-part='item'][data-offset-md='8'] {
|
|
741
|
+
--xh-_grid-start: 9;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
[data-scope='grid'][data-part='item'][data-offset-md='9'] {
|
|
745
|
+
--xh-_grid-start: 10;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
[data-scope='grid'][data-part='item'][data-offset-md='10'] {
|
|
749
|
+
--xh-_grid-start: 11;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
[data-scope='grid'][data-part='item'][data-offset-md='11'] {
|
|
753
|
+
--xh-_grid-start: 12;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
@media (min-width: 1024px) {
|
|
758
|
+
[data-scope='grid'][data-part='item'][data-span-lg='1'] {
|
|
759
|
+
--xh-_grid-span: 1;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
[data-scope='grid'][data-part='item'][data-span-lg='2'] {
|
|
763
|
+
--xh-_grid-span: 2;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
[data-scope='grid'][data-part='item'][data-span-lg='3'] {
|
|
767
|
+
--xh-_grid-span: 3;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
[data-scope='grid'][data-part='item'][data-span-lg='4'] {
|
|
771
|
+
--xh-_grid-span: 4;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
[data-scope='grid'][data-part='item'][data-span-lg='5'] {
|
|
775
|
+
--xh-_grid-span: 5;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
[data-scope='grid'][data-part='item'][data-span-lg='6'] {
|
|
779
|
+
--xh-_grid-span: 6;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
[data-scope='grid'][data-part='item'][data-span-lg='7'] {
|
|
783
|
+
--xh-_grid-span: 7;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
[data-scope='grid'][data-part='item'][data-span-lg='8'] {
|
|
787
|
+
--xh-_grid-span: 8;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
[data-scope='grid'][data-part='item'][data-span-lg='9'] {
|
|
791
|
+
--xh-_grid-span: 9;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
[data-scope='grid'][data-part='item'][data-span-lg='10'] {
|
|
795
|
+
--xh-_grid-span: 10;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
[data-scope='grid'][data-part='item'][data-span-lg='11'] {
|
|
799
|
+
--xh-_grid-span: 11;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
[data-scope='grid'][data-part='item'][data-span-lg='12'] {
|
|
803
|
+
--xh-_grid-span: 12;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
[data-scope='grid'][data-part='item'][data-offset-lg='1'] {
|
|
807
|
+
--xh-_grid-start: 2;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
[data-scope='grid'][data-part='item'][data-offset-lg='2'] {
|
|
811
|
+
--xh-_grid-start: 3;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
[data-scope='grid'][data-part='item'][data-offset-lg='3'] {
|
|
815
|
+
--xh-_grid-start: 4;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
[data-scope='grid'][data-part='item'][data-offset-lg='4'] {
|
|
819
|
+
--xh-_grid-start: 5;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
[data-scope='grid'][data-part='item'][data-offset-lg='5'] {
|
|
823
|
+
--xh-_grid-start: 6;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
[data-scope='grid'][data-part='item'][data-offset-lg='6'] {
|
|
827
|
+
--xh-_grid-start: 7;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
[data-scope='grid'][data-part='item'][data-offset-lg='7'] {
|
|
831
|
+
--xh-_grid-start: 8;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
[data-scope='grid'][data-part='item'][data-offset-lg='8'] {
|
|
835
|
+
--xh-_grid-start: 9;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
[data-scope='grid'][data-part='item'][data-offset-lg='9'] {
|
|
839
|
+
--xh-_grid-start: 10;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
[data-scope='grid'][data-part='item'][data-offset-lg='10'] {
|
|
843
|
+
--xh-_grid-start: 11;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
[data-scope='grid'][data-part='item'][data-offset-lg='11'] {
|
|
847
|
+
--xh-_grid-start: 12;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
@media (min-width: 1280px) {
|
|
852
|
+
[data-scope='grid'][data-part='item'][data-span-xl='1'] {
|
|
853
|
+
--xh-_grid-span: 1;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
[data-scope='grid'][data-part='item'][data-span-xl='2'] {
|
|
857
|
+
--xh-_grid-span: 2;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
[data-scope='grid'][data-part='item'][data-span-xl='3'] {
|
|
861
|
+
--xh-_grid-span: 3;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
[data-scope='grid'][data-part='item'][data-span-xl='4'] {
|
|
865
|
+
--xh-_grid-span: 4;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
[data-scope='grid'][data-part='item'][data-span-xl='5'] {
|
|
869
|
+
--xh-_grid-span: 5;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
[data-scope='grid'][data-part='item'][data-span-xl='6'] {
|
|
873
|
+
--xh-_grid-span: 6;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
[data-scope='grid'][data-part='item'][data-span-xl='7'] {
|
|
877
|
+
--xh-_grid-span: 7;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
[data-scope='grid'][data-part='item'][data-span-xl='8'] {
|
|
881
|
+
--xh-_grid-span: 8;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
[data-scope='grid'][data-part='item'][data-span-xl='9'] {
|
|
885
|
+
--xh-_grid-span: 9;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
[data-scope='grid'][data-part='item'][data-span-xl='10'] {
|
|
889
|
+
--xh-_grid-span: 10;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
[data-scope='grid'][data-part='item'][data-span-xl='11'] {
|
|
893
|
+
--xh-_grid-span: 11;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
[data-scope='grid'][data-part='item'][data-span-xl='12'] {
|
|
897
|
+
--xh-_grid-span: 12;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
[data-scope='grid'][data-part='item'][data-offset-xl='1'] {
|
|
901
|
+
--xh-_grid-start: 2;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
[data-scope='grid'][data-part='item'][data-offset-xl='2'] {
|
|
905
|
+
--xh-_grid-start: 3;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
[data-scope='grid'][data-part='item'][data-offset-xl='3'] {
|
|
909
|
+
--xh-_grid-start: 4;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
[data-scope='grid'][data-part='item'][data-offset-xl='4'] {
|
|
913
|
+
--xh-_grid-start: 5;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
[data-scope='grid'][data-part='item'][data-offset-xl='5'] {
|
|
917
|
+
--xh-_grid-start: 6;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
[data-scope='grid'][data-part='item'][data-offset-xl='6'] {
|
|
921
|
+
--xh-_grid-start: 7;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
[data-scope='grid'][data-part='item'][data-offset-xl='7'] {
|
|
925
|
+
--xh-_grid-start: 8;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
[data-scope='grid'][data-part='item'][data-offset-xl='8'] {
|
|
929
|
+
--xh-_grid-start: 9;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
[data-scope='grid'][data-part='item'][data-offset-xl='9'] {
|
|
933
|
+
--xh-_grid-start: 10;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
[data-scope='grid'][data-part='item'][data-offset-xl='10'] {
|
|
937
|
+
--xh-_grid-start: 11;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
[data-scope='grid'][data-part='item'][data-offset-xl='11'] {
|
|
941
|
+
--xh-_grid-start: 12;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
|
|
434
945
|
/* 声明过任何 display 就盖掉了 UA 的 [hidden]{display:none},收起态得自己还回去。
|
|
435
946
|
写在文件末尾:兜底必须排在该部件所有 display 声明之后 */
|
|
436
947
|
[data-scope='grid'][data-part='root'][hidden] {
|