create-fesd-app 1.0.8 → 1.0.10
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/package.json +2 -2
- package/src/assets/css/layouts/article4/_article4_2.0.sass +208 -102
- package/src/assets/css/layouts/article4/_article4_2.0/346/213/267/350/262/235.sass +989 -0
- package/src/assets/css/layouts/article4/_article4_setting.sass +11 -9
- package/src/assets/css/pages/about.sass +16 -0
- package/src/assets/js/commons/inits.js +2 -1
- package/src/layouts/article4/_article.pug +9 -11
- package/src/pages/about.pug +2835 -75
@@ -0,0 +1,989 @@
|
|
1
|
+
@use "sass:math"
|
2
|
+
|
3
|
+
@import ./_article4_setting
|
4
|
+
|
5
|
+
/////////////////////////////////////////////
|
6
|
+
/////////////// [ 基本樣式 ] ///////////////
|
7
|
+
/////////////////////////////////////////////
|
8
|
+
// 最後修改時間 2023/03/07 eric
|
9
|
+
|
10
|
+
._article
|
11
|
+
// 內容區塊
|
12
|
+
._contentWrap
|
13
|
+
@extend %_contentWrap
|
14
|
+
|
15
|
+
// 圖片區塊
|
16
|
+
._imgCover
|
17
|
+
@extend %_imgCover
|
18
|
+
|
19
|
+
// 圖片結構
|
20
|
+
._cover
|
21
|
+
@extend %_cover
|
22
|
+
|
23
|
+
// 圖片
|
24
|
+
._photo
|
25
|
+
@extend %_photo
|
26
|
+
|
27
|
+
// 圖片描述
|
28
|
+
._description
|
29
|
+
@extend %_description
|
30
|
+
|
31
|
+
// 文字區塊
|
32
|
+
._wordCover
|
33
|
+
@extend %_wordCover
|
34
|
+
|
35
|
+
// 主標題
|
36
|
+
._H
|
37
|
+
@extend %_H
|
38
|
+
|
39
|
+
// 副標題
|
40
|
+
._subH
|
41
|
+
@extend %_subH
|
42
|
+
|
43
|
+
// 內文
|
44
|
+
._P
|
45
|
+
@extend %_P
|
46
|
+
|
47
|
+
// 按鈕結構
|
48
|
+
._buttonCover
|
49
|
+
@extend %_buttonCover
|
50
|
+
|
51
|
+
// 按鈕
|
52
|
+
._button
|
53
|
+
@extend %_button
|
54
|
+
|
55
|
+
// swiper 結構
|
56
|
+
&[img-swiper="on"]
|
57
|
+
._imgCover
|
58
|
+
margin-bottom: 0
|
59
|
+
.swiper-wrapper
|
60
|
+
height: auto
|
61
|
+
.swiper-pagination
|
62
|
+
@extend %swiper_pagination
|
63
|
+
.swiper-pagination-bullet
|
64
|
+
@extend %swiper_pagination_bullet
|
65
|
+
.swiper-button-cover
|
66
|
+
@extend %swiper_button_cover
|
67
|
+
.swiper-button-next
|
68
|
+
@extend %swiper_button_next
|
69
|
+
.swiper-button-prev
|
70
|
+
@extend %swiper_button_prev
|
71
|
+
+rwdmax($basic_rwd)
|
72
|
+
._imgCover
|
73
|
+
margin-bottom: 0
|
74
|
+
// 動態點點
|
75
|
+
&[swiper-pagination-dynamic="on"]
|
76
|
+
.swiper-pagination
|
77
|
+
left: 50%
|
78
|
+
// 點點深淺模式樣式
|
79
|
+
// 以下可客製化更改
|
80
|
+
&[nav-theme="dark"]
|
81
|
+
.swiper-pagination
|
82
|
+
.swiper-pagination-bullet
|
83
|
+
background-color: #C4C4C4
|
84
|
+
&.swiper-pagination-bullet-active
|
85
|
+
background-color: #000
|
86
|
+
&[nav-theme="light"]
|
87
|
+
.swiper-pagination
|
88
|
+
.swiper-pagination-bullet
|
89
|
+
background-color: #ffffff7e
|
90
|
+
&.swiper-pagination-bullet-active
|
91
|
+
background-color: #ffffff
|
92
|
+
|
93
|
+
/////////////////////////////////////////////
|
94
|
+
///////////// [ 個別類型設定 ] /////////////
|
95
|
+
/////////////////////////////////////////////
|
96
|
+
|
97
|
+
// _article ( SL、SR )
|
98
|
+
._article
|
99
|
+
// 純文字段落設定
|
100
|
+
._H + ._wordCover
|
101
|
+
margin: 0 !important
|
102
|
+
._wordCover
|
103
|
+
&:only-child
|
104
|
+
margin: 0 !important
|
105
|
+
+rwdmax($basic_rwd)
|
106
|
+
&[mobile-rwd="on"]
|
107
|
+
._wordCover
|
108
|
+
margin-top: 0
|
109
|
+
._imgCover
|
110
|
+
// margin-top: $img-cover-TB-gap_rwd !important
|
111
|
+
margin-top: $img-cover-TB-gap_rwd
|
112
|
+
order: 1
|
113
|
+
&.typeSL,
|
114
|
+
&.typeSR
|
115
|
+
._subH
|
116
|
+
margin-bottom: 0
|
117
|
+
width: 35%
|
118
|
+
+rwdmax($basic_rwd)
|
119
|
+
._subH,
|
120
|
+
._P
|
121
|
+
width: 100%
|
122
|
+
._subH
|
123
|
+
margin-bottom: $subH-gap_rwd
|
124
|
+
._P
|
125
|
+
margin: 0
|
126
|
+
&.typeSL
|
127
|
+
._subH
|
128
|
+
order: 1
|
129
|
+
._P
|
130
|
+
margin-left: calc(#{$text-LR-gap} - #{$text-padding})
|
131
|
+
order: 2
|
132
|
+
width: calc(65% - #{$text-LR-gap} + #{$text-padding})
|
133
|
+
+rwdmax($basic_rwd)
|
134
|
+
._subH,
|
135
|
+
._P
|
136
|
+
order: initial
|
137
|
+
width: 100%
|
138
|
+
._P
|
139
|
+
margin: 0
|
140
|
+
&.typeSR
|
141
|
+
._subH
|
142
|
+
order: 2
|
143
|
+
._P
|
144
|
+
margin-right: calc(#{$text-LR-gap} - #{$text-padding})
|
145
|
+
order: 1
|
146
|
+
width: calc(65% - #{$text-LR-gap} + #{$text-padding})
|
147
|
+
+rwdmax($basic_rwd)
|
148
|
+
._subH,
|
149
|
+
._P
|
150
|
+
order: initial
|
151
|
+
width: 100%
|
152
|
+
._P
|
153
|
+
margin: 0
|
154
|
+
|
155
|
+
// _articleU ( U、UL、UR )
|
156
|
+
._article
|
157
|
+
&.typeU,
|
158
|
+
&.typeUL,
|
159
|
+
&.typeUR
|
160
|
+
._imgCover
|
161
|
+
order: 3
|
162
|
+
margin-bottom: 0
|
163
|
+
._wordCover
|
164
|
+
margin: 0
|
165
|
+
margin-bottom: $img-cover-TB-gap
|
166
|
+
// ._cover
|
167
|
+
// margin-bottom: 0
|
168
|
+
&[img-row="x2"],
|
169
|
+
&[img-row="x3"],
|
170
|
+
&[img-row="x4"],
|
171
|
+
&[img-row="x5"]
|
172
|
+
._imgCover
|
173
|
+
margin-bottom: #{-$cover-TB-gap}
|
174
|
+
+rwdmax($basic_rwd)
|
175
|
+
._wordCover
|
176
|
+
margin-bottom: $img-cover-TB-gap_rwd
|
177
|
+
._imgCover
|
178
|
+
margin-bottom: 0
|
179
|
+
&[mobile-rwd="on"]
|
180
|
+
._H
|
181
|
+
// 2025.04.21 新增 important
|
182
|
+
margin-top: $img-cover-TB-gap_rwd !important
|
183
|
+
._imgCover
|
184
|
+
margin-top: 0 !important
|
185
|
+
order: -1
|
186
|
+
._wordCover
|
187
|
+
margin: 0
|
188
|
+
// 2025.04.21 新增判斷
|
189
|
+
&[img-row="x2"],
|
190
|
+
&[img-row="x3"],
|
191
|
+
&[img-row="x4"],
|
192
|
+
&[img-row="x5"]
|
193
|
+
._imgCover
|
194
|
+
margin-bottom: #{-$cover-TB-gap_rwd}
|
195
|
+
|
196
|
+
&.typeUL,
|
197
|
+
&.typeUR
|
198
|
+
._H
|
199
|
+
margin-bottom: $img-cover-TB-gap
|
200
|
+
width: 35%
|
201
|
+
+rwdmax($basic_rwd)
|
202
|
+
._H
|
203
|
+
margin-bottom: $H-gap_rwd
|
204
|
+
width: 100%
|
205
|
+
|
206
|
+
&.typeUL
|
207
|
+
._H
|
208
|
+
order: 1
|
209
|
+
._wordCover
|
210
|
+
order: 2
|
211
|
+
margin-left: calc(#{$text-LR-gap} - #{$text-padding})
|
212
|
+
width: calc(65% - #{$text-LR-gap} + #{$text-padding})
|
213
|
+
+rwdmax($basic_rwd)
|
214
|
+
._wordCover
|
215
|
+
margin-left: 0
|
216
|
+
width: 100%
|
217
|
+
|
218
|
+
&.typeUR
|
219
|
+
._H
|
220
|
+
order: 2
|
221
|
+
._wordCover
|
222
|
+
order: 1
|
223
|
+
margin-right: calc(#{$text-LR-gap} - #{$text-padding})
|
224
|
+
width: calc(65% - #{$text-LR-gap} + #{$text-padding})
|
225
|
+
+rwdmax($basic_rwd)
|
226
|
+
._H
|
227
|
+
order: 1
|
228
|
+
width: 100%
|
229
|
+
._wordCover
|
230
|
+
order: 2
|
231
|
+
margin-right: 0
|
232
|
+
width: 100%
|
233
|
+
|
234
|
+
// _articleD ( D、DL、DR )
|
235
|
+
._article
|
236
|
+
&.typeD,
|
237
|
+
&.typeDL,
|
238
|
+
&.typeDR
|
239
|
+
._imgCover
|
240
|
+
order: -1
|
241
|
+
+rwdmax($basic_rwd)
|
242
|
+
&[mobile-rwd="on"]
|
243
|
+
._imgCover
|
244
|
+
order: 1
|
245
|
+
margin-bottom: 0
|
246
|
+
|
247
|
+
&.typeD
|
248
|
+
._imgCover
|
249
|
+
margin-bottom: #{-$cover-TB-gap + $img-cover-TB-gap}
|
250
|
+
._wordCover
|
251
|
+
margin: 0
|
252
|
+
+rwdmax($basic_rwd)
|
253
|
+
._imgCover
|
254
|
+
margin-bottom: #{-$cover-TB-gap_rwd + $img-cover-TB-gap_rwd}
|
255
|
+
|
256
|
+
&.typeDL,
|
257
|
+
&.typeDR
|
258
|
+
._H
|
259
|
+
margin-top: $img-cover-TB-gap
|
260
|
+
width: 35%
|
261
|
+
._wordCover
|
262
|
+
margin-top: $img-cover-TB-gap
|
263
|
+
+rwdmax($basic_rwd)
|
264
|
+
._H
|
265
|
+
margin-top: $img-cover-TB-gap_rwd
|
266
|
+
width: 100%
|
267
|
+
._wordCover
|
268
|
+
margin-top: 0
|
269
|
+
&[mobile-rwd="on"]
|
270
|
+
._H
|
271
|
+
margin-top: 0
|
272
|
+
&.typeDL
|
273
|
+
._H
|
274
|
+
order: 1
|
275
|
+
._wordCover
|
276
|
+
margin-left: calc(#{$text-LR-gap} - #{$text-padding})
|
277
|
+
order: 2
|
278
|
+
width: calc(65% - #{$text-LR-gap} + #{$text-padding})
|
279
|
+
+rwdmax($basic_rwd)
|
280
|
+
._H,
|
281
|
+
._wordCover
|
282
|
+
order: initial
|
283
|
+
._wordCover
|
284
|
+
margin-left: 0
|
285
|
+
width: 100%
|
286
|
+
|
287
|
+
&.typeDR
|
288
|
+
._H
|
289
|
+
order: 2
|
290
|
+
._wordCover
|
291
|
+
margin-right: calc(#{$text-LR-gap} - #{$text-padding})
|
292
|
+
order: 1
|
293
|
+
width: calc(65% - #{$text-LR-gap} + #{$text-padding})
|
294
|
+
+rwdmax($basic_rwd)
|
295
|
+
._H,
|
296
|
+
._wordCover
|
297
|
+
order: initial
|
298
|
+
._wordCover
|
299
|
+
margin-right: 0
|
300
|
+
width: 100%
|
301
|
+
|
302
|
+
// _articleL ( L、R)
|
303
|
+
._article
|
304
|
+
&.typeL,
|
305
|
+
&.typeR
|
306
|
+
._contentWrap
|
307
|
+
align-items: flex-start
|
308
|
+
|
309
|
+
// _articleL ( L、LR )
|
310
|
+
._article
|
311
|
+
&.typeL,
|
312
|
+
&.typeLR
|
313
|
+
._imgCover
|
314
|
+
width: 50%
|
315
|
+
.swiper-button-cover
|
316
|
+
left: auto
|
317
|
+
right: 0
|
318
|
+
width: 100%
|
319
|
+
+rwdmax($basic_rwd)
|
320
|
+
._imgCover
|
321
|
+
margin-left: 0
|
322
|
+
width: 100%
|
323
|
+
&.typeL
|
324
|
+
._imgCover
|
325
|
+
order: 1
|
326
|
+
._wordCover
|
327
|
+
margin-top: 0
|
328
|
+
margin-right: #{$img-cover-LR-gap - $text-padding}
|
329
|
+
width: calc(50% - #{$img-cover-LR-gap - $text-padding})
|
330
|
+
// &[img-row="x2"],
|
331
|
+
// &[img-row="x3"],
|
332
|
+
// &[img-row="x4"],
|
333
|
+
// &[img-row="x5"]
|
334
|
+
@for $i from 2 through 5
|
335
|
+
&[img-row="x#{$i}"],
|
336
|
+
&[swiper-num="#{$i}"]
|
337
|
+
._imgCover
|
338
|
+
margin: 0 #{-$cover-LR-gap * 0.5} #{-$cover-TB-gap}
|
339
|
+
width: calc(50% + $cover-LR-gap)
|
340
|
+
&[img-merge="on"]
|
341
|
+
._imgCover
|
342
|
+
margin: 0
|
343
|
+
width: 50%
|
344
|
+
+rwdmax($basic_rwd)
|
345
|
+
._imgCover
|
346
|
+
margin: $img-cover-TB-gap_rwd 0 #{-$cover-TB-gap_rwd}
|
347
|
+
._wordCover
|
348
|
+
margin-right: 0
|
349
|
+
width: 100%
|
350
|
+
// &[img-row="x2"],
|
351
|
+
// &[img-row="x3"],
|
352
|
+
// &[img-row="x4"],
|
353
|
+
// &[img-row="x5"]
|
354
|
+
@for $i from 2 through 5
|
355
|
+
&[img-row="x#{$i}"],
|
356
|
+
&[swiper-num="#{$i}"]
|
357
|
+
._imgCover
|
358
|
+
margin: $img-cover-TB-gap_rwd calc(#{-$cover-LR-gap_rwd} / 2) #{-$cover-TB-gap_rwd}
|
359
|
+
width: calc(100% + #{$cover-LR-gap_rwd})
|
360
|
+
&[img-merge="on"]
|
361
|
+
._imgCover
|
362
|
+
margin: $img-cover-TB-gap_rwd 0 0
|
363
|
+
width: 100%
|
364
|
+
&[mobile-rwd="on"]
|
365
|
+
._imgCover
|
366
|
+
// margin: 0 0 #{-$cover-TB-gap_rwd + $img-cover-TB-gap_rwd}
|
367
|
+
margin-top: 0
|
368
|
+
order: initial
|
369
|
+
._wordCover
|
370
|
+
margin-top: $img-cover-TB-gap_rwd
|
371
|
+
width: 100%
|
372
|
+
&.typeLR
|
373
|
+
&:after,
|
374
|
+
&:before
|
375
|
+
display: block
|
376
|
+
clear: both
|
377
|
+
content: ''
|
378
|
+
._contentWrap
|
379
|
+
display: block
|
380
|
+
._imgCover
|
381
|
+
float: right
|
382
|
+
margin-left: $img-cover-LR-gap
|
383
|
+
margin-bottom: #{-$cover-TB-gap + $wrapping-gap}
|
384
|
+
// &[img-row="x2"],
|
385
|
+
// &[img-row="x3"],
|
386
|
+
// &[img-row="x4"],
|
387
|
+
// &[img-row="x5"]
|
388
|
+
@for $i from 2 through 5
|
389
|
+
&[img-row="x#{$i}"]
|
390
|
+
._imgCover
|
391
|
+
margin: 0 #{-$cover-LR-gap * 0.5} #{-$cover-TB-gap + $wrapping-gap} #{$img-cover-LR-gap - ($cover-LR-gap * 0.5)}
|
392
|
+
width: calc(50% - #{$img-cover-LR-gap - ($cover-LR-gap * 0.5)} + #{$cover-LR-gap * 0.5})
|
393
|
+
// 2025.09.09 scarlett 新增
|
394
|
+
&[swiper-num="#{$i}"]
|
395
|
+
._imgCover
|
396
|
+
margin: 0 #{-$cover-LR-gap * 0.5} #{$cover-TB-gap - $wrapping-gap} #{$img-cover-LR-gap - ($cover-LR-gap * 0.5)}
|
397
|
+
width: calc(50% - #{$img-cover-LR-gap - ($cover-LR-gap * 0.5)} + #{$cover-LR-gap * 0.5})
|
398
|
+
&[img-merge="on"]
|
399
|
+
._imgCover
|
400
|
+
margin: 0 0 $wrapping-gap $img-cover-LR-gap
|
401
|
+
width: calc(50% - #{$img-cover-LR-gap})
|
402
|
+
+rwdmax($basic_rwd)
|
403
|
+
._contentWrap
|
404
|
+
display: flex
|
405
|
+
flex-direction: column
|
406
|
+
._imgCover,
|
407
|
+
._H,
|
408
|
+
._subH
|
409
|
+
float: none
|
410
|
+
width: 100%
|
411
|
+
._imgCover
|
412
|
+
margin: $img-cover-TB-gap_rwd 0 #{-$cover-TB-gap_rwd}
|
413
|
+
order: 1
|
414
|
+
// &[img-row="x2"],
|
415
|
+
// &[img-row="x3"],
|
416
|
+
// &[img-row="x4"],
|
417
|
+
// &[img-row="x5"]
|
418
|
+
@for $i from 2 through 5
|
419
|
+
&[img-row="x#{$i}"],
|
420
|
+
&[swiper-num="#{$i}"]
|
421
|
+
._imgCover
|
422
|
+
margin: $img-cover-TB-gap_rwd #{-$cover-LR-gap_rwd * 0.5} #{-$cover-TB-gap_rwd}
|
423
|
+
width: calc(100% + #{$cover-LR-gap_rwd})
|
424
|
+
&[img-merge="on"]
|
425
|
+
._imgCover
|
426
|
+
margin-left: 0
|
427
|
+
margin-right: 0
|
428
|
+
width: 100%
|
429
|
+
&[mobile-rwd="on"]
|
430
|
+
._imgCover
|
431
|
+
margin: 0 #{-$cover-LR-gap_rwd * 0.5} #{-$cover-TB-gap_rwd + $img-cover-TB-gap_rwd} !important
|
432
|
+
order: initial
|
433
|
+
|
434
|
+
// _articleR ( R、RR )
|
435
|
+
._article
|
436
|
+
&.typeR,
|
437
|
+
&.typeRR
|
438
|
+
._imgCover
|
439
|
+
width: 50%
|
440
|
+
.swiper-button-cover
|
441
|
+
width: 100%
|
442
|
+
+rwdmax($basic_rwd)
|
443
|
+
._imgCover
|
444
|
+
width: 100%
|
445
|
+
&.typeR
|
446
|
+
._wordCover
|
447
|
+
margin-top: 0
|
448
|
+
margin-left: #{$img-cover-LR-gap - $text-padding}
|
449
|
+
width: calc(50% - #{$img-cover-LR-gap - $text-padding})
|
450
|
+
// &[img-row="x2"],
|
451
|
+
// &[img-row="x3"],
|
452
|
+
// &[img-row="x4"],
|
453
|
+
// &[img-row="x5"]
|
454
|
+
@for $i from 2 through 5
|
455
|
+
&[img-row="x#{$i}"],
|
456
|
+
&[swiper-num="#{$i}"]
|
457
|
+
._imgCover
|
458
|
+
margin: 0 #{-$cover-LR-gap * 0.5} #{-$cover-TB-gap}
|
459
|
+
// width: calc(50% - #{$cover-LR-gap})
|
460
|
+
width: calc(50% + #{$cover-LR-gap})
|
461
|
+
&[img-merge="on"]
|
462
|
+
._imgCover
|
463
|
+
margin: 0 $img-cover-LR-gap 0 0
|
464
|
+
width: calc(50% - #{$img-cover-LR-gap})
|
465
|
+
+rwdmax($basic_rwd)
|
466
|
+
._imgCover
|
467
|
+
margin: 0 0 #{-$cover-TB-gap_rwd + $img-cover-TB-gap_rwd}
|
468
|
+
._wordCover
|
469
|
+
margin-left: 0
|
470
|
+
// 2025.09.09 scarlett 新增
|
471
|
+
margin-top: #{$cover-TB-gap_rwd}
|
472
|
+
// -
|
473
|
+
width: 100%
|
474
|
+
// &[img-row="x2"],
|
475
|
+
// &[img-row="x3"],
|
476
|
+
// &[img-row="x4"],
|
477
|
+
// &[img-row="x5"]
|
478
|
+
@for $i from 2 through 5
|
479
|
+
&[img-row="x#{$i}"],
|
480
|
+
&[swiper-num="#{$i}"]
|
481
|
+
._imgCover
|
482
|
+
margin: 0 #{-$cover-LR-gap_rwd * 0.5} #{-$cover-TB-gap_rwd}
|
483
|
+
width: calc(100% + #{$cover-LR-gap_rwd})
|
484
|
+
&[img-merge="on"]
|
485
|
+
._imgCover
|
486
|
+
margin-left: 0
|
487
|
+
margin-right: 0
|
488
|
+
width: 100%
|
489
|
+
&[mobile-rwd="on"]
|
490
|
+
._imgCover
|
491
|
+
margin: $img-cover-TB-gap_rwd 0 #{-$cover-TB-gap_rwd}
|
492
|
+
// 2025.09.09 scarlett 新增
|
493
|
+
&[img-swiper="on"]
|
494
|
+
._imgCover
|
495
|
+
margin-bottom: 0
|
496
|
+
// -
|
497
|
+
&.typeRR
|
498
|
+
&:after,
|
499
|
+
&:before
|
500
|
+
display: block
|
501
|
+
clear: both
|
502
|
+
content: ''
|
503
|
+
._contentWrap
|
504
|
+
display: block
|
505
|
+
._imgCover
|
506
|
+
float: left
|
507
|
+
margin-right: $img-cover-LR-gap
|
508
|
+
margin-bottom: #{-$cover-TB-gap + $wrapping-gap}
|
509
|
+
// &[img-row="x2"],
|
510
|
+
// &[img-row="x3"],
|
511
|
+
// &[img-row="x4"],
|
512
|
+
// &[img-row="x5"]
|
513
|
+
@for $i from 2 through 5
|
514
|
+
&[img-row="x#{$i}"]
|
515
|
+
._imgCover
|
516
|
+
margin: 0 #{$img-cover-LR-gap - ($cover-LR-gap * 0.5)} #{-$cover-TB-gap + $wrapping-gap} #{-$cover-LR-gap * 0.5}
|
517
|
+
width: calc(50% - #{$img-cover-LR-gap - ($cover-LR-gap * 0.5)} + #{$cover-LR-gap * 0.5})
|
518
|
+
// 2025.09.09 scarlett 新增
|
519
|
+
&[swiper-num="#{$i}"]
|
520
|
+
._imgCover
|
521
|
+
margin: 0 #{$img-cover-LR-gap - ($cover-LR-gap * 0.5)} #{$cover-TB-gap - $wrapping-gap} #{-$cover-LR-gap * 0.5}
|
522
|
+
width: calc(50% - #{$img-cover-LR-gap - ($cover-LR-gap * 0.5)} + #{$cover-LR-gap * 0.5})
|
523
|
+
&[img-merge="on"]
|
524
|
+
._imgCover
|
525
|
+
margin: 0 $img-cover-LR-gap $wrapping-gap 0
|
526
|
+
width: calc(50% - #{$img-cover-LR-gap})
|
527
|
+
+rwdmax($basic_rwd)
|
528
|
+
._contentWrap
|
529
|
+
display: flex
|
530
|
+
flex-direction: column
|
531
|
+
._imgCover,
|
532
|
+
._H,
|
533
|
+
._subH
|
534
|
+
float: none
|
535
|
+
width: 100%
|
536
|
+
._imgCover
|
537
|
+
margin: 0 0 #{-$cover-TB-gap_rwd + $img-cover-TB-gap_rwd}
|
538
|
+
// &[img-row="x2"],
|
539
|
+
// &[img-row="x3"],
|
540
|
+
// &[img-row="x4"],
|
541
|
+
// &[img-row="x5"]
|
542
|
+
@for $i from 2 through 5
|
543
|
+
&[img-row="x#{$i}"],
|
544
|
+
&[swiper-num="#{$i}"]
|
545
|
+
._imgCover
|
546
|
+
// 2025.09.09 scarlett 新增
|
547
|
+
// margin: 0 #{-$cover-LR-gap_rwd * 0.5} #{$img-cover-TB-gap_rwd + $cover-TB-gap_rwd - $img-cover-TB-gap_rwd}
|
548
|
+
margin: 0 #{-$cover-LR-gap_rwd * 0.5} #{-$cover-TB-gap_rwd + $img-cover-TB-gap_rwd}
|
549
|
+
// -
|
550
|
+
width: calc(100% + #{$cover-LR-gap_rwd})
|
551
|
+
&[img-merge="on"]
|
552
|
+
._imgCover
|
553
|
+
margin: 0 0 #{-$cover-TB-gap_rwd + $img-cover-TB-gap_rwd} 0
|
554
|
+
width: 100%
|
555
|
+
&[mobile-rwd="on"]
|
556
|
+
._imgCover
|
557
|
+
order: 1
|
558
|
+
margin: $img-cover-TB-gap_rwd 0 #{-$cover-TB-gap_rwd}
|
559
|
+
|
560
|
+
// _articleF ( F、FL、FR )
|
561
|
+
._article
|
562
|
+
&.typeF,
|
563
|
+
&.typeFL,
|
564
|
+
&.typeFR,
|
565
|
+
&.typeFBox,
|
566
|
+
&.typeFBoxL,
|
567
|
+
&.typeFBoxR
|
568
|
+
display: flex
|
569
|
+
justify-content: center
|
570
|
+
align-items: center
|
571
|
+
position: relative
|
572
|
+
z-index: 0
|
573
|
+
padding: $typeFull-padding
|
574
|
+
._backgroundWrap,
|
575
|
+
._pc,
|
576
|
+
._mobile
|
577
|
+
position: absolute
|
578
|
+
z-index: -1
|
579
|
+
top: 0
|
580
|
+
left: 0
|
581
|
+
width: 100%
|
582
|
+
height: 100%
|
583
|
+
._pc,
|
584
|
+
._mobile
|
585
|
+
background-repeat: no-repeat
|
586
|
+
background-size: cover
|
587
|
+
background-position: center center
|
588
|
+
._mobile
|
589
|
+
display: none
|
590
|
+
._contentWrap
|
591
|
+
width: 75%
|
592
|
+
._wordCover
|
593
|
+
margin: 0
|
594
|
+
._imgCover + ._wordCover
|
595
|
+
margin-top: $img-cover-TB-gap
|
596
|
+
+rwdmax($basic_rwd)
|
597
|
+
padding: $typeFull-padding_rwd
|
598
|
+
._H
|
599
|
+
margin-top: 0
|
600
|
+
order: initial
|
601
|
+
._pc
|
602
|
+
display: none
|
603
|
+
._mobile
|
604
|
+
display: block
|
605
|
+
._contentWrap
|
606
|
+
width: 100%
|
607
|
+
._imgCover + ._wordCover
|
608
|
+
margin-top: $img-cover-TB-gap_rwd
|
609
|
+
&[mobile-rwd="on"]
|
610
|
+
._imgCover + ._wordCover
|
611
|
+
margin-top: 0
|
612
|
+
|
613
|
+
&.typeFBox,
|
614
|
+
&.typeFBoxL,
|
615
|
+
&.typeFBoxR
|
616
|
+
._contentWrap
|
617
|
+
padding: $typeFull-content-padding
|
618
|
+
background-color: rgba(#fff, 0.5)
|
619
|
+
+rwdmax($basic_rwd)
|
620
|
+
padding: 10px !important
|
621
|
+
._contentWrap
|
622
|
+
padding: $typeFull-content-padding_rwd
|
623
|
+
|
624
|
+
&.typeFL
|
625
|
+
justify-content: flex-start
|
626
|
+
&.typeFR
|
627
|
+
justify-content: flex-end
|
628
|
+
|
629
|
+
&.typeFBoxL
|
630
|
+
justify-content: flex-start
|
631
|
+
&.typeFBoxR
|
632
|
+
justify-content: flex-end
|
633
|
+
|
634
|
+
/////////////////////////////////////////////
|
635
|
+
/////////////// [ 基本設定 ] ///////////////
|
636
|
+
/////////////////////////////////////////////
|
637
|
+
|
638
|
+
._article
|
639
|
+
&:not(:last-child)
|
640
|
+
margin-bottom: $article-gap
|
641
|
+
+rwdmax($basic_rwd)
|
642
|
+
&:not(:last-child)
|
643
|
+
margin-bottom: $article-gap_rwd
|
644
|
+
|
645
|
+
// 2025.09.09 scarlett 新增
|
646
|
+
// img-row
|
647
|
+
@for $i from 2 through 5
|
648
|
+
&[img-row="x#{$i}"],
|
649
|
+
&[swiper-num="#{$i}"]
|
650
|
+
._imgCover
|
651
|
+
width: calc(100% + #{$cover-LR-gap})
|
652
|
+
margin-inline: #{-$cover-LR-gap * 0.5}
|
653
|
+
._cover
|
654
|
+
margin-bottom: $cover-TB-gap
|
655
|
+
padding: 0 #{$cover-LR-gap * 0.5}
|
656
|
+
width: calc(100% / #{$i})
|
657
|
+
+rwdmax($basic_rwd)
|
658
|
+
._imgCover
|
659
|
+
margin-inline: #{-$cover-LR-gap_rwd * 0.5}
|
660
|
+
width: calc(100% + #{$cover-LR-gap_rwd})
|
661
|
+
._cover
|
662
|
+
margin-bottom: $cover-TB-gap_rwd
|
663
|
+
padding: 0 #{$cover-LR-gap_rwd * 0.5}
|
664
|
+
width: calc(100% / 2)
|
665
|
+
&[img-merge="on"]
|
666
|
+
._imgCover
|
667
|
+
margin-left: 0
|
668
|
+
margin-right: 0
|
669
|
+
|
670
|
+
// swiper
|
671
|
+
&[img-swiper="on"]
|
672
|
+
&.typeD
|
673
|
+
._imgCover
|
674
|
+
// margin-bottom: #{-$cover-TB-gap + $img-cover-TB-gap}
|
675
|
+
margin-bottom: #{$img-cover-TB-gap - (-$cover-TB-gap + $img-cover-TB-gap)}
|
676
|
+
._imgCover
|
677
|
+
position: relative
|
678
|
+
// 2025.09.09 scarlett 新增
|
679
|
+
// margin: 0 #{-$swiper-cover-LR-gap * 0.5}
|
680
|
+
// -
|
681
|
+
._cover
|
682
|
+
margin-bottom: 0
|
683
|
+
padding: 0 #{$swiper-cover-LR-gap * 0.5}
|
684
|
+
.swiper-button-cover
|
685
|
+
&:before
|
686
|
+
display: block
|
687
|
+
width: 100%
|
688
|
+
content: ''
|
689
|
+
|
690
|
+
@for $i from 2 through 5
|
691
|
+
&[swiper-num="#{$i}"]
|
692
|
+
._imgCover
|
693
|
+
.swiper-button-cover
|
694
|
+
&:before
|
695
|
+
padding-bottom: #{math.div(56.25%, $i)} !important
|
696
|
+
+rwdmax($basic_rwd)
|
697
|
+
@for $i from 2 through 5
|
698
|
+
&[swiper-num="#{$i}"]
|
699
|
+
._imgCover
|
700
|
+
.swiper-button-cover
|
701
|
+
&:before
|
702
|
+
padding-bottom: 56.25% !important
|
703
|
+
// -
|
704
|
+
|
705
|
+
// img-merge
|
706
|
+
&[img-merge="on"]
|
707
|
+
._imgCover
|
708
|
+
width: 100%
|
709
|
+
margin-bottom: 0
|
710
|
+
._cover
|
711
|
+
padding: 0
|
712
|
+
&:not([swiper-num])
|
713
|
+
._imgCover
|
714
|
+
// margin: 0 0 $cover-TB-gap
|
715
|
+
._cover
|
716
|
+
margin-bottom: 0
|
717
|
+
._description
|
718
|
+
display: none
|
719
|
+
|
720
|
+
// article-flex
|
721
|
+
&[article-flex="up"]
|
722
|
+
&.typeL,
|
723
|
+
&.typeR
|
724
|
+
._contentWrap
|
725
|
+
align-items: flex-start
|
726
|
+
&[article-flex="center"]
|
727
|
+
&.typeL,
|
728
|
+
&.typeR
|
729
|
+
._contentWrap
|
730
|
+
align-items: center
|
731
|
+
&[article-flex="down"]
|
732
|
+
&.typeL,
|
733
|
+
&.typeR
|
734
|
+
._contentWrap
|
735
|
+
align-items: flex-end
|
736
|
+
|
737
|
+
// h-align
|
738
|
+
&[h-align="center"]
|
739
|
+
._H
|
740
|
+
text-align: center
|
741
|
+
&[h-align="right"]
|
742
|
+
._H
|
743
|
+
text-align: right
|
744
|
+
|
745
|
+
// h-align
|
746
|
+
&[subh-align="center"]
|
747
|
+
._subH
|
748
|
+
text-align: center
|
749
|
+
&[subh-align="right"]
|
750
|
+
._subH
|
751
|
+
text-align: right
|
752
|
+
|
753
|
+
// p-align
|
754
|
+
&[p-align="center"]
|
755
|
+
._P
|
756
|
+
text-align: center
|
757
|
+
&[p-align="right"]
|
758
|
+
._P
|
759
|
+
text-align: right
|
760
|
+
|
761
|
+
// description-align
|
762
|
+
&[description-align="left"]
|
763
|
+
._description
|
764
|
+
text-align: left
|
765
|
+
&[description-align="center"]
|
766
|
+
._description
|
767
|
+
text-align: center
|
768
|
+
&[description-align="right"]
|
769
|
+
._description
|
770
|
+
text-align: right
|
771
|
+
|
772
|
+
// button-align
|
773
|
+
&[button-align="center"]
|
774
|
+
._buttonCover
|
775
|
+
text-align: center
|
776
|
+
&[button-align="right"]
|
777
|
+
._buttonCover
|
778
|
+
text-align: right
|
779
|
+
// 新增 - 圖片比例若設定不指定時, 圖片寬度是否自動填滿
|
780
|
+
&[img-widthFull="false"]
|
781
|
+
&:not([img-size="x11"]):not([img-size="x34"]):not([img-size="x43"]):not([img-size="x169"])
|
782
|
+
._imgCover
|
783
|
+
._photo
|
784
|
+
justify-content: flex-start
|
785
|
+
img
|
786
|
+
width: auto
|
787
|
+
// img-size
|
788
|
+
// &[img-swiper="on"],
|
789
|
+
&[img-size="x11"],
|
790
|
+
&[img-size="x34"],
|
791
|
+
&[img-size="x43"],
|
792
|
+
&[img-size="x169"]
|
793
|
+
._imgCover
|
794
|
+
img
|
795
|
+
position: absolute
|
796
|
+
bottom: 0
|
797
|
+
left: 50%
|
798
|
+
transform: translate(-50%, 0)
|
799
|
+
width: 101%
|
800
|
+
height: 101%
|
801
|
+
object-fit: cover
|
802
|
+
object-posititon: 50% 50%
|
803
|
+
+ie11Hack
|
804
|
+
top: 50%
|
805
|
+
bottom: auto
|
806
|
+
transform: translate(-50%, -50%)
|
807
|
+
height: auto
|
808
|
+
|
809
|
+
|
810
|
+
$proportions: ("x11": 100%, "x34": 133.3%, "x43": 75%, "x169": 56.25%)
|
811
|
+
@each $proportion, $value in $proportions
|
812
|
+
&[img-size="#{$proportion}"]
|
813
|
+
._imgCover
|
814
|
+
.swiper-button-cover,
|
815
|
+
._photo
|
816
|
+
&:before
|
817
|
+
display: block
|
818
|
+
padding-bottom: #{$value} !important
|
819
|
+
width: 100%
|
820
|
+
content: ''
|
821
|
+
.swiper-button-cover
|
822
|
+
height: auto
|
823
|
+
@for $i from 2 through 5
|
824
|
+
&[swiper-num="#{$i}"]
|
825
|
+
._imgCover
|
826
|
+
.swiper-button-cover
|
827
|
+
&:before
|
828
|
+
padding-bottom: #{math.div($value, $i)} !important
|
829
|
+
+rwdmax($basic_rwd)
|
830
|
+
@for $i from 2 through 5
|
831
|
+
&[swiper-num="#{$i}"]
|
832
|
+
._imgCover
|
833
|
+
.swiper-button-cover
|
834
|
+
&:before
|
835
|
+
padding-bottom: $value !important
|
836
|
+
|
837
|
+
// img-flex
|
838
|
+
&[img-flex="center"]
|
839
|
+
._imgCover
|
840
|
+
._cover
|
841
|
+
justify-content: center
|
842
|
+
&[img-flex="down"]
|
843
|
+
._imgCover
|
844
|
+
._cover
|
845
|
+
justify-content: flex-end
|
846
|
+
|
847
|
+
// img-firstbig
|
848
|
+
&[img-firstbig="on"]
|
849
|
+
._imgCover
|
850
|
+
._cover:first-child
|
851
|
+
width: 100%
|
852
|
+
|
853
|
+
// typeFull-size
|
854
|
+
&[typeFull-size="s"]
|
855
|
+
._contentWrap
|
856
|
+
width: 50%
|
857
|
+
+rwdmax($basic_rwd)
|
858
|
+
width: 100%
|
859
|
+
&[typeFull-size="m"]
|
860
|
+
._contentWrap
|
861
|
+
width: 65%
|
862
|
+
+rwdmax($basic_rwd)
|
863
|
+
width: 100%
|
864
|
+
&[typeFull-size="l"]
|
865
|
+
._contentWrap
|
866
|
+
width: 75%
|
867
|
+
+rwdmax($basic_rwd)
|
868
|
+
width: 100%
|
869
|
+
&[typeFull-size="xl"]
|
870
|
+
._contentWrap
|
871
|
+
width: 90%
|
872
|
+
+rwdmax($basic_rwd)
|
873
|
+
width: 100%
|
874
|
+
|
875
|
+
// typeFull-Slice
|
876
|
+
&[typeFull-Slice="on"]
|
877
|
+
&.typeFBox,
|
878
|
+
&.typeFBoxL,
|
879
|
+
&.typeFBoxR
|
880
|
+
padding: 0
|
881
|
+
|
882
|
+
.typeQuote
|
883
|
+
@extend %quote
|
884
|
+
._quote
|
885
|
+
width: 100%
|
886
|
+
&:not(:only-child)
|
887
|
+
margin-bottom: $quote-TB-gap
|
888
|
+
&::before
|
889
|
+
content: open-quote
|
890
|
+
&:after
|
891
|
+
content: close-quote
|
892
|
+
|
893
|
+
// 對齊設定
|
894
|
+
&[quote-align="left"]
|
895
|
+
._quote
|
896
|
+
text-align: left
|
897
|
+
&[quote-align="right"]
|
898
|
+
._quote
|
899
|
+
text-align: right
|
900
|
+
&[quote-align="center"]
|
901
|
+
._quote
|
902
|
+
text-align: center
|
903
|
+
|
904
|
+
.typeTable
|
905
|
+
@extend %table
|
906
|
+
&.overflow
|
907
|
+
._table
|
908
|
+
margin-top: $table-TB-gap
|
909
|
+
cursor: grab
|
910
|
+
+rwdmax($basic_rwd)
|
911
|
+
margin-top: $table-TB-gap_rwd
|
912
|
+
._wordCover
|
913
|
+
margin-top: 0
|
914
|
+
margin-bottom: $table-TB-gap
|
915
|
+
+rwdmax($basic_rwd)
|
916
|
+
margin-top: 0
|
917
|
+
margin-bottom: $table-TB-gap_rwd
|
918
|
+
._tableCover
|
919
|
+
width: 100%
|
920
|
+
._table
|
921
|
+
width: 100%
|
922
|
+
max-width: 100%
|
923
|
+
overflow-x: auto
|
924
|
+
position: relative
|
925
|
+
-webkit-overflow-scrolling: touch
|
926
|
+
scrollbar-width: none
|
927
|
+
overscroll-behavior: contain
|
928
|
+
&::-webkit-scrollbar
|
929
|
+
width: 2px
|
930
|
+
height: 0
|
931
|
+
display: none
|
932
|
+
&::-webkit-scrollbar-track
|
933
|
+
background: none
|
934
|
+
&::-webkit-scrollbar-thumb
|
935
|
+
background: none
|
936
|
+
border-radius: 99em
|
937
|
+
.os-scrollbar-horizontal
|
938
|
+
--os-size: 0px
|
939
|
+
table
|
940
|
+
@extend %table_markdown_style
|
941
|
+
width: 100%
|
942
|
+
-webkit-text-size-adjust: 100%
|
943
|
+
th, td
|
944
|
+
width: var(--minWidth, #{$table-min-width})
|
945
|
+
min-width: var(--minWidth, #{$table-min-width})
|
946
|
+
vertical-align: middle
|
947
|
+
word-break: break-all
|
948
|
+
padding: $table-padding
|
949
|
+
+rwdmax($basic_rwd)
|
950
|
+
padding: $table-padding_rwd
|
951
|
+
._tipText
|
952
|
+
@extend %table_tipText
|
953
|
+
display: none
|
954
|
+
justify-content: flex-start
|
955
|
+
align-items: center
|
956
|
+
padding: 0 $text-padding
|
957
|
+
+rwdmax($basic_rwd)
|
958
|
+
padding: 0 $text-padding_rwd
|
959
|
+
.table_navigation
|
960
|
+
@extend %table_navigation
|
961
|
+
|
962
|
+
// 對齊方式同大標題
|
963
|
+
&[tip-align="center"]
|
964
|
+
._tipText
|
965
|
+
justify-content: center
|
966
|
+
&[tip-align="right"]
|
967
|
+
._tipText
|
968
|
+
justify-content: flex-end
|
969
|
+
&[tip-align="left"]
|
970
|
+
._tipText
|
971
|
+
justify-content: flex-start
|
972
|
+
|
973
|
+
// 凍結樣式
|
974
|
+
&[freeze-table]
|
975
|
+
._table
|
976
|
+
overflow-y: auto
|
977
|
+
height: $freeze-table-height
|
978
|
+
-webkit-overflow-scrolling: touch
|
979
|
+
scrollbar-width: none
|
980
|
+
overscroll-behavior: contain
|
981
|
+
&::-webkit-scrollbar
|
982
|
+
width: 2px
|
983
|
+
height: 0
|
984
|
+
display: none
|
985
|
+
&::-webkit-scrollbar-track
|
986
|
+
background: none
|
987
|
+
&::-webkit-scrollbar-thumb
|
988
|
+
background: none
|
989
|
+
border-radius: 99em
|