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,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PageHeader 页头 - Semi Design 风格
|
|
3
|
+
* 注:Ant Design Vue 4.x 已将 PageHeader 移至 @ant-design/pro-components
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.semi:where([data-semi="all"], [data-semi-pageheader]) .ant-page-header {
|
|
7
|
+
padding: 16px 24px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.semi:where([data-semi="all"], [data-semi-pageheader]) .ant-page-header-heading {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.semi:where([data-semi="all"], [data-semi-pageheader]) .ant-page-header-back {
|
|
16
|
+
margin-right: 16px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.semi:where([data-semi="all"], [data-semi-pageheader]) .ant-page-header-back-button {
|
|
20
|
+
color: var(--semi-color-text-2);
|
|
21
|
+
font-size: 16px;
|
|
22
|
+
transition: color var(--semi-transition-duration) var(--semi-transition-timing);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.semi:where([data-semi="all"], [data-semi-pageheader]) .ant-page-header-back-button:hover {
|
|
26
|
+
color: var(--semi-color-primary);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.semi:where([data-semi="all"], [data-semi-pageheader]) .ant-page-header-heading-title {
|
|
30
|
+
color: var(--semi-color-text-0);
|
|
31
|
+
font-size: 20px;
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
line-height: 32px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.semi:where([data-semi="all"], [data-semi-pageheader]) .ant-page-header-heading-sub-title {
|
|
37
|
+
color: var(--semi-color-text-2);
|
|
38
|
+
font-size: var(--semi-font-size-regular);
|
|
39
|
+
margin-left: 12px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.semi:where([data-semi="all"], [data-semi-pageheader]) .ant-page-header-heading-extra {
|
|
43
|
+
margin-left: auto;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.semi:where([data-semi="all"], [data-semi-pageheader]) .ant-page-header-content {
|
|
47
|
+
padding-top: 12px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.semi:where([data-semi="all"], [data-semi-pageheader]) .ant-page-header-footer {
|
|
51
|
+
margin-top: 16px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* 带有背景 */
|
|
55
|
+
.semi:where([data-semi="all"], [data-semi-pageheader]) .ant-page-header-ghost {
|
|
56
|
+
background: transparent;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.semi:where([data-semi="all"], [data-semi-pageheader]) .ant-page-header:not(.ant-page-header-ghost) {
|
|
60
|
+
background: #fff;
|
|
61
|
+
border-radius: var(--semi-border-radius-small);
|
|
62
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pagination 分页 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination {
|
|
6
|
+
color: var(--semi-color-text-0);
|
|
7
|
+
font-size: var(--semi-font-size-regular);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* 分页项 */
|
|
11
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-item {
|
|
12
|
+
background: transparent;
|
|
13
|
+
border: none;
|
|
14
|
+
border-radius: var(--semi-border-radius-medium);
|
|
15
|
+
min-width: 32px;
|
|
16
|
+
height: 32px;
|
|
17
|
+
line-height: 32px;
|
|
18
|
+
transition: all var(--semi-transition-duration) var(--semi-transition-timing);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-item a {
|
|
22
|
+
color: var(--semi-color-text-0);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-item:hover {
|
|
26
|
+
background: var(--semi-color-fill-0);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-item:hover a {
|
|
30
|
+
color: var(--semi-color-text-0);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-item-active {
|
|
34
|
+
background: var(--semi-color-primary);
|
|
35
|
+
border: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-item-active a {
|
|
39
|
+
color: #fff;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-item-active:hover {
|
|
43
|
+
background: var(--semi-color-primary-hover);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-item-active:hover a {
|
|
47
|
+
color: #fff;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* 上一页/下一页 */
|
|
51
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-prev,
|
|
52
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-next {
|
|
53
|
+
border: none;
|
|
54
|
+
border-radius: var(--semi-border-radius-medium);
|
|
55
|
+
min-width: 32px;
|
|
56
|
+
height: 32px;
|
|
57
|
+
line-height: 32px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-prev:hover,
|
|
61
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-next:hover {
|
|
62
|
+
background: var(--semi-color-fill-0);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-prev button,
|
|
66
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-next button {
|
|
67
|
+
color: var(--semi-color-text-1);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-disabled button {
|
|
71
|
+
color: var(--semi-color-text-3);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* 省略号 */
|
|
75
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-jump-prev,
|
|
76
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-jump-next {
|
|
77
|
+
color: var(--semi-color-text-2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-jump-prev:hover .ant-pagination-item-link-icon,
|
|
81
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-jump-next:hover .ant-pagination-item-link-icon {
|
|
82
|
+
color: var(--semi-color-primary);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* 总数 */
|
|
86
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-total-text {
|
|
87
|
+
color: var(--semi-color-text-2);
|
|
88
|
+
margin-inline-end: 8px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* 快速跳转 */
|
|
92
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-options-quick-jumper {
|
|
93
|
+
color: var(--semi-color-text-0);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-options-quick-jumper input {
|
|
97
|
+
background: var(--semi-color-fill-0);
|
|
98
|
+
border-color: transparent;
|
|
99
|
+
border-radius: var(--semi-border-radius-medium);
|
|
100
|
+
width: 50px;
|
|
101
|
+
height: 32px;
|
|
102
|
+
margin: 0 8px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-options-quick-jumper input:hover {
|
|
106
|
+
background: var(--semi-color-fill-1);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-options-quick-jumper input:focus {
|
|
110
|
+
background: var(--semi-color-fill-0);
|
|
111
|
+
border-color: var(--semi-color-focus-border);
|
|
112
|
+
box-shadow: none;
|
|
113
|
+
outline: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* 尺寸选择 */
|
|
117
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-options-size-changer {
|
|
118
|
+
margin-inline-start: 8px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* 简洁模式 */
|
|
122
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-simple .ant-pagination-simple-pager {
|
|
123
|
+
color: var(--semi-color-text-0);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-simple .ant-pagination-simple-pager input {
|
|
127
|
+
background: var(--semi-color-fill-0);
|
|
128
|
+
border-color: transparent;
|
|
129
|
+
border-radius: var(--semi-border-radius-medium);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* 小尺寸 */
|
|
133
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-mini .ant-pagination-item,
|
|
134
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-mini .ant-pagination-prev,
|
|
135
|
+
.semi:where([data-semi="all"], [data-semi-pagination]) .ant-pagination-mini .ant-pagination-next {
|
|
136
|
+
min-width: 24px;
|
|
137
|
+
height: 24px;
|
|
138
|
+
line-height: 24px;
|
|
139
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Popconfirm 气泡确认框 - Semi Design 风格
|
|
3
|
+
* Portal 组件 - 渲染在 body 下
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
body.semi .ant-popconfirm,
|
|
7
|
+
.semi .ant-popconfirm {
|
|
8
|
+
font-size: var(--semi-font-size-regular);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
body.semi .ant-popconfirm .ant-popover-inner,
|
|
12
|
+
.semi .ant-popconfirm .ant-popover-inner {
|
|
13
|
+
background: var(--semi-color-bg-0);
|
|
14
|
+
border-radius: var(--semi-border-radius-medium);
|
|
15
|
+
box-shadow: var(--semi-shadow-elevated);
|
|
16
|
+
padding: 12px 16px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* 图标 */
|
|
20
|
+
body.semi .ant-popconfirm-icon,
|
|
21
|
+
.semi .ant-popconfirm-icon {
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
margin-inline-end: 8px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
body.semi .ant-popconfirm-icon > .anticon,
|
|
27
|
+
.semi .ant-popconfirm-icon > .anticon {
|
|
28
|
+
color: var(--semi-color-warning);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* 内容 */
|
|
32
|
+
body.semi .ant-popconfirm-message,
|
|
33
|
+
.semi .ant-popconfirm-message {
|
|
34
|
+
color: var(--semi-color-text-0);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
body.semi .ant-popconfirm-title,
|
|
38
|
+
.semi .ant-popconfirm-title {
|
|
39
|
+
font-weight: 500;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
body.semi .ant-popconfirm-description,
|
|
43
|
+
.semi .ant-popconfirm-description {
|
|
44
|
+
color: var(--semi-color-text-1);
|
|
45
|
+
margin-top: 4px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* 按钮 */
|
|
49
|
+
body.semi .ant-popconfirm-buttons,
|
|
50
|
+
.semi .ant-popconfirm-buttons {
|
|
51
|
+
margin-top: 12px;
|
|
52
|
+
text-align: end;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
body.semi .ant-popconfirm-buttons .ant-btn,
|
|
56
|
+
.semi .ant-popconfirm-buttons .ant-btn {
|
|
57
|
+
margin-inline-start: 8px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* 箭头 */
|
|
61
|
+
body.semi .ant-popconfirm .ant-popover-arrow::before,
|
|
62
|
+
.semi .ant-popconfirm .ant-popover-arrow::before {
|
|
63
|
+
background: var(--semi-color-bg-0);
|
|
64
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Popover 气泡卡片 - Semi Design 风格
|
|
3
|
+
* Portal 组件 - 渲染在 body 下
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
body.semi .ant-popover,
|
|
7
|
+
.semi .ant-popover {
|
|
8
|
+
font-size: var(--semi-font-size-regular);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
body.semi .ant-popover-inner,
|
|
12
|
+
.semi .ant-popover-inner {
|
|
13
|
+
background: #fff;
|
|
14
|
+
border-radius: var(--semi-border-radius-medium);
|
|
15
|
+
box-shadow: var(--semi-shadow-elevated);
|
|
16
|
+
padding: 12px 16px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* 标题 */
|
|
20
|
+
body.semi .ant-popover-title,
|
|
21
|
+
.semi .ant-popover-title {
|
|
22
|
+
border-bottom: 1px solid var(--semi-color-border);
|
|
23
|
+
color: var(--semi-color-text-0);
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
margin-bottom: 8px;
|
|
26
|
+
min-width: 177px;
|
|
27
|
+
padding-bottom: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* 内容 */
|
|
31
|
+
body.semi .ant-popover-inner-content,
|
|
32
|
+
.semi .ant-popover-inner-content {
|
|
33
|
+
color: var(--semi-color-text-1);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* 箭头 */
|
|
37
|
+
body.semi .ant-popover-arrow::before,
|
|
38
|
+
.semi .ant-popover-arrow::before {
|
|
39
|
+
background: #fff;
|
|
40
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Progress 进度条 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress {
|
|
6
|
+
color: var(--semi-color-text-0);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* 线形进度条 */
|
|
10
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-line {
|
|
11
|
+
font-size: var(--semi-font-size-regular);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-outer {
|
|
15
|
+
margin-inline-end: 0;
|
|
16
|
+
padding-inline-end: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-inner {
|
|
20
|
+
background: var(--semi-color-fill-0);
|
|
21
|
+
border-radius: 100px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-bg {
|
|
25
|
+
background: var(--semi-color-primary);
|
|
26
|
+
border-radius: 100px;
|
|
27
|
+
transition: all var(--semi-transition-duration) var(--semi-transition-timing);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* 成功状态 */
|
|
31
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-success-bg {
|
|
32
|
+
background: var(--semi-color-success);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-status-success .ant-progress-bg {
|
|
36
|
+
background: var(--semi-color-success);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* 异常状态 */
|
|
40
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-status-exception .ant-progress-bg {
|
|
41
|
+
background: var(--semi-color-danger);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* 激活状态 */
|
|
45
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-status-active .ant-progress-bg::before {
|
|
46
|
+
background: #fff;
|
|
47
|
+
animation: ant-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* 文本 */
|
|
51
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-text {
|
|
52
|
+
color: var(--semi-color-text-1);
|
|
53
|
+
font-size: var(--semi-font-size-regular);
|
|
54
|
+
margin-inline-start: 8px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-status-success .ant-progress-text {
|
|
58
|
+
color: var(--semi-color-success);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-status-exception .ant-progress-text {
|
|
62
|
+
color: var(--semi-color-danger);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* 圆形进度条 */
|
|
66
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-circle .ant-progress-text {
|
|
67
|
+
color: var(--semi-color-text-0);
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-circle-trail {
|
|
72
|
+
stroke: var(--semi-color-fill-0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-circle-path {
|
|
76
|
+
stroke: var(--semi-color-primary);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-status-success .ant-progress-circle-path {
|
|
80
|
+
stroke: var(--semi-color-success);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-status-exception .ant-progress-circle-path {
|
|
84
|
+
stroke: var(--semi-color-danger);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* 仪表盘 */
|
|
88
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-dashboard-trail {
|
|
89
|
+
stroke: var(--semi-color-fill-0);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* 步骤进度条 */
|
|
93
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-steps-item {
|
|
94
|
+
background: var(--semi-color-fill-0);
|
|
95
|
+
border-radius: 2px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-steps-item-active {
|
|
99
|
+
background: var(--semi-color-primary);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* 尺寸 */
|
|
103
|
+
.semi:where([data-semi="all"], [data-semi-progress]) .ant-progress-small .ant-progress-text {
|
|
104
|
+
font-size: var(--semi-font-size-small);
|
|
105
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QRCode 二维码 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-qrcode]) .ant-qrcode {
|
|
6
|
+
background: #fff;
|
|
7
|
+
border: 1px solid var(--semi-color-border);
|
|
8
|
+
border-radius: var(--semi-border-radius-small);
|
|
9
|
+
padding: 12px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.semi:where([data-semi="all"], [data-semi-qrcode]) .ant-qrcode-borderless {
|
|
13
|
+
border: none;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* 过期状态 */
|
|
18
|
+
.semi:where([data-semi="all"], [data-semi-qrcode]) .ant-qrcode-expired {
|
|
19
|
+
position: relative;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.semi:where([data-semi="all"], [data-semi-qrcode]) .ant-qrcode-expired::after {
|
|
23
|
+
content: '';
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
right: 0;
|
|
28
|
+
bottom: 0;
|
|
29
|
+
background: rgba(255, 255, 255, 0.95);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.semi:where([data-semi="all"], [data-semi-qrcode]) .ant-qrcode-mask {
|
|
33
|
+
background: rgba(255, 255, 255, 0.95);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.semi:where([data-semi="all"], [data-semi-qrcode]) .ant-qrcode-expired-text {
|
|
37
|
+
color: var(--semi-color-text-1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* 加载状态 */
|
|
41
|
+
.semi:where([data-semi="all"], [data-semi-qrcode]) .ant-qrcode .ant-spin {
|
|
42
|
+
color: var(--semi-color-primary);
|
|
43
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Radio 单选框 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/* ========== 基础样式 ========== */
|
|
6
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-wrapper {
|
|
7
|
+
color: var(--semi-color-text-0);
|
|
8
|
+
font-size: var(--semi-font-size-regular);
|
|
9
|
+
align-items: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio {
|
|
13
|
+
top: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-inner {
|
|
17
|
+
width: 16px;
|
|
18
|
+
height: 16px;
|
|
19
|
+
border-color: var(--semi-color-text-3);
|
|
20
|
+
background: transparent;
|
|
21
|
+
transition: all var(--semi-transition-duration) var(--semi-transition-timing);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* ========== Hover 状态 ========== */
|
|
25
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-wrapper:hover .ant-radio-inner,
|
|
26
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio:hover .ant-radio-inner {
|
|
27
|
+
border-color: var(--semi-color-focus-border);
|
|
28
|
+
background: var(--semi-color-fill-0);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-wrapper:active .ant-radio-inner,
|
|
32
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio:active .ant-radio-inner {
|
|
33
|
+
background: var(--semi-color-fill-1);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* ========== 选中状态 ========== */
|
|
37
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-checked .ant-radio-inner {
|
|
38
|
+
background: var(--semi-color-primary);
|
|
39
|
+
border-color: var(--semi-color-primary);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-checked .ant-radio-inner::after {
|
|
43
|
+
background: #fff;
|
|
44
|
+
transform: scale(0.5);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-checked:hover .ant-radio-inner {
|
|
48
|
+
background: var(--semi-color-primary-hover);
|
|
49
|
+
border-color: var(--semi-color-primary-hover);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* ========== Focus 状态 ========== */
|
|
53
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-input:focus-visible + .ant-radio-inner {
|
|
54
|
+
outline: 3px solid var(--semi-color-primary-light-default);
|
|
55
|
+
outline-offset: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* ========== 禁用状态 ========== */
|
|
59
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-disabled .ant-radio-inner {
|
|
60
|
+
background: var(--semi-color-disabled-fill);
|
|
61
|
+
border-color: var(--semi-color-border);
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-disabled.ant-radio-checked .ant-radio-inner {
|
|
66
|
+
background: var(--semi-color-primary-disabled);
|
|
67
|
+
border-color: var(--semi-color-primary-disabled);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-disabled.ant-radio-checked .ant-radio-inner::after {
|
|
71
|
+
background: var(--semi-color-bg-0);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-disabled + span {
|
|
75
|
+
color: var(--semi-color-disabled-text);
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-disabled + span {
|
|
80
|
+
color: var(--semi-color-text-3);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* ========== Radio Group ========== */
|
|
84
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-group {
|
|
85
|
+
display: inline-flex;
|
|
86
|
+
flex-wrap: wrap;
|
|
87
|
+
gap: 8px 16px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* ========== Radio Button ========== */
|
|
91
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-button-wrapper {
|
|
92
|
+
background: var(--semi-color-fill-0);
|
|
93
|
+
border: none;
|
|
94
|
+
color: var(--semi-color-text-0);
|
|
95
|
+
height: 32px;
|
|
96
|
+
line-height: 30px;
|
|
97
|
+
padding: 0 16px;
|
|
98
|
+
transition: all var(--semi-transition-duration) var(--semi-transition-timing);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-button-wrapper:first-child {
|
|
102
|
+
border-radius: var(--semi-border-radius-medium) 0 0 var(--semi-border-radius-medium);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-button-wrapper:last-child {
|
|
106
|
+
border-radius: 0 var(--semi-border-radius-medium) var(--semi-border-radius-medium) 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-button-wrapper:not(:first-child)::before {
|
|
110
|
+
display: none;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-button-wrapper:hover {
|
|
114
|
+
background: var(--semi-color-fill-1);
|
|
115
|
+
color: var(--semi-color-text-0);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-button-wrapper-checked {
|
|
119
|
+
background: var(--semi-color-primary);
|
|
120
|
+
color: #fff;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-button-wrapper-checked:hover {
|
|
124
|
+
background: var(--semi-color-primary-hover);
|
|
125
|
+
color: #fff;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-button-wrapper-checked:focus-within {
|
|
129
|
+
outline: 3px solid var(--semi-color-primary-light-default);
|
|
130
|
+
outline-offset: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* ========== 禁用状态 - Button ========== */
|
|
134
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-button-wrapper-disabled {
|
|
135
|
+
background: var(--semi-color-fill-0);
|
|
136
|
+
color: var(--semi-color-disabled-text);
|
|
137
|
+
cursor: not-allowed;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-button-wrapper-disabled:hover {
|
|
141
|
+
background: var(--semi-color-fill-0);
|
|
142
|
+
color: var(--semi-color-disabled-text);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {
|
|
146
|
+
background: var(--semi-color-disabled-bg);
|
|
147
|
+
color: var(--semi-color-disabled-text);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* ========== Card 模式 ========== */
|
|
151
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-wrapper[data-card] {
|
|
152
|
+
background: var(--semi-color-fill-0);
|
|
153
|
+
border: 1px solid transparent;
|
|
154
|
+
border-radius: var(--semi-border-radius-medium);
|
|
155
|
+
padding: 12px 16px;
|
|
156
|
+
transition: all var(--semi-transition-duration) var(--semi-transition-timing);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-wrapper[data-card]:hover {
|
|
160
|
+
background: var(--semi-color-fill-1);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.semi:where([data-semi="all"], [data-semi-radio]) .ant-radio-wrapper-checked[data-card] {
|
|
164
|
+
background: var(--semi-color-primary-light-default);
|
|
165
|
+
border-color: var(--semi-color-primary);
|
|
166
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rate 评分 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-rate]) .ant-rate {
|
|
6
|
+
color: var(--semi-color-warning);
|
|
7
|
+
font-size: 20px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.semi:where([data-semi="all"], [data-semi-rate]) .ant-rate-star {
|
|
11
|
+
margin-inline-end: 4px;
|
|
12
|
+
transition: transform var(--semi-transition-duration) var(--semi-transition-timing);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.semi:where([data-semi="all"], [data-semi-rate]) .ant-rate-star:not(.ant-rate-star-zero):hover {
|
|
16
|
+
transform: scale(1.1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.semi:where([data-semi="all"], [data-semi-rate]) .ant-rate-star-first,
|
|
20
|
+
.semi:where([data-semi="all"], [data-semi-rate]) .ant-rate-star-second {
|
|
21
|
+
color: var(--semi-color-fill-1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.semi:where([data-semi="all"], [data-semi-rate]) .ant-rate-star-full .ant-rate-star-first,
|
|
25
|
+
.semi:where([data-semi="all"], [data-semi-rate]) .ant-rate-star-full .ant-rate-star-second {
|
|
26
|
+
color: var(--semi-color-warning);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.semi:where([data-semi="all"], [data-semi-rate]) .ant-rate-star-half .ant-rate-star-first {
|
|
30
|
+
color: var(--semi-color-warning);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* 禁用状态 */
|
|
34
|
+
.semi:where([data-semi="all"], [data-semi-rate]) .ant-rate-disabled .ant-rate-star {
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.semi:where([data-semi="all"], [data-semi-rate]) .ant-rate-disabled .ant-rate-star:hover {
|
|
39
|
+
transform: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* 文本 */
|
|
43
|
+
.semi:where([data-semi="all"], [data-semi-rate]) .ant-rate-text {
|
|
44
|
+
color: var(--semi-color-text-1);
|
|
45
|
+
font-size: var(--semi-font-size-regular);
|
|
46
|
+
margin-inline-start: 8px;
|
|
47
|
+
}
|