質問編集履歴

2

誤字

2017/10/24 00:47

投稿

zukeyama
zukeyama

スコア11

test CHANGED
File without changes
test CHANGED
@@ -38,666 +38,216 @@
38
38
 
39
39
 
40
40
 
41
- ```html
42
-
43
- <!DOCTYPE html>
44
-
45
- <html lang="ja"><head><meta charset="UTF-8"><title>test</title>
46
-
47
- <link rel="stylesheet" href="/sptest/css/test.css">
48
-
49
- <!-- SiteCatalyst -->
50
-
51
- <script src="/sptest/js/jquery-3.2.1.min.js"></script>
52
-
53
- <script src="/sptest/js/test.js"></script>
54
-
55
- <style type="text/css">
56
-
57
- /* any sp styles */
58
-
59
- </style></head><body class="">
60
-
61
- <div class="LyContents">
62
-
63
- <!--OutputContent-->
64
-
65
- <div class="OutputContent">
66
-
67
- <!--styling-->
68
-
69
- <section id="Lp_styling">
70
-
71
- <div class="Lp_content-inner">
72
-
73
- <div id="container" class="Lp_styling__tab-content">
74
-
75
- <!--mens-->
76
-
77
- <div class="item" data-filter-class='["onstyle", "mens", "all"]'><a href="javascript:void(0)"><img src="https://pbs.twimg.com/profile_images/581025665727655936/9CnwZZ6j.jpg" alt=""></a>
78
-
79
- <!--container__modal-main-->
80
-
81
- <div class="Lp_container__modal-main hidecontent">
82
-
83
- <div class="Lp_styling__modal-partbx">
84
-
85
- <ul class="Lp_styling__modal-list">
86
-
87
- <li><a href="#"><span class="Lp_styling__modal-product"> ●●●</span><br>本体価格 99,999円(税込99,999円)<br><span class="Lp_styling__modal-partno">品番:●●●●●</span></a></li>
88
-
89
- <li><span class="Lp_styling__modal-product"> ●●●●●</span><br>本体価格 9,999円(税込9,999円)<br><span class="Lp_styling__modal-partno">品番:●●●●●</span></li>
90
-
91
- <li><a href="#"><span class="Lp_styling__modal-product"> 【***】<br>●●●●●●●●●●●●</span><br>本体価格99,999円(税込99,999円)<br><span class="Lp_styling__modal-partno">品番:●●●●●</span></a></li>
92
-
93
- <li><a href="#"><span class="Lp_styling__modal-product"> 【***】<br>●●●●●●●●●●●●●●●●●</span><br>本体価格 9,999円(税込9,999円)<br><span class="Lp_styling__modal-partno">品番:●●●●●</span></a></li>
94
-
95
- <li><a href="#"><span class="Lp_styling__modal-product"> ●●●●●●●</span><br><span class="Lp_styling__modal-partno">品番:●●●●●●</span></a></li>
96
-
97
- </ul>
98
-
99
- <div class="Lp_styling__modal-other">※その他アイテム、スタイリスト手配。</div>
100
-
101
- </div>
102
-
103
- </div>
104
-
105
- <!--/container__modal-main-->
106
-
107
- </div>
108
-
109
- </div>
110
-
111
- <!-- all -->
112
-
113
- </div>
114
-
115
- </div><!--Lp_content-inner-->
116
-
117
- <!--styling-modal-->
118
-
119
- <div class="Lp_styling__modal">
120
-
121
- <div class="Lp_styling__modal-inner">
122
-
123
- <img src="/contents/images/freeLp/sugoshell/fashion__img05_sp.jpg" alt="" id="modal_img">
124
-
125
- <div class="Lp_styling__modal-content">
126
-
127
- <p class="Lp_styling__modal-ttl"></p>
128
-
129
- <div class="Lp_styling__modal-main">
130
-
131
- </div>
132
-
133
- </div>
134
-
135
- <div class="Lp_styling__modal-close"></div>
136
-
137
- </div>
138
-
139
- </div>
140
-
141
- <!--/styling-modal-->
142
-
143
- </section>
144
-
145
- <!--/styling-->
146
-
147
- </div><!--OutputContent-->
148
-
149
- </div><!-- /.LyContents -->
150
-
151
- <!-- /LyWrap--></div>
152
-
153
- </body></html>
41
+ ```css
42
+
43
+ /* modal window */
44
+
45
+ .Lp_styling__modal {
46
+
47
+ display: none;
48
+
49
+ position: fixed;
50
+
51
+ width: 100%;
52
+
53
+ top: 50;
54
+
55
+ left: 0;
56
+
57
+ z-index: 999;
58
+
59
+ background-color: #fff;
60
+
61
+ height: 100%;
62
+
63
+ overflow-y: scroll;
64
+
65
+ }
66
+
67
+ .Lp_styling__modal-inner {
68
+
69
+ height: 100%;
70
+
71
+ overflow-y: scroll;
72
+
73
+ }
74
+
75
+
76
+
77
+ .Lp_styling__modal-content {
78
+
79
+ width: 90%;
80
+
81
+ margin: 7% auto;
82
+
83
+ font-size: 12px;
84
+
85
+ }
86
+
87
+ .Lp_styling__modal-partbx {
88
+
89
+ border-bottom: 1px solid #c8c8c8;
90
+
91
+ padding-bottom: 2em;
92
+
93
+ margin-bottom: 5%;
94
+
95
+ }
96
+
97
+ .Lp_styling__modal-partbx:last-child {
98
+
99
+ border-bottom: none;
100
+
101
+ }
102
+
103
+ .Lp_styling__modal-ttl {
104
+
105
+ margin-bottom: 6.1%;
106
+
107
+ font-size: 4.2vw;
108
+
109
+ line-height: 1.6;
110
+
111
+ font-weight: 900;
112
+
113
+ }
114
+
115
+ .Lp_styling__modal-other{
116
+
117
+ font-size: 2.4vw;
118
+
119
+ }
120
+
121
+ .Lp_styling__modal-name,
122
+
123
+ .Lp_styling__modal-topval,
124
+
125
+ .Lp_styling__modal-product{
126
+
127
+ font-size: 3.2vw;
128
+
129
+ font-weight: 900;
130
+
131
+ }
132
+
133
+ .Lp_styling__modal-name {
134
+
135
+ margin-bottom: 4.9%;
136
+
137
+ }
138
+
139
+ .Lp_styling__modal-list li{
140
+
141
+ margin-bottom: 6%;
142
+
143
+ line-height: 1.5;
144
+
145
+ font-size: 3.2vw;
146
+
147
+ letter-spacing: 0.6px;
148
+
149
+ }
150
+
151
+ .Lp_styling__modal-list li a{
152
+
153
+ text-decoration: underline;
154
+
155
+ }
156
+
157
+ .Lp_styling__modal-topval {
158
+
159
+ display: inline-block;
160
+
161
+ margin-bottom: 1.2%;
162
+
163
+ }
164
+
165
+ .Lp_styling__modal-partno {
166
+
167
+ font-size: 2.4vw;
168
+
169
+ }
170
+
171
+ .Lp_styling__modal-close {
172
+
173
+ position: absolute;
174
+
175
+ top:0;
176
+
177
+ right:0;
178
+
179
+ background-color: #ededed;
180
+
181
+ text-align: center;
182
+
183
+ width: 30px;
184
+
185
+ height: 30px;
186
+
187
+ }
188
+
189
+ .Lp_styling__modal-close:before{
190
+
191
+ content: "";
192
+
193
+ position: absolute;
194
+
195
+ display: inline-block;
196
+
197
+ top: 7px;
198
+
199
+ left: 15px;
200
+
201
+ width: 2px;
202
+
203
+ height: 15px;
204
+
205
+ border:0;
206
+
207
+ margin:0;
208
+
209
+ padding:0;
210
+
211
+ background-color:#000;
212
+
213
+ -moz-transform:rotate(45deg);
214
+
215
+ -webkit-transform:rotate(45deg);
216
+
217
+ transform:rotate(45deg);
218
+
219
+ }
220
+
221
+ .Lp_styling__modal-close:after{
222
+
223
+ content: "";
224
+
225
+ position: absolute;
226
+
227
+ display: inline-block;
228
+
229
+ top: 7px;
230
+
231
+ left: 15px;
232
+
233
+ width: 2px;
234
+
235
+ height: 15px;
236
+
237
+ border: 0;
238
+
239
+ margin: 0;
240
+
241
+ padding: 0;
242
+
243
+ background-color: #000;
244
+
245
+ -moz-transform: rotate(-45deg);
246
+
247
+ -webkit-transform: rotate(-45deg);
248
+
249
+ transform: rotate(-45deg);
250
+
251
+ }
154
252
 
