advance-semi-theme 1.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/README.md +214 -0
- package/dist/antd/index.d.ts +159 -0
- package/dist/antd/index.js +1378 -0
- package/dist/antd/plugin.d.ts +34 -0
- package/dist/antd/plugin.js +12 -0
- package/dist/antd/styles/all.css +83 -0
- package/dist/antd/styles/base.css +202 -0
- package/dist/antd/styles/components/affix.css +7 -0
- package/dist/antd/styles/components/ai.css +242 -0
- package/dist/antd/styles/components/alert.css +149 -0
- package/dist/antd/styles/components/anchor.css +40 -0
- package/dist/antd/styles/components/app.css +9 -0
- package/dist/antd/styles/components/autocomplete.css +56 -0
- package/dist/antd/styles/components/avatar.css +37 -0
- package/dist/antd/styles/components/backtop.css +106 -0
- package/dist/antd/styles/components/badge.css +76 -0
- package/dist/antd/styles/components/breadcrumb.css +37 -0
- package/dist/antd/styles/components/button.css +528 -0
- package/dist/antd/styles/components/calendar.css +55 -0
- package/dist/antd/styles/components/card.css +113 -0
- package/dist/antd/styles/components/carousel.css +57 -0
- package/dist/antd/styles/components/cascader.css +99 -0
- package/dist/antd/styles/components/checkableTag.css +26 -0
- package/dist/antd/styles/components/checkbox.css +119 -0
- package/dist/antd/styles/components/collapse.css +74 -0
- package/dist/antd/styles/components/colorpicker.css +94 -0
- package/dist/antd/styles/components/configprovider.css +6 -0
- package/dist/antd/styles/components/datepicker.css +346 -0
- package/dist/antd/styles/components/descriptions.css +63 -0
- package/dist/antd/styles/components/divider.css +34 -0
- package/dist/antd/styles/components/drawer.css +71 -0
- package/dist/antd/styles/components/dropdown.css +94 -0
- package/dist/antd/styles/components/empty.css +40 -0
- package/dist/antd/styles/components/flex.css +19 -0
- package/dist/antd/styles/components/floatbutton.css +65 -0
- package/dist/antd/styles/components/form.css +90 -0
- package/dist/antd/styles/components/grid.css +11 -0
- package/dist/antd/styles/components/icon.css +18 -0
- package/dist/antd/styles/components/image.css +125 -0
- package/dist/antd/styles/components/input.css +459 -0
- package/dist/antd/styles/components/inputnumber.css +102 -0
- package/dist/antd/styles/components/layout.css +63 -0
- package/dist/antd/styles/components/list.css +109 -0
- package/dist/antd/styles/components/mentions.css +84 -0
- package/dist/antd/styles/components/menu.css +190 -0
- package/dist/antd/styles/components/message.css +68 -0
- package/dist/antd/styles/components/modal.css +124 -0
- package/dist/antd/styles/components/notification.css +89 -0
- package/dist/antd/styles/components/pageheader.css +62 -0
- package/dist/antd/styles/components/pagination.css +139 -0
- package/dist/antd/styles/components/popconfirm.css +64 -0
- package/dist/antd/styles/components/popover.css +40 -0
- package/dist/antd/styles/components/progress.css +105 -0
- package/dist/antd/styles/components/qrcode.css +43 -0
- package/dist/antd/styles/components/radio.css +166 -0
- package/dist/antd/styles/components/rate.css +47 -0
- package/dist/antd/styles/components/result.css +63 -0
- package/dist/antd/styles/components/scrollbar.css +22 -0
- package/dist/antd/styles/components/segmented.css +75 -0
- package/dist/antd/styles/components/select.css +282 -0
- package/dist/antd/styles/components/skeleton.css +96 -0
- package/dist/antd/styles/components/slider.css +119 -0
- package/dist/antd/styles/components/space.css +59 -0
- package/dist/antd/styles/components/spin.css +91 -0
- package/dist/antd/styles/components/statistic.css +48 -0
- package/dist/antd/styles/components/steps.css +176 -0
- package/dist/antd/styles/components/switch.css +128 -0
- package/dist/antd/styles/components/table.css +197 -0
- package/dist/antd/styles/components/tabs.css +212 -0
- package/dist/antd/styles/components/tag.css +286 -0
- package/dist/antd/styles/components/textArea.css +40 -0
- package/dist/antd/styles/components/timeline.css +106 -0
- package/dist/antd/styles/components/timepicker.css +105 -0
- package/dist/antd/styles/components/tooltip.css +37 -0
- package/dist/antd/styles/components/tour.css +114 -0
- package/dist/antd/styles/components/transfer.css +232 -0
- package/dist/antd/styles/components/tree.css +143 -0
- package/dist/antd/styles/components/treeselect.css +46 -0
- package/dist/antd/styles/components/typography.css +184 -0
- package/dist/antd/styles/components/upload.css +181 -0
- package/dist/antd/styles/components/watermark.css +16 -0
- package/dist/antd/styles/dark.css +533 -0
- package/dist/antd/styles/index.css +115 -0
- package/dist/antd/styles/overrides.css +147 -0
- package/dist/antd/styles/variables.css +259 -0
- package/dist/chunk-FMQWBDDZ.js +207 -0
- package/dist/chunk-NGAVTDQ2.js +200 -0
- package/dist/chunk-QQOB6AOA.js +213 -0
- package/dist/core/index.d.ts +179 -0
- package/dist/core/index.js +10 -0
- package/dist/core/variables.css +258 -0
- package/dist/element/index.d.ts +3 -0
- package/dist/element/index.js +17 -0
- package/dist/element/plugin.d.ts +34 -0
- package/dist/element/plugin.js +12 -0
- package/dist/element/styles/base.css +277 -0
- package/dist/element/styles/components/affix.css +7 -0
- package/dist/element/styles/components/alert.css +44 -0
- package/dist/element/styles/components/anchor.css +34 -0
- package/dist/element/styles/components/autocomplete.css +61 -0
- package/dist/element/styles/components/avatar.css +31 -0
- package/dist/element/styles/components/backtop.css +22 -0
- package/dist/element/styles/components/badge.css +48 -0
- package/dist/element/styles/components/breadcrumb.css +38 -0
- package/dist/element/styles/components/button.css +193 -0
- package/dist/element/styles/components/calendar.css +58 -0
- package/dist/element/styles/components/card.css +29 -0
- package/dist/element/styles/components/carousel.css +78 -0
- package/dist/element/styles/components/cascader.css +120 -0
- package/dist/element/styles/components/check-tag.css +35 -0
- package/dist/element/styles/components/checkbox.css +39 -0
- package/dist/element/styles/components/collapse.css +58 -0
- package/dist/element/styles/components/color-picker.css +82 -0
- package/dist/element/styles/components/config-provider.css +6 -0
- package/dist/element/styles/components/container.css +26 -0
- package/dist/element/styles/components/datepicker.css +165 -0
- package/dist/element/styles/components/descriptions-item.css +6 -0
- package/dist/element/styles/components/descriptions.css +51 -0
- package/dist/element/styles/components/dialog.css +91 -0
- package/dist/element/styles/components/divider.css +37 -0
- package/dist/element/styles/components/drawer.css +33 -0
- package/dist/element/styles/components/dropdown.css +30 -0
- package/dist/element/styles/components/empty.css +28 -0
- package/dist/element/styles/components/form.css +106 -0
- package/dist/element/styles/components/image.css +59 -0
- package/dist/element/styles/components/infinite-scroll.css +24 -0
- package/dist/element/styles/components/input-number.css +95 -0
- package/dist/element/styles/components/input.css +170 -0
- package/dist/element/styles/components/link.css +73 -0
- package/dist/element/styles/components/loading.css +50 -0
- package/dist/element/styles/components/mention.css +49 -0
- package/dist/element/styles/components/menu.css +140 -0
- package/dist/element/styles/components/message.css +88 -0
- package/dist/element/styles/components/notification.css +81 -0
- package/dist/element/styles/components/page-header.css +41 -0
- package/dist/element/styles/components/pagination.css +135 -0
- package/dist/element/styles/components/popconfirm.css +35 -0
- package/dist/element/styles/components/popover.css +22 -0
- package/dist/element/styles/components/progress.css +28 -0
- package/dist/element/styles/components/radio.css +64 -0
- package/dist/element/styles/components/rate.css +33 -0
- package/dist/element/styles/components/result.css +51 -0
- package/dist/element/styles/components/row.css +11 -0
- package/dist/element/styles/components/scrollbar.css +33 -0
- package/dist/element/styles/components/segmented.css +59 -0
- package/dist/element/styles/components/select.css +226 -0
- package/dist/element/styles/components/skeleton.css +65 -0
- package/dist/element/styles/components/slider.css +93 -0
- package/dist/element/styles/components/space.css +19 -0
- package/dist/element/styles/components/statistic.css +33 -0
- package/dist/element/styles/components/steps.css +122 -0
- package/dist/element/styles/components/switch.css +32 -0
- package/dist/element/styles/components/table.css +144 -0
- package/dist/element/styles/components/tabs.css +125 -0
- package/dist/element/styles/components/tag.css +150 -0
- package/dist/element/styles/components/text.css +50 -0
- package/dist/element/styles/components/time-picker.css +106 -0
- package/dist/element/styles/components/timeline.css +58 -0
- package/dist/element/styles/components/tooltip.css +22 -0
- package/dist/element/styles/components/tour.css +58 -0
- package/dist/element/styles/components/transfer.css +181 -0
- package/dist/element/styles/components/tree-select.css +28 -0
- package/dist/element/styles/components/tree.css +66 -0
- package/dist/element/styles/components/upload.css +96 -0
- package/dist/element/styles/components/virtualized.css +75 -0
- package/dist/element/styles/components/watermark.css +20 -0
- package/dist/element/styles/dark.css +82 -0
- package/dist/element/styles/index.css +107 -0
- package/package.json +78 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alert 警告提示 - Semi Design 风格
|
|
3
|
+
*
|
|
4
|
+
* 无感映射:
|
|
5
|
+
* ┌────────────────────────────────┬──────────────────────────────────────┐
|
|
6
|
+
* │ Ant Design Vue API │ Semi Design 风格 │
|
|
7
|
+
* ├────────────────────────────────┼──────────────────────────────────────┤
|
|
8
|
+
* │ type="info" │ 蓝色背景 Light 风格 │
|
|
9
|
+
* │ type="success" │ 绿色背景 Light 风格 │
|
|
10
|
+
* │ type="warning" │ 橙色背景 Light 风格 │
|
|
11
|
+
* │ type="error" │ 红色背景 Light 风格 │
|
|
12
|
+
* └────────────────────────────────┴──────────────────────────────────────┘
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/* ========== 基础样式 ========== */
|
|
16
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert {
|
|
17
|
+
border: none;
|
|
18
|
+
border-radius: var(--semi-border-radius-medium);
|
|
19
|
+
padding: 12px 16px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* ========== type="info" ========== */
|
|
23
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-info {
|
|
24
|
+
background: var(--semi-color-primary-light-default);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-info .ant-alert-icon {
|
|
28
|
+
color: var(--semi-color-primary);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-info .ant-alert-message {
|
|
32
|
+
color: var(--semi-color-primary);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-info .ant-alert-description {
|
|
36
|
+
color: var(--semi-color-text-1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* ========== type="success" ========== */
|
|
40
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-success {
|
|
41
|
+
background: var(--semi-color-success-light-default);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-success .ant-alert-icon {
|
|
45
|
+
color: var(--semi-color-success);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-success .ant-alert-message {
|
|
49
|
+
color: var(--semi-color-success);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-success .ant-alert-description {
|
|
53
|
+
color: var(--semi-color-text-1);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ========== type="warning" ========== */
|
|
57
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-warning {
|
|
58
|
+
background: var(--semi-color-warning-light-default);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-warning .ant-alert-icon {
|
|
62
|
+
color: var(--semi-color-warning);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-warning .ant-alert-message {
|
|
66
|
+
color: var(--semi-color-warning);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-warning .ant-alert-description {
|
|
70
|
+
color: var(--semi-color-text-1);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* ========== type="error" ========== */
|
|
74
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-error {
|
|
75
|
+
background: var(--semi-color-danger-light-default);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-error .ant-alert-icon {
|
|
79
|
+
color: var(--semi-color-danger);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-error .ant-alert-message {
|
|
83
|
+
color: var(--semi-color-danger);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-error .ant-alert-description {
|
|
87
|
+
color: var(--semi-color-text-1);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* ========== 关闭按钮 ========== */
|
|
91
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-close-icon {
|
|
92
|
+
color: var(--semi-color-text-2);
|
|
93
|
+
transition: color var(--semi-transition-duration) var(--semi-transition-timing);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-close-icon:hover {
|
|
97
|
+
color: var(--semi-color-text-0);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* ========== 带图标 ========== */
|
|
101
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-with-description .ant-alert-icon {
|
|
102
|
+
font-size: 24px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* ========== Banner 模式 ========== */
|
|
106
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-banner {
|
|
107
|
+
border-radius: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* ========== 扩展:data-theme="solid" ========== */
|
|
111
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-info[data-theme="solid"] {
|
|
112
|
+
background: var(--semi-color-primary);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-info[data-theme="solid"] .ant-alert-icon,
|
|
116
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-info[data-theme="solid"] .ant-alert-message,
|
|
117
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-info[data-theme="solid"] .ant-alert-description {
|
|
118
|
+
color: #fff;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-success[data-theme="solid"] {
|
|
122
|
+
background: var(--semi-color-success);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-success[data-theme="solid"] .ant-alert-icon,
|
|
126
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-success[data-theme="solid"] .ant-alert-message,
|
|
127
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-success[data-theme="solid"] .ant-alert-description {
|
|
128
|
+
color: #fff;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-warning[data-theme="solid"] {
|
|
132
|
+
background: var(--semi-color-warning);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-warning[data-theme="solid"] .ant-alert-icon,
|
|
136
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-warning[data-theme="solid"] .ant-alert-message,
|
|
137
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-warning[data-theme="solid"] .ant-alert-description {
|
|
138
|
+
color: #fff;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-error[data-theme="solid"] {
|
|
142
|
+
background: var(--semi-color-danger);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-error[data-theme="solid"] .ant-alert-icon,
|
|
146
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-error[data-theme="solid"] .ant-alert-message,
|
|
147
|
+
.semi:where([data-semi="all"], [data-semi-alert]) .ant-alert-error[data-theme="solid"] .ant-alert-description {
|
|
148
|
+
color: #fff;
|
|
149
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Anchor 锚点 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-anchor]) .ant-anchor {
|
|
6
|
+
font-size: var(--semi-font-size-regular);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.semi:where([data-semi="all"], [data-semi-anchor]) .ant-anchor-ink {
|
|
10
|
+
background: var(--semi-color-primary);
|
|
11
|
+
width: 2px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.semi:where([data-semi="all"], [data-semi-anchor]) .ant-anchor-link {
|
|
15
|
+
padding: 4px 0 4px 16px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.semi:where([data-semi="all"], [data-semi-anchor]) .ant-anchor-link-title {
|
|
19
|
+
color: var(--semi-color-text-1);
|
|
20
|
+
transition: color var(--semi-transition-duration) var(--semi-transition-timing);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.semi:where([data-semi="all"], [data-semi-anchor]) .ant-anchor-link-title:hover {
|
|
24
|
+
color: var(--semi-color-primary);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.semi:where([data-semi="all"], [data-semi-anchor]) .ant-anchor-link-active > .ant-anchor-link-title {
|
|
28
|
+
color: var(--semi-color-primary);
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* 水平锚点 */
|
|
33
|
+
.semi:where([data-semi="all"], [data-semi-anchor]) .ant-anchor-horizontal .ant-anchor-ink {
|
|
34
|
+
height: 2px;
|
|
35
|
+
width: auto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.semi:where([data-semi="all"], [data-semi-anchor]) .ant-anchor-horizontal .ant-anchor-link {
|
|
39
|
+
padding: 8px 16px;
|
|
40
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AutoComplete 自动完成 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-autocomplete]) .ant-select-auto-complete .ant-select-selector {
|
|
6
|
+
background-color: var(--semi-color-fill-0);
|
|
7
|
+
border: 1px solid transparent;
|
|
8
|
+
border-radius: var(--semi-border-radius-small);
|
|
9
|
+
box-shadow: none;
|
|
10
|
+
transition: all var(--semi-transition-duration) var(--semi-transition-timing);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.semi:where([data-semi="all"], [data-semi-autocomplete]) .ant-select-auto-complete .ant-select-selector:hover {
|
|
14
|
+
background-color: var(--semi-color-fill-1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.semi:where([data-semi="all"], [data-semi-autocomplete]) .ant-select-auto-complete.ant-select-focused .ant-select-selector {
|
|
18
|
+
background-color: var(--semi-color-fill-0);
|
|
19
|
+
border-color: var(--semi-color-focus-border);
|
|
20
|
+
box-shadow: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.semi:where([data-semi="all"], [data-semi-autocomplete]) .ant-select-auto-complete .ant-select-selection-search-input {
|
|
24
|
+
color: var(--semi-color-text-0);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.semi:where([data-semi="all"], [data-semi-autocomplete]) .ant-select-auto-complete .ant-select-selection-placeholder {
|
|
28
|
+
color: var(--semi-color-text-2);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* 下拉面板 */
|
|
32
|
+
body.semi .ant-select-auto-complete .ant-select-dropdown {
|
|
33
|
+
background: #fff;
|
|
34
|
+
border: none;
|
|
35
|
+
border-radius: var(--semi-border-radius-medium);
|
|
36
|
+
box-shadow: var(--semi-shadow-elevated);
|
|
37
|
+
padding: 4px 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
body.semi .ant-select-auto-complete .ant-select-item {
|
|
41
|
+
border-radius: 0;
|
|
42
|
+
color: var(--semi-color-text-0);
|
|
43
|
+
font-size: var(--semi-font-size-regular);
|
|
44
|
+
min-height: 36px;
|
|
45
|
+
padding: 8px 16px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
body.semi .ant-select-auto-complete .ant-select-item-option-active {
|
|
49
|
+
background-color: var(--semi-color-fill-0);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
body.semi .ant-select-auto-complete .ant-select-item-option-selected {
|
|
53
|
+
background-color: var(--semi-color-primary-light-default);
|
|
54
|
+
color: var(--semi-color-primary);
|
|
55
|
+
font-weight: 500;
|
|
56
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar 头像 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-avatar]) .ant-avatar {
|
|
6
|
+
background: var(--semi-color-fill-1);
|
|
7
|
+
color: var(--semi-color-text-1);
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
border-radius: 3px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* 尺寸对应圆角 */
|
|
13
|
+
.semi:where([data-semi="all"], [data-semi-avatar]) .ant-avatar-lg {
|
|
14
|
+
border-radius: 6px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.semi:where([data-semi="all"], [data-semi-avatar]) .ant-avatar-circle {
|
|
18
|
+
border-radius: var(--semi-border-radius-full);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.semi:where([data-semi="all"], [data-semi-avatar]) .ant-avatar-icon {
|
|
22
|
+
font-size: 18px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* 头像组 */
|
|
26
|
+
.semi:where([data-semi="all"], [data-semi-avatar]) .ant-avatar-group .ant-avatar {
|
|
27
|
+
border: 2px solid var(--semi-color-bg-0);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.semi:where([data-semi="all"], [data-semi-avatar]) .ant-avatar-group .ant-avatar:not(:first-child) {
|
|
31
|
+
margin-inline-start: -8px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* 字号 */
|
|
35
|
+
.semi:where([data-semi="all"], [data-semi-avatar]) .ant-avatar-sm {
|
|
36
|
+
font-size: 12px;
|
|
37
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BackTop 回到顶部 / FloatButton 悬浮按钮 - Semi Design 风格
|
|
3
|
+
* Portal 组件 - 渲染在 body 下
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* BackTop (旧版 API,内部渲染在 body 下) */
|
|
7
|
+
body.semi .ant-back-top,
|
|
8
|
+
.semi .ant-back-top {
|
|
9
|
+
right: 24px;
|
|
10
|
+
bottom: 24px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
body.semi .ant-back-top-content,
|
|
14
|
+
.semi .ant-back-top-content {
|
|
15
|
+
background: var(--semi-color-bg-0);
|
|
16
|
+
border-radius: var(--semi-border-radius-full);
|
|
17
|
+
box-shadow: var(--semi-shadow-elevated);
|
|
18
|
+
width: 40px;
|
|
19
|
+
height: 40px;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
transition: all var(--semi-transition-duration) var(--semi-transition-timing);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
body.semi .ant-back-top-content:hover,
|
|
27
|
+
.semi .ant-back-top-content:hover {
|
|
28
|
+
background: var(--semi-color-fill-0);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
body.semi .ant-back-top-icon,
|
|
32
|
+
.semi .ant-back-top-icon {
|
|
33
|
+
color: var(--semi-color-text-1);
|
|
34
|
+
font-size: 16px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Float Button 悬浮按钮 */
|
|
38
|
+
body.semi .ant-float-btn,
|
|
39
|
+
.semi .ant-float-btn {
|
|
40
|
+
background: var(--semi-color-bg-0);
|
|
41
|
+
box-shadow: var(--semi-shadow-elevated);
|
|
42
|
+
transition: all var(--semi-transition-duration) var(--semi-transition-timing);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
body.semi .ant-float-btn:hover,
|
|
46
|
+
.semi .ant-float-btn:hover {
|
|
47
|
+
background: var(--semi-color-fill-0);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
body.semi .ant-float-btn-body,
|
|
51
|
+
.semi .ant-float-btn-body {
|
|
52
|
+
background: transparent;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
body.semi .ant-float-btn-icon,
|
|
56
|
+
.semi .ant-float-btn-icon {
|
|
57
|
+
color: var(--semi-color-text-1);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
body.semi .ant-float-btn-description,
|
|
61
|
+
.semi .ant-float-btn-description {
|
|
62
|
+
color: var(--semi-color-text-1);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* 主按钮 */
|
|
66
|
+
body.semi .ant-float-btn-primary,
|
|
67
|
+
.semi .ant-float-btn-primary {
|
|
68
|
+
background: var(--semi-color-primary);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
body.semi .ant-float-btn-primary:hover,
|
|
72
|
+
.semi .ant-float-btn-primary:hover {
|
|
73
|
+
background: var(--semi-color-primary-hover);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
body.semi .ant-float-btn-primary .ant-float-btn-icon,
|
|
77
|
+
body.semi .ant-float-btn-primary .ant-float-btn-description,
|
|
78
|
+
.semi .ant-float-btn-primary .ant-float-btn-icon,
|
|
79
|
+
.semi .ant-float-btn-primary .ant-float-btn-description {
|
|
80
|
+
color: #fff;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* 按钮组 */
|
|
84
|
+
body.semi .ant-float-btn-group,
|
|
85
|
+
.semi .ant-float-btn-group {
|
|
86
|
+
box-shadow: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
body.semi .ant-float-btn-group .ant-float-btn,
|
|
90
|
+
.semi .ant-float-btn-group .ant-float-btn {
|
|
91
|
+
box-shadow: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
body.semi .ant-float-btn-group-wrap,
|
|
95
|
+
.semi .ant-float-btn-group-wrap {
|
|
96
|
+
background: var(--semi-color-bg-0);
|
|
97
|
+
border-radius: var(--semi-border-radius-medium);
|
|
98
|
+
box-shadow: var(--semi-shadow-elevated);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* 徽标 */
|
|
102
|
+
body.semi .ant-float-btn .ant-badge-count,
|
|
103
|
+
.semi .ant-float-btn .ant-badge-count {
|
|
104
|
+
background: var(--semi-color-danger);
|
|
105
|
+
box-shadow: 0 0 0 2px var(--semi-color-bg-0);
|
|
106
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Badge 徽标 - Semi Design 风格
|
|
3
|
+
* 参考 semi-foundation/badge/variables.scss
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.semi:where([data-semi="all"], [data-semi-badge]) .ant-badge-count {
|
|
7
|
+
background: var(--semi-color-danger);
|
|
8
|
+
border-radius: var(--semi-border-radius-circle, 9px);
|
|
9
|
+
border: 1px solid var(--semi-color-bg-1);
|
|
10
|
+
box-shadow: none;
|
|
11
|
+
color: #fff;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
height: 18px;
|
|
15
|
+
min-width: 18px;
|
|
16
|
+
line-height: 16px;
|
|
17
|
+
padding: 0 4px;
|
|
18
|
+
z-index: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* 多位数时调整圆角 */
|
|
22
|
+
.semi:where([data-semi="all"], [data-semi-badge]) .ant-badge-multiple-words .ant-badge-count,
|
|
23
|
+
.semi:where([data-semi="all"], [data-semi-badge]) .ant-badge-count-multiple-words {
|
|
24
|
+
border-radius: 9px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.semi:where([data-semi="all"], [data-semi-badge]) .ant-badge-dot {
|
|
28
|
+
background: var(--semi-color-danger);
|
|
29
|
+
border: none;
|
|
30
|
+
box-shadow: none;
|
|
31
|
+
width: 8px;
|
|
32
|
+
height: 8px;
|
|
33
|
+
border-radius: var(--semi-border-radius-circle, 50%);
|
|
34
|
+
z-index: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* 状态点 */
|
|
38
|
+
.semi:where([data-semi="all"], [data-semi-badge]) .ant-badge-status-dot {
|
|
39
|
+
width: 8px;
|
|
40
|
+
height: 8px;
|
|
41
|
+
border-radius: var(--semi-border-radius-circle, 50%);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.semi:where([data-semi="all"], [data-semi-badge]) .ant-badge-status-success {
|
|
45
|
+
background: var(--semi-color-success);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.semi:where([data-semi="all"], [data-semi-badge]) .ant-badge-status-processing {
|
|
49
|
+
background: var(--semi-color-primary);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.semi:where([data-semi="all"], [data-semi-badge]) .ant-badge-status-error {
|
|
53
|
+
background: var(--semi-color-danger);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.semi:where([data-semi="all"], [data-semi-badge]) .ant-badge-status-warning {
|
|
57
|
+
background: var(--semi-color-warning);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.semi:where([data-semi="all"], [data-semi-badge]) .ant-badge-status-default {
|
|
61
|
+
background: var(--semi-color-text-2);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.semi:where([data-semi="all"], [data-semi-badge]) .ant-badge-status-text {
|
|
65
|
+
color: var(--semi-color-text-0);
|
|
66
|
+
font-size: var(--semi-font-size-regular);
|
|
67
|
+
margin-inline-start: 8px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* 缎带 */
|
|
71
|
+
.semi:where([data-semi="all"], [data-semi-badge]) .ant-ribbon {
|
|
72
|
+
background: var(--semi-color-primary);
|
|
73
|
+
border-radius: 0 0 var(--semi-border-radius-small) 0;
|
|
74
|
+
font-size: var(--semi-font-size-small);
|
|
75
|
+
padding: 0 8px;
|
|
76
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breadcrumb 面包屑 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-breadcrumb]) .ant-breadcrumb {
|
|
6
|
+
font-size: var(--semi-font-size-regular);
|
|
7
|
+
color: var(--semi-color-text-2);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.semi:where([data-semi="all"], [data-semi-breadcrumb]) .ant-breadcrumb-link {
|
|
11
|
+
color: var(--semi-color-text-2);
|
|
12
|
+
transition: color var(--semi-transition-duration) var(--semi-transition-timing);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.semi:where([data-semi="all"], [data-semi-breadcrumb]) .ant-breadcrumb-link:hover {
|
|
16
|
+
color: var(--semi-color-primary);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.semi:where([data-semi="all"], [data-semi-breadcrumb]) .ant-breadcrumb a {
|
|
20
|
+
color: var(--semi-color-text-2);
|
|
21
|
+
transition: color var(--semi-transition-duration) var(--semi-transition-timing);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.semi:where([data-semi="all"], [data-semi-breadcrumb]) .ant-breadcrumb a:hover {
|
|
25
|
+
color: var(--semi-color-primary);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.semi:where([data-semi="all"], [data-semi-breadcrumb]) .ant-breadcrumb-separator {
|
|
29
|
+
color: var(--semi-color-text-3);
|
|
30
|
+
margin: 0 8px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.semi:where([data-semi="all"], [data-semi-breadcrumb]) .ant-breadcrumb > span:last-child .ant-breadcrumb-link,
|
|
34
|
+
.semi:where([data-semi="all"], [data-semi-breadcrumb]) .ant-breadcrumb-item:last-child {
|
|
35
|
+
color: var(--semi-color-text-0);
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
}
|