create-fesd-app 1.0.36 → 1.0.38
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 +4 -4
- package/src/assets/css/layouts/article4/_article4_setting.sass +40 -103
- package/src/assets/css/layouts/article4/_variable.sass +123 -0
- package/src/assets/css/pages/play.sass +4 -1
- package/src/pages/about.pug +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fesd-app",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@tailwindcss/postcss": "^4.1.10",
|
|
26
26
|
"@tailwindcss/vite": "^4.1.10",
|
|
27
|
-
"@xwadex/fesd": "0.0.
|
|
27
|
+
"@xwadex/fesd": "0.0.61",
|
|
28
28
|
"ansi-colors": "^4.1.3",
|
|
29
29
|
"chalk": "^5.3.0",
|
|
30
30
|
"clsx": "^2.1.1",
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
._wordCover
|
|
273
273
|
margin: 0
|
|
274
274
|
._imgCover
|
|
275
|
-
margin-bottom:
|
|
275
|
+
margin-bottom: #{-$cover-TB-gap + $img-cover-TB-gap}
|
|
276
276
|
&[img-merge="on"]
|
|
277
277
|
&:not([img-swiper="on"])
|
|
278
278
|
._imgCover
|
|
@@ -1080,10 +1080,10 @@
|
|
|
1080
1080
|
@extend %table
|
|
1081
1081
|
&.overflow
|
|
1082
1082
|
._table
|
|
1083
|
-
margin-top: $table-
|
|
1083
|
+
margin-top: $table-Tip-gap
|
|
1084
1084
|
cursor: grab
|
|
1085
1085
|
+rwdmax($basic_rwd)
|
|
1086
|
-
margin-top: $table-
|
|
1086
|
+
margin-top: $table-Tip-gap_rwd
|
|
1087
1087
|
._wordCover
|
|
1088
1088
|
margin-top: 0
|
|
1089
1089
|
margin-bottom: $table-TB-gap
|
|
@@ -1119,7 +1119,7 @@
|
|
|
1119
1119
|
width: var(--minWidth, #{$table-min-width})
|
|
1120
1120
|
min-width: var(--minWidth, #{$table-min-width})
|
|
1121
1121
|
vertical-align: middle
|
|
1122
|
-
word-break: break-
|
|
1122
|
+
word-break: break-word
|
|
1123
1123
|
padding: $table-padding
|
|
1124
1124
|
+rwdmax($basic_rwd)
|
|
1125
1125
|
padding: $table-padding_rwd
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// 最後修改時間 2023/02/09 eric
|
|
2
|
+
@import ./_variable
|
|
2
3
|
// RWD
|
|
3
4
|
@mixin rwdmax($max)
|
|
4
5
|
@media only screen and (max-width: $max + px)
|
|
@@ -17,85 +18,6 @@
|
|
|
17
18
|
@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none)
|
|
18
19
|
@content
|
|
19
20
|
|
|
20
|
-
// 需同步更改 article4.js $basic_rwd variable
|
|
21
|
-
$basic_rwd: 900
|
|
22
|
-
|
|
23
|
-
/////////////////////////////////////////////
|
|
24
|
-
////////////////// [ 間距 ] /////////////////
|
|
25
|
-
/////////////////////////////////////////////
|
|
26
|
-
|
|
27
|
-
// 每個區塊之間的距離
|
|
28
|
-
$article-gap: 100px
|
|
29
|
-
$article-gap_rwd: 80px
|
|
30
|
-
|
|
31
|
-
// ._H 與其他物件之間的距離
|
|
32
|
-
$H-gap: 20px
|
|
33
|
-
$H-gap_rwd: 15px
|
|
34
|
-
|
|
35
|
-
// ._subH 與其他物件之間的距離
|
|
36
|
-
$subH-gap: 15px
|
|
37
|
-
$subH-gap_rwd: 15px
|
|
38
|
-
|
|
39
|
-
// 文字左右間的距離 ( RWD 統一為 0 )
|
|
40
|
-
$text-LR-gap: 40px
|
|
41
|
-
|
|
42
|
-
// 文字 padding
|
|
43
|
-
$text-padding: 20px
|
|
44
|
-
$text-padding_rwd: 0px
|
|
45
|
-
|
|
46
|
-
// 按鈕與其他物件之間的距離
|
|
47
|
-
$button-cover-gap: 30px
|
|
48
|
-
$button-cover-gap_rwd: 20px
|
|
49
|
-
|
|
50
|
-
// 影像左右間的距離
|
|
51
|
-
$cover-LR-gap: 12px
|
|
52
|
-
$cover-LR-gap_rwd: 12px
|
|
53
|
-
|
|
54
|
-
// 輪播左右間的距離
|
|
55
|
-
$swiper-cover-LR-gap: 12px
|
|
56
|
-
|
|
57
|
-
// 影像上下間的距離
|
|
58
|
-
$cover-TB-gap: 30px
|
|
59
|
-
$cover-TB-gap_rwd: 10px
|
|
60
|
-
|
|
61
|
-
// 影像與其他物件左右間的距離
|
|
62
|
-
$img-cover-LR-gap: 30px
|
|
63
|
-
$img-cover-LR-gap_rwd: 0px
|
|
64
|
-
|
|
65
|
-
// 影像與其他物件上下間的距離
|
|
66
|
-
$img-cover-TB-gap: 30px
|
|
67
|
-
$img-cover-TB-gap_rwd: 20px
|
|
68
|
-
|
|
69
|
-
// 文繞圖修正
|
|
70
|
-
$wrapping-gap: 50px
|
|
71
|
-
|
|
72
|
-
// typeFull 段落 padding
|
|
73
|
-
$typeFull-padding: 120px 40px 115px
|
|
74
|
-
$typeFull-padding_rwd: 30px 20px
|
|
75
|
-
|
|
76
|
-
// typeFull 段落內 ._contentWrap padding
|
|
77
|
-
$typeFull-content-padding: 85px 75px 100px
|
|
78
|
-
$typeFull-content-padding_rwd: 20px
|
|
79
|
-
|
|
80
|
-
// 表格與其他物件上下間的距離
|
|
81
|
-
$table-TB-gap: 20px
|
|
82
|
-
$table-TB-gap_rwd: 20px
|
|
83
|
-
|
|
84
|
-
// 表格最小寬度
|
|
85
|
-
$table-min-width: 180px
|
|
86
|
-
$freeze-table-height: 500px
|
|
87
|
-
|
|
88
|
-
// 表格間距
|
|
89
|
-
$table-padding: 15px 30px
|
|
90
|
-
$table-padding_rwd: 10px 15px
|
|
91
|
-
|
|
92
|
-
// 引言與其他物件上下間的距離
|
|
93
|
-
$quote-TB-gap: 20px
|
|
94
|
-
|
|
95
|
-
/////////////////////////////////////////////
|
|
96
|
-
////////////////// [ 內容 ] /////////////////
|
|
97
|
-
/////////////////////////////////////////////
|
|
98
|
-
|
|
99
21
|
// 內容區塊
|
|
100
22
|
%_contentWrap
|
|
101
23
|
display: flex
|
|
@@ -199,23 +121,31 @@ $quote-TB-gap: 20px
|
|
|
199
121
|
list-style: decimal !important
|
|
200
122
|
ul
|
|
201
123
|
list-style: disc !important
|
|
124
|
+
li
|
|
125
|
+
line-height: 1.2
|
|
126
|
+
&:not(:first-child)
|
|
127
|
+
margin-top: $li-TB-gap
|
|
202
128
|
+rwdmax($basic_rwd)
|
|
203
129
|
padding: 0 $text-padding_rwd
|
|
204
130
|
// 以下可修改
|
|
205
131
|
font-size: 14px
|
|
206
132
|
line-height: 1.4
|
|
133
|
+
li
|
|
134
|
+
&:not(:first-child)
|
|
135
|
+
margin-top: $li-TB-gap_rwd
|
|
207
136
|
|
|
208
137
|
// 圖片描述
|
|
209
138
|
%_description
|
|
210
|
-
padding: 0 $
|
|
211
|
-
margin-top:
|
|
139
|
+
padding: 0 $description-padding
|
|
140
|
+
margin-top: $description-TB-gap
|
|
212
141
|
width: 100%
|
|
213
142
|
// 以下可修改
|
|
214
143
|
font-size: 14px
|
|
215
144
|
font-weight: 400
|
|
216
145
|
line-height: 1.5
|
|
217
146
|
+rwdmax($basic_rwd)
|
|
218
|
-
padding: 0 $
|
|
147
|
+
padding: 0 $description-padding_rwd
|
|
148
|
+
margin-top: $description-TB-gap_rwd
|
|
219
149
|
// 以下可修改
|
|
220
150
|
font-size: 12px
|
|
221
151
|
|
|
@@ -234,6 +164,8 @@ $quote-TB-gap: 20px
|
|
|
234
164
|
display: inline-block
|
|
235
165
|
position: relative
|
|
236
166
|
padding: 10px 20px
|
|
167
|
+
min-width: $button-minWidth
|
|
168
|
+
max-width: $button-maxWidth
|
|
237
169
|
// 以下可修改
|
|
238
170
|
background-color: #333
|
|
239
171
|
color: #fff
|
|
@@ -256,13 +188,12 @@ $quote-TB-gap: 20px
|
|
|
256
188
|
+rwdmax($basic_rwd)
|
|
257
189
|
// 以下可修改
|
|
258
190
|
font-size: 12px
|
|
191
|
+
min-width: $button-minWidth_rwd
|
|
192
|
+
max-width: $button-maxWidth_rwd
|
|
259
193
|
|
|
260
194
|
// swiper 結構
|
|
261
195
|
%swiper_pagination
|
|
262
|
-
|
|
263
|
-
// margin: 0 0 $pagination-TB-gap
|
|
264
|
-
margin: 0 0 $cover-TB-gap
|
|
265
|
-
// margin: $pagination-TB-gap 0 0
|
|
196
|
+
margin: calc($pagination-TB-gap - $cover-TB-gap) 0 $cover-TB-gap
|
|
266
197
|
display: block
|
|
267
198
|
position: relative
|
|
268
199
|
top: auto
|
|
@@ -270,7 +201,7 @@ $quote-TB-gap: 20px
|
|
|
270
201
|
left: auto
|
|
271
202
|
right: auto
|
|
272
203
|
+rwdmax($basic_rwd)
|
|
273
|
-
margin:
|
|
204
|
+
margin: calc($pagination-TB-gap_rwd - $cover-TB-gap_rwd) 0 $cover-TB-gap_rwd
|
|
274
205
|
|
|
275
206
|
%swiper_pagination_bullet
|
|
276
207
|
margin: 0 10px
|
|
@@ -332,7 +263,7 @@ $quote-TB-gap: 20px
|
|
|
332
263
|
margin-left: 10px
|
|
333
264
|
|
|
334
265
|
%table
|
|
335
|
-
|
|
266
|
+
@extend %table_solid_single
|
|
336
267
|
// @extend %table_solid_striped
|
|
337
268
|
// @extend %table_border_rows
|
|
338
269
|
// @extend %table_border_full
|
|
@@ -360,6 +291,10 @@ $quote-TB-gap: 20px
|
|
|
360
291
|
font-weight: 600
|
|
361
292
|
tbody
|
|
362
293
|
td
|
|
294
|
+
&.lefthead
|
|
295
|
+
font-size: 16px
|
|
296
|
+
line-height: 1.2
|
|
297
|
+
font-weight: 600
|
|
363
298
|
// 以下可修改
|
|
364
299
|
font-size: 16px
|
|
365
300
|
line-height: 1.2
|
|
@@ -415,36 +350,36 @@ $quote-TB-gap: 20px
|
|
|
415
350
|
// 表格內框線樣式建議使用 偽元素製作以避免凍結合併時出錯
|
|
416
351
|
%table_solid_single
|
|
417
352
|
._table
|
|
418
|
-
border-bottom: 5px solid
|
|
353
|
+
border-bottom: 5px solid $table-theme-color
|
|
419
354
|
&:not(:has(thead))
|
|
420
|
-
border-top: 5px solid
|
|
355
|
+
border-top: 5px solid $table-theme-color
|
|
421
356
|
table
|
|
422
357
|
thead
|
|
423
358
|
th
|
|
424
359
|
color: #fff
|
|
425
|
-
background-color:
|
|
360
|
+
background-color: $table-theme-color
|
|
426
361
|
tbody
|
|
427
362
|
tr
|
|
428
363
|
td
|
|
364
|
+
// 側邊列樣式設定
|
|
429
365
|
&.lefthead
|
|
430
|
-
color:
|
|
431
|
-
background-color: #6AA8FF
|
|
366
|
+
background-color: $table-subTheme-color
|
|
432
367
|
tr:nth-child(even)
|
|
433
368
|
td
|
|
434
369
|
&:not(.lefthead)
|
|
435
|
-
background-color:
|
|
370
|
+
background-color: $table-grayTheme-color
|
|
436
371
|
%table_solid_striped
|
|
437
372
|
._table
|
|
438
|
-
border-bottom: 5px solid
|
|
373
|
+
border-bottom: 5px solid $table-theme-color
|
|
439
374
|
&:not(:has(thead))
|
|
440
|
-
border-top: 5px solid
|
|
375
|
+
border-top: 5px solid $table-theme-color
|
|
441
376
|
table
|
|
442
377
|
thead
|
|
443
|
-
color: #fff
|
|
444
378
|
th:nth-child(odd)
|
|
445
|
-
|
|
379
|
+
color: #fff
|
|
380
|
+
background-color: $table-theme-color
|
|
446
381
|
th:nth-child(even)
|
|
447
|
-
background-color:
|
|
382
|
+
background-color: $table-subTheme-color
|
|
448
383
|
tbody
|
|
449
384
|
tr
|
|
450
385
|
td
|
|
@@ -453,10 +388,10 @@ $quote-TB-gap: 20px
|
|
|
453
388
|
&:nth-child(even)
|
|
454
389
|
background-color: #3287FF
|
|
455
390
|
&:nth-child(odd)
|
|
456
|
-
background-color:
|
|
391
|
+
background-color: $table-theme-color
|
|
457
392
|
tr:nth-child(even)
|
|
458
393
|
td:not(.lefthead)
|
|
459
|
-
background-color:
|
|
394
|
+
background-color: $table-grayTheme-color
|
|
460
395
|
%table_border_rows
|
|
461
396
|
._table
|
|
462
397
|
border-top: 2px solid #000
|
|
@@ -465,7 +400,7 @@ $quote-TB-gap: 20px
|
|
|
465
400
|
table
|
|
466
401
|
thead
|
|
467
402
|
th
|
|
468
|
-
color:
|
|
403
|
+
color: $table-theme-color
|
|
469
404
|
position: relative
|
|
470
405
|
&::before
|
|
471
406
|
content: ''
|
|
@@ -686,7 +621,9 @@ $quote-TB-gap: 20px
|
|
|
686
621
|
li
|
|
687
622
|
line-height: 1.2
|
|
688
623
|
&:not(:first-child)
|
|
689
|
-
margin-top:
|
|
624
|
+
margin-top: $li-TB-gap
|
|
625
|
+
+rwdmax($basic_rwd)
|
|
626
|
+
margin-top: $li-TB-gap_rwd
|
|
690
627
|
em
|
|
691
628
|
font-style: italic
|
|
692
629
|
a
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// 需同步更改 article4.js $basic_rwd variable
|
|
2
|
+
$basic_rwd: 900
|
|
3
|
+
|
|
4
|
+
/////////////////////////////////////////////
|
|
5
|
+
////////////////// [ 間距 ] /////////////////
|
|
6
|
+
/////////////////////////////////////////////
|
|
7
|
+
|
|
8
|
+
// 段落間距
|
|
9
|
+
// 每個區塊之間的距離
|
|
10
|
+
$article-gap: 100px
|
|
11
|
+
$article-gap_rwd: 80px
|
|
12
|
+
|
|
13
|
+
// 標題 - 垂直內文
|
|
14
|
+
// ._H 與其他物件之間的距離
|
|
15
|
+
$H-gap: 20px
|
|
16
|
+
$H-gap_rwd: 15px
|
|
17
|
+
|
|
18
|
+
// 副標題 - 內文
|
|
19
|
+
// ._subH 與其他物件之間的距離
|
|
20
|
+
$subH-gap: 15px
|
|
21
|
+
$subH-gap_rwd: 15px
|
|
22
|
+
|
|
23
|
+
// 標題 - 水平內文
|
|
24
|
+
// 文字左右間的距離 ( RWD 統一為 0 )
|
|
25
|
+
$text-LR-gap: 40px
|
|
26
|
+
|
|
27
|
+
// 段落 - 內推
|
|
28
|
+
// 文字 padding
|
|
29
|
+
$text-padding: 20px
|
|
30
|
+
$text-padding_rwd: 0px
|
|
31
|
+
|
|
32
|
+
// 圖說 - 內推
|
|
33
|
+
// 敘述 padding
|
|
34
|
+
$description-padding: 20px
|
|
35
|
+
$description-padding_rwd: 0px
|
|
36
|
+
|
|
37
|
+
// 圖片 - 圖說
|
|
38
|
+
$description-TB-gap: 10px
|
|
39
|
+
$description-TB-gap_rwd: 10px
|
|
40
|
+
|
|
41
|
+
// 段落 - 按鈕
|
|
42
|
+
// 按鈕與其他物件之間的距離
|
|
43
|
+
$button-cover-gap: 30px
|
|
44
|
+
$button-cover-gap_rwd: 20px
|
|
45
|
+
|
|
46
|
+
// 列點項目
|
|
47
|
+
$li-TB-gap: 10px
|
|
48
|
+
$li-TB-gap_rwd: 10px
|
|
49
|
+
|
|
50
|
+
// 圖片間距 - 水平
|
|
51
|
+
// 影像左右間的距離
|
|
52
|
+
$cover-LR-gap: 12px
|
|
53
|
+
$cover-LR-gap_rwd: 12px
|
|
54
|
+
|
|
55
|
+
// 圖片間距 - 垂直
|
|
56
|
+
// 影像上下間的距離
|
|
57
|
+
$cover-TB-gap: 30px
|
|
58
|
+
$cover-TB-gap_rwd: 10px
|
|
59
|
+
|
|
60
|
+
// 輪播左右間的距離
|
|
61
|
+
// 失效? $swiper-cover-LR-gap: 12px
|
|
62
|
+
|
|
63
|
+
// 圖片 - 水平段落
|
|
64
|
+
// 影像與其他物件左右間的距離
|
|
65
|
+
$img-cover-LR-gap: 30px
|
|
66
|
+
$img-cover-LR-gap_rwd: 0px
|
|
67
|
+
|
|
68
|
+
// 圖片 - 垂直段落
|
|
69
|
+
// 影像與其他物件上下間的距離
|
|
70
|
+
$img-cover-TB-gap: 30px
|
|
71
|
+
$img-cover-TB-gap_rwd: 20px
|
|
72
|
+
|
|
73
|
+
// 文繞圖修正
|
|
74
|
+
$wrapping-gap: 50px
|
|
75
|
+
|
|
76
|
+
// 滿版 - 上下左右間距
|
|
77
|
+
// typeFull 段落 padding
|
|
78
|
+
$typeFull-padding: 120px 40px 115px
|
|
79
|
+
$typeFull-padding_rwd: 30px 20px
|
|
80
|
+
|
|
81
|
+
// 滿版底色 - 上下左右間距
|
|
82
|
+
// typeFull 段落內 ._contentWrap padding
|
|
83
|
+
$typeFull-content-padding: 85px 75px 100px
|
|
84
|
+
$typeFull-content-padding_rwd: 20px
|
|
85
|
+
|
|
86
|
+
// 段落 - 表格 - 註解
|
|
87
|
+
// 表格與其他物件上下間的距離
|
|
88
|
+
$table-TB-gap: 20px
|
|
89
|
+
$table-TB-gap_rwd: 20px
|
|
90
|
+
|
|
91
|
+
// 拖拉提示 - 表格
|
|
92
|
+
// 表格與拖拉提示的距離
|
|
93
|
+
$table-Tip-gap: 20px
|
|
94
|
+
$table-Tip-gap_rwd: 20px
|
|
95
|
+
|
|
96
|
+
// 欄位 - 最小寬度
|
|
97
|
+
// 表格最小寬度
|
|
98
|
+
$table-min-width: 180px
|
|
99
|
+
$freeze-table-height: 500px
|
|
100
|
+
|
|
101
|
+
// 欄位 - 上下左右間距
|
|
102
|
+
// 表格間距
|
|
103
|
+
$table-padding: 15px 30px
|
|
104
|
+
$table-padding_rwd: 10px 15px
|
|
105
|
+
|
|
106
|
+
// 引言 - 內文
|
|
107
|
+
// 引言與其他物件上下間的距離
|
|
108
|
+
$quote-TB-gap: 20px
|
|
109
|
+
|
|
110
|
+
// 圖片 - 輪播按鈕
|
|
111
|
+
$pagination-TB-gap: 10px
|
|
112
|
+
$pagination-TB-gap_rwd: 10px
|
|
113
|
+
|
|
114
|
+
// 表格主題色
|
|
115
|
+
$table-theme-color: #6AA8FF
|
|
116
|
+
$table-subTheme-color: #CEE2FF
|
|
117
|
+
$table-grayTheme-color: #f8f8f8
|
|
118
|
+
|
|
119
|
+
// 按鈕寬度設定
|
|
120
|
+
$button-minWidth: 200px
|
|
121
|
+
$button-maxWidth: 350px
|
|
122
|
+
$button-minWidth_rwd: 150px
|
|
123
|
+
$button-maxWidth_rwd: 200px
|
|
@@ -131,11 +131,14 @@
|
|
|
131
131
|
width: 100%
|
|
132
132
|
padding: 50px
|
|
133
133
|
display: flex
|
|
134
|
-
// flex-wrap: wrap
|
|
135
134
|
gap: 50px
|
|
135
|
+
+rwdmax(1200)
|
|
136
|
+
flex-direction: column
|
|
136
137
|
#previewWrap > div
|
|
137
138
|
flex: 1
|
|
138
139
|
width: calc((100% - 50px) /2)
|
|
140
|
+
+rwdmax(1200)
|
|
141
|
+
width: 100%
|
|
139
142
|
#preview, #htmlCode, #dataCode
|
|
140
143
|
margin-top: 20px
|
|
141
144
|
flex: 1
|
package/src/pages/about.pug
CHANGED
|
@@ -473,11 +473,12 @@ block content
|
|
|
473
473
|
},
|
|
474
474
|
{
|
|
475
475
|
title: 'videoDemo',
|
|
476
|
-
dep
|
|
476
|
+
dep:`此範例搭配屬性<span class='code'>img-flex</span>`,
|
|
477
477
|
data:{
|
|
478
478
|
articleType: 'typeD',
|
|
479
479
|
attributes: {
|
|
480
480
|
'img-row':'x5',
|
|
481
|
+
'img-flex':'down',
|
|
481
482
|
},
|
|
482
483
|
H: 'This is the title of the Article, A satirical title generator for designers...',
|
|
483
484
|
subH: 'Sub-Title of the Article, A satirical title generator for designers...',
|
|
@@ -888,8 +889,6 @@ block content
|
|
|
888
889
|
td(data-column="F" style='width:300px; min-width:300px;')
|
|
889
890
|
span fff
|
|
890
891
|
|
|
891
|
-
|
|
892
|
-
|
|
893
892
|
section.section2(data-noContent)
|
|
894
893
|
.container
|
|
895
894
|
p NO DATA
|