astro-dev-mcp 0.3.0 → 0.5.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 +65 -18
- package/dist/editors/appJsEditor.d.ts +21 -0
- package/dist/editors/appJsEditor.d.ts.map +1 -0
- package/dist/editors/appJsEditor.js +120 -0
- package/dist/editors/appJsEditor.js.map +1 -0
- package/dist/templates/scssPatterns.d.ts +28 -0
- package/dist/templates/scssPatterns.d.ts.map +1 -0
- package/dist/templates/scssPatterns.js +564 -0
- package/dist/templates/scssPatterns.js.map +1 -0
- package/dist/templates/uiPatterns.d.ts +2 -0
- package/dist/templates/uiPatterns.d.ts.map +1 -1
- package/dist/templates/uiPatterns.js +155 -132
- package/dist/templates/uiPatterns.js.map +1 -1
- package/dist/tools/generateSection.d.ts +1 -1
- package/dist/tools/generateSection.d.ts.map +1 -1
- package/dist/tools/generateSection.js +49 -6
- package/dist/tools/generateSection.js.map +1 -1
- package/dist/utils/astroDevClasses.d.ts +41 -0
- package/dist/utils/astroDevClasses.d.ts.map +1 -0
- package/dist/utils/astroDevClasses.js +57 -0
- package/dist/utils/astroDevClasses.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UIパターンに対応するSCSSテンプレート生成
|
|
3
|
+
* astro-devプロジェクトのmixin・命名規則に準拠
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* UIパターンに基づいてSCSSを生成
|
|
7
|
+
*/
|
|
8
|
+
export function generateScssPattern(config) {
|
|
9
|
+
switch (config.pattern) {
|
|
10
|
+
case 'tab':
|
|
11
|
+
return generateTabScss(config);
|
|
12
|
+
case 'accordion':
|
|
13
|
+
return generateAccordionScss(config);
|
|
14
|
+
case 'grid':
|
|
15
|
+
return generateGridScss(config);
|
|
16
|
+
case 'carousel':
|
|
17
|
+
return generateCarouselScss(config);
|
|
18
|
+
case 'list':
|
|
19
|
+
return generateListScss(config);
|
|
20
|
+
case 'modal':
|
|
21
|
+
return generateModalScss(config);
|
|
22
|
+
default:
|
|
23
|
+
return generateDefaultScss(config);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* タブUI用SCSS
|
|
28
|
+
* 注: タブのスタイルは _c_tab.scss で定義済み、追加スタイルのみ記述
|
|
29
|
+
*/
|
|
30
|
+
function generateTabScss(config) {
|
|
31
|
+
const { pageName, sectionName, options = {} } = config;
|
|
32
|
+
const { spacing = {} } = options;
|
|
33
|
+
return `// ================================================
|
|
34
|
+
// ${pageName}ページ - ${sectionName}セクション(タブUI)
|
|
35
|
+
// ================================================
|
|
36
|
+
|
|
37
|
+
.${sectionName}_section {
|
|
38
|
+
padding: ${spacing.sectionPadding || '6rem 0'};
|
|
39
|
+
|
|
40
|
+
@include mq() {
|
|
41
|
+
padding: ${spacing.sectionPadding || '8rem 0'};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.section_ttl {
|
|
45
|
+
margin-bottom: 3.2rem;
|
|
46
|
+
@include fontsize(24, 20);
|
|
47
|
+
font-weight: bold;
|
|
48
|
+
color: $color-prime;
|
|
49
|
+
text-align: center;
|
|
50
|
+
|
|
51
|
+
@include mq() {
|
|
52
|
+
margin-bottom: 4rem;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// タブリストのカスタマイズ(必要に応じて)
|
|
57
|
+
.c_tab_list {
|
|
58
|
+
display: flex;
|
|
59
|
+
gap: 0.8rem;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
margin-bottom: 3.2rem;
|
|
62
|
+
|
|
63
|
+
@include mq() {
|
|
64
|
+
gap: 1.6rem;
|
|
65
|
+
margin-bottom: 4rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
li button {
|
|
69
|
+
padding: 1.2rem 2.4rem;
|
|
70
|
+
@include fontsize(16, 14);
|
|
71
|
+
font-weight: bold;
|
|
72
|
+
color: $color-txt;
|
|
73
|
+
background-color: $color-bg;
|
|
74
|
+
border: 0.2rem solid $color-prime;
|
|
75
|
+
border-radius: 0.4rem;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
transition: $easing;
|
|
78
|
+
|
|
79
|
+
@include mq() {
|
|
80
|
+
padding: 1.6rem 3.2rem;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@include hover() {
|
|
84
|
+
background-color: rgba($color-prime, 0.1);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// アクティブ状態は c_tab.scss で定義済み
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// タブコンテンツのカスタマイズ
|
|
92
|
+
.c_tab_content {
|
|
93
|
+
padding: 3.2rem 0;
|
|
94
|
+
|
|
95
|
+
@include mq() {
|
|
96
|
+
padding: 4rem 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* アコーディオンUI用SCSS
|
|
104
|
+
* 注: アコーディオンのスタイルは _c_accordion.scss で定義済み、追加スタイルのみ記述
|
|
105
|
+
*/
|
|
106
|
+
function generateAccordionScss(config) {
|
|
107
|
+
const { pageName, sectionName, options = {} } = config;
|
|
108
|
+
const { spacing = {} } = options;
|
|
109
|
+
return `// ================================================
|
|
110
|
+
// ${pageName}ページ - ${sectionName}セクション(アコーディオンUI)
|
|
111
|
+
// ================================================
|
|
112
|
+
|
|
113
|
+
.${sectionName}_section {
|
|
114
|
+
padding: ${spacing.sectionPadding || '6rem 0'};
|
|
115
|
+
|
|
116
|
+
@include mq() {
|
|
117
|
+
padding: ${spacing.sectionPadding || '8rem 0'};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.section_ttl {
|
|
121
|
+
margin-bottom: 3.2rem;
|
|
122
|
+
@include fontsize(24, 20);
|
|
123
|
+
font-weight: bold;
|
|
124
|
+
color: $color-prime;
|
|
125
|
+
text-align: center;
|
|
126
|
+
|
|
127
|
+
@include mq() {
|
|
128
|
+
margin-bottom: 4rem;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.accordion_list {
|
|
133
|
+
display: grid;
|
|
134
|
+
gap: ${spacing.itemGap || '1.6rem'};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.accordion_item {
|
|
138
|
+
background: $color-bg;
|
|
139
|
+
border: 0.1rem solid rgba($color-prime, 0.2);
|
|
140
|
+
border-radius: 0.8rem;
|
|
141
|
+
|
|
142
|
+
// タイトル部分のカスタマイズ(必要に応じて)
|
|
143
|
+
&_ttl {
|
|
144
|
+
padding: 2rem 5rem 2rem 2rem;
|
|
145
|
+
@include fontsize(18, 16);
|
|
146
|
+
font-weight: bold;
|
|
147
|
+
color: $color-txt;
|
|
148
|
+
|
|
149
|
+
@include mq() {
|
|
150
|
+
padding: 2.4rem 6rem 2.4rem 2.4rem;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@include hover() {
|
|
154
|
+
background-color: rgba($color-prime, 0.05);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&_text {
|
|
158
|
+
display: block;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// コンテンツ部分のカスタマイズ
|
|
163
|
+
&_content {
|
|
164
|
+
&_text {
|
|
165
|
+
padding: 0 2rem 2rem;
|
|
166
|
+
@include fontsize(16, 14);
|
|
167
|
+
line-height: 1.8;
|
|
168
|
+
color: $color-txt;
|
|
169
|
+
|
|
170
|
+
@include mq() {
|
|
171
|
+
padding: 0 2.4rem 2.4rem;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
`;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* グリッドUI用SCSS
|
|
181
|
+
*/
|
|
182
|
+
function generateGridScss(config) {
|
|
183
|
+
const { pageName, sectionName, options = {} } = config;
|
|
184
|
+
const { columns = 3, spacing = {}, hasImage = true } = options;
|
|
185
|
+
return `// ================================================
|
|
186
|
+
// ${pageName}ページ - ${sectionName}セクション(グリッドUI)
|
|
187
|
+
// ================================================
|
|
188
|
+
|
|
189
|
+
.${sectionName}_section {
|
|
190
|
+
padding: ${spacing.sectionPadding || '6rem 0'};
|
|
191
|
+
|
|
192
|
+
@include mq() {
|
|
193
|
+
padding: ${spacing.sectionPadding || '8rem 0'};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.section_ttl {
|
|
197
|
+
margin-bottom: 3.2rem;
|
|
198
|
+
@include fontsize(24, 20);
|
|
199
|
+
font-weight: bold;
|
|
200
|
+
color: $color-prime;
|
|
201
|
+
text-align: center;
|
|
202
|
+
|
|
203
|
+
@include mq() {
|
|
204
|
+
margin-bottom: 4rem;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.grid_list {
|
|
209
|
+
display: grid;
|
|
210
|
+
grid-template-columns: 1fr;
|
|
211
|
+
gap: ${spacing.itemGap || '2.4rem'};
|
|
212
|
+
|
|
213
|
+
@include mq() {
|
|
214
|
+
grid-template-columns: repeat(${columns}, 1fr);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.grid_item {
|
|
219
|
+
background: $color-bg;
|
|
220
|
+
border: 0.1rem solid rgba($color-prime, 0.2);
|
|
221
|
+
border-radius: 0.8rem;
|
|
222
|
+
overflow: hidden;
|
|
223
|
+
transition: $easing;
|
|
224
|
+
|
|
225
|
+
@include hover() {
|
|
226
|
+
transform: translateY(-0.4rem);
|
|
227
|
+
box-shadow: 0 0.8rem 2.4rem rgba($color-prime, 0.15);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
${hasImage
|
|
231
|
+
? `&_img {
|
|
232
|
+
aspect-ratio: 16 / 9;
|
|
233
|
+
overflow: hidden;
|
|
234
|
+
background-color: rgba($color-prime, 0.05);
|
|
235
|
+
|
|
236
|
+
img {
|
|
237
|
+
width: 100%;
|
|
238
|
+
height: 100%;
|
|
239
|
+
object-fit: cover;
|
|
240
|
+
}
|
|
241
|
+
}`
|
|
242
|
+
: ''}
|
|
243
|
+
|
|
244
|
+
&_body {
|
|
245
|
+
padding: 2rem;
|
|
246
|
+
|
|
247
|
+
@include mq() {
|
|
248
|
+
padding: 2.4rem;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
&_ttl {
|
|
253
|
+
margin-bottom: 0.8rem;
|
|
254
|
+
@include fontsize(18, 16);
|
|
255
|
+
font-weight: bold;
|
|
256
|
+
color: $color-txt;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&_desc {
|
|
260
|
+
@include fontsize(14, 13);
|
|
261
|
+
line-height: 1.6;
|
|
262
|
+
color: rgba($color-txt, 0.7);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
`;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* カルーセルUI用SCSS
|
|
270
|
+
*/
|
|
271
|
+
function generateCarouselScss(config) {
|
|
272
|
+
const { pageName, sectionName, options = {} } = config;
|
|
273
|
+
const { spacing = {} } = options;
|
|
274
|
+
return `// ================================================
|
|
275
|
+
// ${pageName}ページ - ${sectionName}セクション(カルーセルUI)
|
|
276
|
+
// ================================================
|
|
277
|
+
|
|
278
|
+
.${sectionName}_section {
|
|
279
|
+
padding: ${spacing.sectionPadding || '6rem 0'};
|
|
280
|
+
|
|
281
|
+
@include mq() {
|
|
282
|
+
padding: ${spacing.sectionPadding || '8rem 0'};
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.section_ttl {
|
|
286
|
+
margin-bottom: 3.2rem;
|
|
287
|
+
@include fontsize(24, 20);
|
|
288
|
+
font-weight: bold;
|
|
289
|
+
color: $color-prime;
|
|
290
|
+
text-align: center;
|
|
291
|
+
|
|
292
|
+
@include mq() {
|
|
293
|
+
margin-bottom: 4rem;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.carousel_swiper {
|
|
298
|
+
overflow: hidden;
|
|
299
|
+
|
|
300
|
+
.swiper-button-prev,
|
|
301
|
+
.swiper-button-next {
|
|
302
|
+
color: $color-prime;
|
|
303
|
+
|
|
304
|
+
@include hover() {
|
|
305
|
+
opacity: 0.7;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.swiper-pagination-bullet {
|
|
310
|
+
background: $color-prime;
|
|
311
|
+
|
|
312
|
+
&-active {
|
|
313
|
+
background: $color-second;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.carousel_item {
|
|
319
|
+
&_img {
|
|
320
|
+
aspect-ratio: 16 / 9;
|
|
321
|
+
overflow: hidden;
|
|
322
|
+
background-color: rgba($color-prime, 0.05);
|
|
323
|
+
|
|
324
|
+
img {
|
|
325
|
+
width: 100%;
|
|
326
|
+
height: 100%;
|
|
327
|
+
object-fit: cover;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
&_body {
|
|
332
|
+
padding: 2rem;
|
|
333
|
+
|
|
334
|
+
@include mq() {
|
|
335
|
+
padding: 2.4rem;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
&_ttl {
|
|
340
|
+
margin-bottom: 0.8rem;
|
|
341
|
+
@include fontsize(18, 16);
|
|
342
|
+
font-weight: bold;
|
|
343
|
+
color: $color-txt;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
&_desc {
|
|
347
|
+
@include fontsize(14, 13);
|
|
348
|
+
line-height: 1.6;
|
|
349
|
+
color: rgba($color-txt, 0.7);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
`;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* リストUI用SCSS
|
|
357
|
+
*/
|
|
358
|
+
function generateListScss(config) {
|
|
359
|
+
const { pageName, sectionName, options = {} } = config;
|
|
360
|
+
const { spacing = {} } = options;
|
|
361
|
+
return `// ================================================
|
|
362
|
+
// ${pageName}ページ - ${sectionName}セクション(リストUI)
|
|
363
|
+
// ================================================
|
|
364
|
+
|
|
365
|
+
.${sectionName}_section {
|
|
366
|
+
padding: ${spacing.sectionPadding || '6rem 0'};
|
|
367
|
+
|
|
368
|
+
@include mq() {
|
|
369
|
+
padding: ${spacing.sectionPadding || '8rem 0'};
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.section_ttl {
|
|
373
|
+
margin-bottom: 3.2rem;
|
|
374
|
+
@include fontsize(24, 20);
|
|
375
|
+
font-weight: bold;
|
|
376
|
+
color: $color-prime;
|
|
377
|
+
text-align: center;
|
|
378
|
+
|
|
379
|
+
@include mq() {
|
|
380
|
+
margin-bottom: 4rem;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.list {
|
|
385
|
+
display: grid;
|
|
386
|
+
gap: ${spacing.itemGap || '1.6rem'};
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.list_item {
|
|
390
|
+
padding: 2rem;
|
|
391
|
+
background: $color-bg;
|
|
392
|
+
border-left: 0.4rem solid $color-prime;
|
|
393
|
+
border-radius: 0.4rem;
|
|
394
|
+
transition: $easing;
|
|
395
|
+
|
|
396
|
+
@include mq() {
|
|
397
|
+
padding: 2.4rem;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
@include hover() {
|
|
401
|
+
background-color: rgba($color-prime, 0.05);
|
|
402
|
+
transform: translateX(0.4rem);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
&_ttl {
|
|
406
|
+
margin-bottom: 0.8rem;
|
|
407
|
+
@include fontsize(16, 15);
|
|
408
|
+
font-weight: bold;
|
|
409
|
+
color: $color-txt;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
&_desc {
|
|
413
|
+
@include fontsize(14, 13);
|
|
414
|
+
line-height: 1.6;
|
|
415
|
+
color: rgba($color-txt, 0.7);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
`;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* モーダルUI用SCSS
|
|
423
|
+
* 注: モーダル基本スタイルは _c_modal.scss で定義済み、追加スタイルのみ記述
|
|
424
|
+
*/
|
|
425
|
+
function generateModalScss(config) {
|
|
426
|
+
const { pageName, sectionName, options = {} } = config;
|
|
427
|
+
const { spacing = {}, columns = 3 } = options;
|
|
428
|
+
return `// ================================================
|
|
429
|
+
// ${pageName}ページ - ${sectionName}セクション(モーダルUI)
|
|
430
|
+
// ================================================
|
|
431
|
+
|
|
432
|
+
.${sectionName}_section {
|
|
433
|
+
padding: ${spacing.sectionPadding || '6rem 0'};
|
|
434
|
+
|
|
435
|
+
@include mq() {
|
|
436
|
+
padding: ${spacing.sectionPadding || '8rem 0'};
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.section_ttl {
|
|
440
|
+
margin-bottom: 3.2rem;
|
|
441
|
+
@include fontsize(24, 20);
|
|
442
|
+
font-weight: bold;
|
|
443
|
+
color: $color-prime;
|
|
444
|
+
text-align: center;
|
|
445
|
+
|
|
446
|
+
@include mq() {
|
|
447
|
+
margin-bottom: 4rem;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.modal_list {
|
|
452
|
+
display: grid;
|
|
453
|
+
grid-template-columns: 1fr;
|
|
454
|
+
gap: ${spacing.itemGap || '2.4rem'};
|
|
455
|
+
|
|
456
|
+
@include mq() {
|
|
457
|
+
grid-template-columns: repeat(${columns}, 1fr);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.modal_item {
|
|
462
|
+
.c_modal_btn {
|
|
463
|
+
width: 100%;
|
|
464
|
+
text-align: left;
|
|
465
|
+
background: $color-bg;
|
|
466
|
+
border: 0.1rem solid rgba($color-prime, 0.2);
|
|
467
|
+
border-radius: 0.8rem;
|
|
468
|
+
overflow: hidden;
|
|
469
|
+
transition: $easing;
|
|
470
|
+
|
|
471
|
+
@include hover() {
|
|
472
|
+
transform: translateY(-0.4rem);
|
|
473
|
+
box-shadow: 0 0.8rem 2.4rem rgba($color-prime, 0.15);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.modal_thumbnail {
|
|
479
|
+
position: relative;
|
|
480
|
+
display: block;
|
|
481
|
+
aspect-ratio: 16 / 9;
|
|
482
|
+
overflow: hidden;
|
|
483
|
+
background-color: rgba($color-prime, 0.05);
|
|
484
|
+
|
|
485
|
+
img {
|
|
486
|
+
width: 100%;
|
|
487
|
+
height: 100%;
|
|
488
|
+
object-fit: cover;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.modal_play_icon {
|
|
493
|
+
position: absolute;
|
|
494
|
+
top: 50%;
|
|
495
|
+
left: 50%;
|
|
496
|
+
transform: translate(-50%, -50%);
|
|
497
|
+
pointer-events: none;
|
|
498
|
+
|
|
499
|
+
svg {
|
|
500
|
+
filter: drop-shadow(0 0.4rem 0.8rem rgba(0, 0, 0, 0.3));
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.modal_body {
|
|
505
|
+
display: block;
|
|
506
|
+
padding: 2rem;
|
|
507
|
+
|
|
508
|
+
@include mq() {
|
|
509
|
+
padding: 2.4rem;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.modal_ttl {
|
|
514
|
+
margin-bottom: 0.8rem;
|
|
515
|
+
@include fontsize(18, 16);
|
|
516
|
+
font-weight: bold;
|
|
517
|
+
color: $color-txt;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.modal_desc {
|
|
521
|
+
@include fontsize(14, 13);
|
|
522
|
+
line-height: 1.6;
|
|
523
|
+
color: rgba($color-txt, 0.7);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
`;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* デフォルトSCSS(カスタムセクション用)
|
|
530
|
+
*/
|
|
531
|
+
function generateDefaultScss(config) {
|
|
532
|
+
const { pageName, sectionName, options = {} } = config;
|
|
533
|
+
const { spacing = {} } = options;
|
|
534
|
+
return `// ================================================
|
|
535
|
+
// ${pageName}ページ - ${sectionName}セクション
|
|
536
|
+
// ================================================
|
|
537
|
+
|
|
538
|
+
.${sectionName}_section {
|
|
539
|
+
padding: ${spacing.sectionPadding || '6rem 0'};
|
|
540
|
+
|
|
541
|
+
@include mq() {
|
|
542
|
+
padding: ${spacing.sectionPadding || '8rem 0'};
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.section_ttl {
|
|
546
|
+
margin-bottom: 3.2rem;
|
|
547
|
+
@include fontsize(24, 20);
|
|
548
|
+
font-weight: bold;
|
|
549
|
+
color: $color-prime;
|
|
550
|
+
|
|
551
|
+
@include mq() {
|
|
552
|
+
margin-bottom: 4rem;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.section_desc {
|
|
557
|
+
@include fontsize(16, 14);
|
|
558
|
+
line-height: 1.8;
|
|
559
|
+
color: $color-txt;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
`;
|
|
563
|
+
}
|
|
564
|
+
//# sourceMappingURL=scssPatterns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scssPatterns.js","sourceRoot":"","sources":["../../src/templates/scssPatterns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuBH;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAyB;IAC5D,QAAQ,MAAM,CAAC,OAAO,EAAE,CAAC;QACxB,KAAK,KAAK;YACT,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;QAChC,KAAK,WAAW;YACf,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC;QACtC,K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.d.ts","sourceRoot":"","sources":["../../src/templates/uiPatterns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,MAAM,SAAS,GAClB,KAAK,GACL,WAAW,GACX,MAAM,GACN,UAAU,GACV,MAAM,GACN,OAAO,CAAC;AAEX,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,SAAS,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;CACF;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAiBjE"}
|