@doubao-dev/template 0.4.0-rc.1 → 0.4.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 +7 -7
- package/dist/ask-human-card/styles.css +1 -66
- package/dist/checkout-card/styles.css +1 -34
- package/dist/components/extra-action/styles.css +1 -10
- package/dist/components/footer/styles.css +1 -27
- package/dist/components/header/styles.css +1 -62
- package/dist/components/info-section/styles.css +1 -161
- package/dist/components/product-summary/styles.css +1 -130
- package/dist/components/route-section/styles.css +1 -78
- package/dist/components/transport-summary/index.js +3 -5
- package/dist/components/transport-summary/styles.css +1 -211
- package/dist/composite-card/styles.css +1 -36
- package/dist/content-card/styles.css +1 -166
- package/dist/map-card/styles.css +1 -110
- package/dist/price-action-card/styles.css +1 -149
- package/dist/primitives/icon/index.js +2 -4
- package/dist/primitives/icon/styles.css +1 -7
- package/dist/primitives/option-group/index.js +14 -22
- package/dist/primitives/option-group/styles.css +1 -98
- package/dist/primitives/price/styles.css +1 -142
- package/dist/primitives/tag/styles.css +1 -70
- package/dist/primitives/title/styles.css +1 -63
- package/dist/ticket-order-card/styles.css +1 -18
- package/dist/transit-card/styles.css +1 -53
- package/package.json +1 -1
|
@@ -1,211 +1 @@
|
|
|
1
|
-
.doubao-template-transport-summary {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
justify-content: flex-start;
|
|
5
|
-
width: 100%;
|
|
6
|
-
min-width: 0;
|
|
7
|
-
padding: 12px 12px 16px;
|
|
8
|
-
display: flex;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.doubao-template-transport-summary__title, .doubao-template-transport-summary__route-point-main, .doubao-template-transport-summary__route-point-sub, .doubao-template-transport-summary__transfer-label, .doubao-template-transport-summary__price {
|
|
12
|
-
flex-direction: row;
|
|
13
|
-
flex-shrink: 0;
|
|
14
|
-
align-items: center;
|
|
15
|
-
min-width: 0;
|
|
16
|
-
display: flex;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.doubao-template-transport-summary__title {
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
max-width: 100%;
|
|
23
|
-
height: 20px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.doubao-template-transport-summary__title-text, .doubao-template-transport-summary__route-point-main-text, .doubao-template-transport-summary__arrival-day-offset-text, .doubao-template-transport-summary__route-point-sub-text, .doubao-template-transport-summary__transfer-label-text {
|
|
27
|
-
text-overflow: ellipsis;
|
|
28
|
-
white-space: nowrap;
|
|
29
|
-
font-family: PingFang SC, sans-serif;
|
|
30
|
-
font-style: normal;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.doubao-template-transport-summary__title-text {
|
|
35
|
-
color: var(--neutral-100);
|
|
36
|
-
font-size: 13px;
|
|
37
|
-
font-weight: 400;
|
|
38
|
-
line-height: 20px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.doubao-template-transport-summary__route-row {
|
|
42
|
-
flex-flow: wrap;
|
|
43
|
-
place-content: flex-start space-between;
|
|
44
|
-
align-items: center;
|
|
45
|
-
gap: 10px;
|
|
46
|
-
width: 100%;
|
|
47
|
-
min-width: 0;
|
|
48
|
-
height: 46px;
|
|
49
|
-
margin-top: 2px;
|
|
50
|
-
display: flex;
|
|
51
|
-
position: relative;
|
|
52
|
-
overflow: hidden;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.doubao-template-transport-summary__route {
|
|
56
|
-
flex-direction: row;
|
|
57
|
-
flex: 1 0 188px;
|
|
58
|
-
justify-content: space-between;
|
|
59
|
-
align-items: center;
|
|
60
|
-
max-width: 200px;
|
|
61
|
-
height: 46px;
|
|
62
|
-
display: flex;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.doubao-template-transport-summary__route-point {
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
flex-shrink: 0;
|
|
68
|
-
justify-content: center;
|
|
69
|
-
width: 66px;
|
|
70
|
-
min-width: 0;
|
|
71
|
-
height: 42px;
|
|
72
|
-
display: flex;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.doubao-template-transport-summary__route-point--arrival {
|
|
76
|
-
align-items: flex-end;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.doubao-template-transport-summary__arrival {
|
|
80
|
-
flex-shrink: 0;
|
|
81
|
-
width: 66px;
|
|
82
|
-
min-width: 0;
|
|
83
|
-
height: 42px;
|
|
84
|
-
display: flex;
|
|
85
|
-
position: relative;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.doubao-template-transport-summary__arrival .doubao-template-transport-summary__route-point {
|
|
89
|
-
width: 100%;
|
|
90
|
-
height: 42px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.doubao-template-transport-summary__route-point-main, .doubao-template-transport-summary__route-point-sub {
|
|
94
|
-
width: 100%;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-main, .doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-sub {
|
|
98
|
-
justify-content: flex-end;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-main-text, .doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-sub-text {
|
|
102
|
-
text-align: right;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.doubao-template-transport-summary__route-point-main {
|
|
106
|
-
height: 22px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.doubao-template-transport-summary__route-point-sub {
|
|
110
|
-
height: 16px;
|
|
111
|
-
margin-top: 2px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.doubao-template-transport-summary__route-point-main-text {
|
|
115
|
-
min-width: 0;
|
|
116
|
-
color: var(--neutral-100);
|
|
117
|
-
font-family: SF Pro, sans-serif;
|
|
118
|
-
font-size: 17px;
|
|
119
|
-
font-weight: 600;
|
|
120
|
-
line-height: 22px;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.doubao-template-transport-summary__arrival-day-offset {
|
|
124
|
-
flex-direction: column;
|
|
125
|
-
justify-content: flex-start;
|
|
126
|
-
align-items: flex-start;
|
|
127
|
-
height: 14px;
|
|
128
|
-
display: flex;
|
|
129
|
-
position: absolute;
|
|
130
|
-
top: 2px;
|
|
131
|
-
left: calc(100% + 2px);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.doubao-template-transport-summary__arrival-day-offset-text {
|
|
135
|
-
color: var(--neutral-100);
|
|
136
|
-
font-size: 10px;
|
|
137
|
-
font-weight: 400;
|
|
138
|
-
line-height: normal;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.doubao-template-transport-summary__route-point-sub-text {
|
|
142
|
-
color: var(--neutral-70);
|
|
143
|
-
font-size: 12px;
|
|
144
|
-
font-weight: 400;
|
|
145
|
-
line-height: 16px;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.doubao-template-transport-summary__transfer-label-text {
|
|
149
|
-
color: var(--neutral-50);
|
|
150
|
-
font-size: 12px;
|
|
151
|
-
font-weight: 400;
|
|
152
|
-
line-height: 14px;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.doubao-template-transport-summary__transfer {
|
|
156
|
-
box-sizing: border-box;
|
|
157
|
-
flex-direction: row;
|
|
158
|
-
flex: none;
|
|
159
|
-
justify-content: center;
|
|
160
|
-
align-items: center;
|
|
161
|
-
width: 56px;
|
|
162
|
-
min-width: 0;
|
|
163
|
-
height: 42px;
|
|
164
|
-
display: flex;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.doubao-template-transport-summary__transfer-inner {
|
|
168
|
-
flex-direction: column;
|
|
169
|
-
justify-content: center;
|
|
170
|
-
align-items: center;
|
|
171
|
-
width: 56px;
|
|
172
|
-
min-width: 0;
|
|
173
|
-
height: 38px;
|
|
174
|
-
display: flex;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.doubao-template-transport-summary__transfer-label {
|
|
178
|
-
height: 14px;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.doubao-template-transport-summary__transfer-arrow {
|
|
182
|
-
flex-direction: row;
|
|
183
|
-
flex-shrink: 0;
|
|
184
|
-
justify-content: center;
|
|
185
|
-
align-items: center;
|
|
186
|
-
width: 36px;
|
|
187
|
-
height: 6px;
|
|
188
|
-
display: flex;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.doubao-template-transport-summary__transfer-arrow-icon {
|
|
192
|
-
flex-shrink: 0;
|
|
193
|
-
width: 36px;
|
|
194
|
-
height: 6px;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.doubao-template-transport-summary__price {
|
|
198
|
-
box-sizing: border-box;
|
|
199
|
-
flex-direction: column;
|
|
200
|
-
flex: 0 0 80px;
|
|
201
|
-
justify-content: center;
|
|
202
|
-
align-items: flex-end;
|
|
203
|
-
width: 80px;
|
|
204
|
-
height: 42px;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.doubao-template-transport-summary__price--with-tag {
|
|
208
|
-
gap: 4px;
|
|
209
|
-
height: 46px;
|
|
210
|
-
}
|
|
211
|
-
|
|
1
|
+
.doubao-template-transport-summary{display:flex;flex-direction:column;justify-content:flex-start;width:100%;min-width:0;box-sizing:border-box;padding:12px 12px 16px}.doubao-template-transport-summary__title,.doubao-template-transport-summary__route-point-main,.doubao-template-transport-summary__route-point-sub,.doubao-template-transport-summary__transfer-label,.doubao-template-transport-summary__price{display:flex;flex-direction:row;align-items:center;min-width:0;overflow:hidden;flex-shrink:0}.doubao-template-transport-summary__title{height:20px;max-width:100%;box-sizing:border-box}.doubao-template-transport-summary__title-text,.doubao-template-transport-summary__route-point-main-text,.doubao-template-transport-summary__arrival-day-offset-text,.doubao-template-transport-summary__route-point-sub-text,.doubao-template-transport-summary__transfer-label-text{overflow:hidden;font-family:"PingFang SC",sans-serif;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.doubao-template-transport-summary__title-text{color:var(--neutral-100);font-size:13px;font-weight:400;line-height:20px}.doubao-template-transport-summary__route-row{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;align-content:flex-start;justify-content:space-between;width:100%;height:46px;min-width:0;margin-top:2px;overflow:hidden}.doubao-template-transport-summary__route-point{display:flex;flex-shrink:0;flex-direction:column;justify-content:center;width:66px;min-width:0;height:42px}.doubao-template-transport-summary__route-point--arrival{align-items:flex-end}.doubao-template-transport-summary__arrival{position:relative;display:flex;flex-shrink:0;width:66px;min-width:0;height:42px}.doubao-template-transport-summary__arrival .doubao-template-transport-summary__route-point{width:100%;height:42px}.doubao-template-transport-summary__route-point-main,.doubao-template-transport-summary__route-point-sub{width:100%}.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-main,.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-sub{justify-content:flex-end}.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-main-text,.doubao-template-transport-summary__route-point--arrival .doubao-template-transport-summary__route-point-sub-text{text-align:right}.doubao-template-transport-summary__route-point-main{height:22px}.doubao-template-transport-summary__route-point-sub{height:16px;margin-top:2px}.doubao-template-transport-summary__route-point-main-text{min-width:0;color:var(--neutral-100);font-family:"SF Pro",sans-serif;font-size:17px;font-weight:600;line-height:22px}.doubao-template-transport-summary__arrival-day-offset{position:absolute;top:2px;left:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;height:14px}.doubao-template-transport-summary__arrival-day-offset-text{color:var(--neutral-100);font-size:10px;font-weight:400;line-height:normal}.doubao-template-transport-summary__route-point-sub-text{color:var(--neutral-70);font-size:12px;font-weight:400;line-height:16px}.doubao-template-transport-summary__transfer-label-text{color:var(--neutral-50);font-size:12px;font-weight:400;line-height:14px}.doubao-template-transport-summary__transfer{display:flex;flex:none;flex-direction:row;align-items:center;justify-content:center;width:56px;min-width:0;height:42px;box-sizing:border-box}.doubao-template-transport-summary__transfer-inner{display:flex;flex-direction:column;align-items:center;justify-content:center;width:56px;min-width:0;height:38px}.doubao-template-transport-summary__transfer-label{height:14px}.doubao-template-transport-summary__transfer-arrow{display:flex;flex-direction:row;align-items:center;justify-content:center;width:36px;height:6px;flex-shrink:0}.doubao-template-transport-summary__transfer-arrow-icon{width:36px;height:6px;flex-shrink:0}.doubao-template-transport-summary__price{flex:0 0 80px;flex-direction:column;align-items:flex-end;justify-content:center;width:80px;height:42px;box-sizing:border-box}.doubao-template-transport-summary__price>.doubao-price{justify-content:flex-end;width:100%;min-width:0;overflow:hidden}.doubao-template-transport-summary__price .doubao-price__amount,.doubao-template-transport-summary__price .doubao-price__main,.doubao-template-transport-summary__price .doubao-price__integer-group{max-width:100%;min-width:0;overflow:hidden}.doubao-template-transport-summary__price .doubao-price__main,.doubao-template-transport-summary__price .doubao-price__integer-group,.doubao-template-transport-summary__price .doubao-price__integer{flex-shrink:1}.doubao-template-transport-summary__price .doubao-price__integer{min-width:0;overflow:hidden;text-overflow:ellipsis}.doubao-template-transport-summary__price--with-tag{gap:4px;height:46px}
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
.doubao-composite-card {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
background-color: var(--bg-base-1);
|
|
4
|
-
border: 1px solid var(--bg-base-2-overlay);
|
|
5
|
-
border-radius: 8px;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: stretch;
|
|
8
|
-
width: 100%;
|
|
9
|
-
display: flex;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.doubao-composite-card__sections {
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
background-color: var(--bg-base-1);
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
width: 100%;
|
|
18
|
-
min-width: 0;
|
|
19
|
-
display: flex;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.doubao-composite-card__section {
|
|
23
|
-
box-sizing: border-box;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
width: 100%;
|
|
26
|
-
min-width: 0;
|
|
27
|
-
display: flex;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.doubao-composite-card__option-group {
|
|
31
|
-
box-sizing: border-box;
|
|
32
|
-
width: 100%;
|
|
33
|
-
min-width: 0;
|
|
34
|
-
padding: 0 12px 16px;
|
|
35
|
-
}
|
|
36
|
-
|
|
1
|
+
.doubao-composite-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-composite-card__sections{display:flex;flex-direction:column;width:100%;min-width:0;box-sizing:border-box;background-color:var(--bg-base-1)}.doubao-composite-card__section{display:flex;flex-direction:column;width:100%;min-width:0;box-sizing:border-box}.doubao-composite-card__option-group{width:100%;min-width:0;padding:0 12px 16px;box-sizing:border-box}
|
|
@@ -1,166 +1 @@
|
|
|
1
|
-
.doubao-content-card {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
background-color: var(--bg-base-1);
|
|
4
|
-
border: 1px solid var(--bg-base-2-overlay);
|
|
5
|
-
border-radius: 8px;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: stretch;
|
|
8
|
-
width: 100%;
|
|
9
|
-
display: flex;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.doubao-content-card__body {
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
background-color: var(--bg-base-1);
|
|
16
|
-
width: 100%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.doubao-content-card__item {
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
background-color: var(--bg-base-1);
|
|
22
|
-
width: 100%;
|
|
23
|
-
padding: 12px;
|
|
24
|
-
position: relative;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.doubao-content-card__item--without-thumbnail {
|
|
28
|
-
padding-top: 16px;
|
|
29
|
-
padding-bottom: 16px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.doubao-content-card__item:after {
|
|
33
|
-
content: "";
|
|
34
|
-
background-color: var(--neutral-transparent-1);
|
|
35
|
-
height: .5px;
|
|
36
|
-
position: absolute;
|
|
37
|
-
bottom: 0;
|
|
38
|
-
left: 104px;
|
|
39
|
-
right: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.doubao-content-card__item--last:after {
|
|
43
|
-
display: none;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.doubao-content-card__content {
|
|
47
|
-
flex-direction: row;
|
|
48
|
-
align-items: center;
|
|
49
|
-
gap: 12px;
|
|
50
|
-
width: 100%;
|
|
51
|
-
min-width: 0;
|
|
52
|
-
display: flex;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.doubao-content-card__main {
|
|
56
|
-
flex-direction: row;
|
|
57
|
-
flex: 1 1 0;
|
|
58
|
-
align-items: center;
|
|
59
|
-
gap: 12px;
|
|
60
|
-
min-width: 0;
|
|
61
|
-
display: flex;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.doubao-content-card__thumbnail {
|
|
65
|
-
background-color: var(--bg-base-1-overlay);
|
|
66
|
-
border-radius: 5px;
|
|
67
|
-
flex-shrink: 0;
|
|
68
|
-
width: 80px;
|
|
69
|
-
height: 80px;
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.doubao-content-card__thumbnail-image {
|
|
74
|
-
width: 100%;
|
|
75
|
-
height: 100%;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.doubao-content-card__text {
|
|
79
|
-
flex-direction: column;
|
|
80
|
-
flex: 1 1 0;
|
|
81
|
-
align-items: flex-start;
|
|
82
|
-
gap: 2px;
|
|
83
|
-
min-width: 0;
|
|
84
|
-
display: flex;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.doubao-content-card__title {
|
|
88
|
-
width: 100%;
|
|
89
|
-
color: var(--neutral-100);
|
|
90
|
-
text-overflow: ellipsis;
|
|
91
|
-
white-space: nowrap;
|
|
92
|
-
font-family: PingFang SC, sans-serif;
|
|
93
|
-
font-size: 16px;
|
|
94
|
-
font-style: normal;
|
|
95
|
-
font-weight: 500;
|
|
96
|
-
line-height: 24px;
|
|
97
|
-
overflow: hidden;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.doubao-content-card__title-custom, .doubao-content-card__subtitle-custom, .doubao-content-card__description-custom {
|
|
101
|
-
flex-direction: row;
|
|
102
|
-
align-items: center;
|
|
103
|
-
width: 100%;
|
|
104
|
-
max-width: 100%;
|
|
105
|
-
display: flex;
|
|
106
|
-
overflow: hidden;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.doubao-content-card__secondary, .doubao-content-card__tertiary {
|
|
110
|
-
flex-direction: row;
|
|
111
|
-
align-items: center;
|
|
112
|
-
width: 100%;
|
|
113
|
-
min-width: 0;
|
|
114
|
-
display: flex;
|
|
115
|
-
overflow: hidden;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.doubao-content-card__subtitle, .doubao-content-card__description {
|
|
119
|
-
width: 100%;
|
|
120
|
-
color: var(--neutral-70);
|
|
121
|
-
text-overflow: ellipsis;
|
|
122
|
-
white-space: nowrap;
|
|
123
|
-
font-family: PingFang SC, sans-serif;
|
|
124
|
-
font-size: 13px;
|
|
125
|
-
font-style: normal;
|
|
126
|
-
font-weight: 400;
|
|
127
|
-
line-height: 20px;
|
|
128
|
-
overflow: hidden;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.doubao-content-card__item-action {
|
|
132
|
-
flex-direction: row;
|
|
133
|
-
flex-shrink: 0;
|
|
134
|
-
justify-content: center;
|
|
135
|
-
align-items: center;
|
|
136
|
-
display: flex;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.doubao-content-card__item-action-button {
|
|
140
|
-
width: auto;
|
|
141
|
-
min-width: 60px;
|
|
142
|
-
max-width: 100px;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.doubao-content-card__item-action-switch {
|
|
146
|
-
flex-shrink: 0;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.doubao-content-card__item-action-playback {
|
|
150
|
-
flex-shrink: 0;
|
|
151
|
-
justify-content: center;
|
|
152
|
-
align-items: center;
|
|
153
|
-
width: 32px;
|
|
154
|
-
height: 32px;
|
|
155
|
-
display: flex;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.doubao-content-card__item-action-playback--disabled {
|
|
159
|
-
opacity: .4;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.doubao-content-card__item-action-playback-icon {
|
|
163
|
-
width: 32px;
|
|
164
|
-
height: 32px;
|
|
165
|
-
}
|
|
166
|
-
|
|
1
|
+
.doubao-content-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-content-card__body{width:100%;box-sizing:border-box;background-color:var(--bg-base-1)}.doubao-content-card__item{position:relative;width:100%;padding:12px;box-sizing:border-box;background-color:var(--bg-base-1)}.doubao-content-card__item--without-thumbnail{padding-top:16px;padding-bottom:16px}.doubao-content-card__item::after{position:absolute;right:0;bottom:0;left:104px;height:.5px;content:"";background-color:var(--neutral-transparent-1)}.doubao-content-card__item--last::after{display:none}.doubao-content-card__content{display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;min-width:0}.doubao-content-card__main{display:flex;flex:1 1 0;flex-direction:row;align-items:center;gap:12px;min-width:0}.doubao-content-card__thumbnail{width:80px;height:80px;flex-shrink:0;overflow:hidden;background-color:var(--bg-base-1-overlay);border-radius:5px}.doubao-content-card__thumbnail-image{width:100%;height:100%}.doubao-content-card__text{display:flex;flex:1 1 0;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}.doubao-content-card__title{width:100%;overflow:hidden;color:var(--neutral-100);font-family:"PingFang SC",sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px;text-overflow:ellipsis;white-space:nowrap}.doubao-content-card__title-custom,.doubao-content-card__subtitle-custom,.doubao-content-card__description-custom{display:flex;flex-direction:row;align-items:center;width:100%;max-width:100%;overflow:hidden}.doubao-content-card__secondary,.doubao-content-card__tertiary{display:flex;flex-direction:row;align-items:center;width:100%;min-width:0;overflow:hidden}.doubao-content-card__subtitle,.doubao-content-card__description{width:100%;overflow:hidden;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:13px;font-style:normal;font-weight:400;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.doubao-content-card__item-action{display:flex;flex-shrink:0;flex-direction:row;align-items:center;justify-content:center}.doubao-content-card__item-action-button{width:auto;min-width:60px;max-width:100px}.doubao-content-card__item-action-switch{flex-shrink:0}.doubao-content-card__item-action-playback{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:32px;height:32px}.doubao-content-card__item-action-playback--disabled{opacity:.4}.doubao-content-card__item-action-playback-icon{width:32px;height:32px}
|
package/dist/map-card/styles.css
CHANGED
|
@@ -1,110 +1 @@
|
|
|
1
|
-
.doubao-map-card {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
background-color: var(--bg-base-1);
|
|
4
|
-
border: 1px solid var(--bg-base-2-overlay);
|
|
5
|
-
border-radius: 8px;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: stretch;
|
|
8
|
-
width: 100%;
|
|
9
|
-
display: flex;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.doubao-map-card__viewport {
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
border: 1px solid var(--bg-base-2-overlay);
|
|
16
|
-
flex-shrink: 0;
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: 168px;
|
|
19
|
-
position: relative;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.doubao-map-card__map {
|
|
24
|
-
width: 100%;
|
|
25
|
-
height: 100%;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.doubao-map-card__content {
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
background-color: var(--bg-base-1);
|
|
31
|
-
border-radius: 8px;
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
align-items: center;
|
|
34
|
-
gap: 12px;
|
|
35
|
-
width: 100%;
|
|
36
|
-
padding: 12px;
|
|
37
|
-
display: flex;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.doubao-map-card__text-content {
|
|
41
|
-
flex-direction: column;
|
|
42
|
-
flex: 1 1 0;
|
|
43
|
-
align-items: flex-start;
|
|
44
|
-
gap: 2px;
|
|
45
|
-
min-width: 0;
|
|
46
|
-
display: flex;
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.doubao-map-card__meta {
|
|
51
|
-
flex-direction: row;
|
|
52
|
-
flex-shrink: 0;
|
|
53
|
-
align-items: center;
|
|
54
|
-
width: 100%;
|
|
55
|
-
min-width: 0;
|
|
56
|
-
height: 22px;
|
|
57
|
-
display: flex;
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.doubao-map-card__meta-entry {
|
|
62
|
-
flex-direction: row;
|
|
63
|
-
flex: 0 auto;
|
|
64
|
-
align-items: center;
|
|
65
|
-
min-width: 0;
|
|
66
|
-
display: flex;
|
|
67
|
-
overflow: hidden;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.doubao-map-card__meta-separator {
|
|
71
|
-
color: var(--neutral-70);
|
|
72
|
-
flex-shrink: 0;
|
|
73
|
-
margin: 0 4px;
|
|
74
|
-
font-family: PingFang SC, sans-serif;
|
|
75
|
-
font-size: 13px;
|
|
76
|
-
font-weight: 400;
|
|
77
|
-
line-height: 1.5;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.doubao-map-card__meta-text {
|
|
81
|
-
min-width: 0;
|
|
82
|
-
color: var(--neutral-70);
|
|
83
|
-
text-overflow: ellipsis;
|
|
84
|
-
white-space: nowrap;
|
|
85
|
-
font-family: PingFang SC, sans-serif;
|
|
86
|
-
font-size: 13px;
|
|
87
|
-
font-style: normal;
|
|
88
|
-
font-weight: 400;
|
|
89
|
-
line-height: 1.5;
|
|
90
|
-
overflow: hidden;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.doubao-map-card__meta-text--highlight {
|
|
94
|
-
color: #ff375f;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.doubao-map-card__inline-actions {
|
|
98
|
-
flex-direction: row;
|
|
99
|
-
flex-shrink: 0;
|
|
100
|
-
align-items: center;
|
|
101
|
-
gap: 8px;
|
|
102
|
-
display: flex;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.doubao-map-card__inline-action {
|
|
106
|
-
width: auto;
|
|
107
|
-
min-width: 60px;
|
|
108
|
-
max-width: 100px;
|
|
109
|
-
}
|
|
110
|
-
|
|
1
|
+
.doubao-map-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-map-card__viewport{position:relative;width:100%;height:168px;flex-shrink:0;box-sizing:border-box;overflow:hidden;border:1px solid var(--bg-base-2-overlay)}.doubao-map-card__map{width:100%;height:100%}.doubao-map-card__content{display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;padding:12px;box-sizing:border-box;background-color:var(--bg-base-1);border-radius:8px}.doubao-map-card__text-content{display:flex;flex:1 1 0;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;overflow:hidden}.doubao-map-card__meta{display:flex;flex-direction:row;align-items:center;width:100%;height:22px;flex-shrink:0;min-width:0;overflow:hidden}.doubao-map-card__meta-entry{display:flex;flex:0 1 auto;flex-direction:row;align-items:center;min-width:0;overflow:hidden}.doubao-map-card__meta-separator{margin:0 4px;flex-shrink:0;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:13px;font-weight:400;line-height:1.5}.doubao-map-card__meta-text{min-width:0;overflow:hidden;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:13px;font-style:normal;font-weight:400;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.doubao-map-card__meta-text--highlight{color:#ff375f}.doubao-map-card__inline-actions{display:flex;flex-shrink:0;flex-direction:row;align-items:center;gap:8px}.doubao-map-card__inline-action{width:auto;min-width:60px;max-width:100px}
|
|
@@ -1,149 +1 @@
|
|
|
1
|
-
.doubao-price-action-card {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
background-color: var(--bg-base-1);
|
|
4
|
-
border: 1px solid var(--bg-base-2-overlay);
|
|
5
|
-
border-radius: 8px;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: stretch;
|
|
8
|
-
width: 100%;
|
|
9
|
-
display: flex;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.doubao-price-action-card__body {
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
background-color: var(--bg-base-1);
|
|
16
|
-
width: 100%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.doubao-price-action-card__default {
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
width: 100%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.doubao-price-action-card__item {
|
|
25
|
-
box-sizing: border-box;
|
|
26
|
-
background-color: var(--bg-base-1);
|
|
27
|
-
flex-direction: row;
|
|
28
|
-
align-items: center;
|
|
29
|
-
width: 100%;
|
|
30
|
-
height: 82px;
|
|
31
|
-
padding: 20px 12px;
|
|
32
|
-
display: flex;
|
|
33
|
-
position: relative;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.doubao-price-action-card__item:after {
|
|
37
|
-
content: "";
|
|
38
|
-
background-color: var(--neutral-transparent-1);
|
|
39
|
-
height: .5px;
|
|
40
|
-
position: absolute;
|
|
41
|
-
bottom: 0;
|
|
42
|
-
left: 95px;
|
|
43
|
-
right: 0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.doubao-price-action-card__item--last:after {
|
|
47
|
-
display: none;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.doubao-price-action-card__item-content {
|
|
51
|
-
flex-direction: row;
|
|
52
|
-
align-items: center;
|
|
53
|
-
gap: 12px;
|
|
54
|
-
width: 100%;
|
|
55
|
-
display: flex;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.doubao-price-action-card__value {
|
|
59
|
-
flex-direction: column;
|
|
60
|
-
flex-shrink: 0;
|
|
61
|
-
align-items: flex-start;
|
|
62
|
-
width: 94px;
|
|
63
|
-
min-width: 0;
|
|
64
|
-
padding: 0 4px;
|
|
65
|
-
display: flex;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.doubao-price-action-card__price.doubao-price {
|
|
69
|
-
width: 100%;
|
|
70
|
-
min-width: 0;
|
|
71
|
-
overflow: hidden;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.doubao-price-action-card__price.doubao-price .doubao-price__amount, .doubao-price-action-card__price.doubao-price .doubao-price__main, .doubao-price-action-card__price.doubao-price .doubao-price__integer-group {
|
|
75
|
-
min-width: 0;
|
|
76
|
-
max-width: 100%;
|
|
77
|
-
overflow: hidden;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.doubao-price-action-card__price.doubao-price .doubao-price__main, .doubao-price-action-card__price.doubao-price .doubao-price__integer-group, .doubao-price-action-card__price.doubao-price .doubao-price__integer {
|
|
81
|
-
flex-shrink: 1;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.doubao-price-action-card__price.doubao-price .doubao-price__integer {
|
|
85
|
-
text-overflow: ellipsis;
|
|
86
|
-
min-width: 0;
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.doubao-price-action-card__badge {
|
|
91
|
-
box-sizing: border-box;
|
|
92
|
-
max-width: 100%;
|
|
93
|
-
height: 20px;
|
|
94
|
-
color: var(--pink-500);
|
|
95
|
-
text-overflow: ellipsis;
|
|
96
|
-
white-space: nowrap;
|
|
97
|
-
background-color: var(--pink-trans-6);
|
|
98
|
-
border-radius: 4px;
|
|
99
|
-
padding: 2px 3px;
|
|
100
|
-
font-family: PingFang SC, sans-serif;
|
|
101
|
-
font-size: 11px;
|
|
102
|
-
font-style: normal;
|
|
103
|
-
font-weight: 400;
|
|
104
|
-
line-height: 14px;
|
|
105
|
-
overflow: hidden;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.doubao-price-action-card__info {
|
|
109
|
-
flex-direction: column;
|
|
110
|
-
flex: 1 1 0;
|
|
111
|
-
justify-content: center;
|
|
112
|
-
min-width: 0;
|
|
113
|
-
display: flex;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.doubao-price-action-card__info-row {
|
|
117
|
-
width: 100%;
|
|
118
|
-
color: var(--neutral-70);
|
|
119
|
-
text-overflow: ellipsis;
|
|
120
|
-
white-space: nowrap;
|
|
121
|
-
font-family: PingFang SC, sans-serif;
|
|
122
|
-
font-size: 13px;
|
|
123
|
-
font-style: normal;
|
|
124
|
-
font-weight: 400;
|
|
125
|
-
line-height: 20px;
|
|
126
|
-
overflow: hidden;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.doubao-price-action-card__info-row + .doubao-price-action-card__info-row {
|
|
130
|
-
margin-top: 2px;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.doubao-price-action-card__item-action {
|
|
134
|
-
--doubao-button-border-radius: 8px;
|
|
135
|
-
--doubao-button-default-border-radius: 8px;
|
|
136
|
-
--doubao-button-default-height: 38px;
|
|
137
|
-
--doubao-button-default-padding-x: 12px;
|
|
138
|
-
--doubao-button-default-padding-y: 0;
|
|
139
|
-
--doubao-button-default-font-size: 14px;
|
|
140
|
-
--doubao-button-default-line-height: 20px;
|
|
141
|
-
--doubao-button-default-bg: var(--bg-base-1-overlay);
|
|
142
|
-
--doubao-button-default-text: var(--neutral-100);
|
|
143
|
-
flex-shrink: 0;
|
|
144
|
-
width: auto;
|
|
145
|
-
min-width: 60px;
|
|
146
|
-
max-width: 100px;
|
|
147
|
-
height: 38px;
|
|
148
|
-
}
|
|
149
|
-
|
|
1
|
+
.doubao-price-action-card{display:flex;flex-direction:column;align-items:stretch;width:100%;box-sizing:border-box;overflow:hidden;background-color:var(--bg-base-1);border:1px solid var(--bg-base-2-overlay);border-radius:8px}.doubao-price-action-card__body{width:100%;box-sizing:border-box;background-color:var(--bg-base-1)}.doubao-price-action-card__default{width:100%;box-sizing:border-box}.doubao-price-action-card__item{position:relative;display:flex;flex-direction:row;align-items:center;width:100%;height:82px;padding:20px 12px;box-sizing:border-box;background-color:var(--bg-base-1)}.doubao-price-action-card__item::after{position:absolute;right:0;bottom:0;left:95px;height:.5px;content:"";background-color:var(--neutral-transparent-1)}.doubao-price-action-card__item--last::after{display:none}.doubao-price-action-card__item-content{display:flex;flex-direction:row;align-items:center;width:100%;gap:12px}.doubao-price-action-card__value{display:flex;flex-direction:column;align-items:flex-start;padding:0 4px;width:94px;min-width:0;flex-shrink:0}.doubao-price-action-card__price.doubao-price{width:100%;min-width:0;overflow:hidden}.doubao-price-action-card__price.doubao-price .doubao-price__amount,.doubao-price-action-card__price.doubao-price .doubao-price__main,.doubao-price-action-card__price.doubao-price .doubao-price__integer-group{max-width:100%;min-width:0;overflow:hidden}.doubao-price-action-card__price.doubao-price .doubao-price__main,.doubao-price-action-card__price.doubao-price .doubao-price__integer-group,.doubao-price-action-card__price.doubao-price .doubao-price__integer{flex-shrink:1}.doubao-price-action-card__price.doubao-price .doubao-price__integer{min-width:0;overflow:hidden;text-overflow:ellipsis}.doubao-price-action-card__badge{height:20px;max-width:100%;padding:2px 3px;box-sizing:border-box;overflow:hidden;color:var(--pink-500);font-family:"PingFang SC",sans-serif;font-size:11px;font-style:normal;font-weight:400;line-height:14px;text-overflow:ellipsis;white-space:nowrap;background-color:var(--pink-trans-6);border-radius:4px}.doubao-price-action-card__info{display:flex;flex:1 1 0;flex-direction:column;justify-content:center;min-width:0}.doubao-price-action-card__info-row{width:100%;overflow:hidden;color:var(--neutral-70);font-family:"PingFang SC",sans-serif;font-size:13px;font-style:normal;font-weight:400;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.doubao-price-action-card__info-row+.doubao-price-action-card__info-row{margin-top:2px}.doubao-price-action-card__item-action{width:auto;min-width:60px;max-width:100px;height:38px;flex-shrink:0;--doubao-button-border-radius: 8px;--doubao-button-default-border-radius: 8px;--doubao-button-default-height: 38px;--doubao-button-default-padding-x: 12px;--doubao-button-default-padding-y: 0;--doubao-button-default-font-size: 14px;--doubao-button-default-line-height: 20px;--doubao-button-default-bg: var(--bg-base-1-overlay);--doubao-button-default-text: var(--neutral-100)}
|