@24city/web-console 0.3.4 → 0.3.6
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/CHANGELOG.md +32 -0
- package/GUIDELINES.md +20 -6
- package/dist/chunks/text-link-Bb5f1eLW.js +106 -0
- package/dist/chunks/{waterfall-Cmz0ZULQ.js → waterfall-ZMzEjGwK.js} +1 -1
- package/dist/index.js +119 -115
- package/dist/list/content-square.d.ts +4 -1
- package/dist/list/index.js +1 -1
- package/dist/page/feature.d.ts +65 -0
- package/dist/page/index.d.ts +1 -0
- package/dist/page/index.js +25 -21
- package/dist/styles.css +293 -43
- package/dist/testing/guard.d.ts +4 -3
- package/dist/testing/guard.js +50 -43
- package/package.json +1 -1
- package/dist/chunks/text-link-Ch_4QIkx.js +0 -65
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
/** 标题层级(h1–h6),只影响语义,不影响字号。 */
|
|
3
|
+
export type FeatureHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
/** 斜体标题的三档字号:large 24px(弹框头部)、medium 20px(宽版弹框的左栏)、small 18px(卡片标题行)。 */
|
|
5
|
+
export type FeatureTitleSize = 'large' | 'medium' | 'small';
|
|
6
|
+
export interface FeatureTitleProps {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** 默认 large */
|
|
9
|
+
size?: FeatureTitleSize;
|
|
10
|
+
/** 默认 2 */
|
|
11
|
+
level?: FeatureHeadingLevel;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 重点功能的斜体标题:600 字重、字距 1px,字体取 `--app-font-family-display`。
|
|
16
|
+
* 中文字体没有斜体,浏览器把正文字体斜切约 14° 显示;一个弹框或卡片只放一个,不用于正文、按钮和表格里的数字。
|
|
17
|
+
*/
|
|
18
|
+
export declare const FeatureTitle: ({ children, size, level, className }: FeatureTitleProps) => import("react").JSX.Element;
|
|
19
|
+
export interface FeatureIndexProps {
|
|
20
|
+
/** 从 1 开始的序号,显示成两位(01、02…) */
|
|
21
|
+
value: number;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 重点功能弹框里分块标题前的斜体编号(01、02…),默认主色;渐变色等由产品用 className 改颜色。
|
|
26
|
+
* 编号只是装饰,读屏跳过(分块的含义由紧跟的标题说明)。
|
|
27
|
+
*/
|
|
28
|
+
export declare const FeatureIndex: ({ value, className }: FeatureIndexProps) => import("react").JSX.Element;
|
|
29
|
+
export interface FeatureHeroProps {
|
|
30
|
+
/** 斜体标题(24px) */
|
|
31
|
+
title: ReactNode;
|
|
32
|
+
/** 标题下面的一句说明 */
|
|
33
|
+
description?: ReactNode;
|
|
34
|
+
/** 第一行左侧的控件,例如形式切换 */
|
|
35
|
+
toolbar?: ReactNode;
|
|
36
|
+
/** 传了才在右上角显示关闭按钮 */
|
|
37
|
+
onClose?: () => void;
|
|
38
|
+
/** 关闭按钮的读屏文字,默认「关闭」 */
|
|
39
|
+
closeLabel?: string;
|
|
40
|
+
/** 说明下面、仍在渐变里的内容:这次功能作用的对象,例如来源素材的卡片 */
|
|
41
|
+
subject?: ReactNode;
|
|
42
|
+
/** 标题层级,默认 2 */
|
|
43
|
+
level?: FeatureHeadingLevel;
|
|
44
|
+
className?: string;
|
|
45
|
+
/** 压在渐变上的白色内容区(顶部圆角,向上盖住渐变 32px);不传就只有渐变头部 */
|
|
46
|
+
children?: ReactNode;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* 重点功能弹框的头部:浅色多色渐变(`--app-feature-gradient`)里依次是工具行(左侧 `toolbar`、右侧关闭)、斜体标题、说明和 `subject`,
|
|
50
|
+
* `children` 是压在渐变上的白色内容区。放进 Semi Modal 时配合 `featureModalProps`,渐变铺满弹框。
|
|
51
|
+
*/
|
|
52
|
+
export declare const FeatureHero: ({ title, description, toolbar, onClose, closeLabel, subject, level, className, children }: FeatureHeroProps) => import("react").JSX.Element;
|
|
53
|
+
/** `featureModalProps` 的类型:Semi Modal 对应几个属性的子集。 */
|
|
54
|
+
export interface FeatureModalProps {
|
|
55
|
+
header: null;
|
|
56
|
+
footer: null;
|
|
57
|
+
closable: false;
|
|
58
|
+
bodyStyle: CSSProperties;
|
|
59
|
+
modalContentClass: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* 重点功能弹框的外壳,展开给 Semi Modal:`<Modal {...featureModalProps} visible width={600} onCancel={close}>`。
|
|
63
|
+
* 去掉 Semi 的标题栏、脚部和关闭按钮(关闭按钮由 FeatureHero 画在渐变里),内容区不留内边距、圆角 18px,渐变头部铺满。
|
|
64
|
+
*/
|
|
65
|
+
export declare const featureModalProps: FeatureModalProps;
|
package/dist/page/index.d.ts
CHANGED
package/dist/page/index.js
CHANGED
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { E as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { E as m, a as
|
|
1
|
+
import { C as o } from "../chunks/color-mode-switch-BinpVuZ0.js";
|
|
2
|
+
import { E as s, R as t, U as l } from "../chunks/unsupported-browser-Dwq1mNRy.js";
|
|
3
|
+
import { F as d, a as n, b as p, N as i, S as g, c as E, T as F, f as L } from "../chunks/text-link-Bb5f1eLW.js";
|
|
4
|
+
import { L as c } from "../chunks/link-button-PqZcqU6s.js";
|
|
5
|
+
import { E as m, a as x, b as S, F as b, c as B, L as C, d as T, P as k, S as y, e as R, T as U } from "../chunks/page-YBG0dEN1.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
o as ColorModeSwitch,
|
|
8
8
|
m as EmptyBlock,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
x as EmptyCard,
|
|
10
|
+
s as ErrorBoundary,
|
|
11
11
|
S as ErrorCard,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
B as
|
|
17
|
-
|
|
18
|
-
C as
|
|
12
|
+
d as FeatureHero,
|
|
13
|
+
n as FeatureIndex,
|
|
14
|
+
p as FeatureTitle,
|
|
15
|
+
b as FullPage,
|
|
16
|
+
B as FullPageLoading,
|
|
17
|
+
c as LinkButton,
|
|
18
|
+
C as LoadingBlock,
|
|
19
|
+
T as LoadingCard,
|
|
20
|
+
i as NotFoundPage,
|
|
21
|
+
k as ProductPage,
|
|
19
22
|
t as RouteErrorPage,
|
|
20
23
|
g as SelectLabel,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
l as UnsupportedBrowser
|
|
24
|
+
y as SessionUnavailable,
|
|
25
|
+
E as StartupError,
|
|
26
|
+
R as StatusResult,
|
|
27
|
+
F as TextLink,
|
|
28
|
+
U as Toolbar,
|
|
29
|
+
l as UnsupportedBrowser,
|
|
30
|
+
L as featureModalProps
|
|
27
31
|
};
|
package/dist/styles.css
CHANGED
|
@@ -3551,7 +3551,7 @@
|
|
|
3551
3551
|
* --hero-progress(0 → 1)由组件脚本按滚动位置写入。颜色只引用 Semi 设计变量。
|
|
3552
3552
|
*/
|
|
3553
3553
|
|
|
3554
|
-
.
|
|
3554
|
+
._square_13gth_7 {
|
|
3555
3555
|
--hero-progress: 0;
|
|
3556
3556
|
--square-search-height: 60px;
|
|
3557
3557
|
--square-search-padding: 20px;
|
|
@@ -3562,7 +3562,7 @@
|
|
|
3562
3562
|
flex-direction: column;
|
|
3563
3563
|
}
|
|
3564
3564
|
|
|
3565
|
-
.
|
|
3565
|
+
._heroTitle_13gth_18.semi-typography {
|
|
3566
3566
|
margin: 56px 0 4px;
|
|
3567
3567
|
color: var(--semi-color-text-0);
|
|
3568
3568
|
font-size: var(--app-font-size-h1);
|
|
@@ -3574,12 +3574,12 @@
|
|
|
3574
3574
|
transform-origin: center bottom;
|
|
3575
3575
|
}
|
|
3576
3576
|
|
|
3577
|
-
.
|
|
3577
|
+
._heroAccent_13gth_30 {
|
|
3578
3578
|
color: rgb(var(--app-brand-6));
|
|
3579
3579
|
}
|
|
3580
3580
|
|
|
3581
3581
|
/* 搜索条吸在顶栏下方,自带页面底色,遮住滚上来的内容。 */
|
|
3582
|
-
.
|
|
3582
|
+
._searchBar_13gth_35 {
|
|
3583
3583
|
position: sticky;
|
|
3584
3584
|
z-index: var(--app-z-sticky);
|
|
3585
3585
|
top: var(--app-header-height);
|
|
@@ -3589,17 +3589,17 @@
|
|
|
3589
3589
|
}
|
|
3590
3590
|
|
|
3591
3591
|
/* 没有分类卡片时,搜索条与筛选条之间不必留出分类的位置。 */
|
|
3592
|
-
.
|
|
3592
|
+
._square_13gth_7[data-categories='false'] ._searchBar_13gth_35 {
|
|
3593
3593
|
margin-bottom: 4px;
|
|
3594
3594
|
}
|
|
3595
3595
|
|
|
3596
|
-
.
|
|
3596
|
+
._searchBox_13gth_49 {
|
|
3597
3597
|
width: calc(800px + (100% - 800px) * var(--hero-progress));
|
|
3598
3598
|
max-width: 100%;
|
|
3599
3599
|
margin: 0 auto;
|
|
3600
3600
|
}
|
|
3601
3601
|
|
|
3602
|
-
.
|
|
3602
|
+
._searchInput_13gth_55.semi-input-wrapper {
|
|
3603
3603
|
height: var(--square-search-height);
|
|
3604
3604
|
padding: 0 14px 0 16px;
|
|
3605
3605
|
border: 1px solid transparent;
|
|
@@ -3608,34 +3608,34 @@
|
|
|
3608
3608
|
box-shadow: var(--app-shadow-card);
|
|
3609
3609
|
}
|
|
3610
3610
|
|
|
3611
|
-
.
|
|
3611
|
+
._searchInput_13gth_55.semi-input-wrapper:hover {
|
|
3612
3612
|
border-color: transparent;
|
|
3613
3613
|
background-color: var(--semi-color-bg-1);
|
|
3614
3614
|
}
|
|
3615
3615
|
|
|
3616
|
-
.
|
|
3616
|
+
._searchInput_13gth_55.semi-input-wrapper.semi-input-wrapper-focus {
|
|
3617
3617
|
border-color: rgb(var(--app-brand-6));
|
|
3618
3618
|
box-shadow: var(--app-shadow-card), 0 0 0 3px var(--semi-color-primary-light-default);
|
|
3619
3619
|
}
|
|
3620
3620
|
|
|
3621
|
-
.
|
|
3621
|
+
._searchInput_13gth_55 .semi-input {
|
|
3622
3622
|
font-size: var(--app-font-size-h6);
|
|
3623
3623
|
}
|
|
3624
3624
|
|
|
3625
|
-
.
|
|
3625
|
+
._searchInput_13gth_55 .semi-input::placeholder {
|
|
3626
3626
|
color: var(--semi-color-text-2);
|
|
3627
3627
|
}
|
|
3628
3628
|
|
|
3629
|
-
.
|
|
3629
|
+
._searchInput_13gth_55 .semi-input-suffix {
|
|
3630
3630
|
gap: 8px;
|
|
3631
3631
|
}
|
|
3632
3632
|
|
|
3633
3633
|
/* 框内最左侧的匹配方式:文字触发器,右侧一条竖线隔开输入区。 */
|
|
3634
|
-
.
|
|
3634
|
+
._searchInput_13gth_55 .semi-input-prefix {
|
|
3635
3635
|
padding-right: 0;
|
|
3636
3636
|
}
|
|
3637
3637
|
|
|
3638
|
-
.
|
|
3638
|
+
._searchPrefix_13gth_91 {
|
|
3639
3639
|
display: inline-flex;
|
|
3640
3640
|
align-items: center;
|
|
3641
3641
|
margin-left: -8px;
|
|
@@ -3644,7 +3644,7 @@
|
|
|
3644
3644
|
border-right: 1px solid var(--app-border-2);
|
|
3645
3645
|
}
|
|
3646
3646
|
|
|
3647
|
-
.
|
|
3647
|
+
._searchButton_13gth_100.semi-button {
|
|
3648
3648
|
width: 32px;
|
|
3649
3649
|
height: 32px;
|
|
3650
3650
|
border-radius: var(--app-radius-chip);
|
|
@@ -3652,7 +3652,7 @@
|
|
|
3652
3652
|
}
|
|
3653
3653
|
|
|
3654
3654
|
/* 快捷词:灰底胶囊,空输入时排在检索按钮前。 */
|
|
3655
|
-
.
|
|
3655
|
+
._guide_13gth_108 {
|
|
3656
3656
|
display: inline-flex;
|
|
3657
3657
|
overflow: hidden;
|
|
3658
3658
|
max-width: 420px;
|
|
@@ -3660,13 +3660,13 @@
|
|
|
3660
3660
|
gap: 8px;
|
|
3661
3661
|
}
|
|
3662
3662
|
|
|
3663
|
-
.
|
|
3663
|
+
._guideLabel_13gth_116.semi-typography {
|
|
3664
3664
|
flex-shrink: 0;
|
|
3665
3665
|
color: var(--semi-color-text-2);
|
|
3666
3666
|
font-size: var(--app-font-size-compact);
|
|
3667
3667
|
}
|
|
3668
3668
|
|
|
3669
|
-
.
|
|
3669
|
+
._guideTag_13gth_122.semi-button {
|
|
3670
3670
|
overflow: hidden;
|
|
3671
3671
|
max-width: 96px;
|
|
3672
3672
|
height: 24px;
|
|
@@ -3681,27 +3681,27 @@
|
|
|
3681
3681
|
text-overflow: ellipsis;
|
|
3682
3682
|
}
|
|
3683
3683
|
|
|
3684
|
-
.
|
|
3684
|
+
._guideTag_13gth_122.semi-button:hover {
|
|
3685
3685
|
background-color: var(--semi-color-fill-2);
|
|
3686
3686
|
color: var(--semi-color-text-0);
|
|
3687
3687
|
}
|
|
3688
3688
|
|
|
3689
|
-
.
|
|
3689
|
+
._guideClear_13gth_142.semi-button {
|
|
3690
3690
|
flex-shrink: 0;
|
|
3691
3691
|
color: var(--semi-color-text-2);
|
|
3692
3692
|
}
|
|
3693
3693
|
|
|
3694
|
-
.
|
|
3694
|
+
._categories_13gth_147 {
|
|
3695
3695
|
margin-bottom: 0;
|
|
3696
3696
|
}
|
|
3697
3697
|
|
|
3698
3698
|
/* 平铺筛选面板:分类卡片下方,随页面滚走。 */
|
|
3699
|
-
.
|
|
3699
|
+
._panel_13gth_152 {
|
|
3700
3700
|
margin-top: 16px;
|
|
3701
3701
|
}
|
|
3702
3702
|
|
|
3703
3703
|
/* 排序条紧贴吸顶搜索条下沿,同样带页面底色。 */
|
|
3704
|
-
.
|
|
3704
|
+
._filters_13gth_157 {
|
|
3705
3705
|
position: sticky;
|
|
3706
3706
|
z-index: calc(var(--app-z-sticky) - 1);
|
|
3707
3707
|
top: calc(var(--app-header-height) + var(--square-search-height) + var(--square-search-padding) * 2);
|
|
@@ -3716,14 +3716,14 @@
|
|
|
3716
3716
|
background: var(--app-page-gradient) fixed;
|
|
3717
3717
|
}
|
|
3718
3718
|
|
|
3719
|
-
.
|
|
3719
|
+
._toolbarStart_13gth_172 {
|
|
3720
3720
|
display: flex;
|
|
3721
3721
|
min-width: 0;
|
|
3722
3722
|
flex: 1 1 auto;
|
|
3723
3723
|
align-items: center;
|
|
3724
3724
|
}
|
|
3725
3725
|
|
|
3726
|
-
.
|
|
3726
|
+
._filtersGroup_13gth_179 {
|
|
3727
3727
|
display: flex;
|
|
3728
3728
|
min-width: 0;
|
|
3729
3729
|
flex-shrink: 0;
|
|
@@ -3731,7 +3731,7 @@
|
|
|
3731
3731
|
gap: 4px;
|
|
3732
3732
|
}
|
|
3733
3733
|
|
|
3734
|
-
.
|
|
3734
|
+
._results_13gth_187 {
|
|
3735
3735
|
position: relative;
|
|
3736
3736
|
z-index: 0;
|
|
3737
3737
|
display: flex;
|
|
@@ -3740,7 +3740,7 @@
|
|
|
3740
3740
|
gap: 12px;
|
|
3741
3741
|
}
|
|
3742
3742
|
|
|
3743
|
-
.
|
|
3743
|
+
._footer_13gth_196 {
|
|
3744
3744
|
display: flex;
|
|
3745
3745
|
min-height: 32px;
|
|
3746
3746
|
align-items: center;
|
|
@@ -3749,44 +3749,108 @@
|
|
|
3749
3749
|
padding: 12px 0 8px;
|
|
3750
3750
|
}
|
|
3751
3751
|
|
|
3752
|
-
/*
|
|
3752
|
+
/*
|
|
3753
|
+
* 排序条左侧在手机上横向滑动时,右边缘渐隐提示后面还有内容;滑到头渐隐消失。进度来自这一行自己的横向滚动(滚动时间线),
|
|
3754
|
+
* 内容放得下时时间线不生效,不渐隐。不支持滚动时间线的浏览器没有渐隐,照常可以滑动。
|
|
3755
|
+
*/
|
|
3756
|
+
@property --square-toolbar-fade {
|
|
3757
|
+
syntax: '<length>';
|
|
3758
|
+
inherits: false;
|
|
3759
|
+
initial-value: 0px;
|
|
3760
|
+
}
|
|
3761
|
+
|
|
3762
|
+
@keyframes _square-toolbar-fade_13gth_1 {
|
|
3763
|
+
0%,
|
|
3764
|
+
90% {
|
|
3765
|
+
--square-toolbar-fade: 32px;
|
|
3766
|
+
}
|
|
3767
|
+
|
|
3768
|
+
100% {
|
|
3769
|
+
--square-toolbar-fade: 0px;
|
|
3770
|
+
}
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
/* 手机:标题缩小,搜索条压低高度,快捷词收起;排序条分两行,左侧一行横向滑动。 */
|
|
3753
3774
|
@media (max-width: 576px) {
|
|
3754
|
-
.
|
|
3775
|
+
._square_13gth_7 {
|
|
3755
3776
|
--square-search-height: 48px;
|
|
3756
3777
|
--square-search-padding: 12px;
|
|
3757
3778
|
--square-filters-height: 44px;
|
|
3758
3779
|
}
|
|
3759
3780
|
|
|
3760
|
-
.
|
|
3781
|
+
._heroTitle_13gth_18.semi-typography {
|
|
3761
3782
|
margin: 12px 0 0;
|
|
3762
3783
|
font-size: var(--app-font-size-h3);
|
|
3763
3784
|
line-height: 32px;
|
|
3764
3785
|
}
|
|
3765
3786
|
|
|
3766
|
-
.
|
|
3787
|
+
._searchBar_13gth_35 {
|
|
3767
3788
|
margin-bottom: 4px;
|
|
3768
3789
|
}
|
|
3769
3790
|
|
|
3770
|
-
.
|
|
3791
|
+
._searchInput_13gth_55.semi-input-wrapper {
|
|
3771
3792
|
padding: 0 8px 0 12px;
|
|
3772
3793
|
}
|
|
3773
3794
|
|
|
3774
|
-
.
|
|
3795
|
+
._searchInput_13gth_55 .semi-input {
|
|
3775
3796
|
font-size: var(--app-font-size-lead);
|
|
3776
3797
|
}
|
|
3777
3798
|
|
|
3778
|
-
.
|
|
3799
|
+
._guide_13gth_108 {
|
|
3779
3800
|
display: none;
|
|
3780
3801
|
}
|
|
3781
3802
|
|
|
3782
|
-
.
|
|
3803
|
+
._panel_13gth_152 {
|
|
3783
3804
|
margin-top: 12px;
|
|
3784
3805
|
}
|
|
3785
3806
|
|
|
3786
|
-
|
|
3787
|
-
|
|
3807
|
+
/*
|
|
3808
|
+
* 排序条分两行:左侧(排序、胶囊、下拉)占满第一行,右侧(收藏、视图切换)另起一行靠右。
|
|
3809
|
+
* 两侧挤在一行时左侧会被压到几乎没有宽度,排序项缩到右侧控件底下,既看不到也点不到。
|
|
3810
|
+
*/
|
|
3811
|
+
._filters_13gth_157 {
|
|
3812
|
+
height: auto;
|
|
3813
|
+
min-height: var(--square-filters-height);
|
|
3814
|
+
flex-wrap: wrap;
|
|
3815
|
+
gap: 4px 12px;
|
|
3816
|
+
padding: 4px;
|
|
3817
|
+
}
|
|
3818
|
+
|
|
3819
|
+
/* 左侧每一项按自身宽度排(网格列宽取内容宽,不受各项 min-width: 0 影响),放不下时这一行横向滑动。 */
|
|
3820
|
+
._toolbarStart_13gth_172 {
|
|
3821
|
+
display: grid;
|
|
3822
|
+
flex: 1 0 100%;
|
|
3823
|
+
grid-auto-columns: max-content;
|
|
3824
|
+
grid-auto-flow: column;
|
|
3788
3825
|
overflow-x: auto;
|
|
3789
3826
|
scrollbar-width: none;
|
|
3827
|
+
-webkit-mask-image: linear-gradient(to left, transparent, black var(--square-toolbar-fade));
|
|
3828
|
+
mask-image: linear-gradient(to left, transparent, black var(--square-toolbar-fade));
|
|
3829
|
+
}
|
|
3830
|
+
|
|
3831
|
+
._toolbarStart_13gth_172::-webkit-scrollbar {
|
|
3832
|
+
display: none;
|
|
3833
|
+
}
|
|
3834
|
+
|
|
3835
|
+
@supports (animation-timeline: scroll()) {
|
|
3836
|
+
._toolbarStart_13gth_172 {
|
|
3837
|
+
animation: _square-toolbar-fade_13gth_1 linear both;
|
|
3838
|
+
animation-timeline: scroll(self inline);
|
|
3839
|
+
}
|
|
3840
|
+
}
|
|
3841
|
+
|
|
3842
|
+
/* 右侧放不下一行时在组内换行,仍靠右;页面没给右侧内容时不占第二行。 */
|
|
3843
|
+
._filtersGroup_13gth_179 {
|
|
3844
|
+
max-width: 100%;
|
|
3845
|
+
flex: 0 1 auto;
|
|
3846
|
+
flex-wrap: wrap;
|
|
3847
|
+
justify-content: flex-end;
|
|
3848
|
+
margin-left: auto;
|
|
3849
|
+
row-gap: 4px;
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
._filtersGroup_13gth_179:empty {
|
|
3853
|
+
display: none;
|
|
3790
3854
|
}
|
|
3791
3855
|
}
|
|
3792
3856
|
/* 筛选条触发器:32px 高的文字按钮,灰字 + 16px 箭头;悬停与展开时浅灰底。颜色只引用 Semi 设计变量。 */
|
|
@@ -4377,6 +4441,146 @@
|
|
|
4377
4441
|
._item_3uefs_17 {
|
|
4378
4442
|
width: 100%;
|
|
4379
4443
|
}
|
|
4444
|
+
/*
|
|
4445
|
+
* 重点功能的一套视觉(来自 AdFlow 的一键跟创弹框):浅色多色渐变头部、斜体标题、压在渐变上的白色内容区、斜体编号。
|
|
4446
|
+
*
|
|
4447
|
+
* 斜体由浏览器把正文字体斜切出来(中文字体没有斜体)。字体取 --app-font-family-display,目前就是正文字体;
|
|
4448
|
+
* 以后换成真正的斜体标题字,只在本包登记一个 font-style: italic 的字体,这里不用改,也不会再叠一层斜切。
|
|
4449
|
+
* 字重 600:苹方最粗就是 600、微软雅黑的粗体只有 700 一档,写得再重中文也不会变;写 600 时标题里的英文和数字与中文一样粗。
|
|
4450
|
+
* 产品样式里不写 font-style: italic(守卫 checkDesignScale 会报),斜体只从这里来。
|
|
4451
|
+
*/
|
|
4452
|
+
|
|
4453
|
+
._title_euw1b_10 {
|
|
4454
|
+
margin: 0;
|
|
4455
|
+
color: var(--semi-color-text-0);
|
|
4456
|
+
font-family: var(--app-font-family-display);
|
|
4457
|
+
font-size: var(--app-font-size-h3);
|
|
4458
|
+
font-style: italic;
|
|
4459
|
+
font-weight: 600;
|
|
4460
|
+
letter-spacing: 1px;
|
|
4461
|
+
line-height: 32px;
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4464
|
+
._medium_euw1b_21 {
|
|
4465
|
+
font-size: var(--app-font-size-h4);
|
|
4466
|
+
line-height: 28px;
|
|
4467
|
+
}
|
|
4468
|
+
|
|
4469
|
+
._small_euw1b_26 {
|
|
4470
|
+
font-size: var(--app-font-size-h5);
|
|
4471
|
+
line-height: 26px;
|
|
4472
|
+
}
|
|
4473
|
+
|
|
4474
|
+
._index_euw1b_31 {
|
|
4475
|
+
color: var(--semi-color-primary);
|
|
4476
|
+
font-family: var(--app-font-family-display);
|
|
4477
|
+
font-size: var(--app-font-size-h6);
|
|
4478
|
+
font-style: italic;
|
|
4479
|
+
font-variant-numeric: tabular-nums;
|
|
4480
|
+
font-weight: 600;
|
|
4481
|
+
line-height: 24px;
|
|
4482
|
+
}
|
|
4483
|
+
|
|
4484
|
+
/* ---------- 渐变头部 ---------- */
|
|
4485
|
+
|
|
4486
|
+
._hero_euw1b_43 {
|
|
4487
|
+
display: flex;
|
|
4488
|
+
min-width: 0;
|
|
4489
|
+
flex-direction: column;
|
|
4490
|
+
}
|
|
4491
|
+
|
|
4492
|
+
._head_euw1b_49 {
|
|
4493
|
+
display: flex;
|
|
4494
|
+
min-width: 0;
|
|
4495
|
+
flex-direction: column;
|
|
4496
|
+
align-items: center;
|
|
4497
|
+
padding: 16px 24px 24px;
|
|
4498
|
+
background: var(--app-feature-gradient);
|
|
4499
|
+
text-align: center;
|
|
4500
|
+
}
|
|
4501
|
+
|
|
4502
|
+
/* 下面接白色内容区时多留 32px,被内容区盖住。 */
|
|
4503
|
+
._withSheet_euw1b_60 ._head_euw1b_49 {
|
|
4504
|
+
padding-bottom: 52px;
|
|
4505
|
+
}
|
|
4506
|
+
|
|
4507
|
+
._bar_euw1b_64 {
|
|
4508
|
+
display: flex;
|
|
4509
|
+
min-height: 32px;
|
|
4510
|
+
align-self: stretch;
|
|
4511
|
+
align-items: center;
|
|
4512
|
+
justify-content: space-between;
|
|
4513
|
+
gap: 12px;
|
|
4514
|
+
margin-bottom: 4px;
|
|
4515
|
+
text-align: start;
|
|
4516
|
+
}
|
|
4517
|
+
|
|
4518
|
+
._toolbar_euw1b_75 {
|
|
4519
|
+
display: flex;
|
|
4520
|
+
min-width: 0;
|
|
4521
|
+
align-items: center;
|
|
4522
|
+
gap: 8px;
|
|
4523
|
+
}
|
|
4524
|
+
|
|
4525
|
+
._close_euw1b_82 {
|
|
4526
|
+
flex: none;
|
|
4527
|
+
margin-left: auto;
|
|
4528
|
+
}
|
|
4529
|
+
|
|
4530
|
+
._heroTitle_euw1b_87 {
|
|
4531
|
+
margin-top: 4px;
|
|
4532
|
+
}
|
|
4533
|
+
|
|
4534
|
+
/* 没有工具行时标题离顶边远一点。 */
|
|
4535
|
+
._head_euw1b_49 > ._heroTitle_euw1b_87:first-child {
|
|
4536
|
+
margin-top: 8px;
|
|
4537
|
+
}
|
|
4538
|
+
|
|
4539
|
+
._description_euw1b_96 {
|
|
4540
|
+
margin: 2px 0 0;
|
|
4541
|
+
color: var(--semi-color-text-1);
|
|
4542
|
+
font-size: var(--app-font-size-compact);
|
|
4543
|
+
line-height: 20px;
|
|
4544
|
+
}
|
|
4545
|
+
|
|
4546
|
+
._subject_euw1b_103 {
|
|
4547
|
+
min-width: 0;
|
|
4548
|
+
align-self: stretch;
|
|
4549
|
+
margin-top: 16px;
|
|
4550
|
+
text-align: start;
|
|
4551
|
+
}
|
|
4552
|
+
|
|
4553
|
+
._sheet_euw1b_110 {
|
|
4554
|
+
position: relative;
|
|
4555
|
+
margin-top: -32px;
|
|
4556
|
+
padding: 28px 40px 32px;
|
|
4557
|
+
border-radius: 20px 20px 0 0;
|
|
4558
|
+
background: var(--semi-color-bg-2);
|
|
4559
|
+
}
|
|
4560
|
+
|
|
4561
|
+
/* Semi Modal 的内容区(featureModalProps.modalContentClass):不留内边距、圆角加大,渐变头部铺满;
|
|
4562
|
+
* 钉在弹框右上角的按钮(宽版弹框的关闭钮)按它绝对定位。 */
|
|
4563
|
+
._modalContent_euw1b_118 {
|
|
4564
|
+
position: relative;
|
|
4565
|
+
overflow: hidden;
|
|
4566
|
+
padding: 0;
|
|
4567
|
+
border-radius: 18px;
|
|
4568
|
+
box-shadow: 0 24px 64px rgba(var(--app-shadow-color), 0.18);
|
|
4569
|
+
}
|
|
4570
|
+
|
|
4571
|
+
@media (max-width: 576px) {
|
|
4572
|
+
._head_euw1b_49 {
|
|
4573
|
+
padding: 12px 16px 20px;
|
|
4574
|
+
}
|
|
4575
|
+
|
|
4576
|
+
._withSheet_euw1b_60 ._head_euw1b_49 {
|
|
4577
|
+
padding-bottom: 48px;
|
|
4578
|
+
}
|
|
4579
|
+
|
|
4580
|
+
._sheet_euw1b_110 {
|
|
4581
|
+
padding: 24px 20px;
|
|
4582
|
+
}
|
|
4583
|
+
}
|
|
4380
4584
|
/* 只给读屏的文字:不占位、不可见。 */
|
|
4381
4585
|
._srOnly_1mfs8_2 {
|
|
4382
4586
|
position: absolute;
|
|
@@ -4517,6 +4721,9 @@ html body .semi-always-light {
|
|
|
4517
4721
|
--app-segment-track: rgb(var(--semi-grey-2));
|
|
4518
4722
|
/* 禁用的主色实心按钮上的字:浅色是白字压在浅主色上;暗色下底是深主色,白字会像没禁用,降到半透明。 */
|
|
4519
4723
|
--app-primary-disabled-text: rgb(255, 255, 255);
|
|
4724
|
+
/* 重点功能(FeatureHero 等)的浅色多色渐变:品牌色最浅一级 → 粉 → 靛;宽版弹框的左栏用竖向的那条,底部淡出到弹框底色。 */
|
|
4725
|
+
--app-feature-gradient: linear-gradient(135deg, rgb(var(--app-brand-1)) 0%, rgb(var(--semi-pink-0)) 48%, rgb(var(--semi-indigo-0)) 100%);
|
|
4726
|
+
--app-feature-aside-gradient: linear-gradient(180deg, rgb(var(--app-brand-1)) 0%, rgb(var(--semi-violet-0)) 46%, var(--semi-color-bg-2) 100%);
|
|
4520
4727
|
}
|
|
4521
4728
|
|
|
4522
4729
|
/* ---------- 暗色 ---------- */
|
|
@@ -4578,6 +4785,9 @@ html body .semi-always-dark {
|
|
|
4578
4785
|
--app-mask-bg: rgba(0, 0, 0, 0.5);
|
|
4579
4786
|
--app-segment-track: rgba(255, 255, 255, 0.1);
|
|
4580
4787
|
--app-primary-disabled-text: rgba(255, 255, 255, 0.45);
|
|
4788
|
+
/* Semi 暗色色板里粉、靛、紫的第 0 级饱和度很高,整块铺开像霓虹:降到 35% 透出底下的弹框底色。 */
|
|
4789
|
+
--app-feature-gradient: linear-gradient(135deg, rgb(var(--app-brand-1)) 0%, rgba(var(--semi-pink-0), 0.35) 48%, rgba(var(--semi-indigo-0), 0.35) 100%);
|
|
4790
|
+
--app-feature-aside-gradient: linear-gradient(180deg, rgb(var(--app-brand-1)) 0%, rgba(var(--semi-violet-0), 0.35) 46%, var(--semi-color-bg-2) 100%);
|
|
4581
4791
|
}
|
|
4582
4792
|
|
|
4583
4793
|
/* 暗色页面里的“保持浅色”区块:比上面的暗色规则多一个类,重新声明一遍浅色那组。 */
|
|
@@ -4622,6 +4832,8 @@ html body[theme-mode='dark'] .semi-always-light {
|
|
|
4622
4832
|
--app-mask-bg: rgba(38, 38, 38, 0.2);
|
|
4623
4833
|
--app-segment-track: rgb(var(--semi-grey-2));
|
|
4624
4834
|
--app-primary-disabled-text: rgb(255, 255, 255);
|
|
4835
|
+
--app-feature-gradient: linear-gradient(135deg, rgb(var(--app-brand-1)) 0%, rgb(var(--semi-pink-0)) 48%, rgb(var(--semi-indigo-0)) 100%);
|
|
4836
|
+
--app-feature-aside-gradient: linear-gradient(180deg, rgb(var(--app-brand-1)) 0%, rgb(var(--semi-violet-0)) 46%, var(--semi-color-bg-2) 100%);
|
|
4625
4837
|
/* 这类区块自己的文字颜色也回到浅色那组(Semi 的 .semi-always-light 已把它的语义色还原)。 */
|
|
4626
4838
|
color: var(--semi-color-text-0);
|
|
4627
4839
|
}
|
|
@@ -4651,11 +4863,11 @@ html body[theme-mode='dark'] .semi-always-light {
|
|
|
4651
4863
|
--semi-color-link-active: rgb(var(--app-brand-8));
|
|
4652
4864
|
--semi-color-link-visited: rgb(var(--app-brand-6));
|
|
4653
4865
|
|
|
4654
|
-
/* 圆角与曲线两种模式相同:控件
|
|
4655
|
-
--semi-border-radius-small:
|
|
4656
|
-
--semi-border-radius-large:
|
|
4657
|
-
--app-radius-card:
|
|
4658
|
-
--app-radius-chip:
|
|
4866
|
+
/* 圆角与曲线两种模式相同:控件 8px,卡片、弹窗与表格容器 12px,标签与小按钮 6px。 */
|
|
4867
|
+
--semi-border-radius-small: 8px;
|
|
4868
|
+
--semi-border-radius-large: 12px;
|
|
4869
|
+
--app-radius-card: 12px;
|
|
4870
|
+
--app-radius-chip: 6px;
|
|
4659
4871
|
--app-ease: cubic-bezier(0.2, 0, 0.38, 0.9);
|
|
4660
4872
|
}
|
|
4661
4873
|
|
|
@@ -4793,7 +5005,42 @@ body .semi-typography.semi-typography-link {
|
|
|
4793
5005
|
font-weight: 400;
|
|
4794
5006
|
}
|
|
4795
5007
|
|
|
4796
|
-
/* ----------
|
|
5008
|
+
/* ---------- 图标 ----------
|
|
5009
|
+
* Semi 图标只用 fill: currentColor,颜色由所在控件决定。普通次要操作的图标比按钮文字淡一档,
|
|
5010
|
+
* 让图标退到辅助层级;悬停、聚焦和选中时恢复按钮自己的颜色,保留品牌色或危险色反馈。
|
|
5011
|
+
* 主按钮和语义按钮不在这里覆盖,图标继续继承按钮的白色、主色或状态色。 */
|
|
5012
|
+
|
|
5013
|
+
body .semi-button-light.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled) .semi-icon,
|
|
5014
|
+
body .semi-button-borderless.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled) .semi-icon {
|
|
5015
|
+
color: var(--semi-color-text-2);
|
|
5016
|
+
}
|
|
5017
|
+
|
|
5018
|
+
body .semi-button-light.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled):hover .semi-icon,
|
|
5019
|
+
body .semi-button-light.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled):active .semi-icon,
|
|
5020
|
+
body .semi-button-light.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled):focus-visible .semi-icon,
|
|
5021
|
+
body .semi-button-borderless.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled):hover .semi-icon,
|
|
5022
|
+
body .semi-button-borderless.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled):active .semi-icon,
|
|
5023
|
+
body .semi-button-borderless.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled):focus-visible .semi-icon {
|
|
5024
|
+
color: inherit;
|
|
5025
|
+
}
|
|
5026
|
+
|
|
5027
|
+
body .semi-button-borderless.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled)[aria-current='page'] .semi-icon,
|
|
5028
|
+
body .semi-button-borderless.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled)[aria-pressed='true'] .semi-icon,
|
|
5029
|
+
body .semi-button-borderless.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled)[aria-selected='true'] .semi-icon,
|
|
5030
|
+
body .semi-button-light.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled)[aria-pressed='true'] .semi-icon,
|
|
5031
|
+
body .semi-button-light.semi-button-tertiary:not(.semi-button-danger):not(.semi-button-disabled)[aria-selected='true'] .semi-icon {
|
|
5032
|
+
color: inherit;
|
|
5033
|
+
}
|
|
5034
|
+
|
|
5035
|
+
/* 输入框里的搜索、前后缀图标是辅助提示,不与输入文字抢层级。 */
|
|
5036
|
+
body .semi-input-prefix-icon,
|
|
5037
|
+
body .semi-input-suffix-icon,
|
|
5038
|
+
body .semi-input-prepend-icon,
|
|
5039
|
+
body .semi-input-append-icon {
|
|
5040
|
+
color: var(--semi-color-text-2);
|
|
5041
|
+
}
|
|
5042
|
+
|
|
5043
|
+
/* Semi 默认固定 16px;让普通图标跟随所在文字字号,元信息行里的小图标才不会比字大。 */
|
|
4797
5044
|
|
|
4798
5045
|
body .semi-icon-default {
|
|
4799
5046
|
font-size: inherit;
|
|
@@ -5152,6 +5399,9 @@ body .semi-sidesheet-body {
|
|
|
5152
5399
|
'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', 'Helvetica Neue', Helvetica,
|
|
5153
5400
|
Arial, sans-serif;
|
|
5154
5401
|
--app-font-family-number: 'DIN Alternate', 'Bahnschrift', 'D-DIN', var(--app-font-family);
|
|
5402
|
+
/* 重点功能的斜体标题与编号(FeatureTitle、FeatureIndex)用的字体:目前就是正文字体,斜体由浏览器斜切。
|
|
5403
|
+
* 以后换成真正的斜体标题字,只改这里,并把那款字体按 font-style: italic 登记,组件不用改。 */
|
|
5404
|
+
--app-font-family-display: var(--app-font-family);
|
|
5155
5405
|
|
|
5156
5406
|
/* 字号阶梯。标题六级与 Semi 的 Typography.Title 相同(h1 32 … h6 16),正文 14、说明 12 也与 Semi 相同;
|
|
5157
5407
|
* 另有两档紧凑字号:13(表头、筛选项、次要说明)与 15(菜单项、列表项标题)。11 只用于角标里的短字。
|