@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
|
@@ -24,36 +24,36 @@
|
|
|
24
24
|
**********************************************/
|
|
25
25
|
.sd-autocomplete-popup .sd-select-popup {
|
|
26
26
|
background-color: var(--sd-color-bg-popup);
|
|
27
|
-
border: 1px solid var(--sd-color-fill-3);
|
|
28
|
-
border-radius: var(--sd-border-radius-medium);
|
|
29
|
-
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
27
|
+
border: 1px solid var(--component-auto-complete-auto-complete-popup-color-border, var(--component-auto-complete-popup-color-border, var(--sd-color-fill-3)));
|
|
28
|
+
border-radius: var(--component-auto-complete-auto-complete-popup-border-radius, var(--component-auto-complete-popup-border-radius, var(--sd-border-radius-medium)));
|
|
29
|
+
box-shadow: var(--component-auto-complete-auto-complete-popup-box-shadow, var(--component-auto-complete-popup-box-shadow, 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08)));
|
|
30
30
|
}
|
|
31
31
|
.sd-autocomplete-popup .sd-select-popup .sd-select-popup-inner {
|
|
32
|
-
max-height: 200px;
|
|
33
|
-
padding: 4px 0;
|
|
32
|
+
max-height: var(--component-auto-complete-auto-complete-popup-max-height, var(--component-auto-complete-popup-max-height, var(--size-50, 200px)));
|
|
33
|
+
padding: var(--component-auto-complete-auto-complete-popup-padding-vertical, var(--component-auto-complete-popup-padding-vertical, var(--spacing-2, 4px))) 0;
|
|
34
34
|
}
|
|
35
35
|
.sd-autocomplete-popup .sd-select-popup .sd-select-option {
|
|
36
|
-
height: 36px;
|
|
37
|
-
padding: 0 12px;
|
|
38
|
-
font-size: 14px;
|
|
39
|
-
line-height: 36px;
|
|
36
|
+
height: var(--component-auto-complete-auto-complete-option-height, var(--component-auto-complete-option-height, var(--size-9, 36px)));
|
|
37
|
+
padding: 0 var(--component-auto-complete-auto-complete-option-padding-horizontal, var(--component-auto-complete-option-padding-horizontal, var(--spacing-6, 12px)));
|
|
38
|
+
font-size: var(--component-auto-complete-auto-complete-popup-font-size, var(--component-auto-complete-popup-font-size, var(--font-size-body-3, 14px)));
|
|
39
|
+
line-height: var(--component-auto-complete-auto-complete-option-height, var(--component-auto-complete-option-height, var(--size-9, 36px)));
|
|
40
40
|
}
|
|
41
41
|
.sd-autocomplete-popup .sd-select-popup .sd-select-option {
|
|
42
|
-
color: var(--sd-color-text-1);
|
|
43
|
-
background-color: var(--sd-color-bg-popup);
|
|
42
|
+
color: var(--component-auto-complete-auto-complete-option-color-text-default, var(--component-auto-complete-option-color-text-default, var(--sd-color-text-1)));
|
|
43
|
+
background-color: var(--component-auto-complete-auto-complete-option-color-bg-default, var(--component-auto-complete-option-color-bg-default, var(--sd-color-bg-popup)));
|
|
44
44
|
}
|
|
45
45
|
.sd-autocomplete-popup .sd-select-popup .sd-select-option-selected {
|
|
46
|
-
color: var(--sd-color-text-1);
|
|
47
|
-
background-color: var(--sd-color-bg-popup);
|
|
46
|
+
color: var(--component-auto-complete-auto-complete-option-color-text-selected, var(--component-auto-complete-option-color-text-selected, var(--sd-color-text-1)));
|
|
47
|
+
background-color: var(--component-auto-complete-auto-complete-option-color-bg-selected, var(--component-auto-complete-option-color-bg-selected, var(--sd-color-bg-popup)));
|
|
48
48
|
}
|
|
49
49
|
.sd-autocomplete-popup .sd-select-popup .sd-select-option-hover {
|
|
50
|
-
color: var(--sd-color-text-1);
|
|
51
|
-
background-color: var(--sd-color-fill-2);
|
|
50
|
+
color: var(--component-auto-complete-auto-complete-option-color-text-hover, var(--component-auto-complete-option-color-text-hover, var(--sd-color-text-1)));
|
|
51
|
+
background-color: var(--component-auto-complete-auto-complete-option-color-bg-hover, var(--component-auto-complete-option-color-bg-hover, var(--sd-color-fill-2)));
|
|
52
52
|
}
|
|
53
53
|
.sd-autocomplete-popup .sd-select-popup .sd-select-option-disabled {
|
|
54
|
-
color: var(--sd-color-text-4);
|
|
55
|
-
background-color: var(--sd-color-bg-popup);
|
|
54
|
+
color: var(--component-auto-complete-auto-complete-option-color-text-disabled, var(--component-auto-complete-option-color-text-disabled, var(--sd-color-text-4)));
|
|
55
|
+
background-color: var(--component-auto-complete-auto-complete-option-color-bg-disabled, var(--component-auto-complete-option-color-bg-disabled, var(--sd-color-bg-popup)));
|
|
56
56
|
}
|
|
57
57
|
.sd-autocomplete-popup .sd-select-popup .sd-select-option-selected {
|
|
58
|
-
font-weight: 500;
|
|
58
|
+
font-weight: var(--component-auto-complete-auto-complete-option-font-weight-selected, var(--component-auto-complete-option-font-weight-selected, var(--font-weight-500, 500)));
|
|
59
59
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@style/theme/runtime.scss' as theme-runtime;
|
|
1
2
|
@use '@style/theme/index.scss' as global;
|
|
2
3
|
|
|
3
4
|
@forward '@style/theme/index.scss';
|
|
@@ -62,3 +63,96 @@ $auto-complete-option-color-text_selected: var(
|
|
|
62
63
|
$auto-complete-option-color-text_disabled: var(
|
|
63
64
|
string.unquote('#{global.$sd-cssvars-prefix}-color-text-4')
|
|
64
65
|
);
|
|
66
|
+
|
|
67
|
+
// @generated runtime tokens — pnpm theme:generate
|
|
68
|
+
$auto-complete-popup-max-height: theme-runtime.token(
|
|
69
|
+
'auto-complete',
|
|
70
|
+
'auto-complete-popup-max-height',
|
|
71
|
+
$auto-complete-popup-max-height,
|
|
72
|
+
'size-50'
|
|
73
|
+
);
|
|
74
|
+
$auto-complete-popup-border-radius: theme-runtime.token(
|
|
75
|
+
'auto-complete',
|
|
76
|
+
'auto-complete-popup-border-radius',
|
|
77
|
+
$auto-complete-popup-border-radius
|
|
78
|
+
);
|
|
79
|
+
$auto-complete-popup-padding-vertical: theme-runtime.token(
|
|
80
|
+
'auto-complete',
|
|
81
|
+
'auto-complete-popup-padding-vertical',
|
|
82
|
+
$auto-complete-popup-padding-vertical,
|
|
83
|
+
'spacing-2'
|
|
84
|
+
);
|
|
85
|
+
$auto-complete-popup-font-size: theme-runtime.token(
|
|
86
|
+
'auto-complete',
|
|
87
|
+
'auto-complete-popup-font-size',
|
|
88
|
+
$auto-complete-popup-font-size,
|
|
89
|
+
'font-size-body-3'
|
|
90
|
+
);
|
|
91
|
+
$auto-complete-popup-color-border: theme-runtime.token(
|
|
92
|
+
'auto-complete',
|
|
93
|
+
'auto-complete-popup-color-border',
|
|
94
|
+
$auto-complete-popup-color-border
|
|
95
|
+
);
|
|
96
|
+
$auto-complete-popup-box-shadow: theme-runtime.token(
|
|
97
|
+
'auto-complete',
|
|
98
|
+
'auto-complete-popup-box-shadow',
|
|
99
|
+
$auto-complete-popup-box-shadow
|
|
100
|
+
);
|
|
101
|
+
$auto-complete-option-height: theme-runtime.token(
|
|
102
|
+
'auto-complete',
|
|
103
|
+
'auto-complete-option-height',
|
|
104
|
+
$auto-complete-option-height,
|
|
105
|
+
'size-9'
|
|
106
|
+
);
|
|
107
|
+
$auto-complete-option-font-weight_selected: theme-runtime.token(
|
|
108
|
+
'auto-complete',
|
|
109
|
+
'auto-complete-option-font-weight-selected',
|
|
110
|
+
$auto-complete-option-font-weight_selected,
|
|
111
|
+
'font-weight-500'
|
|
112
|
+
);
|
|
113
|
+
$auto-complete-option-padding-horizontal: theme-runtime.token(
|
|
114
|
+
'auto-complete',
|
|
115
|
+
'auto-complete-option-padding-horizontal',
|
|
116
|
+
$auto-complete-option-padding-horizontal,
|
|
117
|
+
'spacing-6'
|
|
118
|
+
);
|
|
119
|
+
$auto-complete-option-color-bg_default: theme-runtime.token(
|
|
120
|
+
'auto-complete',
|
|
121
|
+
'auto-complete-option-color-bg-default',
|
|
122
|
+
$auto-complete-option-color-bg_default
|
|
123
|
+
);
|
|
124
|
+
$auto-complete-option-color-bg_hover: theme-runtime.token(
|
|
125
|
+
'auto-complete',
|
|
126
|
+
'auto-complete-option-color-bg-hover',
|
|
127
|
+
$auto-complete-option-color-bg_hover
|
|
128
|
+
);
|
|
129
|
+
$auto-complete-option-color-bg_selected: theme-runtime.token(
|
|
130
|
+
'auto-complete',
|
|
131
|
+
'auto-complete-option-color-bg-selected',
|
|
132
|
+
$auto-complete-option-color-bg_selected
|
|
133
|
+
);
|
|
134
|
+
$auto-complete-option-color-bg_disabled: theme-runtime.token(
|
|
135
|
+
'auto-complete',
|
|
136
|
+
'auto-complete-option-color-bg-disabled',
|
|
137
|
+
$auto-complete-option-color-bg_disabled
|
|
138
|
+
);
|
|
139
|
+
$auto-complete-option-color-text_default: theme-runtime.token(
|
|
140
|
+
'auto-complete',
|
|
141
|
+
'auto-complete-option-color-text-default',
|
|
142
|
+
$auto-complete-option-color-text_default
|
|
143
|
+
);
|
|
144
|
+
$auto-complete-option-color-text_hover: theme-runtime.token(
|
|
145
|
+
'auto-complete',
|
|
146
|
+
'auto-complete-option-color-text-hover',
|
|
147
|
+
$auto-complete-option-color-text_hover
|
|
148
|
+
);
|
|
149
|
+
$auto-complete-option-color-text_selected: theme-runtime.token(
|
|
150
|
+
'auto-complete',
|
|
151
|
+
'auto-complete-option-color-text-selected',
|
|
152
|
+
$auto-complete-option-color-text_selected
|
|
153
|
+
);
|
|
154
|
+
$auto-complete-option-color-text_disabled: theme-runtime.token(
|
|
155
|
+
'auto-complete',
|
|
156
|
+
'auto-complete-option-color-text-disabled',
|
|
157
|
+
$auto-complete-option-color-text_disabled
|
|
158
|
+
);
|
|
@@ -20,32 +20,32 @@
|
|
|
20
20
|
display: inline-flex;
|
|
21
21
|
align-items: center;
|
|
22
22
|
box-sizing: border-box;
|
|
23
|
-
width: 40px;
|
|
24
|
-
height: 40px;
|
|
25
|
-
color: var(--sd-color-white);
|
|
26
|
-
font-size: 20px;
|
|
23
|
+
width: var(--component-avatar-avatar-size-default, var(--component-avatar-size-default, var(--size-10, 40px)));
|
|
24
|
+
height: var(--component-avatar-avatar-size-default, var(--component-avatar-size-default, var(--size-10, 40px)));
|
|
25
|
+
color: var(--component-avatar-avatar-color-text, var(--component-avatar-color-text, var(--sd-color-white)));
|
|
26
|
+
font-size: var(--component-avatar-avatar-font-size-text, var(--component-avatar-font-size-text, 20px));
|
|
27
27
|
white-space: nowrap;
|
|
28
28
|
vertical-align: middle;
|
|
29
|
-
background-color: var(--sd-color-fill-4);
|
|
29
|
+
background-color: var(--component-avatar-avatar-color-bg, var(--component-avatar-color-bg, var(--sd-color-fill-4)));
|
|
30
30
|
}
|
|
31
31
|
.sd-avatar-circle {
|
|
32
|
-
border-radius: var(--sd-border-radius-circle);
|
|
32
|
+
border-radius: var(--component-avatar-avatar-circle-border-radius, var(--component-avatar-circle-border-radius, var(--sd-border-radius-circle)));
|
|
33
33
|
}
|
|
34
34
|
.sd-avatar-circle .sd-avatar-image {
|
|
35
35
|
overflow: hidden;
|
|
36
|
-
border-radius: var(--sd-border-radius-circle);
|
|
36
|
+
border-radius: var(--component-avatar-avatar-circle-border-radius, var(--component-avatar-circle-border-radius, var(--sd-border-radius-circle)));
|
|
37
37
|
}
|
|
38
38
|
.sd-avatar-square {
|
|
39
|
-
border-radius: var(--sd-border-radius-medium);
|
|
39
|
+
border-radius: var(--component-avatar-avatar-square-border-radius, var(--component-avatar-square-border-radius, var(--sd-border-radius-medium)));
|
|
40
40
|
}
|
|
41
41
|
.sd-avatar-square .sd-avatar-image {
|
|
42
42
|
overflow: hidden;
|
|
43
|
-
border-radius: var(--sd-border-radius-medium);
|
|
43
|
+
border-radius: var(--component-avatar-avatar-square-border-radius, var(--component-avatar-square-border-radius, var(--sd-border-radius-medium)));
|
|
44
44
|
}
|
|
45
45
|
.sd-avatar-text {
|
|
46
46
|
position: absolute;
|
|
47
47
|
left: 50%;
|
|
48
|
-
font-weight: 500;
|
|
48
|
+
font-weight: var(--component-avatar-avatar-font-weight-text, var(--component-avatar-font-weight-text, var(--font-weight-500, 500)));
|
|
49
49
|
line-height: 1;
|
|
50
50
|
transform: translateX(-50%);
|
|
51
51
|
transform-origin: 0 center;
|
|
@@ -69,17 +69,17 @@
|
|
|
69
69
|
}
|
|
70
70
|
.sd-avatar-trigger-icon-button {
|
|
71
71
|
position: absolute;
|
|
72
|
-
right: -4px;
|
|
73
|
-
bottom: -4px;
|
|
72
|
+
right: -var(--component-avatar-avatar-spacing-trigger-button-right, var(--component-avatar-spacing-trigger-button-right, var(--spacing-2, 4px)));
|
|
73
|
+
bottom: -var(--component-avatar-avatar-spacing-trigger-button-bottom, var(--component-avatar-spacing-trigger-button-bottom, var(--spacing-2, 4px)));
|
|
74
74
|
z-index: 1;
|
|
75
|
-
width: 20px;
|
|
76
|
-
height: 20px;
|
|
77
|
-
color: var(--sd-color-fill-4);
|
|
78
|
-
font-size: 12px;
|
|
79
|
-
line-height: 20px;
|
|
75
|
+
width: var(--component-avatar-avatar-size-trigger-button, var(--component-avatar-size-trigger-button, var(--size-5, 20px)));
|
|
76
|
+
height: var(--component-avatar-avatar-size-trigger-button, var(--component-avatar-size-trigger-button, var(--size-5, 20px)));
|
|
77
|
+
color: var(--component-avatar-avatar-color-trigger-icon-button, var(--component-avatar-color-trigger-icon-button, var(--sd-color-fill-4)));
|
|
78
|
+
font-size: var(--component-avatar-avatar-size-trigger-icon, var(--component-avatar-size-trigger-icon, var(--size-3, 12px)));
|
|
79
|
+
line-height: var(--component-avatar-avatar-size-trigger-button, var(--component-avatar-size-trigger-button, var(--size-5, 20px)));
|
|
80
80
|
text-align: center;
|
|
81
|
-
background-color: var(--sd-color-neutral-2);
|
|
82
|
-
border-radius: var(--sd-border-radius-circle);
|
|
81
|
+
background-color: var(--component-avatar-avatar-color-trigger-button-bg, var(--component-avatar-color-trigger-button-bg, var(--sd-color-neutral-2)));
|
|
82
|
+
border-radius: var(--component-avatar-avatar-border-trigger-button-radius, var(--component-avatar-border-trigger-button-radius, var(--sd-border-radius-circle)));
|
|
83
83
|
transition: background-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
84
84
|
}
|
|
85
85
|
.sd-avatar-trigger-icon-mask {
|
|
@@ -92,15 +92,15 @@
|
|
|
92
92
|
justify-content: center;
|
|
93
93
|
width: 100%;
|
|
94
94
|
height: 100%;
|
|
95
|
-
color: var(--sd-color-white);
|
|
95
|
+
color: var(--component-avatar-avatar-color-trigger-mask-icon, var(--component-avatar-color-trigger-mask-icon, var(--sd-color-white)));
|
|
96
96
|
font-size: 16px;
|
|
97
|
-
background-color: color-mix(in srgb, #1d2129 60
|
|
98
|
-
border-radius: var(--sd-border-radius-medium);
|
|
97
|
+
background-color: color-mix(in srgb, #1d2129 var(--component-avatar-avatar-opacity-trigger-mask-bg, var(--component-avatar-opacity-trigger-mask-bg, var(--opacity-6, 60%))), transparent);
|
|
98
|
+
border-radius: var(--component-avatar-avatar-square-border-radius, var(--component-avatar-square-border-radius, var(--sd-border-radius-medium)));
|
|
99
99
|
opacity: 0;
|
|
100
100
|
transition: opacity 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
101
101
|
}
|
|
102
102
|
.sd-avatar-circle .sd-avatar-trigger-icon-mask {
|
|
103
|
-
border-radius: var(--sd-border-radius-circle);
|
|
103
|
+
border-radius: var(--component-avatar-avatar-circle-border-radius, var(--component-avatar-circle-border-radius, var(--sd-border-radius-circle)));
|
|
104
104
|
}
|
|
105
105
|
.sd-avatar-with-trigger-icon {
|
|
106
106
|
cursor: pointer;
|
|
@@ -110,37 +110,37 @@
|
|
|
110
110
|
opacity: 1;
|
|
111
111
|
}
|
|
112
112
|
.sd-avatar-with-trigger-icon:hover .sd-avatar-trigger-icon-button {
|
|
113
|
-
background-color: var(--sd-color-neutral-3);
|
|
113
|
+
background-color: var(--component-avatar-avatar-color-trigger-button-bg-hover, var(--component-avatar-color-trigger-button-bg-hover, var(--sd-color-neutral-3)));
|
|
114
114
|
}
|
|
115
115
|
.sd-avatar-rtl {
|
|
116
116
|
direction: rtl;
|
|
117
117
|
}
|
|
118
118
|
.sd-avatar-rtl .sd-avatar-trigger-icon-button {
|
|
119
119
|
right: unset;
|
|
120
|
-
left: -4px;
|
|
120
|
+
left: -var(--component-avatar-avatar-spacing-trigger-button-right, var(--component-avatar-spacing-trigger-button-right, var(--spacing-2, 4px)));
|
|
121
121
|
}
|
|
122
122
|
.sd-avatar-group {
|
|
123
123
|
display: inline-block;
|
|
124
124
|
line-height: 0;
|
|
125
125
|
}
|
|
126
126
|
.sd-avatar-group-max-count-avatar {
|
|
127
|
-
color: var(--sd-color-white);
|
|
128
|
-
font-size: 20px;
|
|
127
|
+
color: var(--component-avatar-avatar-color-max-count-text, var(--component-avatar-color-max-count-text, var(--sd-color-white)));
|
|
128
|
+
font-size: var(--component-avatar-avatar-font-size-max-count, var(--component-avatar-font-size-max-count, 20px));
|
|
129
129
|
cursor: default;
|
|
130
130
|
}
|
|
131
131
|
.sd-avatar-group-rtl {
|
|
132
132
|
direction: rtl;
|
|
133
133
|
}
|
|
134
134
|
.sd-avatar-group .sd-avatar {
|
|
135
|
-
border: 2px solid var(--sd-color-bg-2);
|
|
135
|
+
border: var(--component-avatar-avatar-group-item-border-width, var(--component-avatar-group-item-border-width, 2px)) solid var(--component-avatar-avatar-color-group-item-border, var(--component-avatar-color-group-item-border, var(--sd-color-bg-2)));
|
|
136
136
|
}
|
|
137
137
|
.sd-avatar-group .sd-avatar:not(:first-child) {
|
|
138
|
-
margin-left: -10px;
|
|
138
|
+
margin-left: var(--component-avatar-avatar-group-item-margin-left, var(--component-avatar-group-item-margin-left, -10px));
|
|
139
139
|
}
|
|
140
140
|
.sd-avatar-group-popover .sd-avatar:not(:first-child) {
|
|
141
|
-
margin-left: 4px !important;
|
|
141
|
+
margin-left: var(--component-avatar-avatar-group-popover-item-spacing, var(--component-avatar-group-popover-item-spacing, var(--spacing-2, 4px))) !important;
|
|
142
142
|
}
|
|
143
143
|
.sd-avatar-group-popover .sd-avatar-rtl:not(:first-child) {
|
|
144
|
-
margin-right: 4px !important;
|
|
144
|
+
margin-right: var(--component-avatar-avatar-group-popover-item-spacing, var(--component-avatar-group-popover-item-spacing, var(--spacing-2, 4px))) !important;
|
|
145
145
|
margin-left: 0 !important;
|
|
146
146
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@style/theme/runtime.scss' as theme-runtime;
|
|
1
2
|
@use '@style/theme/index.scss' as global;
|
|
2
3
|
|
|
3
4
|
@forward '@style/theme/index.scss';
|
|
@@ -55,3 +56,120 @@ $avatar-border-trigger-button-radius: global.$radius-circle;
|
|
|
55
56
|
$avatar-font-size-max-count: 20px;
|
|
56
57
|
|
|
57
58
|
$avatar-color-max-count-text: var(string.unquote('#{global.$sd-cssvars-prefix}-color-white'));
|
|
59
|
+
|
|
60
|
+
// @generated runtime tokens — pnpm theme:generate
|
|
61
|
+
$avatar-size-default: theme-runtime.token(
|
|
62
|
+
'avatar',
|
|
63
|
+
'avatar-size-default',
|
|
64
|
+
$avatar-size-default,
|
|
65
|
+
'size-10'
|
|
66
|
+
);
|
|
67
|
+
$avatar-font-size-text: theme-runtime.token(
|
|
68
|
+
'avatar',
|
|
69
|
+
'avatar-font-size-text',
|
|
70
|
+
$avatar-font-size-text
|
|
71
|
+
);
|
|
72
|
+
$avatar-color-text: theme-runtime.token('avatar', 'avatar-color-text', $avatar-color-text);
|
|
73
|
+
$avatar-color-bg: theme-runtime.token('avatar', 'avatar-color-bg', $avatar-color-bg);
|
|
74
|
+
$avatar-color-group-item-border: theme-runtime.token(
|
|
75
|
+
'avatar',
|
|
76
|
+
'avatar-color-group-item-border',
|
|
77
|
+
$avatar-color-group-item-border
|
|
78
|
+
);
|
|
79
|
+
$avatar-group-item-border-width: theme-runtime.token(
|
|
80
|
+
'avatar',
|
|
81
|
+
'avatar-group-item-border-width',
|
|
82
|
+
$avatar-group-item-border-width
|
|
83
|
+
);
|
|
84
|
+
$avatar-group-item-margin-left: theme-runtime.token(
|
|
85
|
+
'avatar',
|
|
86
|
+
'avatar-group-item-margin-left',
|
|
87
|
+
$avatar-group-item-margin-left
|
|
88
|
+
);
|
|
89
|
+
$avatar-group-popover-item-spacing: theme-runtime.token(
|
|
90
|
+
'avatar',
|
|
91
|
+
'avatar-group-popover-item-spacing',
|
|
92
|
+
$avatar-group-popover-item-spacing,
|
|
93
|
+
'spacing-2'
|
|
94
|
+
);
|
|
95
|
+
$avatar-font-weight-text: theme-runtime.token(
|
|
96
|
+
'avatar',
|
|
97
|
+
'avatar-font-weight-text',
|
|
98
|
+
$avatar-font-weight-text,
|
|
99
|
+
'font-weight-500'
|
|
100
|
+
);
|
|
101
|
+
$avatar-circle-border-radius: theme-runtime.token(
|
|
102
|
+
'avatar',
|
|
103
|
+
'avatar-circle-border-radius',
|
|
104
|
+
$avatar-circle-border-radius
|
|
105
|
+
);
|
|
106
|
+
$avatar-square-border-radius: theme-runtime.token(
|
|
107
|
+
'avatar',
|
|
108
|
+
'avatar-square-border-radius',
|
|
109
|
+
$avatar-square-border-radius
|
|
110
|
+
);
|
|
111
|
+
$avatar-size-trigger-button: theme-runtime.token(
|
|
112
|
+
'avatar',
|
|
113
|
+
'avatar-size-trigger-button',
|
|
114
|
+
$avatar-size-trigger-button,
|
|
115
|
+
'size-5'
|
|
116
|
+
);
|
|
117
|
+
$avatar-color-trigger-button-bg: theme-runtime.token(
|
|
118
|
+
'avatar',
|
|
119
|
+
'avatar-color-trigger-button-bg',
|
|
120
|
+
$avatar-color-trigger-button-bg
|
|
121
|
+
);
|
|
122
|
+
$avatar-color-trigger-button-bg_hover: theme-runtime.token(
|
|
123
|
+
'avatar',
|
|
124
|
+
'avatar-color-trigger-button-bg-hover',
|
|
125
|
+
$avatar-color-trigger-button-bg_hover
|
|
126
|
+
);
|
|
127
|
+
$avatar-color-trigger-mask-icon: theme-runtime.token(
|
|
128
|
+
'avatar',
|
|
129
|
+
'avatar-color-trigger-mask-icon',
|
|
130
|
+
$avatar-color-trigger-mask-icon
|
|
131
|
+
);
|
|
132
|
+
$avatar-opacity-trigger-mask-bg: theme-runtime.token(
|
|
133
|
+
'avatar',
|
|
134
|
+
'avatar-opacity-trigger-mask-bg',
|
|
135
|
+
$avatar-opacity-trigger-mask-bg,
|
|
136
|
+
'opacity-6'
|
|
137
|
+
);
|
|
138
|
+
$avatar-color-trigger-icon-button: theme-runtime.token(
|
|
139
|
+
'avatar',
|
|
140
|
+
'avatar-color-trigger-icon-button',
|
|
141
|
+
$avatar-color-trigger-icon-button
|
|
142
|
+
);
|
|
143
|
+
$avatar-spacing-trigger-button-right: theme-runtime.token(
|
|
144
|
+
'avatar',
|
|
145
|
+
'avatar-spacing-trigger-button-right',
|
|
146
|
+
$avatar-spacing-trigger-button-right,
|
|
147
|
+
'spacing-2'
|
|
148
|
+
);
|
|
149
|
+
$avatar-spacing-trigger-button-bottom: theme-runtime.token(
|
|
150
|
+
'avatar',
|
|
151
|
+
'avatar-spacing-trigger-button-bottom',
|
|
152
|
+
$avatar-spacing-trigger-button-bottom,
|
|
153
|
+
'spacing-2'
|
|
154
|
+
);
|
|
155
|
+
$avatar-size-trigger-icon: theme-runtime.token(
|
|
156
|
+
'avatar',
|
|
157
|
+
'avatar-size-trigger-icon',
|
|
158
|
+
$avatar-size-trigger-icon,
|
|
159
|
+
'size-3'
|
|
160
|
+
);
|
|
161
|
+
$avatar-border-trigger-button-radius: theme-runtime.token(
|
|
162
|
+
'avatar',
|
|
163
|
+
'avatar-border-trigger-button-radius',
|
|
164
|
+
$avatar-border-trigger-button-radius
|
|
165
|
+
);
|
|
166
|
+
$avatar-font-size-max-count: theme-runtime.token(
|
|
167
|
+
'avatar',
|
|
168
|
+
'avatar-font-size-max-count',
|
|
169
|
+
$avatar-font-size-max-count
|
|
170
|
+
);
|
|
171
|
+
$avatar-color-max-count-text: theme-runtime.token(
|
|
172
|
+
'avatar',
|
|
173
|
+
'avatar-color-max-count-text',
|
|
174
|
+
$avatar-color-max-count-text
|
|
175
|
+
);
|
|
@@ -17,29 +17,29 @@
|
|
|
17
17
|
/********* icon hover *********/
|
|
18
18
|
.sd-back-top {
|
|
19
19
|
position: fixed;
|
|
20
|
-
right: 24px;
|
|
21
|
-
bottom: 24px;
|
|
20
|
+
right: var(--component-back-top-backtop-margin-right, var(--component-back-top-margin-right, var(--spacing-9, 24px)));
|
|
21
|
+
bottom: var(--component-back-top-backtop-margin-bottom, var(--component-back-top-margin-bottom, var(--spacing-9, 24px)));
|
|
22
22
|
z-index: 999;
|
|
23
23
|
}
|
|
24
24
|
.sd-back-top-btn {
|
|
25
|
-
width: 40px;
|
|
26
|
-
height: 40px;
|
|
27
|
-
color: var(--sd-color-white);
|
|
28
|
-
font-size: 12px;
|
|
25
|
+
width: var(--component-back-top-backtop-button-size-width, var(--component-back-top-button-size-width, var(--size-10, 40px)));
|
|
26
|
+
height: var(--component-back-top-backtop-button-size-width, var(--component-back-top-button-size-width, var(--size-10, 40px)));
|
|
27
|
+
color: var(--component-back-top-backtop-button-color-text, var(--component-back-top-button-color-text, var(--sd-color-white)));
|
|
28
|
+
font-size: var(--component-back-top-backtop-button-size-font, var(--component-back-top-button-size-font, var(--font-size-body-1, 12px)));
|
|
29
29
|
text-align: center;
|
|
30
|
-
background-color: rgb(var(--sd-primary-6));
|
|
30
|
+
background-color: var(--component-back-top-backtop-button-color-bg, var(--component-back-top-button-color-bg, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
31
31
|
border: none;
|
|
32
|
-
border-radius: var(--sd-border-radius-circle);
|
|
32
|
+
border-radius: var(--component-back-top-backtop-button-border-radius, var(--component-back-top-button-border-radius, var(--sd-border-radius-circle)));
|
|
33
33
|
outline: none;
|
|
34
34
|
cursor: pointer;
|
|
35
35
|
transition: background-color 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
36
36
|
}
|
|
37
37
|
.sd-back-top-btn:hover {
|
|
38
|
-
background-color: rgb(var(--sd-primary-5));
|
|
38
|
+
background-color: var(--component-back-top-backtop-button-color-bg-hover, var(--component-back-top-button-color-bg-hover, var(--color-primary-5, var(--sd-color-primary-5, rgb(var(--sd-primary-5))))));
|
|
39
39
|
}
|
|
40
40
|
.sd-back-top-btn:focus-visible {
|
|
41
|
-
box-shadow: 0 0 0 2px rgb(var(--sd-primary-3));
|
|
41
|
+
box-shadow: 0 0 0 2px var(--component-back-top-backtop-button-color-focus-ring, var(--component-back-top-button-color-focus-ring, var(--color-primary-3, var(--sd-color-primary-3, rgb(var(--sd-primary-3))))));
|
|
42
42
|
}
|
|
43
43
|
.sd-back-top-btn svg {
|
|
44
|
-
font-size: 14px;
|
|
44
|
+
font-size: var(--component-back-top-backtop-button-size-icon, var(--component-back-top-button-size-icon, 14px));
|
|
45
45
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@style/theme/runtime.scss' as theme-runtime;
|
|
1
2
|
@use '@style/theme/index.scss' as global;
|
|
2
3
|
|
|
3
4
|
@forward '@style/theme/index.scss';
|
|
@@ -25,3 +26,62 @@ $backtop-button-color-focus-ring: global.$color-primary-3;
|
|
|
25
26
|
$backtop-button-border-radius: global.$radius-circle;
|
|
26
27
|
|
|
27
28
|
$backtop-button-color-text: var(string.unquote('#{global.$sd-cssvars-prefix}-color-white'));
|
|
29
|
+
|
|
30
|
+
// @generated runtime tokens — pnpm theme:generate
|
|
31
|
+
$backtop-margin-bottom: theme-runtime.token(
|
|
32
|
+
'back-top',
|
|
33
|
+
'backtop-margin-bottom',
|
|
34
|
+
$backtop-margin-bottom,
|
|
35
|
+
'spacing-9'
|
|
36
|
+
);
|
|
37
|
+
$backtop-margin-right: theme-runtime.token(
|
|
38
|
+
'back-top',
|
|
39
|
+
'backtop-margin-right',
|
|
40
|
+
$backtop-margin-right,
|
|
41
|
+
'spacing-9'
|
|
42
|
+
);
|
|
43
|
+
$backtop-button-size-width: theme-runtime.token(
|
|
44
|
+
'back-top',
|
|
45
|
+
'backtop-button-size-width',
|
|
46
|
+
$backtop-button-size-width,
|
|
47
|
+
'size-10'
|
|
48
|
+
);
|
|
49
|
+
$backtop-button-size-font: theme-runtime.token(
|
|
50
|
+
'back-top',
|
|
51
|
+
'backtop-button-size-font',
|
|
52
|
+
$backtop-button-size-font,
|
|
53
|
+
'font-size-body-1'
|
|
54
|
+
);
|
|
55
|
+
$backtop-button-size-icon: theme-runtime.token(
|
|
56
|
+
'back-top',
|
|
57
|
+
'backtop-button-size-icon',
|
|
58
|
+
$backtop-button-size-icon
|
|
59
|
+
);
|
|
60
|
+
$backtop-button-color-bg: theme-runtime.token(
|
|
61
|
+
'back-top',
|
|
62
|
+
'backtop-button-color-bg',
|
|
63
|
+
$backtop-button-color-bg,
|
|
64
|
+
'color-primary-6'
|
|
65
|
+
);
|
|
66
|
+
$backtop-button-color-bg_hover: theme-runtime.token(
|
|
67
|
+
'back-top',
|
|
68
|
+
'backtop-button-color-bg-hover',
|
|
69
|
+
$backtop-button-color-bg_hover,
|
|
70
|
+
'color-primary-5'
|
|
71
|
+
);
|
|
72
|
+
$backtop-button-color-focus-ring: theme-runtime.token(
|
|
73
|
+
'back-top',
|
|
74
|
+
'backtop-button-color-focus-ring',
|
|
75
|
+
$backtop-button-color-focus-ring,
|
|
76
|
+
'color-primary-3'
|
|
77
|
+
);
|
|
78
|
+
$backtop-button-border-radius: theme-runtime.token(
|
|
79
|
+
'back-top',
|
|
80
|
+
'backtop-button-border-radius',
|
|
81
|
+
$backtop-button-border-radius
|
|
82
|
+
);
|
|
83
|
+
$backtop-button-color-text: theme-runtime.token(
|
|
84
|
+
'back-top',
|
|
85
|
+
'backtop-button-color-text',
|
|
86
|
+
$backtop-button-color-text
|
|
87
|
+
);
|
package/es/badge/style/index.css
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
overflow: hidden;
|
|
33
33
|
text-align: center;
|
|
34
|
-
border-radius: 20px;
|
|
34
|
+
border-radius: var(--component-badge-badge-size-count-height, var(--component-badge-size-count-height, var(--size-5, 20px)));
|
|
35
35
|
transform: translate(50%, -50%);
|
|
36
36
|
transform-origin: 100% 0%;
|
|
37
37
|
}
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
background-color: var(--sd-color-bg-2);
|
|
43
43
|
}
|
|
44
44
|
.sd-badge-number, .sd-badge-text {
|
|
45
|
-
min-width: 20px;
|
|
46
|
-
height: 20px;
|
|
47
|
-
padding: 0 6px;
|
|
48
|
-
color: var(--sd-color-white);
|
|
49
|
-
font-weight: 500;
|
|
50
|
-
font-size: 12px;
|
|
51
|
-
line-height: 20px;
|
|
52
|
-
background-color: rgb(var(--sd-danger-6));
|
|
45
|
+
min-width: var(--component-badge-badge-size-count-height, var(--component-badge-size-count-height, var(--size-5, 20px)));
|
|
46
|
+
height: var(--component-badge-badge-size-count-height, var(--component-badge-size-count-height, var(--size-5, 20px)));
|
|
47
|
+
padding: 0 var(--component-badge-badge-padding-count-horizontal, var(--component-badge-padding-count-horizontal, var(--spacing-3, 6px)));
|
|
48
|
+
color: var(--component-badge-badge-color-count-text, var(--component-badge-color-count-text, var(--sd-color-white)));
|
|
49
|
+
font-weight: var(--component-badge-badge-font-count-weight, var(--component-badge-font-count-weight, var(--font-weight-500, 500)));
|
|
50
|
+
font-size: var(--component-badge-badge-font-count-size, var(--component-badge-font-count-size, var(--font-size-body-1, 12px)));
|
|
51
|
+
line-height: var(--component-badge-badge-size-count-height, var(--component-badge-size-count-height, var(--size-5, 20px)));
|
|
52
|
+
background-color: var(--component-badge-badge-color-count-bg, var(--component-badge-color-count-bg, var(--color-danger-6, var(--sd-color-danger-6, rgb(var(--sd-danger-6))))));
|
|
53
53
|
box-shadow: 0 0 0 2px var(--sd-color-bg-2);
|
|
54
54
|
}
|
|
55
55
|
.sd-badge-dot {
|
|
56
|
-
width: 6px;
|
|
57
|
-
height: 6px;
|
|
58
|
-
background-color: rgb(var(--sd-danger-6));
|
|
56
|
+
width: var(--component-badge-badge-size-dot-width, var(--component-badge-size-dot-width, 6px));
|
|
57
|
+
height: var(--component-badge-badge-size-dot-width, var(--component-badge-size-dot-width, 6px));
|
|
58
|
+
background-color: var(--component-badge-badge-color-count-bg, var(--component-badge-color-count-bg, var(--color-danger-6, var(--sd-color-danger-6, rgb(var(--sd-danger-6))))));
|
|
59
59
|
border-radius: var(--sd-border-radius-circle);
|
|
60
60
|
box-shadow: 0 0 0 2px var(--sd-color-bg-2);
|
|
61
61
|
}
|
|
@@ -72,69 +72,69 @@
|
|
|
72
72
|
}
|
|
73
73
|
.sd-badge-status-dot {
|
|
74
74
|
display: inline-block;
|
|
75
|
-
width: 6px;
|
|
76
|
-
height: 6px;
|
|
75
|
+
width: var(--component-badge-badge-size-dot-width, var(--component-badge-size-dot-width, 6px));
|
|
76
|
+
height: var(--component-badge-badge-size-dot-width, var(--component-badge-size-dot-width, 6px));
|
|
77
77
|
border-radius: var(--sd-border-radius-circle);
|
|
78
78
|
}
|
|
79
79
|
.sd-badge-status-normal {
|
|
80
|
-
background-color: var(--sd-color-fill-4);
|
|
80
|
+
background-color: var(--component-badge-badge-color-dot-bg-default, var(--component-badge-color-dot-bg-default, var(--sd-color-fill-4)));
|
|
81
81
|
}
|
|
82
82
|
.sd-badge-status-processing {
|
|
83
|
-
background-color: rgb(var(--sd-primary-6));
|
|
83
|
+
background-color: var(--component-badge-badge-color-dot-bg-processing, var(--component-badge-color-dot-bg-processing, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
84
84
|
}
|
|
85
85
|
.sd-badge-status-success {
|
|
86
|
-
background-color: rgb(var(--sd-success-6));
|
|
86
|
+
background-color: var(--component-badge-badge-color-dot-bg-success, var(--component-badge-color-dot-bg-success, var(--color-success-6, var(--sd-color-success-6, rgb(var(--sd-success-6))))));
|
|
87
87
|
}
|
|
88
88
|
.sd-badge-status-warning {
|
|
89
|
-
background-color: rgb(var(--sd-warning-6));
|
|
89
|
+
background-color: var(--component-badge-badge-color-dot-bg-warning, var(--component-badge-color-dot-bg-warning, var(--color-warning-6, var(--sd-color-warning-6, rgb(var(--sd-warning-6))))));
|
|
90
90
|
}
|
|
91
91
|
.sd-badge-status-danger {
|
|
92
|
-
background-color: rgb(var(--sd-danger-6));
|
|
92
|
+
background-color: var(--component-badge-badge-color-dot-bg-error, var(--component-badge-color-dot-bg-error, var(--color-danger-6, var(--sd-color-danger-6, rgb(var(--sd-danger-6))))));
|
|
93
93
|
}
|
|
94
94
|
.sd-badge-color-red {
|
|
95
|
-
background-color: rgb(var(--sd-danger-6));
|
|
95
|
+
background-color: var(--component-badge-badge-red-color-dot-bg, var(--component-badge-red-color-dot-bg, var(--color-danger-6, var(--sd-color-danger-6, rgb(var(--sd-danger-6))))));
|
|
96
96
|
}
|
|
97
97
|
.sd-badge-color-orangered {
|
|
98
|
-
background-color: #f77234;
|
|
98
|
+
background-color: var(--component-badge-badge-orangered-color-dot-bg, var(--component-badge-orangered-color-dot-bg, #f77234));
|
|
99
99
|
}
|
|
100
100
|
.sd-badge-color-orange {
|
|
101
|
-
background-color: rgb(var(--sd-orange-6));
|
|
101
|
+
background-color: var(--component-badge-badge-orange-color-dot-bg, var(--component-badge-orange-color-dot-bg, rgb(var(--sd-orange-6))));
|
|
102
102
|
}
|
|
103
103
|
.sd-badge-color-gold {
|
|
104
|
-
background-color: rgb(var(--sd-gold-6));
|
|
104
|
+
background-color: var(--component-badge-badge-gold-color-dot-bg, var(--component-badge-gold-color-dot-bg, rgb(var(--sd-gold-6))));
|
|
105
105
|
}
|
|
106
106
|
.sd-badge-color-lime {
|
|
107
|
-
background-color: rgb(var(--sd-lime-6));
|
|
107
|
+
background-color: var(--component-badge-badge-lime-color-dot-bg, var(--component-badge-lime-color-dot-bg, rgb(var(--sd-lime-6))));
|
|
108
108
|
}
|
|
109
109
|
.sd-badge-color-green {
|
|
110
|
-
background-color: rgb(var(--sd-success-6));
|
|
110
|
+
background-color: var(--component-badge-badge-green-color-dot-bg, var(--component-badge-green-color-dot-bg, var(--color-success-6, var(--sd-color-success-6, rgb(var(--sd-success-6))))));
|
|
111
111
|
}
|
|
112
112
|
.sd-badge-color-cyan {
|
|
113
|
-
background-color: rgb(var(--sd-cyan-6));
|
|
113
|
+
background-color: var(--component-badge-badge-cyan-color-dot-bg, var(--component-badge-cyan-color-dot-bg, rgb(var(--sd-cyan-6))));
|
|
114
114
|
}
|
|
115
115
|
.sd-badge-color-sdblue {
|
|
116
|
-
background-color: rgb(var(--sd-primary-6));
|
|
116
|
+
background-color: var(--component-badge-badge-sdblue-color-dot-bg, var(--component-badge-sdblue-color-dot-bg, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
117
117
|
}
|
|
118
118
|
.sd-badge-color-purple {
|
|
119
|
-
background-color: rgb(var(--sd-purple-6));
|
|
119
|
+
background-color: var(--component-badge-badge-purple-color-dot-bg, var(--component-badge-purple-color-dot-bg, rgb(var(--sd-purple-6))));
|
|
120
120
|
}
|
|
121
121
|
.sd-badge-color-pinkpurple {
|
|
122
|
-
background-color: rgb(var(--sd-pinkpurple-6));
|
|
122
|
+
background-color: var(--component-badge-badge-pinkpurple-color-dot-bg, var(--component-badge-pinkpurple-color-dot-bg, rgb(var(--sd-pinkpurple-6))));
|
|
123
123
|
}
|
|
124
124
|
.sd-badge-color-magenta {
|
|
125
|
-
background-color: rgb(var(--sd-magenta-6));
|
|
125
|
+
background-color: var(--component-badge-badge-magenta-color-dot-bg, var(--component-badge-magenta-color-dot-bg, rgb(var(--sd-magenta-6))));
|
|
126
126
|
}
|
|
127
127
|
.sd-badge-color-gray {
|
|
128
|
-
background-color: rgb(var(--sd-gray-4));
|
|
128
|
+
background-color: var(--component-badge-badge-gray-color-dot-bg, var(--component-badge-gray-color-dot-bg, rgb(var(--sd-gray-4))));
|
|
129
129
|
}
|
|
130
130
|
.sd-badge .sd-badge-status-text {
|
|
131
|
-
margin-left: 8px;
|
|
132
|
-
color: var(--sd-color-text-1);
|
|
133
|
-
font-size: 12px;
|
|
131
|
+
margin-left: var(--component-badge-badge-margin-status-text-left, var(--component-badge-margin-status-text-left, var(--spacing-4, 8px)));
|
|
132
|
+
color: var(--component-badge-badge-color-status-text, var(--component-badge-color-status-text, var(--sd-color-text-1)));
|
|
133
|
+
font-size: var(--component-badge-badge-font-status-text-size, var(--component-badge-font-status-text-size, var(--font-size-body-1, 12px)));
|
|
134
134
|
line-height: 1.5715;
|
|
135
135
|
}
|
|
136
136
|
.sd-badge-rtl .sd-badge-status-text {
|
|
137
|
-
margin-right: 8px;
|
|
137
|
+
margin-right: var(--component-badge-badge-margin-status-text-left, var(--component-badge-margin-status-text-left, var(--spacing-4, 8px)));
|
|
138
138
|
margin-left: 0;
|
|
139
139
|
}
|
|
140
140
|
.sd-badge-number-text {
|