155
253
  ```
156
-
157
-
158
-
159
- ```css
160
-
161
- body {
162
-
163
- line-height: 1;
164
-
165
- }
166
-
167
- img {
168
-
169
- display: inline-block;
170
-
171
- vertical-align: middle;
172
-
173
- max-width: 100%;
174
-
175
- }
176
-
177
- .hidecontent{
178
-
179
- display: none;
180
-
181
- }
182
-
183
- .Lp_content-inner {
184
-
185
- width: 94.2%;
186
-
187
- margin: 0 auto;
188
-
189
- }
190
-
191
-
192
-
193
- /* filter */
194
-
195
- #container {
196
-
197
- width: 100%;
198
-
199
- margin: 0 auto;
200
-
201
- position: relative;
202
-
203
- overflow: hidden;
204
-
205
- }
206
-
207
- .item.inactive {
208
-
209
- visibility: hidden;
210
-
211
- opacity: 0;
212
-
213
- }
214
-
215
- #Lp_styling{
216
-
217
- padding-bottom: 6.9%;
218
-
219
- }
220
-
221
- #Lp_styling .Lp_sub-title{
222
-
223
- width: 16%;
224
-
225
- margin: 0 auto 2.3%;
226
-
227
- padding-top: 14%;
228
-
229
- }
230
-
231
- .Lp_styling__img01 {
232
-
233
- margin-bottom: 8.6%;
234
-
235
- }
236
-
237
- #Lp_styling .Lp_desc-titl {
238
-
239
- width: 55.2%;
240
-
241
- margin: 0 auto 4.7%;
242
-
243
- }
244
-
245
- #Lp_styling .Lp_desc-txt {
246
-
247
- width: 80.6%;
248
-
249
- margin: 0 auto 15.6%;
250
-
251
- }
252
-
253
- .Lp_styling__img02 {
254
-
255
- width: 41.3%;
256
-
257
- display: block;
258
-
259
- margin: 0 auto 3.4%;
260
-
261
- }
262
-
263
- .Lp_styling__img02-cap {
264
-
265
- width: 45%;
266
-
267
- margin: 0 auto 3%;
268
-
269
- }
270
-
271
- .Lp_styling__img02-txt {
272
-
273
- width: 88.9%;
274
-
275
- margin: 0 auto 11.3%;
276
-
277
- }
278
-
279
-
280
-
281
- /* styling__filter */
282
-
283
- .Lp_styling__tab {
284
-
285
- margin-bottom: 4.34%;
286
-
287
- }
288
-
289
- .Lp_styling__tab ul{
290
-
291
- display: -webkit-box;
292
-
293
- display: -ms-flexbox;
294
-
295
- display: -webkit-flex;
296
-
297
- display: flex;
298
-
299
- -ms-flex-wrap: wrap;
300
-
301
- -webkit-flex-wrap: wrap;
302
-
303
- flex-wrap: wrap;
304
-
305
- width: 100%;
306
-
307
- }
308
-
309
- .Lp_styling__tab li{
310
-
311
- font-size: 3.1vw;
312
-
313
- background-color:#000;
314
-
315
- color: #fff;
316
-
317
- text-align: center;
318
-
319
- width: calc(99.5% / 2);
320
-
321
- padding: 1.5em 0;
322
-
323
- border: 1px solid #fff;
324
-
325
- margin: 0 auto;
326
-
327
- }
328
-
329
- .Lp_styling__tab li a{
330
-
331
- color: #fff;
332
-
333
- }
334
-
335
- .item{
336
-
337
- position: relative;
338
-
339
- overflow: hidden;
340
-
341
- cursor: pointer;
342
-
343
- }
344
-
345
- .item img{
346
-
347
- transition: transform .3s linear;
348
-
349
- }
350
-
351
- .item.active img{
352
-
353
- -ms-transform: scale(1.25);
354
-
355
- -webkit-transform: scale(1.25);
356
-
357
- -moz-transform: scale(1.25);
358
-
359
- -o-transform: scale(1.25);
360
-
361
- transform: scale(1.25);
362
-
363
- transition: transform .3s linear;
364
-
365
- }
366
-
367
- .item::before{
368
-
369
- position: absolute;
370
-
371
- content: '';
372
-
373
- width: 100%;
374
-
375
- height: 100%;
376
-
377
- box-shadow: 6px 6px 0px #ff5d58 inset,-6px -6px 0px #ff5d58 inset;
378
-
379
- opacity: 0;
380
-
381
- transition: all .3s linear;
382
-
383
- }
384
-
385
- .item.active::before{
386
-
387
- opacity: 1;
388
-
389
- z-index: 5;
390
-
391
- transition: all .3s linear;
392
-
393
- }
394
-
395
- .item.appear{
396
-
397
- opacity: 1 !important;
398
-
399
- transition: opacity 1.5s linear;
400
-
401
- }
402
-
403
- /* modal window */
404
-
405
- .Lp_styling__modal {
406
-
407
- display: none;
408
-
409
- position: fixed;
410
-
411
- width: 100%;
412
-
413
- top: 50;
414
-
415
- left: 0;
416
-
417
- z-index: 999;
418
-
419
- background-color: #fff;
420
-
421
- height: 100%;
422
-
423
- overflow-y: scroll;
424
-
425
- }
426
-
427
- .Lp_styling__modal-inner {
428
-
429
- height: 100%;
430
-
431
- overflow-y: scroll;
432
-
433
- }
434
-
435
-
436
-
437
- .Lp_styling__modal-content {
438
-
439
- width: 90%;
440
-
441
- margin: 7% auto;
442
-
443
- font-size: 12px;
444
-
445
- }
446
-
447
- .Lp_styling__modal-partbx {
448
-
449
- border-bottom: 1px solid #c8c8c8;
450
-
451
- padding-bottom: 2em;
452
-
453
- margin-bottom: 5%;
454
-
455
- }
456
-
457
- .Lp_styling__modal-partbx:last-child {
458
-
459
- border-bottom: none;
460
-
461
- }
462
-
463
- .Lp_styling__modal-ttl {
464
-
465
- margin-bottom: 6.1%;
466
-
467
- font-size: 4.2vw;
468
-
469
- line-height: 1.6;
470
-
471
- font-weight: 900;
472
-
473
- }
474
-
475
- .Lp_styling__modal-other{
476
-
477
- font-size: 2.4vw;
478
-
479
- }
480
-
481
- .Lp_styling__modal-name,
482
-
483
- .Lp_styling__modal-topval,
484
-
485
- .Lp_styling__modal-product{
486
-
487
- font-size: 3.2vw;
488
-
489
- font-weight: 900;
490
-
491
- }
492
-
493
- .Lp_styling__modal-name {
494
-
495
- margin-bottom: 4.9%;
496
-
497
- }
498
-
499
- .Lp_styling__modal-list li{
500
-
501
- margin-bottom: 6%;
502
-
503
- line-height: 1.5;
504
-
505
- font-size: 3.2vw;
506
-
507
- letter-spacing: 0.6px;
508
-
509
- }
510
-
511
- .Lp_styling__modal-list li a{
512
-
513
- text-decoration: underline;
514
-
515
- }
516
-
517
- .Lp_styling__modal-topval {
518
-
519
- display: inline-block;
520
-
521
- margin-bottom: 1.2%;
522
-
523
- }
524
-
525
- .Lp_styling__modal-partno {
526
-
527
- font-size: 2.4vw;
528
-
529
- }
530
-
531
- .Lp_styling__modal-close {
532
-
533
- position: absolute;
534
-
535
- top:0;
536
-
537
- right:0;
538
-
539
- background-color: #ededed;
540
-
541
- text-align: center;
542
-
543
- width: 30px;
544
-
545
- height: 30px;
546
-
547
- }
548
-
549
- .Lp_styling__modal-close:before{
550
-
551
- content: "";
552
-
553
- position: absolute;
554
-
555
- display: inline-block;
556
-
557
- top: 7px;
558
-
559
- left: 15px;
560
-
561
- width: 2px;
562
-
563
- height: 15px;
564
-
565
- border:0;
566
-
567
- margin:0;
568
-
569
- padding:0;
570
-
571
- background-color:#000;
572
-
573
- -moz-transform:rotate(45deg);
574
-
575
- -webkit-transform:rotate(45deg);
576
-
577
- transform:rotate(45deg);
578
-
579
- }
580
-
581
- .Lp_styling__modal-close:after{
582
-
583
- content: "";
584
-
585
- position: absolute;
586
-
587
- display: inline-block;
588
-
589
- top: 7px;
590
-
591
- left: 15px;
592
-
593
- width: 2px;
594
-
595
- height: 15px;
596
-
597
- border: 0;
598
-
599
- margin: 0;
600
-
601
- padding: 0;
602
-
603
- background-color: #000;
604
-
605
- -moz-transform: rotate(-45deg);
606
-
607
- -webkit-transform: rotate(-45deg);
608
-
609
- transform: rotate(-45deg);
610
-
611
- }
612
-
613
- ```
614
-
615
-
616
-
617
- ```js
618
-
619
-
620
-
621
- /* アイテムのモーダル出現処理 */
622
-
623
- $(function(){
624
-
625
- $(document).on('click','#container .item',function(){
626
-
627
- current_scrollY = $( window ).scrollTop();
628
-
629
- $( 'body' ).css( {
630
-
631
- position: 'fixed',
632
-
633
- width: '100%',
634
-
635
- top: -1 * current_scrollY
636
-
637
- } );
638
-
639
-
640
-
641
- $('#container .item').removeClass('active');
642
-
643
- $(this).addClass('active');
644
-
645
- var $imgData = $(this).find('img').attr('src');
646
-
647
- //var $changeImg = $imgData.replace('img','modal');
648
-
649
- var $listData = $(this).find('.Lp_container__modal-main').html();
650
-
651
- var $imgTitl = $(this).find('img').attr('alt');
652
-
653
- $('#modal_img').attr('src',$imgData);
654
-
655
- $('.Lp_styling__modal-main').html($listData);
656
-
657
- $('.Lp_styling__modal-ttl').html($imgTitl);
658
-
659
- $('.Lp_styling__modal').css({height:'100%'});
660
-
661
- $('.Lp_styling__modal-inner').css({height:'100%'});
662
-
663
- //0.5秒後にモーダルを表示
664
-
665
- setTimeout(function(){
666
-
667
- $('.Lp_styling__modal').css('display','block').not(":animated").animate({ top: 0, opacity: 1}, 400,function(){
668
-
669
- $('.Lp_styling__modal-close').css('position','fixed');
670
-
671
-
672
-
673
- });
674
-
675
- },300);
676
-
677
- });
678
-
679
- $('.Lp_styling__modal-close').click(function(){
680
-
681
- $( 'body' ).attr( { style: '' } );
682
-
683
- $( 'html, body' ).prop( { scrollTop: current_scrollY } );
684
-
685
- $('#container .item').removeClass('active');
686
-
687
- $('.Lp_styling__modal').not(":animated").animate({ top: 50, opacity: 0 }, 500,function(){
688
-
689
- $('.Lp_styling__modal-inner').scrollTop(0);
690
-
691
- $(this).css('display','none');
692
-
693
- });
694
-
695
- $('.Lp_styling__modal-close').css('position','absolute');
696
-
697
- });
698
-
699
- });
700
-
701
-
702
-
703
- ```

1

サンプルソースを記述

2017/10/24 00:47

投稿

zukeyama
zukeyama

スコア11

test CHANGED
File without changes
test CHANGED
@@ -38,12 +38,374 @@
38
38
 
39
39
 
40
40
 
41
-
41
+ ```html
42
+
42
-
43
+ <!DOCTYPE html>
44
+
45
+ <html lang="ja"><head><meta charset="UTF-8"><title>test</title>
46
+
47
+ <link rel="stylesheet" href="/sptest/css/test.css">
48
+
49
+ <!-- SiteCatalyst -->
50
+
51
+ <script src="/sptest/js/jquery-3.2.1.min.js"></script>
52
+
53
+ <script src="/sptest/js/test.js"></script>
54
+
55
+ <style type="text/css">
56
+
57
+ /* any sp styles */
58
+
59
+ </style></head><body class="">
60
+
61
+ <div class="LyContents">
62
+
63
+ <!--OutputContent-->
64
+
65
+ <div class="OutputContent">
66
+
67
+ <!--styling-->
68
+
69
+ <section id="Lp_styling">
70
+
71
+ <div class="Lp_content-inner">
72
+
73
+ <div id="container" class="Lp_styling__tab-content">
74
+
75
+ <!--mens-->
76
+
77
+ <div class="item" data-filter-class='["onstyle", "mens", "all"]'><a href="javascript:void(0)"><img src="https://pbs.twimg.com/profile_images/581025665727655936/9CnwZZ6j.jpg" alt=""></a>
78
+
79
+ <!--container__modal-main-->
80
+
81
+ <div class="Lp_container__modal-main hidecontent">
82
+
83
+ <div class="Lp_styling__modal-partbx">
84
+
85
+ <ul class="Lp_styling__modal-list">
86
+
87
+ <li><a href="#"><span class="Lp_styling__modal-product"> ●●●</span><br>本体価格 99,999円(税込99,999円)<br><span class="Lp_styling__modal-partno">品番:●●●●●</span></a></li>
88
+
89
+ <li><span class="Lp_styling__modal-product"> ●●●●●</span><br>本体価格 9,999円(税込9,999円)<br><span class="Lp_styling__modal-partno">品番:●●●●●</span></li>
90
+
91
+ <li><a href="#"><span class="Lp_styling__modal-product"> 【***】<br>●●●●●●●●●●●●</span><br>本体価格99,999円(税込99,999円)<br><span class="Lp_styling__modal-partno">品番:●●●●●</span></a></li>
92
+
93
+ <li><a href="#"><span class="Lp_styling__modal-product"> 【***】<br>●●●●●●●●●●●●●●●●●</span><br>本体価格 9,999円(税込9,999円)<br><span class="Lp_styling__modal-partno">品番:●●●●●</span></a></li>
94
+
95
+ <li><a href="#"><span class="Lp_styling__modal-product"> ●●●●●●●</span><br><span class="Lp_styling__modal-partno">品番:●●●●●●</span></a></li>
96
+
97
+ </ul>
98
+
99
+ <div class="Lp_styling__modal-other">※その他アイテム、スタイリスト手配。</div>
100
+
101
+ </div>
102
+
103
+ </div>
104
+
105
+ <!--/container__modal-main-->
106
+
107
+ </div>
108
+
109
+ </div>
110
+
111
+ <!-- all -->
112
+
113
+ </div>
114
+
115
+ </div><!--Lp_content-inner-->
116
+
43
- ```.Lp_styling__modal {
117
+ <!--styling-modal-->
118
+
119
+ <div class="Lp_styling__modal">
120
+
121
+ <div class="Lp_styling__modal-inner">
122
+
123
+ <img src="/contents/images/freeLp/sugoshell/fashion__img05_sp.jpg" alt="" id="modal_img">
124
+
125
+ <div class="Lp_styling__modal-content">
126
+
127
+ <p class="Lp_styling__modal-ttl"></p>
128
+
129
+ <div class="Lp_styling__modal-main">
130
+
131
+ </div>
132
+
133
+ </div>
134
+
135
+ <div class="Lp_styling__modal-close"></div>
136
+
137
+ </div>
138
+
139
+ </div>
140
+
141
+ <!--/styling-modal-->
142
+
143
+ </section>
144
+
145
+ <!--/styling-->
146
+
147
+ </div><!--OutputContent-->
148
+
149
+ </div><!-- /.LyContents -->
150
+
151
+ <!-- /LyWrap--></div>
152
+
153
+ </body></html>
154
+
155
+ ```
156
+
157
+
158
+
159
+ ```css
160
+
161
+ body {
162
+
163
+ line-height: 1;
164
+
165
+ }
166
+
167
+ img {
168
+
169
+ display: inline-block;
170
+
171
+ vertical-align: middle;
172
+
173
+ max-width: 100%;
174
+
175
+ }
176
+
177
+ .hidecontent{
44
178
 
45
179
  display: none;
46
180
 
181
+ }
182
+
183
+ .Lp_content-inner {
184
+
185
+ width: 94.2%;
186
+
187
+ margin: 0 auto;
188
+
189
+ }
190
+
191
+
192
+
193
+ /* filter */
194
+
195
+ #container {
196
+
197
+ width: 100%;
198
+
199
+ margin: 0 auto;
200
+
201
+ position: relative;
202
+
203
+ overflow: hidden;
204
+
205
+ }
206
+
207
+ .item.inactive {
208
+
209
+ visibility: hidden;
210
+
211
+ opacity: 0;
212
+
213
+ }
214
+
215
+ #Lp_styling{
216
+
217
+ padding-bottom: 6.9%;
218
+
219
+ }
220
+
221
+ #Lp_styling .Lp_sub-title{
222
+
223
+ width: 16%;
224
+
225
+ margin: 0 auto 2.3%;
226
+
227
+ padding-top: 14%;
228
+
229
+ }
230
+
231
+ .Lp_styling__img01 {
232
+
233
+ margin-bottom: 8.6%;
234
+
235
+ }
236
+
237
+ #Lp_styling .Lp_desc-titl {
238
+
239
+ width: 55.2%;
240
+
241
+ margin: 0 auto 4.7%;
242
+
243
+ }
244
+
245
+ #Lp_styling .Lp_desc-txt {
246
+
247
+ width: 80.6%;
248
+
249
+ margin: 0 auto 15.6%;
250
+
251
+ }
252
+
253
+ .Lp_styling__img02 {
254
+
255
+ width: 41.3%;
256
+
257
+ display: block;
258
+
259
+ margin: 0 auto 3.4%;
260
+
261
+ }
262
+
263
+ .Lp_styling__img02-cap {
264
+
265
+ width: 45%;
266
+
267
+ margin: 0 auto 3%;
268
+
269
+ }
270
+
271
+ .Lp_styling__img02-txt {
272
+
273
+ width: 88.9%;
274
+
275
+ margin: 0 auto 11.3%;
276
+
277
+ }
278
+
279
+
280
+
281
+ /* styling__filter */
282
+
283
+ .Lp_styling__tab {
284
+
285
+ margin-bottom: 4.34%;
286
+
287
+ }
288
+
289
+ .Lp_styling__tab ul{
290
+
291
+ display: -webkit-box;
292
+
293
+ display: -ms-flexbox;
294
+
295
+ display: -webkit-flex;
296
+
297
+ display: flex;
298
+
299
+ -ms-flex-wrap: wrap;
300
+
301
+ -webkit-flex-wrap: wrap;
302
+
303
+ flex-wrap: wrap;
304
+
305
+ width: 100%;
306
+
307
+ }
308
+
309
+ .Lp_styling__tab li{
310
+
311
+ font-size: 3.1vw;
312
+
313
+ background-color:#000;
314
+
315
+ color: #fff;
316
+
317
+ text-align: center;
318
+
319
+ width: calc(99.5% / 2);
320
+
321
+ padding: 1.5em 0;
322
+
323
+ border: 1px solid #fff;
324
+
325
+ margin: 0 auto;
326
+
327
+ }
328
+
329
+ .Lp_styling__tab li a{
330
+
331
+ color: #fff;
332
+
333
+ }
334
+
335
+ .item{
336
+
337
+ position: relative;
338
+
339
+ overflow: hidden;
340
+
341
+ cursor: pointer;
342
+
343
+ }
344
+
345
+ .item img{
346
+
347
+ transition: transform .3s linear;
348
+
349
+ }
350
+
351
+ .item.active img{
352
+
353
+ -ms-transform: scale(1.25);
354
+
355
+ -webkit-transform: scale(1.25);
356
+
357
+ -moz-transform: scale(1.25);
358
+
359
+ -o-transform: scale(1.25);
360
+
361
+ transform: scale(1.25);
362
+
363
+ transition: transform .3s linear;
364
+
365
+ }
366
+
367
+ .item::before{
368
+
369
+ position: absolute;
370
+
371
+ content: '';
372
+
373
+ width: 100%;
374
+
375
+ height: 100%;
376
+
377
+ box-shadow: 6px 6px 0px #ff5d58 inset,-6px -6px 0px #ff5d58 inset;
378
+
379
+ opacity: 0;
380
+
381
+ transition: all .3s linear;
382
+
383
+ }
384
+
385
+ .item.active::before{
386
+
387
+ opacity: 1;
388
+
389
+ z-index: 5;
390
+
391
+ transition: all .3s linear;
392
+
393
+ }
394
+
395
+ .item.appear{
396
+
397
+ opacity: 1 !important;
398
+
399
+ transition: opacity 1.5s linear;
400
+
401
+ }
402
+
403
+ /* modal window */
404
+
405
+ .Lp_styling__modal {
406
+
407
+ display: none;
408
+
47
409
  position: fixed;
48
410
 
49
411
  width: 100%;
@@ -58,6 +420,8 @@
58
420
 
59
421
  height: 100%;
60
422
 
423
+ overflow-y: scroll;
424
+
61
425
  }
62
426
 
63
427
  .Lp_styling__modal-inner {
@@ -70,4 +434,270 @@
70
434
 
71
435
 
72
436
 
437
+ .Lp_styling__modal-content {
438
+
439
+ width: 90%;
440
+
441
+ margin: 7% auto;
442
+
443
+ font-size: 12px;
444
+
445
+ }
446
+
447
+ .Lp_styling__modal-partbx {
448
+
449
+ border-bottom: 1px solid #c8c8c8;
450
+
451
+ padding-bottom: 2em;
452
+
453
+ margin-bottom: 5%;
454
+
455
+ }
456
+
457
+ .Lp_styling__modal-partbx:last-child {
458
+
459
+ border-bottom: none;
460
+
461
+ }
462
+
463
+ .Lp_styling__modal-ttl {
464
+
465
+ margin-bottom: 6.1%;
466
+
467
+ font-size: 4.2vw;
468
+
469
+ line-height: 1.6;
470
+
471
+ font-weight: 900;
472
+
473
+ }
474
+
475
+ .Lp_styling__modal-other{
476
+
477
+ font-size: 2.4vw;
478
+
479
+ }
480
+
481
+ .Lp_styling__modal-name,
482
+
483
+ .Lp_styling__modal-topval,
484
+
485
+ .Lp_styling__modal-product{
486
+
487
+ font-size: 3.2vw;
488
+
489
+ font-weight: 900;
490
+
491
+ }
492
+
493
+ .Lp_styling__modal-name {
494
+
495
+ margin-bottom: 4.9%;
496
+
497
+ }
498
+
499
+ .Lp_styling__modal-list li{
500
+
501
+ margin-bottom: 6%;
502
+
503
+ line-height: 1.5;
504
+
505
+ font-size: 3.2vw;
506
+
507
+ letter-spacing: 0.6px;
508
+
509
+ }
510
+
511
+ .Lp_styling__modal-list li a{
512
+
513
+ text-decoration: underline;
514
+
515
+ }
516
+
517
+ .Lp_styling__modal-topval {
518
+
519
+ display: inline-block;
520
+
521
+ margin-bottom: 1.2%;
522
+
523
+ }
524
+
525
+ .Lp_styling__modal-partno {
526
+
527
+ font-size: 2.4vw;
528
+
529
+ }
530
+
531
+ .Lp_styling__modal-close {
532
+
533
+ position: absolute;
534
+
535
+ top:0;
536
+
537
+ right:0;
538
+
539
+ background-color: #ededed;
540
+
541
+ text-align: center;
542
+
543
+ width: 30px;
544
+
545
+ height: 30px;
546
+
547
+ }
548
+
549
+ .Lp_styling__modal-close:before{
550
+
551
+ content: "";
552
+
553
+ position: absolute;
554
+
555
+ display: inline-block;
556
+
557
+ top: 7px;
558
+
559
+ left: 15px;
560
+
561
+ width: 2px;
562
+
563
+ height: 15px;
564
+
565
+ border:0;
566
+
567
+ margin:0;
568
+
569
+ padding:0;
570
+
571
+ background-color:#000;
572
+
573
+ -moz-transform:rotate(45deg);
574
+
575
+ -webkit-transform:rotate(45deg);
576
+
577
+ transform:rotate(45deg);
578
+
579
+ }
580
+
581
+ .Lp_styling__modal-close:after{
582
+
583
+ content: "";
584
+
585
+ position: absolute;
586
+
587
+ display: inline-block;
588
+
589
+ top: 7px;
590
+
591
+ left: 15px;
592
+
593
+ width: 2px;
594
+
595
+ height: 15px;
596
+
597
+ border: 0;
598
+
599
+ margin: 0;
600
+
601
+ padding: 0;
602
+
603
+ background-color: #000;
604
+
605
+ -moz-transform: rotate(-45deg);
606
+
607
+ -webkit-transform: rotate(-45deg);
608
+
609
+ transform: rotate(-45deg);
610
+
611
+ }
612
+
73
613
  ```
