@fonixtree/magic-design 0.0.119 → 0.0.121

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.
Files changed (29) hide show
  1. package/es/composite-comp/bol/components/Banner/mobile/index.less +71 -48
  2. package/es/composite-comp/bol/components/Carousel/mobile/index.less +92 -76
  3. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  4. package/es/composite-comp/bol/components/ImageText/mobile/index.less +291 -232
  5. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +26 -22
  6. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +44 -37
  7. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +36 -29
  8. package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
  9. package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  10. package/es/composite-comp/bol/components/Wallet/pc/index.js +7 -3
  11. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  12. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +34 -20
  13. package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  14. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +44 -40
  15. package/lib/composite-comp/bol/components/Banner/mobile/index.less +71 -48
  16. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +92 -76
  17. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  18. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +291 -232
  19. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +26 -22
  20. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +44 -37
  21. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +36 -29
  22. package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
  23. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  24. package/lib/composite-comp/bol/components/Wallet/pc/index.js +7 -3
  25. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  26. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +34 -20
  27. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  28. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +44 -40
  29. package/package.json +1 -1
@@ -1,233 +1,292 @@
1
1
  .image-text-mobile {
2
- padding: 2.267vw 0;
3
- }
4
- .image-text-mobile .headline {
5
- margin-bottom: 1.067vw;
6
- }
7
- .image-text-mobile .subtitle {
8
- margin-bottom: 4.8vw;
9
- }
10
- .image-text-mobile .group-wrap .one-card .card-btn-wrap .card-first-btn,
11
- .image-text-mobile .group-wrap .one-card .card-btn-wrap .card-second-btn {
12
- width: fit-content;
13
- }
14
- .image-text-mobile .btn-wrap {
15
- display: flex;
16
- width: 100%;
17
- justify-content: center;
18
- }
19
- .image-text-mobile .btn-wrap .first-btn {
20
- margin-top: 4.8vw;
21
- }
22
- .image-text-mobile .btn-wrap .second-btn {
23
- margin-top: 4.8vw;
24
- margin-left: 1.6vw;
25
- }
26
- .normal1 .group-wrap {
27
- padding: 0 2vw;
28
- width: 100%;
29
- }
30
- .normal1 .group-wrap .one-card {
31
- display: flex;
32
- align-items: stretch;
33
- padding: 2.4vw;
34
- margin-bottom: 1.067vw;
35
- }
36
- .normal1 .group-wrap .one-card:last-of-type {
37
- margin-bottom: 0;
38
- }
39
- .normal1 .group-wrap .one-card .card-image-wrap {
40
- flex-shrink: 0;
41
- margin-right: 1.6vw;
42
- }
43
- .normal1 .group-wrap .one-card .card-content-wrap {
44
- flex: 1;
45
- display: flex;
46
- flex-direction: column;
47
- justify-content: center;
48
- }
49
- .normal1 .group-wrap .one-card .card-content-wrap .card-title {
50
- margin-bottom: 0.8vw;
51
- text-align: left !important;
52
- }
53
- .normal1 .group-wrap .one-card .card-content-wrap .card-text {
54
- margin-bottom: 1.6vw;
55
- text-align: left !important;
56
- }
57
- .normal1 .group-wrap .one-card .card-content-wrap .card-btn-wrap {
58
- display: flex;
59
- }
60
- .normal1 .group-wrap .one-card .card-content-wrap .card-btn-wrap .card-second-btn {
61
- margin-left: 1.6vw;
62
- }
63
- .normal2 .group-wrap {
64
- width: 100%;
65
- padding: 0 2vw;
66
- }
67
- .normal2 .group-wrap .one-card {
68
- width: 100%;
69
- padding: 2.667vw 2.133vw;
70
- margin-bottom: 4.8vw;
71
- }
72
- .normal2 .group-wrap .one-card:last-of-type {
73
- margin-bottom: 0;
74
- }
75
- .normal2 .group-wrap .one-card .card-image-wrap .card-image {
76
- width: fit-content;
77
- margin: 0 auto;
78
- }
79
- .normal2 .group-wrap .one-card .card-content-wrap .card-title {
80
- margin-bottom: 1.067vw;
81
- }
82
- .normal2 .group-wrap .one-card .card-content-wrap .card-text {
83
- margin-bottom: 2.133vw;
84
- }
85
- .normal2 .group-wrap .one-card .card-content-wrap .card-btn-wrap {
86
- display: flex;
87
- }
88
- .normal2 .group-wrap .one-card .card-content-wrap .card-btn-wrap .card-second-btn {
89
- margin-left: 1.6vw;
90
- }
91
- .normal3 .group-wrap {
92
- display: flex;
93
- flex-wrap: wrap;
94
- width: 100%;
95
- padding: 0 2vw;
96
- }
97
- .normal3 .group-wrap .one-card {
98
- display: flex;
99
- flex-direction: column;
100
- }
101
- .normal3 .group-wrap .one-card .card-image-wrap {
102
- width: 100%;
103
- }
104
- .normal3 .group-wrap .one-card .card-image-wrap .card-image {
105
- width: fit-content;
106
- margin: 0 auto 0.933vw;
107
- }
108
- .normal3 .group-wrap .one-card .card-title {
109
- margin-bottom: 0.533vw;
110
- }
111
- .normal3 .group-wrap .one-card .card-text {
112
- margin-bottom: 0.933vw;
113
- }
114
- .normal3 .group-wrap .one-card .card-btn-wrap {
115
- display: flex;
116
- flex-direction: column;
117
- }
118
- .normal3 .group-wrap .one-card .card-first-btn,
119
- .normal3 .group-wrap .one-card .card-second-btn {
120
- margin-bottom: 1.067vw;
121
- }
122
- .normal3 .group-wrap .card-margin-bottom {
123
- margin-bottom: 1.333vw;
124
- }
125
- .outsideM .group-wrap {
126
- padding: 0 2vw;
127
- width: 100%;
128
- }
129
- .outsideM .group-wrap .one-card {
130
- margin-top: 4.667vw;
131
- position: relative;
132
- padding: 4vw 1.333vw 2.667vw 4.8vw;
133
- }
134
- .outsideM .group-wrap .one-card .card-image-wrap {
135
- position: absolute;
136
- left: 2.4vw;
137
- top: 0;
138
- transform: translateY(-50%);
139
- }
140
- .outsideM .group-wrap .one-card .card-content-wrap .card-title {
141
- margin-bottom: 0.533vw;
142
- text-align: left !important;
143
- }
144
- .outsideM .group-wrap .one-card .card-content-wrap .card-text {
145
- margin-bottom: 1.6vw;
146
- text-align: left !important;
147
- }
148
- .outsideM .group-wrap .one-card .card-content-wrap .card-btn-wrap {
149
- display: flex;
150
- }
151
- .outsideM .group-wrap .one-card .card-content-wrap .card-btn-wrap .card-second-btn {
152
- margin-left: 1.6vw;
153
- }
154
- .centerM .group-wrap {
155
- position: relative;
156
- width: 100%;
157
- }
158
- .centerM .group-wrap::before {
159
- content: '';
160
- position: absolute;
161
- width: 1px;
162
- height: 100%;
163
- border-right: 1px dashed #D2D9E5;
164
- left: 50%;
165
- transform: translateX(-50%);
166
- }
167
- .centerM .group-wrap .one-card {
168
- width: calc((100% - 1px)/2);
169
- position: relative;
170
- padding: 0 1.867vw 2.133vw;
171
- }
172
- .centerM .group-wrap .one-card::before {
173
- content: '';
174
- position: absolute;
175
- border-radius: 50%;
176
- background: #2F54EB;
177
- width: 1.333vw;
178
- height: 1.333vw;
179
- z-index: 10;
180
- border: 0.267vw solid #CCE3FF;
181
- }
182
- .centerM .group-wrap .one-card:nth-of-type(2n-1) {
183
- left: 0;
184
- }
185
- .centerM .group-wrap .one-card:nth-of-type(2n-1)::before {
186
- right: -0.667vw;
187
- top: 0.667vw;
188
- }
189
- .centerM .group-wrap .one-card:nth-of-type(2n-1) .card-content-wrap {
190
- display: flex;
191
- flex-direction: column;
192
- align-items: flex-end;
193
- }
194
- .centerM .group-wrap .one-card:nth-of-type(2n-1) .card-content-wrap .card-title,
195
- .centerM .group-wrap .one-card:nth-of-type(2n-1) .card-content-wrap .card-text {
196
- text-align: right !important;
197
- }
198
- .centerM .group-wrap .one-card:nth-of-type(2n-1) .card-content-wrap .image-subtext-wrap {
199
- flex-direction: row-reverse;
200
- }
201
- .centerM .group-wrap .one-card:nth-of-type(2n-1) .card-content-wrap .image-subtext-wrap .card-image-wrap {
202
- margin-left: 1.067vw;
203
- }
204
- .centerM .group-wrap .one-card:nth-of-type(2n-1) .card-content-wrap .card-btn-wrap {
205
- display: flex;
206
- flex-direction: column;
207
- align-items: flex-end;
208
- }
209
- .centerM .group-wrap .one-card:nth-of-type(2n) {
210
- left: 50%;
211
- }
212
- .centerM .group-wrap .one-card:nth-of-type(2n)::before {
213
- left: -0.667vw;
214
- top: 0.667vw;
215
- }
216
- .centerM .group-wrap .one-card:nth-of-type(2n) .card-content-wrap .card-title,
217
- .centerM .group-wrap .one-card:nth-of-type(2n) .card-content-wrap .card-text {
218
- text-align: left !important;
219
- }
220
- .centerM .group-wrap .one-card:nth-of-type(2n) .card-content-wrap .image-subtext-wrap .card-image-wrap {
221
- margin-right: 1.067vw;
222
- }
223
- .centerM .group-wrap .one-card .card-content-wrap .card-title {
224
- margin-bottom: 1.333vw;
225
- }
226
- .centerM .group-wrap .one-card .card-content-wrap .image-subtext-wrap {
227
- display: flex;
228
- margin-bottom: 2.667vw;
229
- align-items: center;
230
- }
231
- .centerM .group-wrap .one-card .card-content-wrap .card-btn-wrap .card-second-btn {
232
- margin-top: 1.6vw;
233
- }
2
+ // display: flex;
3
+ // flex-direction: column;
4
+ padding: 17px 0;
5
+ .headline {
6
+ margin-bottom: 8px;
7
+ }
8
+ .subtitle {
9
+ margin-bottom: 36px;
10
+ }
11
+ .group-wrap .one-card .card-btn-wrap {
12
+ .card-first-btn, .card-second-btn {
13
+ width: fit-content;
14
+ }
15
+ }
16
+
17
+ .btn-wrap {
18
+ display: flex;
19
+ width: 100%;
20
+ justify-content: center;
21
+
22
+ .first-btn {
23
+ margin-top: 36px;
24
+ }
25
+ .second-btn {
26
+ margin-top: 36px;
27
+ margin-left: 12px;
28
+ }
29
+ }
30
+ }
31
+ .normal1 {
32
+ .group-wrap {
33
+ padding: 0 15px;
34
+ width: 100%;
35
+ .one-card {
36
+ display: flex;
37
+ align-items: stretch;
38
+ padding: 18px;
39
+ margin-bottom: 8px;
40
+ &:last-of-type {
41
+ margin-bottom: 0;
42
+ }
43
+ .card-image-wrap {
44
+ flex-shrink: 0;
45
+ margin-right: 12px;
46
+ }
47
+ .card-content-wrap {
48
+ flex: 1;
49
+ display: flex;
50
+ flex-direction: column;
51
+ justify-content: center;
52
+ .card-title {
53
+ margin-bottom: 6px;
54
+ text-align: left !important;
55
+ }
56
+ .card-text {
57
+ margin-bottom: 12px;
58
+ text-align: left !important;
59
+ }
60
+ .card-btn-wrap {
61
+ display: flex;
62
+ .card-second-btn {
63
+ margin-left: 12px;
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+
71
+ .normal2 {
72
+ .group-wrap {
73
+ width: 100%;
74
+ padding: 0 15px;
75
+ .one-card {
76
+ width: 100%;
77
+ padding: 20px 16px;
78
+ margin-bottom: 36px;
79
+ &:last-of-type {
80
+ margin-bottom: 0;
81
+ }
82
+ .card-image-wrap {
83
+ .card-image {
84
+ width: fit-content;
85
+ margin: 0 auto;
86
+ }
87
+ }
88
+ .card-content-wrap {
89
+ .card-title {
90
+ margin-bottom: 8px;
91
+ }
92
+ .card-text {
93
+ margin-bottom: 16px;
94
+ }
95
+ .card-btn-wrap {
96
+ display: flex;
97
+ .card-second-btn {
98
+ margin-left: 12px;
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ .normal3 {
106
+ .group-wrap {
107
+ display: flex;
108
+ // margin-bottom: 36px;
109
+ // margin-top: 36px;
110
+ flex-wrap: wrap;
111
+ width: 100%;
112
+ padding: 0 15px;
113
+
114
+ .one-card {
115
+ display: flex;
116
+ flex-direction: column;
117
+ .card-image-wrap {
118
+ width: 100%;
119
+ .card-image {
120
+ // max-height: 107px;
121
+ width: fit-content;
122
+ margin: 0 auto 7px;
123
+ }
124
+ }
125
+
126
+ .card-title {
127
+ margin-bottom: 4px;
128
+ }
129
+
130
+ .card-text {
131
+ margin-bottom: 7px;
132
+ }
133
+ .card-btn-wrap {
134
+ display: flex;
135
+ flex-direction: column;
136
+ }
137
+
138
+ .card-first-btn, .card-second-btn {
139
+ margin-bottom: 8px;
140
+ }
141
+ }
142
+ .card-margin-bottom {
143
+ margin-bottom: 10px;
144
+ }
145
+ }
146
+ }
147
+
148
+ .outsideM {
149
+ .group-wrap {
150
+ padding: 0 15px;
151
+ width: 100%;
152
+ .one-card {
153
+ margin-top: 35px;
154
+ position: relative;
155
+ padding: 30px 10px 20px 36px;
156
+ .card-image-wrap {
157
+ position: absolute;
158
+ left: 18px;
159
+ top: 0;
160
+ transform: translateY(-50%);
161
+ }
162
+ .card-content-wrap {
163
+ .card-title {
164
+ margin-bottom: 4px;
165
+ text-align: left !important;
166
+ }
167
+ .card-text {
168
+ margin-bottom: 12px;
169
+ text-align: left !important;
170
+ }
171
+ .card-btn-wrap {
172
+ display: flex;
173
+ .card-second-btn {
174
+ margin-left: 12px;
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+
182
+ .centerM {
183
+ .group-wrap {
184
+ position: relative;
185
+ width: 100%;
186
+ &::before {
187
+ content: '';
188
+ position: absolute;
189
+ width: 1px;
190
+ height: 100%;
191
+ border-right: 1px dashed #D2D9E5;
192
+ left: 50%;
193
+ transform: translateX(-50%);
194
+ }
195
+ .one-card {
196
+ width: calc((100% - 1px)/2);
197
+ position: relative;
198
+ padding: 0 14px 16px;
199
+ &::before {
200
+ content: '';
201
+ position: absolute;
202
+ border-radius: 50%;
203
+ background: #2F54EB;
204
+ width: 10px;
205
+ height: 10px;
206
+ z-index: 10;
207
+ border: 2px solid #CCE3FF;
208
+ }
209
+ // &::before {
210
+ // opacity: 0.2;
211
+ // width: 10px;
212
+ // height: 10px;
213
+ // }
214
+ &:nth-of-type(2n-1) {
215
+ left: 0;
216
+ &::before {
217
+ right: -5px;
218
+ top: 5px;
219
+ }
220
+ // &::after {
221
+ // right: -3px;
222
+ // top: 7px;
223
+ // }
224
+ .card-content-wrap {
225
+ display: flex;
226
+ flex-direction: column;
227
+ align-items: flex-end;
228
+ .card-title, .card-text {
229
+ text-align: right !important;
230
+ }
231
+ .image-subtext-wrap {
232
+ flex-direction: row-reverse;
233
+ .card-image-wrap {
234
+ margin-left: 8px;
235
+ }
236
+ // .card-text {
237
+ // .m-meta-text {
238
+ // text-align: right !important;
239
+ // }
240
+ // }
241
+ }
242
+ .card-btn-wrap {
243
+ display: flex;
244
+ flex-direction: column;
245
+ align-items: flex-end;
246
+ }
247
+ }
248
+ }
249
+ &:nth-of-type(2n) {
250
+ left: 50%;
251
+ &::before {
252
+ left: -5px;
253
+ top: 5px;
254
+ }
255
+ // &::after {
256
+ // left: -3px;
257
+ // top: 7px;
258
+ // }
259
+ .card-content-wrap {
260
+ .card-title, .card-text {
261
+ text-align: left !important;
262
+ }
263
+ .image-subtext-wrap {
264
+ .card-image-wrap {
265
+ margin-right: 8px;
266
+ }
267
+ // .card-text {
268
+ // .m-meta-text {
269
+ // text-align: left !important;
270
+ // }
271
+ // }
272
+ }
273
+ }
274
+ }
275
+ .card-content-wrap {
276
+ .card-title {
277
+ margin-bottom: 10px;
278
+ }
279
+ .image-subtext-wrap {
280
+ display: flex;
281
+ margin-bottom: 20px;
282
+ align-items: center;
283
+ }
284
+ .card-btn-wrap {
285
+ .card-second-btn {
286
+ margin-top: 12px;
287
+ }
288
+ }
289
+ }
290
+ }
291
+ }
292
+ }
@@ -1,25 +1,29 @@
1
1
  .video-layout1-wrap {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- }
5
- .video-layout1-wrap .video-item-wrap {
6
- height: 28.267vw;
7
- position: relative;
8
- margin-bottom: 1.333vw;
9
- }
10
- .video-layout1-wrap .video-item-wrap:last-child {
11
- margin-bottom: 0;
12
- }
13
- .video-layout1-wrap .video-item-wrap .play-btn {
14
- position: absolute;
15
- top: 50%;
16
- left: 50%;
17
- transform: translate(-50%, -50%);
18
- width: 8.667vw;
19
- height: 8.667vw;
20
- z-index: 1;
21
- }
22
- .video-layout1-wrap .video-item-wrap .play-btn img {
23
- width: 100%;
24
- height: 100%;
25
- }
4
+
5
+ .video-item-wrap {
6
+ height: 212px;
7
+ position: relative;
8
+ margin-bottom: 10px;
9
+
10
+ &:last-child{
11
+ margin-bottom: 0;
12
+ }
13
+
14
+ .play-btn {
15
+ position: absolute;
16
+ top: 50%;
17
+ left: 50%;
18
+ transform: translate(-50%, -50%);
19
+ width: 65px;
20
+ height: 65px;
21
+ z-index: 1;
22
+
23
+ img {
24
+ width: 100%;
25
+ height: 100%;
26
+ }
27
+ }
28
+ }
29
+ }
@@ -2,40 +2,47 @@
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  position: relative;
5
- padding-bottom: 2.133vw;
6
- }
7
- .video-layout2-wrap .slider-wrap {
8
- width: 100%;
9
- overflow: hidden;
10
- }
11
- .video-layout2-wrap .slider-wrap .slider-list-wrap {
12
- display: flex;
13
- transform: translateX(-100%);
14
- transition: all 0.3s linear;
15
- }
16
- .video-layout2-wrap .slider-wrap .slider-list-wrap.noAnimation {
17
- animation: none;
18
- }
19
- .video-layout2-wrap .slider-wrap .video-item-wrap {
20
- height: 28.267vw;
21
- position: relative;
22
- margin-bottom: 1.333vw;
23
- width: 100%;
24
- flex-shrink: 0;
25
- }
26
- .video-layout2-wrap .slider-wrap .video-item-wrap:last-child {
27
- margin-bottom: 0;
28
- }
29
- .video-layout2-wrap .slider-wrap .video-item-wrap .play-btn {
30
- position: absolute;
31
- top: 50%;
32
- left: 50%;
33
- transform: translate(-50%, -50%);
34
- width: 8.667vw;
35
- height: 8.667vw;
36
- z-index: 1;
37
- }
38
- .video-layout2-wrap .slider-wrap .video-item-wrap .play-btn img {
39
- width: 100%;
40
- height: 100%;
41
- }
5
+ padding-bottom: 16px;
6
+
7
+ .slider-wrap {
8
+ width: 100%;
9
+ overflow: hidden;
10
+
11
+ .slider-list-wrap {
12
+ display: flex;
13
+ transform: translateX(-100%);
14
+ transition: all .3s linear;
15
+
16
+ &.noAnimation {
17
+ animation: none;
18
+ }
19
+ }
20
+
21
+ .video-item-wrap {
22
+ height: 212px;
23
+ position: relative;
24
+ margin-bottom: 10px;
25
+ width: 100%;
26
+ flex-shrink: 0;
27
+
28
+ &:last-child {
29
+ margin-bottom: 0;
30
+ }
31
+
32
+ .play-btn {
33
+ position: absolute;
34
+ top: 50%;
35
+ left: 50%;
36
+ transform: translate(-50%, -50%);
37
+ width: 65px;
38
+ height: 65px;
39
+ z-index: 1;
40
+
41
+ img {
42
+ width: 100%;
43
+ height: 100%;
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }