@xihan-ui/styles 3.1.0 → 4.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 +470 -0
- package/component-tokens.d.ts +230 -60
- package/components.tokens.json +5156 -1557
- package/css/accordion.css +47 -20
- package/css/alert.css +16 -17
- package/css/anchor.css +2 -2
- package/css/approval.css +41 -17
- package/css/avatar-group.css +9 -12
- package/css/avatar.css +20 -18
- package/css/back-top.css +21 -7
- package/css/badge.css +5 -5
- package/css/breadcrumb.css +18 -16
- package/css/button-group.css +4 -6
- package/css/button.css +13 -12
- package/css/calendar-picker.css +178 -95
- package/css/calendar-range-picker.css +207 -122
- package/css/card.css +34 -6
- package/css/carousel.css +94 -46
- package/css/cartesian-chart.css +11 -11
- package/css/cascader.css +51 -39
- package/css/checkbox-group.css +9 -6
- package/css/checkbox.css +5 -4
- package/css/citation.css +9 -4
- package/css/clipboard.css +20 -4
- package/css/code-view.css +6 -6
- package/css/collapsible.css +29 -14
- package/css/color-field.css +4 -4
- package/css/color-picker.css +77 -23
- package/css/color-slider.css +10 -8
- package/css/color-swatch-picker.css +14 -9
- package/css/combobox.css +26 -14
- package/css/command.css +14 -9
- package/css/context-menu.css +10 -5
- package/css/date-field.css +12 -6
- package/css/date-picker.css +178 -109
- package/css/date-range-picker.css +199 -130
- package/css/description.css +10 -6
- package/css/descriptions.css +47 -19
- package/css/dialog.css +50 -35
- package/css/diff-view.css +8 -8
- package/css/drawer.css +75 -21
- package/css/editable.css +15 -41
- package/css/empty-state.css +21 -3
- package/css/field-array.css +5 -2
- package/css/field.css +17 -18
- package/css/fieldset.css +33 -13
- package/css/file-upload.css +66 -33
- package/css/float-button.css +60 -35
- package/css/floating-panel.css +1 -1
- package/css/form.css +30 -16
- package/css/graph-chart.css +2 -2
- package/css/grid-list.css +1 -1
- package/css/highlight.css +5 -5
- package/css/hover-card.css +19 -12
- package/css/image-viewer.css +77 -27
- package/css/image.css +13 -5
- package/css/infinite-scroll.css +8 -4
- package/css/input-group.css +74 -26
- package/css/kbd.css +1 -1
- package/css/label.css +27 -11
- package/css/layout.css +17 -10
- package/css/list.css +13 -9
- package/css/listbox.css +12 -7
- package/css/loading-bar.css +3 -0
- package/css/mention.css +11 -9
- package/css/menu.css +10 -5
- package/css/menubar.css +13 -8
- package/css/message-feed.css +1 -1
- package/css/navigation-menu.css +2 -2
- package/css/notification.css +132 -49
- package/css/number-animation.css +2 -2
- package/css/number-field.css +75 -52
- package/css/page-header.css +64 -27
- package/css/pagination.css +35 -38
- package/css/password-input.css +12 -68
- package/css/pin-input.css +18 -26
- package/css/popconfirm.css +23 -14
- package/css/popover.css +18 -12
- package/css/progress.css +14 -13
- package/css/prompt-input.css +3 -3
- package/css/question-flow.css +41 -15
- package/css/radar-chart.css +6 -6
- package/css/radio-group.css +120 -55
- package/css/rating.css +32 -15
- package/css/select.css +16 -12
- package/css/separator.css +24 -6
- package/css/side-nav.css +29 -24
- package/css/signature-pad.css +23 -9
- package/css/skeleton.css +12 -12
- package/css/slider.css +77 -48
- package/css/sortable.css +2 -2
- package/css/sparkline.css +8 -2
- package/css/spinner.css +40 -20
- package/css/statistic.css +14 -14
- package/css/steps.css +115 -84
- package/css/switch.css +9 -7
- package/css/table.css +29 -12
- package/css/tabs.css +35 -12
- package/css/tag-group.css +17 -6
- package/css/tag.css +54 -29
- package/css/tags-input.css +39 -20
- package/css/text-field.css +5 -5
- package/css/time-field.css +4 -4
- package/css/time-picker.css +150 -64
- package/css/time-range-picker.css +91 -62
- package/css/timeline.css +37 -20
- package/css/timer.css +3 -3
- package/css/toggle-group.css +4 -4
- package/css/tool-call.css +13 -11
- package/css/toolbar.css +6 -5
- package/css/tooltip.css +16 -17
- package/css/tour.css +14 -7
- package/css/transfer.css +22 -16
- package/css/tree-select.css +12 -12
- package/css/tree.css +26 -25
- package/css/typography.css +28 -25
- package/dist/css/accordion.css +296 -0
- package/dist/css/affix.css +47 -0
- package/dist/css/alert.css +246 -0
- package/dist/css/anchor.css +252 -0
- package/dist/css/approval.css +525 -0
- package/dist/css/avatar-group.css +96 -0
- package/dist/css/avatar.css +100 -0
- package/dist/css/back-top.css +175 -0
- package/dist/css/badge.css +205 -0
- package/dist/css/bar-code.css +62 -0
- package/dist/css/breadcrumb.css +232 -0
- package/dist/css/button-group.css +261 -0
- package/dist/css/button.css +216 -0
- package/dist/css/calendar-picker.css +550 -0
- package/dist/css/calendar-range-picker.css +639 -0
- package/dist/css/card.css +249 -0
- package/dist/css/carousel.css +726 -0
- package/dist/css/cartesian-chart.css +830 -0
- package/dist/css/cascader.css +973 -0
- package/dist/css/checkbox-group.css +361 -0
- package/dist/css/checkbox.css +258 -0
- package/dist/css/citation.css +475 -0
- package/dist/css/clipboard.css +331 -0
- package/dist/css/code-view.css +374 -0
- package/dist/css/collapsible.css +200 -0
- package/dist/css/color-field.css +176 -0
- package/dist/css/color-picker.css +649 -0
- package/dist/css/color-slider.css +283 -0
- package/dist/css/color-swatch-picker.css +250 -0
- package/dist/css/color-swatch.css +35 -0
- package/dist/css/combobox.css +578 -0
- package/dist/css/command.css +404 -0
- package/dist/css/context-menu.css +425 -0
- package/dist/css/date-field.css +317 -0
- package/dist/css/date-picker.css +931 -0
- package/dist/css/date-range-picker.css +949 -0
- package/dist/css/description.css +71 -0
- package/dist/css/descriptions.css +327 -0
- package/dist/css/dialog.css +470 -0
- package/dist/css/diff-view.css +513 -0
- package/dist/css/download-trigger.css +151 -0
- package/dist/css/drawer.css +606 -0
- package/dist/css/editable.css +269 -0
- package/dist/css/empty-state.css +181 -0
- package/dist/css/field-array.css +229 -0
- package/dist/css/field.css +165 -0
- package/dist/css/fieldset.css +122 -0
- package/dist/css/file-upload.css +462 -0
- package/dist/css/flex.css +441 -0
- package/dist/css/float-button.css +579 -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 +407 -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 +233 -0
- package/dist/css/icon.css +225 -0
- package/dist/css/image-cropper.css +373 -0
- package/dist/css/image-viewer.css +588 -0
- package/dist/css/image.css +106 -0
- package/dist/css/infinite-scroll.css +81 -0
- package/dist/css/input-group.css +323 -0
- package/dist/css/json-viewer.css +379 -0
- package/dist/css/kbd.css +72 -0
- package/dist/css/label.css +94 -0
- package/dist/css/layers.css +7 -0
- package/dist/css/layout.css +379 -0
- package/dist/css/liquid.css +106 -0
- package/dist/css/list.css +156 -0
- package/dist/css/listbox.css +395 -0
- package/dist/css/loading-bar.css +144 -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 +395 -0
- package/dist/css/menu.css +369 -0
- package/dist/css/menubar.css +461 -0
- package/dist/css/message-feed.css +318 -0
- package/dist/css/navigation-menu.css +513 -0
- package/dist/css/notification.css +865 -0
- package/dist/css/number-animation.css +44 -0
- package/dist/css/number-field.css +275 -0
- package/dist/css/overlay-arrow.css +56 -0
- package/dist/css/page-header.css +221 -0
- package/dist/css/pagination.css +447 -0
- package/dist/css/password-input.css +335 -0
- package/dist/css/pie-chart.css +247 -0
- package/dist/css/pin-input.css +191 -0
- package/dist/css/pointer.css +36 -0
- package/dist/css/popconfirm.css +329 -0
- package/dist/css/popover.css +285 -0
- package/dist/css/progress.css +502 -0
- package/dist/css/prompt-input.css +260 -0
- package/dist/css/question-flow.css +579 -0
- package/dist/css/radar-chart.css +233 -0
- package/dist/css/radio-group.css +663 -0
- package/dist/css/rating.css +311 -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 +616 -0
- package/dist/css/separator.css +140 -0
- package/dist/css/side-nav.css +481 -0
- package/dist/css/signature-pad.css +193 -0
- package/dist/css/skeleton.css +161 -0
- package/dist/css/slider.css +403 -0
- package/dist/css/sortable.css +228 -0
- package/dist/css/sparkline.css +170 -0
- package/dist/css/spinner.css +256 -0
- package/dist/css/splitter.css +159 -0
- package/dist/css/statistic.css +137 -0
- package/dist/css/steps.css +658 -0
- package/dist/css/switch.css +353 -0
- package/dist/css/table.css +1162 -0
- package/dist/css/tabs.css +967 -0
- package/dist/css/tag-group.css +258 -0
- package/dist/css/tag.css +335 -0
- package/dist/css/tags-input.css +341 -0
- package/dist/css/text-field.css +197 -0
- package/dist/css/time-field.css +277 -0
- package/dist/css/time-picker.css +793 -0
- package/dist/css/time-range-picker.css +775 -0
- package/dist/css/timeline.css +440 -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 +431 -0
- package/dist/css/toolbar.css +366 -0
- package/dist/css/tooltip.css +217 -0
- package/dist/css/tour.css +446 -0
- package/dist/css/transfer.css +644 -0
- package/dist/css/tree-select.css +878 -0
- package/dist/css/tree.css +734 -0
- package/dist/css/truncate.css +108 -0
- package/dist/css/typography.css +475 -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 +493 -0
- package/dist/family/chart.css +537 -0
- package/dist/family/check-mark.css +94 -0
- package/dist/family/choice-card.css +97 -0
- package/dist/family/collection-item.css +768 -0
- package/dist/family/field-chrome.css +296 -0
- package/dist/family/loading-ring.css +102 -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 +65 -0
- package/family/action-control.css +33 -36
- package/family/chart.css +57 -0
- package/family/collection-item.css +12 -8
- package/family/field-chrome.css +28 -19
- package/family/loading-ring.css +20 -13
- package/family/swatch.css +4 -4
- package/family/tag-list.css +6 -0
- package/index.css +10349 -8756
- package/index.unlayered.css +10350 -8758
- package/package.json +165 -164
|
@@ -0,0 +1,232 @@
|
|
|
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
|
+
/* 定义 breadcrumb 样式。 */
|
|
7
|
+
|
|
8
|
+
/* 链接归 Collection Item 导航当前(nav 语境):面、字色、字重、光标与按压时间线由家族配方按投影的家族角色给,
|
|
9
|
+
本皮肤只映射桥接槽;当前页由连接层投影 data-xh-collection-terminal,走家族的 terminal 态 */
|
|
10
|
+
@import '../family/collection-item.css';
|
|
11
|
+
|
|
12
|
+
@layer xihan.components {
|
|
13
|
+
/* 皮肤在场的标记:开发模式下按 scope 探一次,取不到就说明这份皮肤没被引入。 */
|
|
14
|
+
.xh-scope-breadcrumb {
|
|
15
|
+
--xh-breadcrumb-skin: 1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* 根节点是 nav 地标,不参与排版:整条路径的行为全在 list 上,
|
|
19
|
+
这里不给 display,UA 的 [hidden]{display:none} 就仍然压得住 */
|
|
20
|
+
.xh-scope-breadcrumb[data-part='root'] {
|
|
21
|
+
/* 作者塞进指示符槽的图标跟着字号走,与皮肤画的兜底字形同一把尺 */
|
|
22
|
+
--xh-icon-size: var(--xh-breadcrumb-icon-size, var(--xh-glyph-size-text));
|
|
23
|
+
|
|
24
|
+
/* 尺寸档只换这两个私有槽,列表与链接都从 root 继承它们,换档不必给每个部件各写一条选择器 */
|
|
25
|
+
--xh-_breadcrumb-font-size: var(--xh-control-font-md);
|
|
26
|
+
/* 链接自带 4px 横向内衬,列表间距再给 4px:文字到分隔符一共 8px */
|
|
27
|
+
--xh-_breadcrumb-gap: var(--xh-space-1);
|
|
28
|
+
/* 当前项与链接悬停的强调色随语气走。没写 data-tone 时 --xh-_tone-fg 没被声明,
|
|
29
|
+
退回原来的前景色。聚焦环不在其列,它恒是 --xh-ring-focus */
|
|
30
|
+
--xh-_breadcrumb-accent-text: var(--xh-_tone-fg, var(--xh-fg-default));
|
|
31
|
+
|
|
32
|
+
color: var(--xh-breadcrumb-fg, var(--xh-fg-muted));
|
|
33
|
+
font-size: var(--xh-breadcrumb-font-size, var(--xh-_breadcrumb-font-size));
|
|
34
|
+
line-height: var(--xh-breadcrumb-leading, var(--xh-leading-tight));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* —— 尺寸 —— */
|
|
38
|
+
/* 缺省档写在上面的基础规则里。间距量的是路径里文字与分隔符之间的距离,
|
|
39
|
+
不在控件间距那把尺上(那把尺的大档与中档同值),三档一律取空间尺 */
|
|
40
|
+
.xh-scope-breadcrumb[data-part='root'][data-size='sm'] {
|
|
41
|
+
--xh-_breadcrumb-font-size: var(--xh-control-font-sm);
|
|
42
|
+
--xh-_breadcrumb-gap: var(--xh-space-0_5);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.xh-scope-breadcrumb[data-part='root'][data-size='lg'] {
|
|
46
|
+
--xh-_breadcrumb-font-size: var(--xh-control-font-lg);
|
|
47
|
+
--xh-_breadcrumb-gap: var(--xh-space-2);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* ol 的项目符号与内外边距是 UA 给的,库里没有全局 preflight,只能在这儿自己抹平 */
|
|
51
|
+
.xh-scope-breadcrumb[data-part='list'] {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
/* 层级多到一行放不下就换行:宁可折行,也不要把路径压扁或撑出横向滚动 */
|
|
55
|
+
flex-wrap: wrap;
|
|
56
|
+
gap: var(--xh-breadcrumb-gap, var(--xh-_breadcrumb-gap));
|
|
57
|
+
margin: 0;
|
|
58
|
+
padding: 0;
|
|
59
|
+
list-style: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.xh-scope-breadcrumb[data-part='list'][hidden] {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.xh-scope-breadcrumb[data-part='item'] {
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
/* 库里没有全局 preflight,列表项的外边距在这里自己抹平 */
|
|
70
|
+
margin: 0;
|
|
71
|
+
/* 允许被压缩,链接内部的省略号才有生效的余地 */
|
|
72
|
+
min-inline-size: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.xh-scope-breadcrumb[data-part='item'][hidden] {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* 链接的几何、字号与面全经家族桥接槽:静息 muted / regular,悬停走白底承载 hover 100 + 品牌字(写了语气随语气),
|
|
80
|
+
按下 pressed 200 + 深一档品牌字(品牌字压在 200 档上只有 4:1,按下必须取 strong);
|
|
81
|
+
链接盒最少 24px 高,够得上目标尺寸下限;当前页那条不再是"可去的地方":连接层投影
|
|
82
|
+
data-xh-collection-terminal,家族给透明面 + 随语气的 fg-default + medium + cursor default,不响应悬停与按下,
|
|
83
|
+
并压过它同时带的 aria-disabled 禁用面。本条 (0,2,0) 压过家族基础块 (0,1,0),不能再写 color / background */
|
|
84
|
+
.xh-scope-breadcrumb[data-part='link'] {
|
|
85
|
+
--xh-collection-block-padding: var(--xh-space-0);
|
|
86
|
+
--xh-collection-inline-padding: var(--xh-breadcrumb-link-px, var(--xh-space-1));
|
|
87
|
+
--xh-collection-radius: var(--xh-breadcrumb-link-radius, var(--xh-shape-control));
|
|
88
|
+
--xh-collection-font-size: var(--xh-breadcrumb-font-size, var(--xh-_breadcrumb-font-size));
|
|
89
|
+
/* 家族会把 --xh-icon-size 写在条目上;不映射,root 上随文字形档的那支会被家族的 md 档盖掉 */
|
|
90
|
+
--xh-collection-glyph-size: var(--xh-breadcrumb-icon-size, var(--xh-glyph-size-text));
|
|
91
|
+
--xh-collection-fg-rest: var(--xh-breadcrumb-fg, var(--xh-fg-muted));
|
|
92
|
+
--xh-collection-bg-hover: var(--xh-breadcrumb-link-bg-hover, var(--xh-bg-subtle));
|
|
93
|
+
--xh-collection-fg-hover: var(--xh-breadcrumb-link-fg-hover, var(--xh-_tone-fg, var(--xh-fg-brand)));
|
|
94
|
+
--xh-collection-bg-pressed: var(--xh-breadcrumb-link-bg-pressed, var(--xh-bg-subtle-hover));
|
|
95
|
+
--xh-collection-fg-pressed: var(--xh-breadcrumb-link-fg-pressed, var(--xh-_tone-fg, var(--xh-fg-brand-strong)));
|
|
96
|
+
--xh-collection-fg-terminal: var(--xh-breadcrumb-link-fg-current, var(--xh-_breadcrumb-accent-text));
|
|
97
|
+
--xh-collection-font-weight-terminal: var(--xh-breadcrumb-link-font-weight-current, var(--xh-font-weight-medium));
|
|
98
|
+
|
|
99
|
+
display: inline-flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: var(--xh-breadcrumb-link-gap, var(--xh-space-1));
|
|
102
|
+
min-block-size: var(--xh-breadcrumb-link-h, var(--xh-control-action-size));
|
|
103
|
+
/* 一层的名字可能很长(文档标题、订单号),压不住会把整条路径撑开 */
|
|
104
|
+
max-inline-size: var(--xh-breadcrumb-link-max-w, var(--xh-nav-link-max-w));
|
|
105
|
+
/* 行高随 root 的行距槽:家族基础块给条目写了 leading-normal,这里接回 root 那一支 */
|
|
106
|
+
line-height: var(--xh-breadcrumb-leading, var(--xh-leading-tight));
|
|
107
|
+
text-decoration: none;
|
|
108
|
+
white-space: nowrap;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
text-overflow: ellipsis;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.xh-scope-breadcrumb[data-part='link'][hidden] {
|
|
114
|
+
display: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* 图标位跟着字号走,与文字并排;不参与省略,压缩时先压文字 */
|
|
118
|
+
.xh-scope-breadcrumb[data-part='link-icon'] {
|
|
119
|
+
display: inline-flex;
|
|
120
|
+
flex: none;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
inline-size: var(--xh-breadcrumb-link-icon-size, var(--xh-glyph-size-text));
|
|
124
|
+
block-size: var(--xh-breadcrumb-link-icon-size, var(--xh-glyph-size-text));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.xh-scope-breadcrumb[data-part='link-icon'][hidden] {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* 分隔符是纯视觉占位,读屏那边已被 aria-hidden 摘掉;折叠位是一个列表项,只给里面的触发器排位 */
|
|
132
|
+
.xh-scope-breadcrumb[data-part='separator'],
|
|
133
|
+
.xh-scope-breadcrumb[data-part='ellipsis'] {
|
|
134
|
+
display: inline-flex;
|
|
135
|
+
flex: none;
|
|
136
|
+
/* 两者也是列表项,宿主给 li 的外边距会把它们顶离同一行 */
|
|
137
|
+
margin: 0;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
/* 分隔符是 aria-hidden 的纯装饰,取最弱一档前景,不与可点的链接抢层级 */
|
|
141
|
+
color: var(--xh-breadcrumb-separator-fg, var(--xh-fg-disabled));
|
|
142
|
+
user-select: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.xh-scope-breadcrumb[data-part='separator'][hidden],
|
|
146
|
+
.xh-scope-breadcrumb[data-part='ellipsis'][hidden] {
|
|
147
|
+
display: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* 分隔符常常是个图标:给一个跟着字号走的方框,斜杠与图标混用时基线才不跳 */
|
|
151
|
+
.xh-scope-breadcrumb[data-part='separator'] {
|
|
152
|
+
inline-size: var(--xh-breadcrumb-separator-size, var(--xh-glyph-size-text));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.xh-scope-breadcrumb[data-part='ellipsis'] {
|
|
156
|
+
min-inline-size: var(--xh-breadcrumb-ellipsis-size, var(--xh-space-5));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* 被收起的层级与展开后的折叠位都带 hidden:紧跟在它后面的分隔符一并收起,路径里不留两个挨着的分隔符 */
|
|
160
|
+
.xh-scope-breadcrumb[data-part='item'][hidden] + .xh-scope-breadcrumb[data-part='separator'],
|
|
161
|
+
.xh-scope-breadcrumb[data-part='ellipsis'][hidden] + .xh-scope-breadcrumb[data-part='separator'] {
|
|
162
|
+
display: none;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* 折叠位里的触发器与链接同属一行导航条目(nav 语境):面、字色、按压时间线由家族给,几何与链接同一把尺——
|
|
166
|
+
行内衬一格、control 圆角、字号随档;不写内容时由下面画一枚省略号字形 */
|
|
167
|
+
.xh-scope-breadcrumb[data-part='ellipsis-trigger'] {
|
|
168
|
+
--xh-collection-block-padding: var(--xh-space-0);
|
|
169
|
+
--xh-collection-inline-padding: var(--xh-space-1);
|
|
170
|
+
--xh-collection-radius: var(--xh-shape-control);
|
|
171
|
+
--xh-collection-font-size: var(--xh-breadcrumb-font-size, var(--xh-_breadcrumb-font-size));
|
|
172
|
+
--xh-collection-glyph-size: var(--xh-breadcrumb-icon-size, var(--xh-glyph-size-text));
|
|
173
|
+
--xh-collection-fg-rest: var(--xh-breadcrumb-fg, var(--xh-fg-muted));
|
|
174
|
+
--xh-collection-bg-hover: var(--xh-bg-subtle);
|
|
175
|
+
--xh-collection-fg-hover: var(--xh-_tone-fg, var(--xh-fg-brand));
|
|
176
|
+
--xh-collection-bg-pressed: var(--xh-bg-subtle-hover);
|
|
177
|
+
--xh-collection-fg-pressed: var(--xh-_tone-fg, var(--xh-fg-brand-strong));
|
|
178
|
+
|
|
179
|
+
display: inline-flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
min-block-size: var(--xh-breadcrumb-ellipsis-trigger-h, var(--xh-breadcrumb-link-h, var(--xh-control-action-size)));
|
|
182
|
+
line-height: var(--xh-breadcrumb-leading, var(--xh-leading-tight));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.xh-scope-breadcrumb[data-part='ellipsis-trigger']:empty::before {
|
|
186
|
+
content: '';
|
|
187
|
+
display: inline-block;
|
|
188
|
+
inline-size: var(--xh-icon-size, var(--xh-glyph-size-text));
|
|
189
|
+
block-size: var(--xh-icon-size, var(--xh-glyph-size-text));
|
|
190
|
+
vertical-align: var(--xh-glyph-baseline-shift);
|
|
191
|
+
background-color: currentColor;
|
|
192
|
+
-webkit-mask: var(--xh-glyph-mark-ellipsis) center / contain no-repeat;
|
|
193
|
+
mask: var(--xh-glyph-mark-ellipsis) center / contain no-repeat;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.xh-scope-breadcrumb[data-part='ellipsis-trigger'][hidden] {
|
|
197
|
+
display: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* 没写内容就由皮肤画兜底字形(一条斜线);作者写了自己的字符或图形,这条即不命中 */
|
|
201
|
+
.xh-scope-breadcrumb[data-part='separator']:empty::before {
|
|
202
|
+
content: '';
|
|
203
|
+
display: inline-block;
|
|
204
|
+
inline-size: var(--xh-icon-size, var(--xh-glyph-size-text));
|
|
205
|
+
block-size: var(--xh-icon-size, var(--xh-glyph-size-text));
|
|
206
|
+
vertical-align: var(--xh-glyph-baseline-shift);
|
|
207
|
+
background-color: currentColor;
|
|
208
|
+
-webkit-mask: var(--xh-glyph-mark-slash) center / contain no-repeat;
|
|
209
|
+
mask: var(--xh-glyph-mark-slash) center / contain no-repeat;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@media (forced-colors: active) {
|
|
213
|
+
/* 兜底字形是 mask 挖出来的一块底色,这一档里底色被系统换成 Canvas,字形跟着消失。
|
|
214
|
+
字形退出强制换色、直接写系统色(不能取 currentColor:退出强制换色的伪元素读到的是被系统换掉之前的作者色):
|
|
215
|
+
条目面上取 CanvasText;按下与没被高亮时的悬停,家族把条目涂成 Highlight,字形换 HighlightText;
|
|
216
|
+
落在 Canvas 面上的取 CanvasText;
|
|
217
|
+
禁用取 GrayText */
|
|
218
|
+
.xh-scope-breadcrumb[data-part='ellipsis-trigger']:empty::before,
|
|
219
|
+
.xh-scope-breadcrumb[data-part='separator']:empty::before {
|
|
220
|
+
forced-color-adjust: none;
|
|
221
|
+
background-color: CanvasText;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.xh-scope-breadcrumb[data-part='ellipsis-trigger']:not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error]):is(:active, [data-pressed], :hover:not(:focus-visible, [data-highlighted])):empty::before {
|
|
225
|
+
background-color: HighlightText;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.xh-scope-breadcrumb[data-part='ellipsis-trigger']:is([aria-disabled='true'], [data-disabled]):empty::before {
|
|
229
|
+
background-color: GrayText;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
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
|
+
/* 定义 button group 样式。 */
|
|
7
|
+
|
|
8
|
+
@layer xihan.components {
|
|
9
|
+
/* 皮肤在场的标记:开发模式下按 scope 探一次,取不到就说明这份皮肤没被引入。 */
|
|
10
|
+
.xh-scope-button-group {
|
|
11
|
+
--xh-button-group-skin: 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* 一组按钮连成一条:段与段之间不留缝,靠共边接上,所以不设 gap。
|
|
15
|
+
排布只能读 data-orientation——role=group 不收 aria-orientation,连接层根本不输出它。
|
|
16
|
+
圆角在容器上先收成 0,组内每段都取得到,两端的圆角再逐段补回来。
|
|
17
|
+
|
|
18
|
+
排不下时这里不折行、也不自己翻成竖排,两条都是有意的:
|
|
19
|
+
折行会把两端的圆角切在行末与行首——圆角只补在 :first-child 与 :last-child 上,
|
|
20
|
+
中间那两个角是直角,一条焊死的按钮条断在半路。
|
|
21
|
+
皮肤自己翻成竖排则会与 data-orientation 脱钩:合边的负外边距收哪个轴、
|
|
22
|
+
两端圆角补哪一对角、连接层给分隔线派的朝向,三处全部由 data-orientation 决定,
|
|
23
|
+
只有排布偷偷换了轴,线会横竖不对、角会补在错的两端。
|
|
24
|
+
朝向由使用者显式给 orientation="vertical",三处才一起换过去。 */
|
|
25
|
+
.xh-scope-button-group[data-part='root'] {
|
|
26
|
+
/* 组件内那几档层号只在自己人之间排序:建一个层叠上下文把它们关起来,
|
|
27
|
+
既不让页面上的层号插进来,也不让它们漏出去压住别人 */
|
|
28
|
+
isolation: isolate;
|
|
29
|
+
|
|
30
|
+
/* 与下面几档同理,写私有槽而非 --xh-button-radius:
|
|
31
|
+
后者是使用者的入口,写死它,进了组的胶囊按钮就再也圆不起来 */
|
|
32
|
+
--xh-_button-group-radius: 0;
|
|
33
|
+
|
|
34
|
+
/* 段与段共边焊成一条,solid 段悬停那一档不抬:抬起其中一段,投影会压到左右两段的面上。
|
|
35
|
+
其余形态的影本来就是 none,这一支只被 button.css 的 solid 块消费。颜色不在这里灌:段自带
|
|
36
|
+
data-xh-action-variant,底 / 前景 / 描边由家族形态矩阵按段自己的形态给出 */
|
|
37
|
+
--xh-_button-group-shadow-hover: none;
|
|
38
|
+
--xh-_group-separator-size: calc(var(--xh-_button-group-h, var(--xh-control-h-md)) / 2);
|
|
39
|
+
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
align-items: stretch;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.xh-scope-button-group[data-part='root'][data-orientation='horizontal'] {
|
|
45
|
+
flex-direction: row;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.xh-scope-button-group[data-part='root'][data-orientation='vertical'] {
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* 撑满行宽:整组占满可用宽度,每段等分剩余空间。inline-flex 改成 flex:行内盒撑不满一行 */
|
|
53
|
+
.xh-scope-button-group[data-part='root'][data-full-width] {
|
|
54
|
+
display: flex;
|
|
55
|
+
inline-size: 100%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* 分隔线不参与等分:它有自己的厚度,跟着拉伸就成了一条粗带 */
|
|
59
|
+
.xh-scope-button-group[data-part='root'][data-full-width] > *:not([data-xh-button-group-separator]) {
|
|
60
|
+
flex: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* 给了 display 的角色节点必须补这条:display 声明会盖掉 UA 的 [hidden]{display:none},
|
|
64
|
+
不补的话作者给节点加 hidden 后它照样显示 */
|
|
65
|
+
.xh-scope-button-group[data-part='root'][hidden] {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* —— 段间的线 —— */
|
|
70
|
+
/* 装饰性的一条线,读屏不念。段本来靠共边连成一体,插了它就是把一排按钮分成几组。
|
|
71
|
+
朝向是这条线自己的(横排里是竖线),与 root 的排布相反 */
|
|
72
|
+
.xh-scope-button-group[data-part='root'] > [data-xh-button-group-separator] {
|
|
73
|
+
flex: none;
|
|
74
|
+
align-self: center;
|
|
75
|
+
z-index: 1;
|
|
76
|
+
border-radius: var(--xh-button-group-separator-radius, var(--xh-shape-pill));
|
|
77
|
+
background: var(--xh-button-group-separator-color, var(--xh-fg-default));
|
|
78
|
+
opacity: var(--xh-button-group-separator-opacity, var(--xh-control-separator-opacity));
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
transition:
|
|
81
|
+
background-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter),
|
|
82
|
+
opacity var(--xh-motion-duration-micro) var(--xh-motion-ease-enter);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.xh-scope-button-group[data-part='root'] > [data-xh-button-group-separator][data-orientation='vertical'] {
|
|
86
|
+
inline-size: var(--xh-button-group-separator-thickness, var(--xh-stroke-thin));
|
|
87
|
+
block-size: var(
|
|
88
|
+
--xh-button-group-separator-size,
|
|
89
|
+
var(--xh-_group-separator-size)
|
|
90
|
+
);
|
|
91
|
+
margin-inline-start: calc(-1 * var(--xh-button-group-separator-thickness, var(--xh-stroke-thin)));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.xh-scope-button-group[data-part='root'] > [data-xh-button-group-separator][data-orientation='horizontal'] {
|
|
95
|
+
block-size: var(--xh-button-group-separator-thickness, var(--xh-stroke-thin));
|
|
96
|
+
inline-size: var(
|
|
97
|
+
--xh-button-group-separator-size,
|
|
98
|
+
var(--xh-_group-separator-size)
|
|
99
|
+
);
|
|
100
|
+
margin-block-start: calc(-1 * var(--xh-button-group-separator-thickness, var(--xh-stroke-thin)));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* 整组禁用:段真正的禁用由适配器落到每一段的原生 disabled 上,
|
|
104
|
+
置灰的原生按钮不收指针事件,指针形状只能由这一层给 */
|
|
105
|
+
.xh-scope-button-group[data-part='root'][data-disabled] {
|
|
106
|
+
cursor: not-allowed;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* 段都按不动了,段间那条线跟着退到弱边一档;换色按 micro 走一遍,
|
|
110
|
+
与两侧那几段自己的禁用过渡同拍 */
|
|
111
|
+
.xh-scope-button-group[data-part='root'] > [data-xh-button-group-separator][data-disabled] {
|
|
112
|
+
background: var(--xh-button-group-separator-color-disabled, var(--xh-border-subtle));
|
|
113
|
+
opacity: var(--xh-button-group-separator-opacity-disabled, var(--xh-control-separator-disabled-opacity));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@media (forced-colors: active) {
|
|
117
|
+
/* 段间那条线画的是一块纯底色,这一档里底色被统一换成 Canvas,线整条消失,
|
|
118
|
+
几组按钮就连成了一长串。换成前景色画回来 */
|
|
119
|
+
.xh-scope-button-group[data-part='root'] > [data-xh-button-group-separator] {
|
|
120
|
+
background: CanvasText;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.xh-scope-button-group[data-part='root'][data-variant='outline']::after {
|
|
124
|
+
border-color: ButtonText;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* —— 尺寸 —— */
|
|
129
|
+
/* 高度、内边距、间距、字号在容器上写一次,沿继承流给组内每一段。
|
|
130
|
+
三档都写出来:自定义属性会一路继承,组里再套一组时内层不写就会沿用外层的档。
|
|
131
|
+
写私有槽而非 --xh-button-*:后者是使用者的入口,组内某一枚自己写了档位时要压得住容器 */
|
|
132
|
+
.xh-scope-button-group[data-part='root'][data-size='sm'] {
|
|
133
|
+
--xh-_button-group-h: var(--xh-control-h-sm);
|
|
134
|
+
--xh-_button-group-px: var(--xh-control-px-sm);
|
|
135
|
+
--xh-_button-group-gap: var(--xh-control-gap-sm);
|
|
136
|
+
--xh-_button-group-font-size: var(--xh-control-font-sm);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.xh-scope-button-group[data-part='root'][data-size='md'] {
|
|
140
|
+
--xh-_button-group-h: var(--xh-control-h-md);
|
|
141
|
+
--xh-_button-group-px: var(--xh-control-px-md);
|
|
142
|
+
--xh-_button-group-gap: var(--xh-control-gap-md);
|
|
143
|
+
--xh-_button-group-font-size: var(--xh-control-font-md);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.xh-scope-button-group[data-part='root'][data-size='lg'] {
|
|
147
|
+
--xh-_button-group-h: var(--xh-control-h-lg);
|
|
148
|
+
--xh-_button-group-px: var(--xh-control-px-lg);
|
|
149
|
+
--xh-_button-group-gap: var(--xh-control-gap-lg);
|
|
150
|
+
--xh-_button-group-font-size: var(--xh-control-font-lg);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* —— 形态 —— */
|
|
154
|
+
/* 组的形态由适配器下发到每一段(段自己写了的优先),段的颜色由家族形态矩阵给出;
|
|
155
|
+
这里只定段间那条线在各档面上的颜色与浓淡,用哪族颜色由根上的 data-tone 决定 */
|
|
156
|
+
.xh-scope-button-group[data-part='root'][data-variant='solid'] {
|
|
157
|
+
--xh-button-group-separator-color: var(--xh-_tone-on, var(--xh-fg-on-brand));
|
|
158
|
+
--xh-button-group-separator-opacity: 0.24;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.xh-scope-button-group[data-part='root'][data-variant='subtle'] {
|
|
162
|
+
--xh-button-group-separator-color: var(--xh-_tone-fg, var(--xh-fg-default));
|
|
163
|
+
--xh-button-group-separator-opacity: 0.16;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.xh-scope-button-group[data-part='root'][data-variant='outline'] {
|
|
167
|
+
--xh-button-group-separator-color: var(--xh-_tone-border-control, var(--xh-border-control));
|
|
168
|
+
--xh-button-group-separator-opacity: 1;
|
|
169
|
+
|
|
170
|
+
position: relative;
|
|
171
|
+
border-radius: var(--xh-button-group-radius, var(--xh-shape-control));
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.xh-scope-button-group[data-part='root'][data-variant='outline']::after {
|
|
175
|
+
content: '';
|
|
176
|
+
position: absolute;
|
|
177
|
+
z-index: 2;
|
|
178
|
+
inset: 0;
|
|
179
|
+
border: var(--xh-stroke-thin) solid
|
|
180
|
+
var(--xh-button-group-outline-color, var(--xh-_tone-border-control, var(--xh-border-control)));
|
|
181
|
+
border-radius: inherit;
|
|
182
|
+
pointer-events: none;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.xh-scope-button-group[data-part='root'][data-variant='ghost'] {
|
|
186
|
+
--xh-button-group-separator-color: var(--xh-_tone-fg, var(--xh-fg-default));
|
|
187
|
+
--xh-button-group-separator-opacity: 0.16;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* outline 的外框由组根统一绘制,组内每一段都不再各画一圈边框(段的形态矩阵描边被这一条压平)。 */
|
|
191
|
+
.xh-scope-button-group[data-part='root'][data-variant='outline']
|
|
192
|
+
> .xh-scope-button[data-part='root'],
|
|
193
|
+
.xh-scope-button-group[data-part='root'][data-variant='outline']
|
|
194
|
+
> * > .xh-scope-button[data-part='root'] {
|
|
195
|
+
border-color: transparent;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* —— 合边 —— */
|
|
199
|
+
/* 相邻两段的边重合在同一像素上,谁的描边浮在上面必须能指定,
|
|
200
|
+
因此每一段都是定位元素——静态元素的 z-index 不生效 */
|
|
201
|
+
.xh-scope-button-group[data-part='root'] > * {
|
|
202
|
+
position: relative;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* 共边只画一次:后一段不画起始边,由前一段的末端边承担。墨色描边半透明,两条重合会加深。
|
|
206
|
+
方向跟着 data-orientation 走,横排收 inline 轴、竖排收 block 轴。
|
|
207
|
+
分隔线两侧不合边:那两段本来就是被这条线分开的 */
|
|
208
|
+
.xh-scope-button-group[data-part='root'][data-orientation='horizontal']
|
|
209
|
+
> *:not([data-xh-button-group-separator]) + *:not([data-xh-button-group-separator]) {
|
|
210
|
+
border-inline-start-width: 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.xh-scope-button-group[data-part='root'][data-orientation='vertical']
|
|
214
|
+
> *:not([data-xh-button-group-separator]) + *:not([data-xh-button-group-separator]) {
|
|
215
|
+
border-block-start-width: 0;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* 悬停或拿到焦点的那一段抬到最上层:焦点环画在元素外侧,
|
|
219
|
+
不抬层就会被后一段的底色与描边盖掉一半 */
|
|
220
|
+
.xh-scope-button-group[data-part='root'] > *:hover,
|
|
221
|
+
.xh-scope-button-group[data-part='root'] > *:focus-within {
|
|
222
|
+
z-index: 1;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* 独立 Button 按下时缩一档;组内段却靠共边重叠一像素,单段缩放会同时撕开两侧接缝。
|
|
226
|
+
组内仍保留 active 换底与撤高光,只把会改变外轮廓几何的 scale 收掉(允许的只换面);
|
|
227
|
+
键盘与触屏的按压由 Headless 投影 data-pressed,与指针 :active 同一档。 */
|
|
228
|
+
.xh-scope-button-group[data-part='root']
|
|
229
|
+
> .xh-scope-button[data-part='root']:not([data-disabled]):not([data-loading]):is(:active, [data-pressed]),
|
|
230
|
+
.xh-scope-button-group[data-part='root']
|
|
231
|
+
> * > .xh-scope-button[data-part='root']:not([data-disabled]):not([data-loading]):is(:active, [data-pressed]) {
|
|
232
|
+
scale: none;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* —— 两端圆角 —— */
|
|
236
|
+
/* 逻辑角属性写,rtl 与竖排都跟着换边,不必另写一套。
|
|
237
|
+
只认直接子节点:段之间插了别的节点时宁可退化成直角,也不要圆错位置 */
|
|
238
|
+
.xh-scope-button-group[data-part='root'][data-orientation='horizontal'] > *:first-child,
|
|
239
|
+
.xh-scope-button-group[data-part='root'][data-orientation='horizontal'] > *:first-child .xh-scope-button[data-part='root'] {
|
|
240
|
+
border-start-start-radius: var(--xh-button-group-radius, var(--xh-shape-control));
|
|
241
|
+
border-end-start-radius: var(--xh-button-group-radius, var(--xh-shape-control));
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.xh-scope-button-group[data-part='root'][data-orientation='horizontal'] > *:last-child,
|
|
245
|
+
.xh-scope-button-group[data-part='root'][data-orientation='horizontal'] > *:last-child .xh-scope-button[data-part='root'] {
|
|
246
|
+
border-start-end-radius: var(--xh-button-group-radius, var(--xh-shape-control));
|
|
247
|
+
border-end-end-radius: var(--xh-button-group-radius, var(--xh-shape-control));
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.xh-scope-button-group[data-part='root'][data-orientation='vertical'] > *:first-child,
|
|
251
|
+
.xh-scope-button-group[data-part='root'][data-orientation='vertical'] > *:first-child .xh-scope-button[data-part='root'] {
|
|
252
|
+
border-start-start-radius: var(--xh-button-group-radius, var(--xh-shape-control));
|
|
253
|
+
border-start-end-radius: var(--xh-button-group-radius, var(--xh-shape-control));
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.xh-scope-button-group[data-part='root'][data-orientation='vertical'] > *:last-child,
|
|
257
|
+
.xh-scope-button-group[data-part='root'][data-orientation='vertical'] > *:last-child .xh-scope-button[data-part='root'] {
|
|
258
|
+
border-end-start-radius: var(--xh-button-group-radius, var(--xh-shape-control));
|
|
259
|
+
border-end-end-radius: var(--xh-button-group-radius, var(--xh-shape-control));
|
|
260
|
+
}
|
|
261
|
+
}
|