614
+
615
+
616
+
617
+ ```js
618
+
619
+
620
+
621
+ /* アイテムのモーダル出現処理 */
622
+
623
+ $(function(){
624
+
625
+ $(document).on('click','#container .item',function(){
626
+
627
+ current_scrollY = $( window ).scrollTop();
628
+
629
+ $( 'body' ).css( {
630
+
631
+ position: 'fixed',
632
+
633
+ width: '100%',
634
+
635
+ top: -1 * current_scrollY
636
+
637
+ } );
638
+
639
+
640
+
641
+ $('#container .item').removeClass('active');
642
+
643
+ $(this).addClass('active');
644
+
645
+ var $imgData = $(this).find('img').attr('src');
646
+
647
+ //var $changeImg = $imgData.replace('img','modal');
648
+
649
+ var $listData = $(this).find('.Lp_container__modal-main').html();
650
+
651
+ var $imgTitl = $(this).find('img').attr('alt');
652
+
653
+ $('#modal_img').attr('src',$imgData);
654
+
655
+ $('.Lp_styling__modal-main').html($listData);
656
+
657
+ $('.Lp_styling__modal-ttl').html($imgTitl);
658
+
659
+ $('.Lp_styling__modal').css({height:'100%'});
660
+
661
+ $('.Lp_styling__modal-inner').css({height:'100%'});
662
+
663
+ //0.5秒後にモーダルを表示
664
+
665
+ setTimeout(function(){
666
+
667
+ $('.Lp_styling__modal').css('display','block').not(":animated").animate({ top: 0, opacity: 1}, 400,function(){
668
+
669
+ $('.Lp_styling__modal-close').css('position','fixed');
670
+
671
+
672
+
673
+ });
674
+
675
+ },300);
676
+
677
+ });
678
+
679
+ $('.Lp_styling__modal-close').click(function(){
680
+
681
+ $( 'body' ).attr( { style: '' } );
682
+
683
+ $( 'html, body' ).prop( { scrollTop: current_scrollY } );
684
+
685
+ $('#container .item').removeClass('active');
686
+
687
+ $('.Lp_styling__modal').not(":animated").animate({ top: 50, opacity: 0 }, 500,function(){
688
+
689
+ $('.Lp_styling__modal-inner').scrollTop(0);
690
+
691
+ $(this).css('display','none');
692
+
693
+ });
694
+
695
+ $('.Lp_styling__modal-close').css('position','absolute');
696
+
697
+ });
698
+
699
+ });
700
+
701
+
702
+
703
+ ```