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,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List 列表 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list {
|
|
6
|
+
color: var(--semi-color-text-0);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* 列表项 */
|
|
10
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-item {
|
|
11
|
+
border-bottom: 1px solid var(--semi-color-border);
|
|
12
|
+
padding: 12px 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-item:last-child {
|
|
16
|
+
border-bottom: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* 列表项内容 */
|
|
20
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-item-meta-title {
|
|
21
|
+
color: var(--semi-color-text-0);
|
|
22
|
+
font-weight: 500;
|
|
23
|
+
margin-bottom: 4px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-item-meta-title > a {
|
|
27
|
+
color: var(--semi-color-text-0);
|
|
28
|
+
transition: color var(--semi-transition-duration) var(--semi-transition-timing);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-item-meta-title > a:hover {
|
|
32
|
+
color: var(--semi-color-primary);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-item-meta-description {
|
|
36
|
+
color: var(--semi-color-text-2);
|
|
37
|
+
font-size: var(--semi-font-size-regular);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* 操作区 */
|
|
41
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-item-action {
|
|
42
|
+
margin-inline-start: 24px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-item-action > li {
|
|
46
|
+
color: var(--semi-color-text-2);
|
|
47
|
+
padding: 0 8px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-item-action > li:hover {
|
|
51
|
+
color: var(--semi-color-primary);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-item-action-split {
|
|
55
|
+
background: var(--semi-color-border);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* 头部和底部 */
|
|
59
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-header {
|
|
60
|
+
border-bottom: 1px solid var(--semi-color-border);
|
|
61
|
+
padding: 12px 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-footer {
|
|
65
|
+
border-top: 1px solid var(--semi-color-border);
|
|
66
|
+
padding: 12px 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* 加载更多 */
|
|
70
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-load-more {
|
|
71
|
+
text-align: center;
|
|
72
|
+
padding: 12px 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* 边框模式 */
|
|
76
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-bordered {
|
|
77
|
+
border: 1px solid var(--semi-color-border);
|
|
78
|
+
border-radius: var(--semi-border-radius-medium);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-bordered .ant-list-item {
|
|
82
|
+
padding: 12px 16px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* 分割线模式 */
|
|
86
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-split .ant-list-item {
|
|
87
|
+
border-bottom: 1px solid var(--semi-color-border);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* 网格模式 */
|
|
91
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-grid .ant-list-item {
|
|
92
|
+
border-bottom: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* 尺寸 */
|
|
96
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-sm .ant-list-item {
|
|
97
|
+
padding: 8px 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-lg .ant-list-item {
|
|
101
|
+
padding: 16px 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* 空状态 */
|
|
105
|
+
.semi:where([data-semi="all"], [data-semi-list]) .ant-list-empty-text {
|
|
106
|
+
color: var(--semi-color-text-2);
|
|
107
|
+
padding: 32px 0;
|
|
108
|
+
text-align: center;
|
|
109
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mentions 提及 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-mentions]) .ant-mentions {
|
|
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-mentions]) .ant-mentions:hover {
|
|
14
|
+
background-color: var(--semi-color-fill-1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.semi:where([data-semi="all"], [data-semi-mentions]) .ant-mentions-focused {
|
|
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-mentions]) .ant-mentions > textarea {
|
|
24
|
+
color: var(--semi-color-text-0);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.semi:where([data-semi="all"], [data-semi-mentions]) .ant-mentions > textarea::placeholder {
|
|
28
|
+
color: var(--semi-color-text-2);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* 下拉面板 */
|
|
32
|
+
body.semi .ant-mentions-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-mentions-dropdown-menu-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-mentions-dropdown-menu-item:hover {
|
|
49
|
+
background-color: var(--semi-color-fill-0);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
body.semi .ant-mentions-dropdown-menu-item-active {
|
|
53
|
+
background-color: var(--semi-color-fill-0);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
body.semi .ant-mentions-dropdown-menu-item-selected {
|
|
57
|
+
background-color: var(--semi-color-primary-light-default);
|
|
58
|
+
color: var(--semi-color-primary);
|
|
59
|
+
font-weight: 500;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
body.semi .ant-mentions-dropdown-menu-item-disabled {
|
|
63
|
+
color: var(--semi-color-disabled-text);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* 状态 */
|
|
67
|
+
.semi:where([data-semi="all"], [data-semi-mentions]) .ant-mentions-status-error {
|
|
68
|
+
border-color: var(--semi-color-danger);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.semi:where([data-semi="all"], [data-semi-mentions]) .ant-mentions-status-warning {
|
|
72
|
+
border-color: var(--semi-color-warning);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* 禁用状态 */
|
|
76
|
+
.semi:where([data-semi="all"], [data-semi-mentions]) .ant-mentions-disabled {
|
|
77
|
+
background-color: var(--semi-color-disabled-fill);
|
|
78
|
+
color: var(--semi-color-disabled-text);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* 加载状态 */
|
|
82
|
+
body.semi .ant-mentions-dropdown-menu-item-loading {
|
|
83
|
+
color: var(--semi-color-primary);
|
|
84
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Menu 菜单 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu {
|
|
6
|
+
background: transparent;
|
|
7
|
+
color: var(--semi-color-text-0);
|
|
8
|
+
font-size: var(--semi-font-size-regular);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* 菜单项 */
|
|
12
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-item {
|
|
13
|
+
border-radius: var(--semi-border-radius-small);
|
|
14
|
+
margin: 2px 0;
|
|
15
|
+
transition: all var(--semi-transition-duration) var(--semi-transition-timing);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-item:hover {
|
|
19
|
+
background: var(--semi-color-fill-0);
|
|
20
|
+
color: var(--semi-color-text-0);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-item-selected {
|
|
24
|
+
background: var(--semi-color-primary-light-default);
|
|
25
|
+
color: var(--semi-color-primary);
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-item-selected:hover {
|
|
30
|
+
background: var(--semi-color-primary-light-hover);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* 子菜单 */
|
|
34
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-submenu-title {
|
|
35
|
+
border-radius: var(--semi-border-radius-small);
|
|
36
|
+
margin: 2px 0;
|
|
37
|
+
transition: all var(--semi-transition-duration) var(--semi-transition-timing);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-submenu-title:hover {
|
|
41
|
+
background: var(--semi-color-fill-0);
|
|
42
|
+
color: var(--semi-color-text-0);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-submenu-selected > .ant-menu-submenu-title {
|
|
46
|
+
color: var(--semi-color-primary);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* 展开图标 */
|
|
50
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-submenu-arrow {
|
|
51
|
+
color: var(--semi-color-text-2);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* 分组标题 */
|
|
55
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-item-group-title {
|
|
56
|
+
color: var(--semi-color-text-2);
|
|
57
|
+
font-size: var(--semi-font-size-small);
|
|
58
|
+
padding: 8px 16px 4px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* 分割线 */
|
|
62
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-item-divider {
|
|
63
|
+
background: var(--semi-color-border);
|
|
64
|
+
margin: 4px 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* 禁用状态 */
|
|
68
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-item-disabled {
|
|
69
|
+
color: var(--semi-color-disabled-text);
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* 水平菜单 */
|
|
74
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-horizontal {
|
|
75
|
+
border-bottom: 1px solid var(--semi-color-border);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-horizontal > .ant-menu-item,
|
|
79
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-horizontal > .ant-menu-submenu {
|
|
80
|
+
border-bottom: 2px solid transparent;
|
|
81
|
+
margin: 0;
|
|
82
|
+
padding: 0 16px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-horizontal > .ant-menu-item:hover,
|
|
86
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-horizontal > .ant-menu-submenu:hover {
|
|
87
|
+
background: transparent;
|
|
88
|
+
color: var(--semi-color-primary);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-horizontal > .ant-menu-item-selected,
|
|
92
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-horizontal > .ant-menu-submenu-selected {
|
|
93
|
+
background: transparent;
|
|
94
|
+
border-bottom-color: var(--semi-color-primary);
|
|
95
|
+
color: var(--semi-color-primary);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* 内联菜单 */
|
|
99
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-inline .ant-menu-item,
|
|
100
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-inline .ant-menu-submenu-title {
|
|
101
|
+
padding: 0 16px;
|
|
102
|
+
height: 40px;
|
|
103
|
+
line-height: 40px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-inline .ant-menu-sub.ant-menu-inline {
|
|
107
|
+
background: transparent;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* 暗色模式 */
|
|
111
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-dark {
|
|
112
|
+
background: var(--semi-color-bg-1);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-dark .ant-menu-item:hover {
|
|
116
|
+
background: var(--semi-color-fill-1);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.semi:where([data-semi="all"], [data-semi-menu]) .ant-menu-dark .ant-menu-item-selected {
|
|
120
|
+
background: var(--semi-color-primary);
|
|
121
|
+
color: #fff;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* ==========================================================================
|
|
125
|
+
弹出子菜单 (Portal 组件 - 渲染在 body 下)
|
|
126
|
+
========================================================================== */
|
|
127
|
+
|
|
128
|
+
body.semi .ant-menu-submenu-popup,
|
|
129
|
+
.semi .ant-menu-submenu-popup {
|
|
130
|
+
z-index: 1050;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
body.semi .ant-menu-submenu-popup > .ant-menu,
|
|
134
|
+
.semi .ant-menu-submenu-popup > .ant-menu {
|
|
135
|
+
background: var(--semi-color-bg-0);
|
|
136
|
+
border-radius: var(--semi-border-radius-medium);
|
|
137
|
+
box-shadow: var(--semi-shadow-elevated);
|
|
138
|
+
padding: 4px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
body.semi .ant-menu-submenu-popup .ant-menu-item,
|
|
142
|
+
.semi .ant-menu-submenu-popup .ant-menu-item {
|
|
143
|
+
border-radius: var(--semi-border-radius-small);
|
|
144
|
+
color: var(--semi-color-text-0);
|
|
145
|
+
margin: 2px 4px;
|
|
146
|
+
padding: 8px 12px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
body.semi .ant-menu-submenu-popup .ant-menu-item:hover,
|
|
150
|
+
.semi .ant-menu-submenu-popup .ant-menu-item:hover {
|
|
151
|
+
background: var(--semi-color-fill-0);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
body.semi .ant-menu-submenu-popup .ant-menu-item-selected,
|
|
155
|
+
.semi .ant-menu-submenu-popup .ant-menu-item-selected {
|
|
156
|
+
background: var(--semi-color-primary-light-default);
|
|
157
|
+
color: var(--semi-color-primary);
|
|
158
|
+
font-weight: 500;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
body.semi .ant-menu-submenu-popup .ant-menu-submenu-title,
|
|
162
|
+
.semi .ant-menu-submenu-popup .ant-menu-submenu-title {
|
|
163
|
+
border-radius: var(--semi-border-radius-small);
|
|
164
|
+
color: var(--semi-color-text-0);
|
|
165
|
+
margin: 2px 4px;
|
|
166
|
+
padding: 8px 12px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
body.semi .ant-menu-submenu-popup .ant-menu-submenu-title:hover,
|
|
170
|
+
.semi .ant-menu-submenu-popup .ant-menu-submenu-title:hover {
|
|
171
|
+
background: var(--semi-color-fill-0);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
body.semi .ant-menu-submenu-popup .ant-menu-item-divider,
|
|
175
|
+
.semi .ant-menu-submenu-popup .ant-menu-item-divider {
|
|
176
|
+
background: var(--semi-color-border);
|
|
177
|
+
margin: 4px 8px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
body.semi .ant-menu-submenu-popup .ant-menu-item-disabled,
|
|
181
|
+
.semi .ant-menu-submenu-popup .ant-menu-item-disabled {
|
|
182
|
+
color: var(--semi-color-disabled-text);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
body.semi .ant-menu-submenu-popup .ant-menu-item-group-title,
|
|
186
|
+
.semi .ant-menu-submenu-popup .ant-menu-item-group-title {
|
|
187
|
+
color: var(--semi-color-text-2);
|
|
188
|
+
font-size: var(--semi-font-size-small);
|
|
189
|
+
padding: 8px 12px 4px;
|
|
190
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Message 消息提示 - Semi Design 风格
|
|
3
|
+
* Portal 组件 - 渲染在 body 下
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* ========== 消息容器 ========== */
|
|
7
|
+
body.semi .ant-message-notice-content,
|
|
8
|
+
.semi .ant-message-notice-content {
|
|
9
|
+
background: #fff;
|
|
10
|
+
border-radius: var(--semi-border-radius-medium);
|
|
11
|
+
box-shadow: var(--semi-shadow-elevated);
|
|
12
|
+
padding: 10px 16px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* ========== 消息内容 ========== */
|
|
16
|
+
body.semi .ant-message-custom-content,
|
|
17
|
+
.semi .ant-message-custom-content {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 8px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
body.semi .ant-message-custom-content > span:last-child,
|
|
24
|
+
.semi .ant-message-custom-content > span:last-child {
|
|
25
|
+
color: var(--semi-color-text-0);
|
|
26
|
+
font-size: var(--semi-font-size-regular);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* ========== 图标颜色 ========== */
|
|
30
|
+
body.semi .ant-message-info .anticon,
|
|
31
|
+
.semi .ant-message-info .anticon {
|
|
32
|
+
color: var(--semi-color-primary);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body.semi .ant-message-success .anticon,
|
|
36
|
+
.semi .ant-message-success .anticon {
|
|
37
|
+
color: var(--semi-color-success);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
body.semi .ant-message-warning .anticon,
|
|
41
|
+
.semi .ant-message-warning .anticon {
|
|
42
|
+
color: var(--semi-color-warning);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
body.semi .ant-message-error .anticon,
|
|
46
|
+
.semi .ant-message-error .anticon {
|
|
47
|
+
color: var(--semi-color-danger);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
body.semi .ant-message-loading .anticon,
|
|
51
|
+
.semi .ant-message-loading .anticon {
|
|
52
|
+
color: var(--semi-color-primary);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* ========== 动画 ========== */
|
|
56
|
+
body.semi .ant-message-move-up-appear,
|
|
57
|
+
body.semi .ant-message-move-up-enter,
|
|
58
|
+
.semi .ant-message-move-up-appear,
|
|
59
|
+
.semi .ant-message-move-up-enter {
|
|
60
|
+
animation-duration: 0.2s;
|
|
61
|
+
animation-timing-function: var(--semi-transition-timing);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
body.semi .ant-message-move-up-leave,
|
|
65
|
+
.semi .ant-message-move-up-leave {
|
|
66
|
+
animation-duration: 0.15s;
|
|
67
|
+
animation-timing-function: var(--semi-transition-timing);
|
|
68
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modal 对话框 - Semi Design 风格
|
|
3
|
+
* Portal 组件 - 渲染在 body 下
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* ========== 遮罩层 ========== */
|
|
7
|
+
body.semi .ant-modal-mask,
|
|
8
|
+
.semi .ant-modal-mask {
|
|
9
|
+
background: rgba(0, 0, 0, 0.6);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* ========== 对话框容器 ========== */
|
|
13
|
+
body.semi .ant-modal-content,
|
|
14
|
+
.semi .ant-modal-content {
|
|
15
|
+
background: var(--semi-color-bg-0);
|
|
16
|
+
border-radius: var(--semi-border-radius-large);
|
|
17
|
+
box-shadow: var(--semi-shadow-floating);
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* ========== 标题栏 ========== */
|
|
22
|
+
body.semi .ant-modal-header,
|
|
23
|
+
.semi .ant-modal-header {
|
|
24
|
+
background: transparent;
|
|
25
|
+
border-bottom: none;
|
|
26
|
+
padding: 20px 24px 12px;
|
|
27
|
+
margin-bottom: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
body.semi .ant-modal-title,
|
|
31
|
+
.semi .ant-modal-title {
|
|
32
|
+
color: var(--semi-color-text-0);
|
|
33
|
+
font-size: 18px;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
line-height: 1.4;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* ========== 关闭按钮 ========== */
|
|
39
|
+
body.semi .ant-modal-close,
|
|
40
|
+
.semi .ant-modal-close {
|
|
41
|
+
top: 16px;
|
|
42
|
+
inset-inline-end: 16px;
|
|
43
|
+
width: 32px;
|
|
44
|
+
height: 32px;
|
|
45
|
+
border-radius: var(--semi-border-radius-medium);
|
|
46
|
+
transition: background var(--semi-transition-duration) var(--semi-transition-timing);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
body.semi .ant-modal-close:hover,
|
|
50
|
+
.semi .ant-modal-close:hover {
|
|
51
|
+
background: var(--semi-color-fill-0);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
body.semi .ant-modal-close-x,
|
|
55
|
+
.semi .ant-modal-close-x {
|
|
56
|
+
font-size: 16px;
|
|
57
|
+
color: var(--semi-color-text-2);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* ========== 内容区 ========== */
|
|
61
|
+
body.semi .ant-modal-body,
|
|
62
|
+
.semi .ant-modal-body {
|
|
63
|
+
padding: 12px 24px 20px;
|
|
64
|
+
color: var(--semi-color-text-1);
|
|
65
|
+
font-size: var(--semi-font-size-regular);
|
|
66
|
+
line-height: 1.6;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* ========== 底部按钮区 ========== */
|
|
70
|
+
body.semi .ant-modal-footer,
|
|
71
|
+
.semi .ant-modal-footer {
|
|
72
|
+
border-top: none;
|
|
73
|
+
padding: 12px 24px 20px;
|
|
74
|
+
text-align: right;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
body.semi .ant-modal-footer .ant-btn + .ant-btn,
|
|
78
|
+
.semi .ant-modal-footer .ant-btn + .ant-btn {
|
|
79
|
+
margin-inline-start: 8px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* ========== 确认对话框 ========== */
|
|
83
|
+
body.semi .ant-modal-confirm .ant-modal-body,
|
|
84
|
+
.semi .ant-modal-confirm .ant-modal-body {
|
|
85
|
+
padding: 24px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
body.semi .ant-modal-confirm-title,
|
|
89
|
+
.semi .ant-modal-confirm-title {
|
|
90
|
+
color: var(--semi-color-text-0);
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
body.semi .ant-modal-confirm-content,
|
|
95
|
+
.semi .ant-modal-confirm-content {
|
|
96
|
+
color: var(--semi-color-text-1);
|
|
97
|
+
margin-top: 8px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
body.semi .ant-modal-confirm-btns,
|
|
101
|
+
.semi .ant-modal-confirm-btns {
|
|
102
|
+
margin-top: 24px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* ========== 图标 ========== */
|
|
106
|
+
body.semi .ant-modal-confirm-info .anticon,
|
|
107
|
+
.semi .ant-modal-confirm-info .anticon {
|
|
108
|
+
color: var(--semi-color-primary);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
body.semi .ant-modal-confirm-success .anticon,
|
|
112
|
+
.semi .ant-modal-confirm-success .anticon {
|
|
113
|
+
color: var(--semi-color-success);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
body.semi .ant-modal-confirm-warning .anticon,
|
|
117
|
+
.semi .ant-modal-confirm-warning .anticon {
|
|
118
|
+
color: var(--semi-color-warning);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
body.semi .ant-modal-confirm-error .anticon,
|
|
122
|
+
.semi .ant-modal-confirm-error .anticon {
|
|
123
|
+
color: var(--semi-color-danger);
|
|
124
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notification 通知提醒 - Semi Design 风格
|
|
3
|
+
* Portal 组件 - 渲染在 body 下
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* ========== 通知容器 ========== */
|
|
7
|
+
body.semi .ant-notification-notice,
|
|
8
|
+
.semi .ant-notification-notice {
|
|
9
|
+
background: #fff;
|
|
10
|
+
border-radius: var(--semi-border-radius-medium);
|
|
11
|
+
box-shadow: var(--semi-shadow-floating);
|
|
12
|
+
padding: 16px 20px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* ========== 图标 ========== */
|
|
16
|
+
body.semi .ant-notification-notice-icon,
|
|
17
|
+
.semi .ant-notification-notice-icon {
|
|
18
|
+
font-size: 24px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
body.semi .ant-notification-notice-icon-info,
|
|
22
|
+
.semi .ant-notification-notice-icon-info {
|
|
23
|
+
color: var(--semi-color-primary);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
body.semi .ant-notification-notice-icon-success,
|
|
27
|
+
.semi .ant-notification-notice-icon-success {
|
|
28
|
+
color: var(--semi-color-success);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
body.semi .ant-notification-notice-icon-warning,
|
|
32
|
+
.semi .ant-notification-notice-icon-warning {
|
|
33
|
+
color: var(--semi-color-warning);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
body.semi .ant-notification-notice-icon-error,
|
|
37
|
+
.semi .ant-notification-notice-icon-error {
|
|
38
|
+
color: var(--semi-color-danger);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* ========== 标题和内容 ========== */
|
|
42
|
+
body.semi .ant-notification-notice-message,
|
|
43
|
+
.semi .ant-notification-notice-message {
|
|
44
|
+
color: var(--semi-color-text-0);
|
|
45
|
+
font-size: 16px;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
margin-bottom: 4px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
body.semi .ant-notification-notice-description,
|
|
51
|
+
.semi .ant-notification-notice-description {
|
|
52
|
+
color: var(--semi-color-text-1);
|
|
53
|
+
font-size: var(--semi-font-size-regular);
|
|
54
|
+
line-height: 1.6;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* ========== 关闭按钮 ========== */
|
|
58
|
+
body.semi .ant-notification-notice-close,
|
|
59
|
+
.semi .ant-notification-notice-close {
|
|
60
|
+
color: var(--semi-color-text-2);
|
|
61
|
+
top: 16px;
|
|
62
|
+
inset-inline-end: 16px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
body.semi .ant-notification-notice-close:hover,
|
|
66
|
+
.semi .ant-notification-notice-close:hover {
|
|
67
|
+
color: var(--semi-color-text-0);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* ========== 按钮区 ========== */
|
|
71
|
+
body.semi .ant-notification-notice-btn,
|
|
72
|
+
.semi .ant-notification-notice-btn {
|
|
73
|
+
margin-top: 12px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* ========== 动画 ========== */
|
|
77
|
+
body.semi .ant-notification-fade-appear,
|
|
78
|
+
body.semi .ant-notification-fade-enter,
|
|
79
|
+
.semi .ant-notification-fade-appear,
|
|
80
|
+
.semi .ant-notification-fade-enter {
|
|
81
|
+
animation-duration: 0.2s;
|
|
82
|
+
animation-timing-function: var(--semi-transition-timing);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
body.semi .ant-notification-fade-leave,
|
|
86
|
+
.semi .ant-notification-fade-leave {
|
|
87
|
+
animation-duration: 0.15s;
|
|
88
|
+
animation-timing-function: var(--semi-transition-timing);
|
|
89
|
+
}
|