質問編集履歴

8

ソース修正

2018/07/11 08:29

投稿

yzmw131321
yzmw131321

スコア25

test CHANGED
File without changes
test CHANGED
@@ -590,146 +590,8 @@
590
590
 
591
591
  }
592
592
 
593
-
594
-
595
- .button_area {
596
-
597
- width: calc(100vw - (1rem * 2));
598
-
599
- margin-left: auto;
600
-
601
- margin-right: auto;
602
-
603
-
604
-
605
- button {
606
-
607
- margin-top: 0.5rem;
608
-
609
-
610
-
611
- &.type2 {
612
-
613
- margin-top: 1rem;
614
-
615
- }
616
-
617
- }
618
-
619
- }
620
-
621
-
622
-
623
- .modal_area {
624
-
625
-
626
-
627
- .modal {
628
-
629
- display: block;
630
-
631
- position: fixed;
632
-
633
- top: 0;
634
-
635
- bottom: 0;
636
-
637
- right: 0;
638
-
639
- left: 0;
640
-
641
- z-index: 3;
642
-
643
- width: 90%;
644
-
645
- height: 15rem;
646
-
647
- margin: auto;
648
-
649
- border-radius: 5px;
650
-
651
- background-color: #fff;
652
-
653
- text-align: center;
654
-
655
- visibility: hidden;
656
-
657
- opacity: 1;
658
-
659
- -webkit-transition:all 0.5s ease;
660
-
661
- transition:all 0.5s ease;
662
-
663
-
664
-
665
- .content{
666
-
667
- padding: 2rem 1.5rem;
668
-
669
- letter-spacing: 1px;
670
-
671
- line-height: 1.5rem;
672
-
673
- text-align: left;
674
-
675
- font-weight: 200;
676
-
677
- font-size: 1rem;
678
-
679
- }
680
-
681
-
682
-
683
- button{
684
-
685
- width: 90%;
686
-
687
- margin-top: 0.5rem;
688
-
689
- }
690
-
691
- }
692
-
693
-
694
-
695
- .bg {
696
-
697
- display: block;
698
-
699
- position: fixed;
700
-
701
- top: 0;
702
-
703
- left: 0;
704
-
705
- z-index: 2;
706
-
707
- width: 100vw;
708
-
709
- height: 100vh;
710
-
711
- background-color: #000;
712
-
713
- visibility: hidden;
714
-
715
- opacity: 0.6;
716
-
717
- -webkit-transition:all 0.5s ease;
718
-
719
- transition:all 0.5s ease;
720
-
721
- }
722
-
723
-
724
-
725
- .show {
726
-
727
- visibility: visible;
728
-
729
- }
730
-
731
- }
732
-
733
593
  }
734
594
 
595
+
596
+
735
597
  ```

7

ソース追加

2018/07/11 08:29

投稿

yzmw131321
yzmw131321

スコア25

test CHANGED
File without changes
test CHANGED
@@ -37,3 +37,699 @@
37
37
  画面をスクロールして (つまり、ユーザーは画面を指で上に弾いて)下を見るという事ではなく、
38
38
 
39
39
  水色の要素を下に弾いて移動させる、というイメージです。**(スクロール、以外に適当な表現があれば教えてください。これが分からないので、自力で調べるのに限界があります)**
40
+
41
+
42
+
43
+ ---
44
+
45
+ ソースを表示します。
46
+
47
+ 現時点では、手前の .coupon_areaをtouchmoveすると position:absoluteを外せるように設定したつもりです。
48
+
49
+  しかし、absoluteが消えるどころか3つのli要素自体が全て消えてしまいます。これの原因も分からないです。
50
+
51
+
52
+
53
+
54
+
55
+ ```vue
56
+
57
+ <!-- thanks表示、announce非表示 OK -->
58
+
59
+ <template>
60
+
61
+ <div class="content_wapper">
62
+
63
+
64
+
65
+ <div class="content_inner">
66
+
67
+
68
+
69
+ <div class="member_barcode_area coupon_area">
70
+
71
+ <p>テキスト</p>
72
+
73
+ <div class="barcode"></div>
74
+
75
+ </div>
76
+
77
+
78
+
79
+ <div class="thanks_text_area" v-if="coupondAllSlided" v-bind:class="{show: coupondAllSlided}">
80
+
81
+ <p>テキスト</p>
82
+
83
+ <div class="button_area">
84
+
85
+ <button class="type1">テキスト</button>
86
+
87
+ </div>
88
+
89
+ <p class="coupon_list_header">テキスト</p>
90
+
91
+ </div>
92
+
93
+
94
+
95
+ <ul class="coupon_list">
96
+
97
+ <li class="coupon_area hasImg back" v-if="couponIsSliding" v-bind:class="{notSlided: couponIsSliding}">
98
+
99
+ </li>
100
+
101
+
102
+
103
+ <li class="coupon_area hasImg between" v-if="couponIsSliding" v-bind:class="{notSlided: couponIsSliding}">
104
+
105
+ </li>
106
+
107
+
108
+
109
+ <li class="coupon_area front" v-on:touchmove="slide" v-if="couponIsSliding" v-bind:class="{notSlided: couponIsSliding}">
110
+
111
+ </li>
112
+
113
+
114
+
115
+ </ul>
116
+
117
+ </div>
118
+
119
+ </div>
120
+
121
+ </template>
122
+
123
+
124
+
125
+ <script type="text/javascript" src="../assets/js/jsfile.js"></script>
126
+
127
+
128
+
129
+ <style scoped src="../assets/css/cssfile.css"></style>
130
+
131
+
132
+
133
+ ```
134
+
135
+ ```scss
136
+
137
+ @import "variables";
138
+
139
+
140
+
141
+ .content_wapper {
142
+
143
+
144
+
145
+ .content_inner {
146
+
147
+ margin: 0 0.2rem 0 0.2rem;
148
+
149
+ width: calc(100vw - (0.2rem * 2));
150
+
151
+
152
+
153
+ .member_barcode_area{
154
+
155
+
156
+
157
+ p{
158
+
159
+ text-align: center;
160
+
161
+ margin: 0.5rem 0;
162
+
163
+ font-size: 1.1rem;
164
+
165
+
166
+
167
+ &::before,&::after{
168
+
169
+ content: '';
170
+
171
+ background-color: #000;
172
+
173
+ vertical-align: middle;
174
+
175
+ display: inline-block;
176
+
177
+ background-repeat: no-repeat;
178
+
179
+ width: 15px;
180
+
181
+ height: 15px;
182
+
183
+ background-size: contain;
184
+
185
+ margin-bottom: 3px;
186
+
187
+ margin-right: 1px;
188
+
189
+ margin-left: 1px;
190
+
191
+ }
192
+
193
+ }
194
+
195
+
196
+
197
+ .barcode{
198
+
199
+ width: 17rem;
200
+
201
+ height: 5rem;
202
+
203
+ background-color: #000;
204
+
205
+ margin-left: auto;
206
+
207
+ margin-right: auto;
208
+
209
+ }
210
+
211
+ }
212
+
213
+
214
+
215
+ .thanks_text_area {
216
+
217
+ margin: 2rem 0;
218
+
219
+ text-align: center;
220
+
221
+
222
+
223
+ .coupon_list_header {
224
+
225
+ margin-top: 2rem;
226
+
227
+ }
228
+
229
+
230
+
231
+ .show {
232
+
233
+ visibility: show;
234
+
235
+ }
236
+
237
+ }
238
+
239
+
240
+
241
+ .coupon_list {
242
+
243
+ position: relative;
244
+
245
+
246
+
247
+ .coupon_area {
248
+
249
+ height: 14rem;
250
+
251
+ left: 50%;
252
+
253
+ transform: translateX(-50%);
254
+
255
+
256
+
257
+ &.notSlided {
258
+
259
+ position: absolute;
260
+
261
+ }
262
+
263
+
264
+
265
+ &.back {
266
+
267
+ width: 80%;
268
+
269
+ }
270
+
271
+
272
+
273
+ &.between {
274
+
275
+ width: 90%;
276
+
277
+ z-index: 1;
278
+
279
+ top: 2rem;
280
+
281
+ }
282
+
283
+
284
+
285
+ &.front {
286
+
287
+ width: 95%;
288
+
289
+ z-index: 2;
290
+
291
+ top: 4rem;
292
+
293
+ }
294
+
295
+ }
296
+
297
+ }
298
+
299
+
300
+
301
+ .coupon_area {
302
+
303
+ position: relative;
304
+
305
+ border: #0F70AA 2px solid;
306
+
307
+ background-color: #E0F3FF;
308
+
309
+ height: 8rem;
310
+
311
+ padding: 0.5rem 0.5rem 0.1rem 0.5rem;
312
+
313
+ margin: 0.5rem 0;
314
+
315
+ color: #484848;
316
+
317
+
318
+
319
+ .coupon_title {
320
+
321
+
322
+
323
+ .new {
324
+
325
+ display: inline-block;
326
+
327
+ height: 1.5rem;
328
+
329
+ line-height: 1.5rem;
330
+
331
+ width: 3.5rem;
332
+
333
+ text-align: center;
334
+
335
+ color: #ffffff;
336
+
337
+ background-color: #FF0000;
338
+
339
+ margin-right: 0.5rem;
340
+
341
+ border-radius: 15px;
342
+
343
+ -moz-border-radius: 15px;
344
+
345
+ -webkit-border-radius: 15px;
346
+
347
+ }
348
+
349
+ }
350
+
351
+
352
+
353
+ .discount_text {
354
+
355
+ font-size: 2.5rem;
356
+
357
+ font-weight: bold;
358
+
359
+ text-align: center;
360
+
361
+ color: $BASE_COLOR;
362
+
363
+ }
364
+
365
+
366
+
367
+ .deadline_area {
368
+
369
+ font-weight: 400;
370
+
371
+ width: 10rem;
372
+
373
+ text-align: center;
374
+
375
+ margin-top: 1rem;
376
+
377
+ margin-left: auto;
378
+
379
+ margin-right: auto;
380
+
381
+
382
+
383
+ p {
384
+
385
+ font-size: 0.9rem;
386
+
387
+
388
+
389
+ &:first-child{
390
+
391
+ padding-bottom: 0.2rem;
392
+
393
+ }
394
+
395
+ }
396
+
397
+ }
398
+
399
+
400
+
401
+ .announce_area {
402
+
403
+ background-color: $BASE_COLOR;
404
+
405
+ text-align: center;
406
+
407
+ vertical-align: middle;
408
+
409
+ margin: 1rem auto 0 auto;
410
+
411
+ color: $LABEL_COLOR;
412
+
413
+ width: 50%;
414
+
415
+ height: 3rem;
416
+
417
+ border-radius: 0.3rem;
418
+
419
+ position: fixed;
420
+
421
+ position: relative;
422
+
423
+
424
+
425
+ &::before {
426
+
427
+ content: '';
428
+
429
+ position: absolute;
430
+
431
+ display: block;
432
+
433
+ width: 0;
434
+
435
+ height: 0;
436
+
437
+ right: -9px;
438
+
439
+ top: 15px;
440
+
441
+ border-left: 10px solid $BASE_COLOR;
442
+
443
+ border-top: 10px solid transparent;
444
+
445
+ border-bottom: 10px solid transparent;
446
+
447
+ }
448
+
449
+
450
+
451
+ p {
452
+
453
+ line-height: 1rem;
454
+
455
+ padding-top: 0.5rem;
456
+
457
+ }
458
+
459
+ }
460
+
461
+
462
+
463
+ .arrow {
464
+
465
+ float: right;
466
+
467
+ background-image: url(../img/down-arrow.png);
468
+
469
+ position: absolute;
470
+
471
+ right: -3rem;
472
+
473
+ top: 0;
474
+
475
+ background-repeat: no-repeat;
476
+
477
+ background-size: 30px 53px;
478
+
479
+ width: 2rem;
480
+
481
+ height: 5rem;
482
+
483
+ }
484
+
485
+
486
+
487
+ .per_coupons {
488
+
489
+ font-size: 1.2rem;
490
+
491
+ font-weight: bold;
492
+
493
+ text-align: center;
494
+
495
+ margin-top: 1rem;
496
+
497
+ }
498
+
499
+
500
+
501
+ .button_area {
502
+
503
+ width: 4.5rem;
504
+
505
+ position: absolute;
506
+
507
+ right: 3px;
508
+
509
+ bottom: 3px;
510
+
511
+ }
512
+
513
+
514
+
515
+ &.hasImg {
516
+
517
+
518
+
519
+ .img_area {
520
+
521
+ width: 5.5rem;
522
+
523
+ height: 5.5rem;
524
+
525
+ background-color: #000;
526
+
527
+ float: left;
528
+
529
+ display: inline-block;
530
+
531
+ }
532
+
533
+
534
+
535
+ .coupon_text_area {
536
+
537
+ margin-left: 0.5rem;
538
+
539
+ display: inline-block;
540
+
541
+ width: calc(100% - (5.5rem + 1rem));
542
+
543
+
544
+
545
+ .coupon_title {
546
+
547
+ height: 1.2rem;
548
+
549
+ }
550
+
551
+
552
+
553
+ .coupon_detail {
554
+
555
+ margin: 0.5rem 0 0 0;
556
+
557
+ line-height: 1.2rem;
558
+
559
+ font-weight: 200;
560
+
561
+ height: 3rem;
562
+
563
+ font-size: 0.8rem;
564
+
565
+ }
566
+
567
+ .deadline_area {
568
+
569
+ text-align: left;
570
+
571
+ margin: 0;
572
+
573
+
574
+
575
+ p.large {
576
+
577
+ font-size: 2rem;
578
+
579
+ font-weight: 500;
580
+
581
+ }
582
+
583
+ }
584
+
585
+ }
586
+
587
+ }
588
+
589
+ }
590
+
591
+ }
592
+
593
+
594
+
595
+ .button_area {
596
+
597
+ width: calc(100vw - (1rem * 2));
598
+
599
+ margin-left: auto;
600
+
601
+ margin-right: auto;
602
+
603
+
604
+
605
+ button {
606
+
607
+ margin-top: 0.5rem;
608
+
609
+
610
+
611
+ &.type2 {
612
+
613
+ margin-top: 1rem;
614
+
615
+ }
616
+
617
+ }
618
+
619
+ }
620
+
621
+
622
+
623
+ .modal_area {
624
+
625
+
626
+
627
+ .modal {
628
+
629
+ display: block;
630
+
631
+ position: fixed;
632
+
633
+ top: 0;
634
+
635
+ bottom: 0;
636
+
637
+ right: 0;
638
+
639
+ left: 0;
640
+
641
+ z-index: 3;
642
+
643
+ width: 90%;
644
+
645
+ height: 15rem;
646
+
647
+ margin: auto;
648
+
649
+ border-radius: 5px;
650
+
651
+ background-color: #fff;
652
+
653
+ text-align: center;
654
+
655
+ visibility: hidden;
656
+
657
+ opacity: 1;
658
+
659
+ -webkit-transition:all 0.5s ease;
660
+
661
+ transition:all 0.5s ease;
662
+
663
+
664
+
665
+ .content{
666
+
667
+ padding: 2rem 1.5rem;
668
+
669
+ letter-spacing: 1px;
670
+
671
+ line-height: 1.5rem;
672
+
673
+ text-align: left;
674
+
675
+ font-weight: 200;
676
+
677
+ font-size: 1rem;
678
+
679
+ }
680
+
681
+
682
+
683
+ button{
684
+
685
+ width: 90%;
686
+
687
+ margin-top: 0.5rem;
688
+
689
+ }
690
+
691
+ }
692
+
693
+
694
+
695
+ .bg {
696
+
697
+ display: block;
698
+
699
+ position: fixed;
700
+
701
+ top: 0;
702
+
703
+ left: 0;
704
+
705
+ z-index: 2;
706
+
707
+ width: 100vw;
708
+
709
+ height: 100vh;
710
+
711
+ background-color: #000;
712
+
713
+ visibility: hidden;
714
+
715
+ opacity: 0.6;
716
+
717
+ -webkit-transition:all 0.5s ease;
718
+
719
+ transition:all 0.5s ease;
720
+
721
+ }
722
+
723
+
724
+
725
+ .show {
726
+
727
+ visibility: visible;
728
+
729
+ }
730
+
731
+ }
732
+
733
+ }
734
+
735
+ ```

6

テキスト修正

2018/07/11 08:27

投稿

yzmw131321
yzmw131321

スコア25

test CHANGED
File without changes
test CHANGED
@@ -36,4 +36,4 @@
36
36
 
37
37
  画面をスクロールして (つまり、ユーザーは画面を指で上に弾いて)下を見るという事ではなく、
38
38
 
39
- 水色の要素を下に弾いて移動させる、というイメージです。
39
+ 水色の要素を下に弾いて移動させる、というイメージです。**(スクロール、以外に適当な表現があれば教えてください。これが分からないので、自力で調べるのに限界があります)**

5

テキスト修正

2018/07/09 06:43

投稿

yzmw131321
yzmw131321

スコア25

test CHANGED
File without changes
test CHANGED
@@ -34,6 +34,6 @@
34
34
 
35
35
  といった流れを想定しています。ここでいうスクロールとは、
36
36
 
37
- 画面をスクロールして下に移動させという事ではなく、
37
+ 画面をスクロールして (つまり、ユーザーは画面を指で上に弾いて)を見るという事ではなく、
38
38
 
39
- 要素を下に弾いて移動させる、というイメージです。
39
+ 水色の要素を下に弾いて移動させる、というイメージです。

4

数字

2018/07/09 06:40

投稿

yzmw131321
yzmw131321

スコア25

test CHANGED
File without changes
test CHANGED
@@ -24,11 +24,11 @@
24
24
 
25
25
  当初の考えとしては、
26
26
 
27
- 1. 十分スクロールできるよう、全体の高さを確保する
27
+ (1) 十分スクロールできるよう、全体の高さを確保する
28
28
 
29
- 2. 最も手前の要素を可動、それ以外を固定に設定
29
+ (2) 最も手前の要素を可動、それ以外を固定に設定
30
30
 
31
- 3. スクロールした量を取得し、1枚の高さ+α 移動した際に、次の要素に可動かつ幅を100%に設定したclassを与える
31
+ (3) スクロールした量を取得し、1枚の高さ+α 移動した際に、次の要素に可動かつ幅を100%に設定したclassを与える
32
32
 
33
33
 
34
34
 

3

インデント

2018/07/09 06:28

投稿

yzmw131321
yzmw131321

スコア25

test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  当初の考えとしては、
26
26
 
27
- 1. 十分スクロールできるよう、全体の高さを確保する
27
+ 1. 十分スクロールできるよう、全体の高さを確保する
28
28
 
29
29
  2. 最も手前の要素を可動、それ以外を固定に設定
30
30
 

2

画像変更

2018/07/09 06:27

投稿

yzmw131321
yzmw131321

スコア25

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- ![![![イメージ説明](df3c558ae74eb24c15aea1a55176fcdf.png)](ce9aed5223e6b4fe0a2ca14fe4dcd833.png)](8e327f9c711e0d5dae007225924e6035.png)
1
+ ![イメージ説明](ceee366387f567c93a2b839c3c629ac2.png)
2
2
 
3
3
 
4
4
 

1

タグ追加

2018/07/09 06:23

投稿

yzmw131321
yzmw131321

スコア25

test CHANGED
File without changes
test CHANGED
File without changes