@sdata/web-vue 4.7.1 → 5.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/dist/sd.css +4004 -3955
- package/dist/sd.min.css +13 -13
- package/es/_components/input-label/style/index.css +47 -47
- package/es/_components/select-view/style/index.css +256 -256
- package/es/alert/style/index.css +48 -48
- package/es/alert/style/token.scss +257 -0
- package/es/anchor/style/index.css +18 -18
- package/es/anchor/style/token.scss +74 -0
- package/es/auto-complete/style/index.css +18 -18
- package/es/auto-complete/style/token.scss +94 -0
- package/es/avatar/style/index.css +31 -31
- package/es/avatar/style/token.scss +118 -0
- package/es/back-top/style/index.css +11 -11
- package/es/back-top/style/token.scss +60 -0
- package/es/badge/style/index.css +35 -35
- package/es/badge/style/token.scss +148 -0
- package/es/basic-crud-table/style/index.css +4 -4
- package/es/basic-crud-table/style/token.scss +20 -0
- package/es/bloom-menu/style/index.css +33 -34
- package/es/bloom-menu/style/index.scss +5 -5
- package/es/bloom-menu/style/token.scss +99 -0
- package/es/border-beam/style/token.scss +28 -0
- package/es/breadcrumb/style/index.css +17 -17
- package/es/breadcrumb/style/token.scss +97 -0
- package/es/button/style/index.css +379 -379
- package/es/button/style/index.scss +3 -3
- package/es/button/style/token.scss +1604 -0
- package/es/card/style/index.css +36 -36
- package/es/card/style/token.scss +162 -0
- package/es/carousel/style/index.css +41 -41
- package/es/carousel/style/token.scss +101 -0
- package/es/cascader/style/index.css +58 -58
- package/es/cascader/style/token.scss +89 -0
- package/es/checkbox/style/index.css +28 -28
- package/es/checkbox/style/token.scss +134 -0
- package/es/collapse/style/index.css +24 -24
- package/es/collapse/style/token.scss +136 -0
- package/es/color-picker/style/index.css +50 -50
- package/es/color-picker/style/token.scss +200 -0
- package/es/comment/style/index.css +15 -15
- package/es/comment/style/token.scss +83 -0
- package/es/config-provider/algorithms.d.ts +11 -0
- package/es/config-provider/algorithms.js +53 -0
- package/es/config-provider/global-theme.js +7 -4
- package/es/config-provider/theme-config.d.ts +11 -0
- package/es/config-provider/theme-config.js +114 -0
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +46 -11
- package/es/config-provider/theme.d.ts +4 -1
- package/es/config-provider/theme.js +6 -5
- package/es/config-provider/token-key.d.ts +1 -0
- package/es/config-provider/token-key.js +6 -0
- package/es/copy/style/index.css +1 -1
- package/es/copy/style/token.scss +9 -0
- package/es/cropper/style/index.css +7 -7
- package/es/cropper/style/token.scss +24 -0
- package/es/date-picker/style/index.css +73 -73
- package/es/date-picker/style/token.scss +229 -0
- package/es/descriptions/style/index.css +45 -45
- package/es/descriptions/style/token.scss +191 -0
- package/es/divider/style/index.css +11 -11
- package/es/divider/style/token.scss +60 -0
- package/es/drawer/style/index.css +13 -13
- package/es/drawer/style/token.scss +68 -0
- package/es/dropdown/style/index.css +24 -23
- package/es/dropdown/style/index.scss +4 -2
- package/es/dropdown/style/token.scss +123 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/ellipsis/interface.d.ts +1 -0
- package/es/ellipsis/style/index.css +2 -2
- package/es/ellipsis/style/token.scss +5 -0
- package/es/empty/style/index.css +7 -7
- package/es/empty/style/token.scss +35 -0
- package/es/file-previewer/style/index.css +44 -44
- package/es/file-previewer/style/token.scss +198 -0
- package/es/form/style/index.css +113 -113
- package/es/form/style/token.scss +340 -0
- package/es/image/style/index.css +83 -83
- package/es/image/style/token.scss +451 -0
- package/es/index.css +4004 -3955
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/es/input/style/index.css +104 -104
- package/es/input/style/input.scss +2 -8
- package/es/input/style/size.scss +4 -4
- package/es/input/style/token.scss +327 -0
- package/es/input-mask/style/index.css +1 -1
- package/es/input-mask/style/token.scss +8 -0
- package/es/input-number/style/index.css +19 -19
- package/es/input-number/style/token.scss +82 -0
- package/es/input-tag/style/index.css +209 -209
- package/es/input-tag/style/token.scss +226 -0
- package/es/json-form/style/index.css +2 -2
- package/es/json-form/style/token.scss +21 -0
- package/es/kv-list/style/index.css +13 -13
- package/es/kv-list/style/token.scss +29 -0
- package/es/layout/style/index.css +38 -38
- package/es/layout/style/token.scss +100 -0
- package/es/link/style/index.css +28 -28
- package/es/link/style/token.scss +117 -0
- package/es/list/style/index.css +27 -27
- package/es/list/style/token.scss +178 -0
- package/es/mention/style/token.scss +22 -0
- package/es/menu/style/index.css +153 -120
- package/es/menu/style/index.scss +12 -4
- package/es/menu/style/token.scss +390 -0
- package/es/message/style/index.css +33 -33
- package/es/message/style/token.scss +218 -0
- package/es/modal/style/index.css +21 -21
- package/es/modal/style/token.scss +115 -0
- package/es/model-selector/style/index.css +1 -1
- package/es/notification/style/index.css +44 -44
- package/es/notification/style/token.scss +241 -0
- package/es/number-flow/style/index.css +5 -5
- package/es/number-flow/style/token.scss +19 -0
- package/es/page-header/style/index.css +25 -25
- package/es/page-header/style/token.scss +139 -0
- package/es/pagination/style/index.css +85 -85
- package/es/pagination/style/token.scss +303 -0
- package/es/panel-group/style/index.css +7 -7
- package/es/panel-group/style/token.scss +28 -0
- package/es/popconfirm/style/index.css +18 -18
- package/es/popconfirm/style/token.scss +83 -0
- package/es/popover/style/index.css +12 -12
- package/es/popover/style/token.scss +58 -0
- package/es/progress/style/index.css +55 -55
- package/es/progress/style/token.scss +253 -0
- package/es/qr-code/style/index.css +18 -21
- package/es/qr-code/style/index.scss +4 -6
- package/es/qr-code/style/token.scss +59 -0
- package/es/radio/style/index.css +45 -44
- package/es/radio/style/index.scss +1 -0
- package/es/radio/style/token.scss +185 -0
- package/es/rate/style/index.css +8 -8
- package/es/rate/style/token.scss +19 -0
- package/es/regex-vis/style/index.css +51 -51
- package/es/regex-vis/style/token.scss +170 -0
- package/es/result/style/index.css +26 -26
- package/es/result/style/token.scss +139 -0
- package/es/rich-text-editor/style/index.css +31 -31
- package/es/rich-text-editor/style/token.scss +120 -0
- package/es/scrollbar/style/index.css +14 -14
- package/es/scrollbar/style/token.scss +33 -0
- package/es/secret/style/index.css +6 -6
- package/es/secret/style/token.scss +30 -0
- package/es/select/style/index.css +27 -27
- package/es/select/style/token.scss +151 -0
- package/es/selectable-card/style/index.css +53 -51
- package/es/selectable-card/style/index.scss +6 -2
- package/es/selectable-card/style/token.scss +60 -0
- package/es/sender/style/index.css +54 -54
- package/es/sender/style/token.scss +155 -0
- package/es/skeleton/style/index.css +12 -12
- package/es/skeleton/style/token.scss +60 -0
- package/es/slider/style/index.css +34 -34
- package/es/slider/style/token.scss +144 -0
- package/es/spin/style/index.css +11 -11
- package/es/spin/style/token.scss +60 -0
- package/es/split/style/index.css +2 -2
- package/es/split/style/token.scss +18 -0
- package/es/statistic/style/index.css +13 -13
- package/es/statistic/style/token.scss +73 -0
- package/es/steps/style/index.css +98 -98
- package/es/steps/style/token.scss +464 -0
- package/es/style/color/css-variables.scss +382 -381
- package/es/style/theme/css-variables.scss +329 -135
- package/es/style/theme/global.scss +5 -5
- package/es/style/theme/index.scss +1 -1
- package/es/style/theme/runtime.scss +29 -0
- package/es/switch/style/index.css +37 -37
- package/es/switch/style/token.scss +135 -0
- package/es/table/style/index.css +127 -127
- package/es/table/style/token.scss +425 -0
- package/es/tabs/style/index.css +196 -190
- package/es/tabs/style/index.scss +27 -17
- package/es/tabs/style/token.scss +534 -0
- package/es/tag/index.d.ts +13 -0
- package/es/tag/interface.d.ts +1 -0
- package/es/tag/style/index.css +159 -159
- package/es/tag/style/token.scss +513 -0
- package/es/tag/tag.vue.d.ts +13 -3
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +35 -8
- package/es/tag-group/style/index.css +3 -3
- package/es/tag-group/style/token.scss +9 -0
- package/es/textarea/style/index.css +40 -40
- package/es/time-picker/style/index.css +12 -12
- package/es/time-picker/style/token.scss +50 -0
- package/es/timeline/style/index.css +22 -22
- package/es/timeline/style/token.scss +75 -0
- package/es/toolbar/style/index.css +6 -6
- package/es/toolbar/style/token.scss +45 -0
- package/es/tooltip/style/index.css +8 -8
- package/es/tooltip/style/token.scss +46 -0
- package/es/tour/style/index.css +28 -28
- package/es/tour/style/token.scss +65 -0
- package/es/transfer/style/index.css +46 -45
- package/es/transfer/style/index.scss +4 -1
- package/es/transfer/style/token.scss +199 -0
- package/es/tree/style/index.css +43 -36
- package/es/tree/style/index.scss +10 -0
- package/es/tree/style/token.scss +163 -0
- package/es/tree-select/style/index.css +9 -9
- package/es/tree-select/style/token.scss +21 -0
- package/es/trigger/style/index.css +7 -7
- package/es/trigger/style/token.scss +19 -0
- package/es/typography/style/index.css +40 -40
- package/es/typography/style/token.scss +220 -0
- package/es/upload/index.d.ts +3 -0
- package/es/upload/style/index.css +95 -95
- package/es/upload/style/token.scss +470 -0
- package/es/upload/upload.vue.d.ts +2 -0
- package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +109 -16
- package/json/vetur-attributes.json +7 -0
- package/json/vetur-tags.json +4 -1
- package/json/web-types.json +18 -2
- package/package.json +7 -2
- package/es/style/color/palette-dark.d.ts +0 -4
- package/es/style/color/palette-dark.js +0 -10
- package/es/style/color/palette.d.ts +0 -4
- package/es/style/color/palette.js +0 -10
package/es/menu/style/index.css
CHANGED
|
@@ -50,16 +50,13 @@
|
|
|
50
50
|
position: relative;
|
|
51
51
|
box-sizing: border-box;
|
|
52
52
|
width: 100%;
|
|
53
|
-
font-size: 14px;
|
|
54
|
-
line-height: 1.5715;
|
|
53
|
+
font-size: var(--component-menu-menu-font-size, var(--component-menu-font-size, 14px));
|
|
54
|
+
line-height: var(--component-menu-menu-line-height, var(--component-menu-line-height, 1.5715));
|
|
55
55
|
transition: width 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
56
56
|
}
|
|
57
|
-
.sd-menu:focus-visible {
|
|
58
|
-
outline: 3px solid var(--sd-color-primary-light-2);
|
|
59
|
-
}
|
|
60
57
|
.sd-menu-indent {
|
|
61
58
|
display: inline-block;
|
|
62
|
-
width: 20px;
|
|
59
|
+
width: var(--component-menu-menu-item-indent-spacing, var(--component-menu-item-indent-spacing, var(--spacing-8, 20px)));
|
|
63
60
|
}
|
|
64
61
|
.sd-menu-ellipsis-wrapper {
|
|
65
62
|
display: inline-flex;
|
|
@@ -76,7 +73,7 @@
|
|
|
76
73
|
.sd-menu .sd-menu-inline-header {
|
|
77
74
|
position: relative;
|
|
78
75
|
box-sizing: border-box;
|
|
79
|
-
border-radius: var(--sd-border-radius-small);
|
|
76
|
+
border-radius: var(--component-menu-menu-border-radius, var(--component-menu-border-radius, var(--sd-border-radius-small)));
|
|
80
77
|
cursor: pointer;
|
|
81
78
|
}
|
|
82
79
|
.sd-menu .sd-menu-item.sd-menu-disabled,
|
|
@@ -89,7 +86,7 @@
|
|
|
89
86
|
.sd-menu .sd-menu-group-title.sd-menu-selected,
|
|
90
87
|
.sd-menu .sd-menu-pop-header.sd-menu-selected,
|
|
91
88
|
.sd-menu .sd-menu-inline-header.sd-menu-selected {
|
|
92
|
-
font-weight: 500;
|
|
89
|
+
font-weight: var(--component-menu-menu-font-weight-item-selected, var(--component-menu-font-weight-item-selected, var(--font-weight-500, 500)));
|
|
93
90
|
transition: color 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
94
91
|
}
|
|
95
92
|
.sd-menu .sd-menu-item.sd-menu-selected svg,
|
|
@@ -115,14 +112,14 @@
|
|
|
115
112
|
margin-right: 0;
|
|
116
113
|
}
|
|
117
114
|
.sd-menu-light {
|
|
118
|
-
background-color: var(--sd-color-menu-light-bg);
|
|
115
|
+
background-color: var(--component-menu-menu-light-color-bg, var(--component-menu-light-color-bg, var(--sd-color-menu-light-bg)));
|
|
119
116
|
}
|
|
120
117
|
.sd-menu-light .sd-menu-item,
|
|
121
118
|
.sd-menu-light .sd-menu-group-title,
|
|
122
119
|
.sd-menu-light .sd-menu-pop-header,
|
|
123
120
|
.sd-menu-light .sd-menu-inline-header {
|
|
124
|
-
color: var(--sd-color-text-2);
|
|
125
|
-
background-color: var(--sd-color-menu-light-bg);
|
|
121
|
+
color: var(--component-menu-menu-light-color-item-default, var(--component-menu-light-color-item-default, var(--sd-color-text-2)));
|
|
122
|
+
background-color: var(--component-menu-menu-light-color-bg-item-default, var(--component-menu-light-color-bg-item-default, var(--component-menu-menu-light-color-bg, var(--component-menu-light-color-bg, var(--sd-color-menu-light-bg)))));
|
|
126
123
|
}
|
|
127
124
|
.sd-menu-light .sd-menu-item .sd-icon,
|
|
128
125
|
.sd-menu-light .sd-menu-item .sd-menu-icon,
|
|
@@ -132,14 +129,14 @@
|
|
|
132
129
|
.sd-menu-light .sd-menu-pop-header .sd-menu-icon,
|
|
133
130
|
.sd-menu-light .sd-menu-inline-header .sd-icon,
|
|
134
131
|
.sd-menu-light .sd-menu-inline-header .sd-menu-icon {
|
|
135
|
-
color: var(--sd-color-text-3);
|
|
132
|
+
color: var(--component-menu-menu-light-color-icon-default, var(--component-menu-light-color-icon-default, var(--sd-color-text-3)));
|
|
136
133
|
}
|
|
137
134
|
.sd-menu-light .sd-menu-item:hover,
|
|
138
135
|
.sd-menu-light .sd-menu-group-title:hover,
|
|
139
136
|
.sd-menu-light .sd-menu-pop-header:hover,
|
|
140
137
|
.sd-menu-light .sd-menu-inline-header:hover {
|
|
141
|
-
color: var(--sd-color-text-2);
|
|
142
|
-
background-color: var(--sd-color-fill-2);
|
|
138
|
+
color: var(--component-menu-menu-light-color-item-hover, var(--component-menu-light-color-item-hover, var(--sd-color-text-2)));
|
|
139
|
+
background-color: var(--component-menu-menu-light-color-bg-item-hover, var(--component-menu-light-color-bg-item-hover, var(--sd-color-fill-2)));
|
|
143
140
|
}
|
|
144
141
|
.sd-menu-light .sd-menu-item:hover .sd-icon,
|
|
145
142
|
.sd-menu-light .sd-menu-item:hover .sd-menu-icon,
|
|
@@ -149,13 +146,31 @@
|
|
|
149
146
|
.sd-menu-light .sd-menu-pop-header:hover .sd-menu-icon,
|
|
150
147
|
.sd-menu-light .sd-menu-inline-header:hover .sd-icon,
|
|
151
148
|
.sd-menu-light .sd-menu-inline-header:hover .sd-menu-icon {
|
|
152
|
-
color: var(--sd-color-text-3);
|
|
149
|
+
color: var(--component-menu-menu-light-color-icon-hover, var(--component-menu-light-color-icon-hover, var(--sd-color-text-3)));
|
|
150
|
+
}
|
|
151
|
+
.sd-menu-light .sd-menu-item:focus-visible,
|
|
152
|
+
.sd-menu-light .sd-menu-group-title:focus-visible,
|
|
153
|
+
.sd-menu-light .sd-menu-pop-header:focus-visible,
|
|
154
|
+
.sd-menu-light .sd-menu-inline-header:focus-visible {
|
|
155
|
+
color: var(--component-menu-menu-light-color-item-hover, var(--component-menu-light-color-item-hover, var(--sd-color-text-2)));
|
|
156
|
+
background-color: var(--component-menu-menu-light-color-bg-item-hover, var(--component-menu-light-color-bg-item-hover, var(--sd-color-fill-2)));
|
|
157
|
+
outline: none;
|
|
158
|
+
}
|
|
159
|
+
.sd-menu-light .sd-menu-item:focus-visible .sd-icon,
|
|
160
|
+
.sd-menu-light .sd-menu-item:focus-visible .sd-menu-icon,
|
|
161
|
+
.sd-menu-light .sd-menu-group-title:focus-visible .sd-icon,
|
|
162
|
+
.sd-menu-light .sd-menu-group-title:focus-visible .sd-menu-icon,
|
|
163
|
+
.sd-menu-light .sd-menu-pop-header:focus-visible .sd-icon,
|
|
164
|
+
.sd-menu-light .sd-menu-pop-header:focus-visible .sd-menu-icon,
|
|
165
|
+
.sd-menu-light .sd-menu-inline-header:focus-visible .sd-icon,
|
|
166
|
+
.sd-menu-light .sd-menu-inline-header:focus-visible .sd-menu-icon {
|
|
167
|
+
color: var(--component-menu-menu-light-color-icon-hover, var(--component-menu-light-color-icon-hover, var(--sd-color-text-3)));
|
|
153
168
|
}
|
|
154
169
|
.sd-menu-light .sd-menu-item.sd-menu-selected,
|
|
155
170
|
.sd-menu-light .sd-menu-group-title.sd-menu-selected,
|
|
156
171
|
.sd-menu-light .sd-menu-pop-header.sd-menu-selected,
|
|
157
172
|
.sd-menu-light .sd-menu-inline-header.sd-menu-selected {
|
|
158
|
-
color: rgb(var(--sd-primary-6));
|
|
173
|
+
color: var(--component-menu-menu-light-color-item-selected, var(--component-menu-light-color-item-selected, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
159
174
|
}
|
|
160
175
|
.sd-menu-light .sd-menu-item.sd-menu-selected .sd-icon,
|
|
161
176
|
.sd-menu-light .sd-menu-item.sd-menu-selected .sd-menu-icon,
|
|
@@ -165,14 +180,14 @@
|
|
|
165
180
|
.sd-menu-light .sd-menu-pop-header.sd-menu-selected .sd-menu-icon,
|
|
166
181
|
.sd-menu-light .sd-menu-inline-header.sd-menu-selected .sd-icon,
|
|
167
182
|
.sd-menu-light .sd-menu-inline-header.sd-menu-selected .sd-menu-icon {
|
|
168
|
-
color: rgb(var(--sd-primary-6));
|
|
183
|
+
color: var(--component-menu-menu-light-color-icon-selected, var(--component-menu-light-color-icon-selected, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
169
184
|
}
|
|
170
185
|
.sd-menu-light .sd-menu-item.sd-menu-disabled,
|
|
171
186
|
.sd-menu-light .sd-menu-group-title.sd-menu-disabled,
|
|
172
187
|
.sd-menu-light .sd-menu-pop-header.sd-menu-disabled,
|
|
173
188
|
.sd-menu-light .sd-menu-inline-header.sd-menu-disabled {
|
|
174
|
-
color: var(--sd-color-text-4);
|
|
175
|
-
background-color: var(--sd-color-menu-light-bg);
|
|
189
|
+
color: var(--component-menu-menu-light-color-item-disabled, var(--component-menu-light-color-item-disabled, var(--sd-color-text-4)));
|
|
190
|
+
background-color: var(--component-menu-menu-light-color-bg-item-disabled, var(--component-menu-light-color-bg-item-disabled, var(--component-menu-menu-light-color-bg, var(--component-menu-light-color-bg, var(--sd-color-menu-light-bg)))));
|
|
176
191
|
}
|
|
177
192
|
.sd-menu-light .sd-menu-item.sd-menu-disabled .sd-icon,
|
|
178
193
|
.sd-menu-light .sd-menu-item.sd-menu-disabled .sd-menu-icon,
|
|
@@ -182,20 +197,20 @@
|
|
|
182
197
|
.sd-menu-light .sd-menu-pop-header.sd-menu-disabled .sd-menu-icon,
|
|
183
198
|
.sd-menu-light .sd-menu-inline-header.sd-menu-disabled .sd-icon,
|
|
184
199
|
.sd-menu-light .sd-menu-inline-header.sd-menu-disabled .sd-menu-icon {
|
|
185
|
-
color: var(--sd-color-text-4);
|
|
200
|
+
color: var(--component-menu-menu-light-color-icon-disabled, var(--component-menu-light-color-icon-disabled, var(--sd-color-text-4)));
|
|
186
201
|
}
|
|
187
202
|
.sd-menu-light .sd-menu-item.sd-menu-selected {
|
|
188
|
-
background-color: var(--sd-color-fill-2);
|
|
203
|
+
background-color: var(--component-menu-menu-light-color-bg-item-selected, var(--component-menu-light-color-bg-item-selected, var(--sd-color-fill-2)));
|
|
189
204
|
}
|
|
190
205
|
.sd-menu-light .sd-menu-inline-header.sd-menu-selected {
|
|
191
|
-
color: rgb(var(--sd-primary-6));
|
|
206
|
+
color: var(--component-menu-menu-light-color-submenu-selected, var(--component-menu-light-color-submenu-selected, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
192
207
|
}
|
|
193
208
|
.sd-menu-light .sd-menu-inline-header.sd-menu-selected .sd-icon,
|
|
194
209
|
.sd-menu-light .sd-menu-inline-header.sd-menu-selected .sd-menu-icon {
|
|
195
|
-
color: rgb(var(--sd-primary-6));
|
|
210
|
+
color: var(--component-menu-menu-light-color-submenu-selected, var(--component-menu-light-color-submenu-selected, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
196
211
|
}
|
|
197
212
|
.sd-menu-light .sd-menu-inline-header.sd-menu-selected:hover {
|
|
198
|
-
background-color: var(--sd-color-fill-2);
|
|
213
|
+
background-color: var(--component-menu-menu-light-color-bg-submenu-selected-hover, var(--component-menu-light-color-bg-submenu-selected-hover, var(--sd-color-fill-2)));
|
|
199
214
|
}
|
|
200
215
|
.sd-menu-light.sd-menu-horizontal .sd-menu-item.sd-menu-selected,
|
|
201
216
|
.sd-menu-light.sd-menu-horizontal .sd-menu-group-title.sd-menu-selected,
|
|
@@ -208,28 +223,28 @@
|
|
|
208
223
|
.sd-menu-light.sd-menu-horizontal .sd-menu-group-title.sd-menu-selected:hover,
|
|
209
224
|
.sd-menu-light.sd-menu-horizontal .sd-menu-pop-header.sd-menu-selected:hover,
|
|
210
225
|
.sd-menu-light.sd-menu-horizontal .sd-menu-inline-header.sd-menu-selected:hover {
|
|
211
|
-
background-color: var(--sd-color-fill-2);
|
|
226
|
+
background-color: var(--component-menu-menu-light-color-bg-item-hover, var(--component-menu-light-color-bg-item-hover, var(--sd-color-fill-2)));
|
|
212
227
|
}
|
|
213
228
|
.sd-menu-light .sd-menu-group-title {
|
|
214
|
-
color: var(--sd-color-text-3);
|
|
229
|
+
color: var(--component-menu-menu-light-color-group-title, var(--component-menu-light-color-group-title, var(--sd-color-text-3)));
|
|
215
230
|
pointer-events: none;
|
|
216
231
|
}
|
|
217
232
|
.sd-menu-light .sd-menu-collapse-button {
|
|
218
|
-
color: var(--sd-color-text-3);
|
|
219
|
-
background-color: var(--sd-color-fill-1);
|
|
233
|
+
color: var(--component-menu-menu-light-color-button, var(--component-menu-light-color-button, var(--sd-color-text-3)));
|
|
234
|
+
background-color: var(--component-menu-menu-light-color-bg-button, var(--component-menu-light-color-bg-button, var(--sd-color-fill-1)));
|
|
220
235
|
}
|
|
221
236
|
.sd-menu-light .sd-menu-collapse-button:hover {
|
|
222
|
-
background-color: var(--sd-color-fill-3);
|
|
237
|
+
background-color: var(--component-menu-menu-light-color-bg-button-hover, var(--component-menu-light-color-bg-button-hover, var(--sd-color-fill-3)));
|
|
223
238
|
}
|
|
224
239
|
.sd-menu-dark {
|
|
225
|
-
background-color: var(--sd-color-menu-dark-bg);
|
|
240
|
+
background-color: var(--component-menu-menu-dark-color-bg, var(--component-menu-dark-color-bg, var(--sd-color-menu-dark-bg)));
|
|
226
241
|
}
|
|
227
242
|
.sd-menu-dark .sd-menu-item,
|
|
228
243
|
.sd-menu-dark .sd-menu-group-title,
|
|
229
244
|
.sd-menu-dark .sd-menu-pop-header,
|
|
230
245
|
.sd-menu-dark .sd-menu-inline-header {
|
|
231
|
-
color: var(--sd-color-text-4);
|
|
232
|
-
background-color: var(--sd-color-menu-dark-bg);
|
|
246
|
+
color: var(--component-menu-menu-dark-color-item-default, var(--component-menu-dark-color-item-default, var(--sd-color-text-4)));
|
|
247
|
+
background-color: var(--component-menu-menu-dark-color-bg-item-default, var(--component-menu-dark-color-bg-item-default, var(--component-menu-menu-dark-color-bg, var(--component-menu-dark-color-bg, var(--sd-color-menu-dark-bg)))));
|
|
233
248
|
}
|
|
234
249
|
.sd-menu-dark .sd-menu-item .sd-icon,
|
|
235
250
|
.sd-menu-dark .sd-menu-item .sd-menu-icon,
|
|
@@ -239,14 +254,14 @@
|
|
|
239
254
|
.sd-menu-dark .sd-menu-pop-header .sd-menu-icon,
|
|
240
255
|
.sd-menu-dark .sd-menu-inline-header .sd-icon,
|
|
241
256
|
.sd-menu-dark .sd-menu-inline-header .sd-menu-icon {
|
|
242
|
-
color: var(--sd-color-text-3);
|
|
257
|
+
color: var(--component-menu-menu-dark-color-icon-default, var(--component-menu-dark-color-icon-default, var(--sd-color-text-3)));
|
|
243
258
|
}
|
|
244
259
|
.sd-menu-dark .sd-menu-item:hover,
|
|
245
260
|
.sd-menu-dark .sd-menu-group-title:hover,
|
|
246
261
|
.sd-menu-dark .sd-menu-pop-header:hover,
|
|
247
262
|
.sd-menu-dark .sd-menu-inline-header:hover {
|
|
248
|
-
color: var(--sd-color-text-4);
|
|
249
|
-
background-color: var(--sd-color-menu-dark-hover);
|
|
263
|
+
color: var(--component-menu-menu-dark-color-item-hover, var(--component-menu-dark-color-item-hover, var(--sd-color-text-4)));
|
|
264
|
+
background-color: var(--component-menu-menu-dark-color-bg-item-hover, var(--component-menu-dark-color-bg-item-hover, var(--sd-color-menu-dark-hover)));
|
|
250
265
|
}
|
|
251
266
|
.sd-menu-dark .sd-menu-item:hover .sd-icon,
|
|
252
267
|
.sd-menu-dark .sd-menu-item:hover .sd-menu-icon,
|
|
@@ -256,13 +271,31 @@
|
|
|
256
271
|
.sd-menu-dark .sd-menu-pop-header:hover .sd-menu-icon,
|
|
257
272
|
.sd-menu-dark .sd-menu-inline-header:hover .sd-icon,
|
|
258
273
|
.sd-menu-dark .sd-menu-inline-header:hover .sd-menu-icon {
|
|
259
|
-
color: var(--sd-color-text-3);
|
|
274
|
+
color: var(--component-menu-menu-dark-color-icon-hover, var(--component-menu-dark-color-icon-hover, var(--sd-color-text-3)));
|
|
275
|
+
}
|
|
276
|
+
.sd-menu-dark .sd-menu-item:focus-visible,
|
|
277
|
+
.sd-menu-dark .sd-menu-group-title:focus-visible,
|
|
278
|
+
.sd-menu-dark .sd-menu-pop-header:focus-visible,
|
|
279
|
+
.sd-menu-dark .sd-menu-inline-header:focus-visible {
|
|
280
|
+
color: var(--component-menu-menu-dark-color-item-hover, var(--component-menu-dark-color-item-hover, var(--sd-color-text-4)));
|
|
281
|
+
background-color: var(--component-menu-menu-dark-color-bg-item-hover, var(--component-menu-dark-color-bg-item-hover, var(--sd-color-menu-dark-hover)));
|
|
282
|
+
outline: none;
|
|
283
|
+
}
|
|
284
|
+
.sd-menu-dark .sd-menu-item:focus-visible .sd-icon,
|
|
285
|
+
.sd-menu-dark .sd-menu-item:focus-visible .sd-menu-icon,
|
|
286
|
+
.sd-menu-dark .sd-menu-group-title:focus-visible .sd-icon,
|
|
287
|
+
.sd-menu-dark .sd-menu-group-title:focus-visible .sd-menu-icon,
|
|
288
|
+
.sd-menu-dark .sd-menu-pop-header:focus-visible .sd-icon,
|
|
289
|
+
.sd-menu-dark .sd-menu-pop-header:focus-visible .sd-menu-icon,
|
|
290
|
+
.sd-menu-dark .sd-menu-inline-header:focus-visible .sd-icon,
|
|
291
|
+
.sd-menu-dark .sd-menu-inline-header:focus-visible .sd-menu-icon {
|
|
292
|
+
color: var(--component-menu-menu-dark-color-icon-hover, var(--component-menu-dark-color-icon-hover, var(--sd-color-text-3)));
|
|
260
293
|
}
|
|
261
294
|
.sd-menu-dark .sd-menu-item.sd-menu-selected,
|
|
262
295
|
.sd-menu-dark .sd-menu-group-title.sd-menu-selected,
|
|
263
296
|
.sd-menu-dark .sd-menu-pop-header.sd-menu-selected,
|
|
264
297
|
.sd-menu-dark .sd-menu-inline-header.sd-menu-selected {
|
|
265
|
-
color: var(--sd-color-white);
|
|
298
|
+
color: var(--component-menu-menu-dark-color-item-selected, var(--component-menu-dark-color-item-selected, var(--sd-color-white)));
|
|
266
299
|
}
|
|
267
300
|
.sd-menu-dark .sd-menu-item.sd-menu-selected .sd-icon,
|
|
268
301
|
.sd-menu-dark .sd-menu-item.sd-menu-selected .sd-menu-icon,
|
|
@@ -272,14 +305,14 @@
|
|
|
272
305
|
.sd-menu-dark .sd-menu-pop-header.sd-menu-selected .sd-menu-icon,
|
|
273
306
|
.sd-menu-dark .sd-menu-inline-header.sd-menu-selected .sd-icon,
|
|
274
307
|
.sd-menu-dark .sd-menu-inline-header.sd-menu-selected .sd-menu-icon {
|
|
275
|
-
color: var(--sd-color-white);
|
|
308
|
+
color: var(--component-menu-menu-dark-color-icon-selected, var(--component-menu-dark-color-icon-selected, var(--sd-color-white)));
|
|
276
309
|
}
|
|
277
310
|
.sd-menu-dark .sd-menu-item.sd-menu-disabled,
|
|
278
311
|
.sd-menu-dark .sd-menu-group-title.sd-menu-disabled,
|
|
279
312
|
.sd-menu-dark .sd-menu-pop-header.sd-menu-disabled,
|
|
280
313
|
.sd-menu-dark .sd-menu-inline-header.sd-menu-disabled {
|
|
281
|
-
color: var(--sd-color-text-2);
|
|
282
|
-
background-color: var(--sd-color-menu-dark-bg);
|
|
314
|
+
color: var(--component-menu-menu-dark-color-item-disabled, var(--component-menu-dark-color-item-disabled, var(--sd-color-text-2)));
|
|
315
|
+
background-color: var(--component-menu-menu-dark-color-bg-item-disabled, var(--component-menu-dark-color-bg-item-disabled, var(--component-menu-menu-dark-color-bg, var(--component-menu-dark-color-bg, var(--sd-color-menu-dark-bg)))));
|
|
283
316
|
}
|
|
284
317
|
.sd-menu-dark .sd-menu-item.sd-menu-disabled .sd-icon,
|
|
285
318
|
.sd-menu-dark .sd-menu-item.sd-menu-disabled .sd-menu-icon,
|
|
@@ -289,20 +322,20 @@
|
|
|
289
322
|
.sd-menu-dark .sd-menu-pop-header.sd-menu-disabled .sd-menu-icon,
|
|
290
323
|
.sd-menu-dark .sd-menu-inline-header.sd-menu-disabled .sd-icon,
|
|
291
324
|
.sd-menu-dark .sd-menu-inline-header.sd-menu-disabled .sd-menu-icon {
|
|
292
|
-
color: var(--sd-color-text-2);
|
|
325
|
+
color: var(--component-menu-menu-dark-color-icon-disabled, var(--component-menu-dark-color-icon-disabled, var(--sd-color-text-2)));
|
|
293
326
|
}
|
|
294
327
|
.sd-menu-dark .sd-menu-item.sd-menu-selected {
|
|
295
|
-
background-color: var(--sd-color-menu-dark-hover);
|
|
328
|
+
background-color: var(--component-menu-menu-dark-color-bg-item-selected, var(--component-menu-dark-color-bg-item-selected, var(--sd-color-menu-dark-hover)));
|
|
296
329
|
}
|
|
297
330
|
.sd-menu-dark .sd-menu-inline-header.sd-menu-selected {
|
|
298
|
-
color: rgb(var(--sd-primary-6));
|
|
331
|
+
color: var(--component-menu-menu-dark-color-submenu-selected, var(--component-menu-dark-color-submenu-selected, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
299
332
|
}
|
|
300
333
|
.sd-menu-dark .sd-menu-inline-header.sd-menu-selected .sd-icon,
|
|
301
334
|
.sd-menu-dark .sd-menu-inline-header.sd-menu-selected .sd-menu-icon {
|
|
302
|
-
color: rgb(var(--sd-primary-6));
|
|
335
|
+
color: var(--component-menu-menu-dark-color-submenu-selected, var(--component-menu-dark-color-submenu-selected, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
303
336
|
}
|
|
304
337
|
.sd-menu-dark .sd-menu-inline-header.sd-menu-selected:hover {
|
|
305
|
-
background-color: var(--sd-color-menu-dark-hover);
|
|
338
|
+
background-color: var(--component-menu-menu-dark-color-bg-submenu-selected-hover, var(--component-menu-dark-color-bg-submenu-selected-hover, var(--sd-color-menu-dark-hover)));
|
|
306
339
|
}
|
|
307
340
|
.sd-menu-dark.sd-menu-horizontal .sd-menu-item.sd-menu-selected,
|
|
308
341
|
.sd-menu-dark.sd-menu-horizontal .sd-menu-group-title.sd-menu-selected,
|
|
@@ -315,18 +348,18 @@
|
|
|
315
348
|
.sd-menu-dark.sd-menu-horizontal .sd-menu-group-title.sd-menu-selected:hover,
|
|
316
349
|
.sd-menu-dark.sd-menu-horizontal .sd-menu-pop-header.sd-menu-selected:hover,
|
|
317
350
|
.sd-menu-dark.sd-menu-horizontal .sd-menu-inline-header.sd-menu-selected:hover {
|
|
318
|
-
background-color: var(--sd-color-menu-dark-hover);
|
|
351
|
+
background-color: var(--component-menu-menu-dark-color-bg-item-hover, var(--component-menu-dark-color-bg-item-hover, var(--sd-color-menu-dark-hover)));
|
|
319
352
|
}
|
|
320
353
|
.sd-menu-dark .sd-menu-group-title {
|
|
321
|
-
color: var(--sd-color-text-3);
|
|
354
|
+
color: var(--component-menu-menu-dark-color-group-title, var(--component-menu-dark-color-group-title, var(--sd-color-text-3)));
|
|
322
355
|
pointer-events: none;
|
|
323
356
|
}
|
|
324
357
|
.sd-menu-dark .sd-menu-collapse-button {
|
|
325
|
-
color: var(--sd-color-white);
|
|
326
|
-
background-color: rgb(var(--sd-primary-6));
|
|
358
|
+
color: var(--component-menu-menu-dark-color-button, var(--component-menu-dark-color-button, var(--sd-color-white)));
|
|
359
|
+
background-color: var(--component-menu-menu-dark-color-bg-button, var(--component-menu-dark-color-bg-button, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
327
360
|
}
|
|
328
361
|
.sd-menu-dark .sd-menu-collapse-button:hover {
|
|
329
|
-
background-color: rgb(var(--sd-primary-7));
|
|
362
|
+
background-color: var(--component-menu-menu-dark-color-bg-button-hover, var(--component-menu-dark-color-bg-button-hover, var(--color-primary-7, var(--sd-color-primary-7, rgb(var(--sd-primary-7))))));
|
|
330
363
|
}
|
|
331
364
|
.sd-menu a,
|
|
332
365
|
.sd-menu a:hover,
|
|
@@ -350,7 +383,7 @@
|
|
|
350
383
|
.sd-menu-vertical .sd-menu-pop-header,
|
|
351
384
|
.sd-menu-vertical .sd-menu-inline-header {
|
|
352
385
|
padding: 0 12px;
|
|
353
|
-
line-height: 40px;
|
|
386
|
+
line-height: var(--component-menu-menu-vertical-item-height, var(--component-menu-vertical-item-height, 40px));
|
|
354
387
|
}
|
|
355
388
|
.sd-menu-vertical .sd-menu-item .sd-menu-icon-suffix .sd-icon,
|
|
356
389
|
.sd-menu-vertical .sd-menu-group-title .sd-menu-icon-suffix .sd-icon,
|
|
@@ -362,7 +395,7 @@
|
|
|
362
395
|
.sd-menu-vertical .sd-menu-group-title,
|
|
363
396
|
.sd-menu-vertical .sd-menu-pop-header,
|
|
364
397
|
.sd-menu-vertical .sd-menu-inline-header {
|
|
365
|
-
margin-bottom: 4px;
|
|
398
|
+
margin-bottom: var(--component-menu-menu-item-gap, var(--component-menu-item-gap, var(--spacing-2, 4px)));
|
|
366
399
|
}
|
|
367
400
|
.sd-menu-vertical .sd-menu-item:not(.sd-menu-has-icon),
|
|
368
401
|
.sd-menu-vertical .sd-menu-group-title:not(.sd-menu-has-icon),
|
|
@@ -426,7 +459,7 @@
|
|
|
426
459
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
427
460
|
}
|
|
428
461
|
.sd-menu-vertical .sd-menu-inner {
|
|
429
|
-
padding: 4px 8px;
|
|
462
|
+
padding: var(--component-menu-menu-vertical-padding-vertical, var(--component-menu-vertical-padding-vertical, var(--spacing-2, 4px))) var(--component-menu-menu-vertical-padding-horizontal, var(--component-menu-vertical-padding-horizontal, var(--spacing-4, 8px)));
|
|
430
463
|
}
|
|
431
464
|
.sd-menu-vertical .sd-menu-item.sd-menu-item-indented {
|
|
432
465
|
display: flex;
|
|
@@ -450,8 +483,8 @@
|
|
|
450
483
|
.sd-menu-horizontal .sd-menu-group-title,
|
|
451
484
|
.sd-menu-horizontal .sd-menu-pop-header,
|
|
452
485
|
.sd-menu-horizontal .sd-menu-inline-header {
|
|
453
|
-
padding: 0 12px;
|
|
454
|
-
line-height: 30px;
|
|
486
|
+
padding: 0 var(--component-menu-menu-horizontal-item-padding-horizontal, var(--component-menu-horizontal-item-padding-horizontal, var(--spacing-6, 12px)));
|
|
487
|
+
line-height: var(--component-menu-menu-horizontal-item-height, var(--component-menu-horizontal-item-height, 30px));
|
|
455
488
|
}
|
|
456
489
|
.sd-menu-horizontal .sd-menu-item .sd-menu-icon-suffix .sd-icon,
|
|
457
490
|
.sd-menu-horizontal .sd-menu-group-title .sd-menu-icon-suffix .sd-icon,
|
|
@@ -473,12 +506,12 @@
|
|
|
473
506
|
.sd-menu-horizontal .sd-menu-group-title .sd-menu-icon-suffix,
|
|
474
507
|
.sd-menu-horizontal .sd-menu-pop-header .sd-menu-icon-suffix,
|
|
475
508
|
.sd-menu-horizontal .sd-menu-inline-header .sd-menu-icon-suffix {
|
|
476
|
-
margin-left: 6px;
|
|
509
|
+
margin-left: var(--component-menu-menu-margin-left-item-suffix-icon, var(--component-menu-margin-left-item-suffix-icon, var(--spacing-3, 6px)));
|
|
477
510
|
}
|
|
478
511
|
.sd-menu-horizontal .sd-menu-inner {
|
|
479
512
|
display: flex;
|
|
480
513
|
align-items: center;
|
|
481
|
-
padding: 14px 20px;
|
|
514
|
+
padding: var(--component-menu-menu-horizontal-padding-vertical, var(--component-menu-horizontal-padding-vertical, 14px)) var(--component-menu-menu-horizontal-padding-horizontal, var(--component-menu-horizontal-padding-horizontal, var(--spacing-8, 20px)));
|
|
482
515
|
}
|
|
483
516
|
.sd-menu-horizontal .sd-menu-item,
|
|
484
517
|
.sd-menu-horizontal .sd-menu-pop {
|
|
@@ -488,14 +521,14 @@
|
|
|
488
521
|
}
|
|
489
522
|
.sd-menu-horizontal .sd-menu-item:not(:first-child),
|
|
490
523
|
.sd-menu-horizontal .sd-menu-pop:not(:first-child) {
|
|
491
|
-
margin-left: 12px;
|
|
524
|
+
margin-left: var(--component-menu-menu-horizontal-item-gap, var(--component-menu-horizontal-item-gap, var(--spacing-6, 12px)));
|
|
492
525
|
}
|
|
493
526
|
.sd-menu-horizontal .sd-menu-pop::after {
|
|
494
527
|
position: absolute;
|
|
495
|
-
bottom: -14px;
|
|
528
|
+
bottom: -var(--component-menu-menu-horizontal-padding-vertical, var(--component-menu-horizontal-padding-vertical, 14px));
|
|
496
529
|
left: 0;
|
|
497
530
|
width: 100%;
|
|
498
|
-
height: 14px;
|
|
531
|
+
height: var(--component-menu-menu-horizontal-padding-vertical, var(--component-menu-horizontal-padding-vertical, 14px));
|
|
499
532
|
content: " ";
|
|
500
533
|
}
|
|
501
534
|
.sd-menu-overflow-wrap {
|
|
@@ -512,11 +545,11 @@
|
|
|
512
545
|
}
|
|
513
546
|
.sd-menu-selected-label {
|
|
514
547
|
position: absolute;
|
|
515
|
-
right: 12px;
|
|
516
|
-
bottom: -14px;
|
|
517
|
-
left: 12px;
|
|
518
|
-
height: 3px;
|
|
519
|
-
background-color: rgb(var(--sd-primary-6));
|
|
548
|
+
right: var(--component-menu-menu-horizontal-item-padding-horizontal, var(--component-menu-horizontal-item-padding-horizontal, var(--spacing-6, 12px)));
|
|
549
|
+
bottom: -var(--component-menu-menu-horizontal-padding-vertical, var(--component-menu-horizontal-padding-vertical, 14px));
|
|
550
|
+
left: var(--component-menu-menu-horizontal-item-padding-horizontal, var(--component-menu-horizontal-item-padding-horizontal, var(--spacing-6, 12px)));
|
|
551
|
+
height: var(--component-menu-menu-height-label-item-selected, var(--component-menu-height-label-item-selected, 3px));
|
|
552
|
+
background-color: var(--component-menu-menu-color-label-item-selected, var(--component-menu-color-label-item-selected, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
520
553
|
animation: sd-menu-selected-item-label-enter 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
521
554
|
}
|
|
522
555
|
.sd-menu-pop-button {
|
|
@@ -531,19 +564,19 @@
|
|
|
531
564
|
.sd-menu-pop-button .sd-menu-group-title,
|
|
532
565
|
.sd-menu-pop-button .sd-menu-pop-header,
|
|
533
566
|
.sd-menu-pop-button .sd-menu-inline-header {
|
|
534
|
-
width: 40px;
|
|
535
|
-
height: 40px;
|
|
536
|
-
margin-bottom: 16px;
|
|
537
|
-
line-height: 40px;
|
|
538
|
-
border: 1px solid transparent;
|
|
567
|
+
width: var(--component-menu-menu-pop-button-size, var(--component-menu-pop-button-size, var(--size-10, 40px)));
|
|
568
|
+
height: var(--component-menu-menu-pop-button-size, var(--component-menu-pop-button-size, var(--size-10, 40px)));
|
|
569
|
+
margin-bottom: var(--component-menu-menu-pop-button-margin-bottom, var(--component-menu-pop-button-margin-bottom, var(--spacing-7, 16px)));
|
|
570
|
+
line-height: var(--component-menu-menu-pop-button-size, var(--component-menu-pop-button-size, var(--size-10, 40px)));
|
|
571
|
+
border: 1px solid var(--component-menu-menu-pop-button-border-color, var(--component-menu-pop-button-border-color, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
539
572
|
border-radius: 50%;
|
|
540
|
-
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
573
|
+
box-shadow: var(--component-menu-menu-pop-button-box-shadow, var(--component-menu-pop-button-box-shadow, 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08)));
|
|
541
574
|
}
|
|
542
575
|
.sd-menu-collapsed {
|
|
543
|
-
width: 48px;
|
|
576
|
+
width: var(--component-menu-menu-collapse-width, var(--component-menu-collapse-width, var(--size-12, 48px)));
|
|
544
577
|
}
|
|
545
578
|
.sd-menu-collapsed .sd-menu-inner {
|
|
546
|
-
padding: 4px 4px;
|
|
579
|
+
padding: var(--component-menu-menu-collapse-padding-vertical, var(--component-menu-collapse-padding-vertical, var(--spacing-2, 4px))) var(--component-menu-menu-collapse-padding-horizontal, var(--component-menu-collapse-padding-horizontal, var(--spacing-2, 4px)));
|
|
547
580
|
}
|
|
548
581
|
.sd-menu-collapsed .sd-menu-icon-suffix {
|
|
549
582
|
display: none;
|
|
@@ -565,7 +598,7 @@
|
|
|
565
598
|
}
|
|
566
599
|
.sd-menu.sd-menu-in-sider-rail.sd-menu-collapsed .sd-menu-icon {
|
|
567
600
|
margin-right: 0;
|
|
568
|
-
line-height: 40px;
|
|
601
|
+
line-height: var(--component-menu-menu-vertical-item-height, var(--component-menu-vertical-item-height, 40px));
|
|
569
602
|
}
|
|
570
603
|
.sd-menu-collapse-button {
|
|
571
604
|
position: absolute;
|
|
@@ -574,9 +607,9 @@
|
|
|
574
607
|
display: flex;
|
|
575
608
|
align-items: center;
|
|
576
609
|
justify-content: center;
|
|
577
|
-
width: 24px;
|
|
578
|
-
height: 24px;
|
|
579
|
-
border-radius: var(--sd-border-radius-small);
|
|
610
|
+
width: var(--component-menu-menu-width-collapse-button, var(--component-menu-width-collapse-button, var(--size-6, 24px)));
|
|
611
|
+
height: var(--component-menu-menu-height-collapse-button, var(--component-menu-height-collapse-button, var(--size-6, 24px)));
|
|
612
|
+
border-radius: var(--component-menu-menu-border-radius-collapse-button, var(--component-menu-border-radius-collapse-button, var(--sd-border-radius-small)));
|
|
580
613
|
cursor: pointer;
|
|
581
614
|
}
|
|
582
615
|
.sd-menu-inline-content {
|
|
@@ -595,36 +628,36 @@
|
|
|
595
628
|
color: inherit;
|
|
596
629
|
}
|
|
597
630
|
.sd-menu-pop-trigger.sd-trigger-position-bl {
|
|
598
|
-
margin-top: 14px;
|
|
631
|
+
margin-top: var(--component-menu-menu-horizontal-padding-vertical, var(--component-menu-horizontal-padding-vertical, 14px));
|
|
599
632
|
}
|
|
600
633
|
.sd-menu-pop-trigger.sd-trigger-position-bl .sd-trigger-arrow {
|
|
601
634
|
z-index: 0;
|
|
602
|
-
border-top: 1px solid var(--sd-color-neutral-3);
|
|
603
|
-
border-left: 1px solid var(--sd-color-neutral-3);
|
|
635
|
+
border-top: 1px solid var(--component-menu-menu-color-border-popup, var(--component-menu-color-border-popup, var(--sd-color-neutral-3)));
|
|
636
|
+
border-left: 1px solid var(--component-menu-menu-color-border-popup, var(--component-menu-color-border-popup, var(--sd-color-neutral-3)));
|
|
604
637
|
}
|
|
605
638
|
.sd-menu-pop-trigger.sd-trigger-position-rt {
|
|
606
|
-
margin-left: 8px;
|
|
639
|
+
margin-left: var(--component-menu-menu-vertical-padding-horizontal, var(--component-menu-vertical-padding-horizontal, var(--spacing-4, 8px)));
|
|
607
640
|
}
|
|
608
641
|
.sd-menu-pop-trigger.sd-trigger-position-rt .sd-trigger-arrow {
|
|
609
642
|
z-index: 0;
|
|
610
|
-
border-bottom: 1px solid var(--sd-color-neutral-3);
|
|
611
|
-
border-left: 1px solid var(--sd-color-neutral-3);
|
|
643
|
+
border-bottom: 1px solid var(--component-menu-menu-color-border-popup, var(--component-menu-color-border-popup, var(--sd-color-neutral-3)));
|
|
644
|
+
border-left: 1px solid var(--component-menu-menu-color-border-popup, var(--component-menu-color-border-popup, var(--sd-color-neutral-3)));
|
|
612
645
|
}
|
|
613
646
|
.sd-menu-pop-trigger.sd-menu-pop-trigger-dark .sd-trigger-arrow {
|
|
614
|
-
background-color: var(--sd-color-menu-dark-bg);
|
|
615
|
-
border-color: var(--sd-color-menu-dark-bg);
|
|
647
|
+
background-color: var(--component-menu-menu-dark-color-bg, var(--component-menu-dark-color-bg, var(--sd-color-menu-dark-bg)));
|
|
648
|
+
border-color: var(--component-menu-menu-dark-color-bg, var(--component-menu-dark-color-bg, var(--sd-color-menu-dark-bg)));
|
|
616
649
|
}
|
|
617
650
|
|
|
618
651
|
.sd-trigger-menu {
|
|
619
652
|
position: relative;
|
|
620
653
|
box-sizing: border-box;
|
|
621
|
-
max-height: 200px;
|
|
654
|
+
max-height: var(--component-dropdown-dropdown-max-height, var(--component-dropdown-max-height, var(--size-50, 200px)));
|
|
622
655
|
padding: 4px 0;
|
|
623
656
|
overflow: auto;
|
|
624
|
-
background-color: var(--sd-color-bg-popup);
|
|
625
|
-
border: 1px solid var(--sd-color-fill-3);
|
|
626
|
-
border-radius: var(--sd-border-radius-medium);
|
|
627
|
-
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
657
|
+
background-color: var(--component-dropdown-dropdown-color-bg, var(--component-dropdown-color-bg, var(--sd-color-bg-popup)));
|
|
658
|
+
border: 1px solid var(--component-dropdown-dropdown-color-border, var(--component-dropdown-color-border, var(--sd-color-fill-3)));
|
|
659
|
+
border-radius: var(--component-dropdown-dropdown-border-radius, var(--component-dropdown-border-radius, var(--sd-border-radius-medium)));
|
|
660
|
+
box-shadow: var(--component-dropdown-dropdown-box-shadow, var(--component-dropdown-box-shadow, 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08)));
|
|
628
661
|
}
|
|
629
662
|
.sd-trigger-menu-hidden {
|
|
630
663
|
display: none;
|
|
@@ -634,31 +667,31 @@
|
|
|
634
667
|
z-index: 1;
|
|
635
668
|
box-sizing: border-box;
|
|
636
669
|
width: 100%;
|
|
637
|
-
height: 36px;
|
|
638
|
-
padding: 0 12px;
|
|
639
|
-
color: var(--sd-color-text-1);
|
|
640
|
-
font-size: 14px;
|
|
641
|
-
line-height: 36px;
|
|
670
|
+
height: var(--component-dropdown-dropdown-option-height, var(--component-dropdown-option-height, var(--size-9, 36px)));
|
|
671
|
+
padding: 0 var(--component-dropdown-dropdown-option-padding-horizontal, var(--component-dropdown-option-padding-horizontal, var(--spacing-6, 12px)));
|
|
672
|
+
color: var(--component-dropdown-dropdown-option-color-text-default, var(--component-dropdown-option-color-text-default, var(--sd-color-text-1)));
|
|
673
|
+
font-size: var(--component-dropdown-dropdown-font-size, var(--component-dropdown-font-size, var(--font-size-body-3, 14px)));
|
|
674
|
+
line-height: var(--component-dropdown-dropdown-option-height, var(--component-dropdown-option-height, var(--size-9, 36px)));
|
|
642
675
|
text-align: left;
|
|
643
|
-
background-color: transparent;
|
|
676
|
+
background-color: var(--component-dropdown-dropdown-option-color-bg-default, var(--component-dropdown-option-color-bg-default, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
644
677
|
cursor: pointer;
|
|
645
678
|
overflow: hidden;
|
|
646
679
|
white-space: nowrap;
|
|
647
680
|
text-overflow: ellipsis;
|
|
648
681
|
}
|
|
649
682
|
.sd-trigger-menu-item.sd-trigger-menu-selected, .sd-trigger-menu-pop-header.sd-trigger-menu-selected {
|
|
650
|
-
color: var(--sd-color-text-1);
|
|
651
|
-
font-weight: 500;
|
|
652
|
-
background-color: transparent;
|
|
683
|
+
color: var(--component-dropdown-dropdown-option-color-text-selected, var(--component-dropdown-option-color-text-selected, var(--sd-color-text-1)));
|
|
684
|
+
font-weight: var(--component-dropdown-dropdown-option-font-weight-selected, var(--component-dropdown-option-font-weight-selected, var(--font-weight-500, 500)));
|
|
685
|
+
background-color: var(--component-dropdown-dropdown-option-color-bg-selected, var(--component-dropdown-option-color-bg-selected, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
653
686
|
transition: color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), background-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
654
687
|
}
|
|
655
688
|
.sd-trigger-menu-item:hover, .sd-trigger-menu-pop-header:hover {
|
|
656
|
-
color: var(--sd-color-text-1);
|
|
657
|
-
background-color: var(--sd-color-fill-2);
|
|
689
|
+
color: var(--component-dropdown-dropdown-option-color-text-hover, var(--component-dropdown-option-color-text-hover, var(--sd-color-text-1)));
|
|
690
|
+
background-color: var(--component-dropdown-dropdown-option-color-bg-hover, var(--component-dropdown-option-color-bg-hover, var(--sd-color-fill-2)));
|
|
658
691
|
}
|
|
659
692
|
.sd-trigger-menu-item.sd-trigger-menu-disabled, .sd-trigger-menu-pop-header.sd-trigger-menu-disabled {
|
|
660
|
-
color: var(--sd-color-text-4);
|
|
661
|
-
background-color: transparent;
|
|
693
|
+
color: var(--component-dropdown-dropdown-option-color-text-disabled, var(--component-dropdown-option-color-text-disabled, var(--sd-color-text-4)));
|
|
694
|
+
background-color: var(--component-dropdown-dropdown-option-color-bg-disabled, var(--component-dropdown-option-color-bg-disabled, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
662
695
|
cursor: not-allowed;
|
|
663
696
|
}
|
|
664
697
|
.sd-trigger-menu .sd-trigger-menu-has-icon {
|
|
@@ -684,7 +717,7 @@
|
|
|
684
717
|
justify-content: space-between;
|
|
685
718
|
}
|
|
686
719
|
.sd-trigger-menu-pop-header .sd-trigger-menu-icon-suffix {
|
|
687
|
-
margin-left: 12px;
|
|
720
|
+
margin-left: var(--component-dropdown-dropdown-margin-left-suffix-icon, var(--component-dropdown-margin-left-suffix-icon, var(--spacing-6, 12px)));
|
|
688
721
|
}
|
|
689
722
|
.sd-trigger-menu-group:first-child .sd-trigger-menu-group-title {
|
|
690
723
|
padding-top: 4px;
|
|
@@ -692,10 +725,10 @@
|
|
|
692
725
|
.sd-trigger-menu-group-title {
|
|
693
726
|
box-sizing: border-box;
|
|
694
727
|
width: 100%;
|
|
695
|
-
padding: 8px 12px 0 12px;
|
|
696
|
-
color: var(--sd-color-text-3);
|
|
697
|
-
font-size: 12px;
|
|
698
|
-
line-height: 20px;
|
|
728
|
+
padding: 8px var(--component-dropdown-dropdown-group-title-padding-horizontal, var(--component-dropdown-group-title-padding-horizontal, var(--spacing-6, 12px))) 0 var(--component-dropdown-dropdown-group-title-padding-horizontal, var(--component-dropdown-group-title-padding-horizontal, var(--spacing-6, 12px)));
|
|
729
|
+
color: var(--component-dropdown-dropdown-group-title-color-text, var(--component-dropdown-group-title-color-text, var(--sd-color-text-3)));
|
|
730
|
+
font-size: var(--component-dropdown-dropdown-group-title-font-size, var(--component-dropdown-group-title-font-size, var(--font-size-body-1, 12px)));
|
|
731
|
+
line-height: var(--component-dropdown-dropdown-group-title-height, var(--component-dropdown-group-title-height, var(--size-5, 20px)));
|
|
699
732
|
overflow: hidden;
|
|
700
733
|
white-space: nowrap;
|
|
701
734
|
text-overflow: ellipsis;
|
|
@@ -704,33 +737,33 @@
|
|
|
704
737
|
display: none;
|
|
705
738
|
}
|
|
706
739
|
.sd-trigger-menu-dark {
|
|
707
|
-
background-color: var(--sd-color-menu-dark-bg);
|
|
708
|
-
border-color: var(--sd-color-menu-dark-bg);
|
|
740
|
+
background-color: var(--component-menu-dropdown-dark-color-bg, var(--component-menu-dark-color-bg, var(--sd-color-menu-dark-bg)));
|
|
741
|
+
border-color: var(--component-menu-dropdown-dark-color-border, var(--component-menu-dark-color-border, var(--component-menu-dropdown-dark-color-bg, var(--component-menu-dark-color-bg, var(--sd-color-menu-dark-bg)))));
|
|
709
742
|
}
|
|
710
743
|
.sd-trigger-menu-dark .sd-trigger-menu-item,
|
|
711
744
|
.sd-trigger-menu-dark .sd-trigger-menu-pop-header {
|
|
712
|
-
color: var(--sd-color-text-4);
|
|
713
|
-
background-color: transparent;
|
|
745
|
+
color: var(--component-menu-dropdown-dark-option-color-text-default, var(--component-menu-dark-option-color-text-default, var(--sd-color-text-4)));
|
|
746
|
+
background-color: var(--component-menu-dropdown-dark-option-color-bg-default, var(--component-menu-dark-option-color-bg-default, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
714
747
|
}
|
|
715
748
|
.sd-trigger-menu-dark .sd-trigger-menu-item.sd-trigger-menu-selected,
|
|
716
749
|
.sd-trigger-menu-dark .sd-trigger-menu-pop-header.sd-trigger-menu-selected {
|
|
717
|
-
color: var(--sd-color-white);
|
|
718
|
-
background-color: transparent;
|
|
750
|
+
color: var(--component-menu-dropdown-dark-option-color-text-selected, var(--component-menu-dark-option-color-text-selected, var(--sd-color-white)));
|
|
751
|
+
background-color: var(--component-menu-dropdown-dark-option-color-bg-selected, var(--component-menu-dark-option-color-bg-selected, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
719
752
|
}
|
|
720
753
|
.sd-trigger-menu-dark .sd-trigger-menu-item.sd-trigger-menu-selected:hover,
|
|
721
754
|
.sd-trigger-menu-dark .sd-trigger-menu-pop-header.sd-trigger-menu-selected:hover {
|
|
722
|
-
color: var(--sd-color-white);
|
|
755
|
+
color: var(--component-menu-dropdown-dark-option-color-text-selected, var(--component-menu-dark-option-color-text-selected, var(--sd-color-white)));
|
|
723
756
|
}
|
|
724
757
|
.sd-trigger-menu-dark .sd-trigger-menu-item:hover,
|
|
725
758
|
.sd-trigger-menu-dark .sd-trigger-menu-pop-header:hover {
|
|
726
|
-
color: var(--sd-color-text-4);
|
|
727
|
-
background-color: var(--sd-color-menu-dark-hover);
|
|
759
|
+
color: var(--component-menu-dropdown-dark-option-color-text-hover, var(--component-menu-dark-option-color-text-hover, var(--sd-color-text-4)));
|
|
760
|
+
background-color: var(--component-menu-dropdown-dark-option-color-bg-hover, var(--component-menu-dark-option-color-bg-hover, var(--sd-color-menu-dark-hover)));
|
|
728
761
|
}
|
|
729
762
|
.sd-trigger-menu-dark .sd-trigger-menu-item.sd-trigger-menu-disabled,
|
|
730
763
|
.sd-trigger-menu-dark .sd-trigger-menu-pop-header.sd-trigger-menu-disabled {
|
|
731
|
-
color: var(--sd-color-text-2);
|
|
732
|
-
background-color: transparent;
|
|
764
|
+
color: var(--component-menu-dropdown-dark-option-color-text-disabled, var(--component-menu-dark-option-color-text-disabled, var(--sd-color-text-2)));
|
|
765
|
+
background-color: var(--component-menu-dropdown-dark-option-color-bg-disabled, var(--component-menu-dark-option-color-bg-disabled, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
733
766
|
}
|
|
734
767
|
.sd-trigger-menu-dark .sd-trigger-menu-group-title {
|
|
735
|
-
color: var(--sd-color-text-3);
|
|
768
|
+
color: var(--component-menu-dropdown-dark-group-title-color-text, var(--component-menu-dark-group-title-color-text, var(--sd-color-text-3)));
|
|
736
769
|
}
|
package/es/menu/style/index.scss
CHANGED
|
@@ -182,6 +182,18 @@ $token-vars: map.merge(meta.module-variables('dropdownToken'), meta.module-varia
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
+
// 键盘焦点与 hover 保持同一视觉(item/header 均在 base-menu 键盘导航范围内)
|
|
186
|
+
&:focus-visible {
|
|
187
|
+
color: token-var('menu-#{$theme}-color-item_hover');
|
|
188
|
+
background-color: token-var('menu-#{$theme}-color-bg-item_hover');
|
|
189
|
+
outline: none;
|
|
190
|
+
|
|
191
|
+
.#{theme.$prefix}-icon,
|
|
192
|
+
.#{$menu-prefix-cls}-icon {
|
|
193
|
+
color: token-var('menu-#{$theme}-color-icon_hover');
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
185
197
|
&.#{$menu-prefix-cls}-selected {
|
|
186
198
|
color: token-var('menu-#{$theme}-color-item_selected');
|
|
187
199
|
|
|
@@ -267,10 +279,6 @@ $token-vars: map.merge(meta.module-variables('dropdownToken'), meta.module-varia
|
|
|
267
279
|
line-height: $menu-line-height;
|
|
268
280
|
transition: width theme.$transition-duration-2 theme.$transition-timing-function-standard;
|
|
269
281
|
|
|
270
|
-
&:focus-visible {
|
|
271
|
-
outline: 3px solid var(string.unquote('#{global.$sd-cssvars-prefix}-color-primary-light-2'));
|
|
272
|
-
}
|
|
273
|
-
|
|
274
282
|
// 设置菜单层级的缩进
|
|
275
283
|
&-indent {
|
|
276
284
|
display: inline-block;
|