質問編集履歴
8
ソース修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -294,75 +294,6 @@
|
|
294
294
|
}
|
295
295
|
}
|
296
296
|
}
|
297
|
+
}
|
297
298
|
|
298
|
-
.button_area {
|
299
|
-
width: calc(100vw - (1rem * 2));
|
300
|
-
margin-left: auto;
|
301
|
-
margin-right: auto;
|
302
|
-
|
303
|
-
button {
|
304
|
-
margin-top: 0.5rem;
|
305
|
-
|
306
|
-
&.type2 {
|
307
|
-
margin-top: 1rem;
|
308
|
-
}
|
309
|
-
}
|
310
|
-
}
|
311
|
-
|
312
|
-
.modal_area {
|
313
|
-
|
314
|
-
.modal {
|
315
|
-
display: block;
|
316
|
-
position: fixed;
|
317
|
-
top: 0;
|
318
|
-
bottom: 0;
|
319
|
-
right: 0;
|
320
|
-
left: 0;
|
321
|
-
z-index: 3;
|
322
|
-
width: 90%;
|
323
|
-
height: 15rem;
|
324
|
-
margin: auto;
|
325
|
-
border-radius: 5px;
|
326
|
-
background-color: #fff;
|
327
|
-
text-align: center;
|
328
|
-
visibility: hidden;
|
329
|
-
opacity: 1;
|
330
|
-
-webkit-transition:all 0.5s ease;
|
331
|
-
transition:all 0.5s ease;
|
332
|
-
|
333
|
-
.content{
|
334
|
-
padding: 2rem 1.5rem;
|
335
|
-
letter-spacing: 1px;
|
336
|
-
line-height: 1.5rem;
|
337
|
-
text-align: left;
|
338
|
-
font-weight: 200;
|
339
|
-
font-size: 1rem;
|
340
|
-
}
|
341
|
-
|
342
|
-
button{
|
343
|
-
width: 90%;
|
344
|
-
margin-top: 0.5rem;
|
345
|
-
}
|
346
|
-
}
|
347
|
-
|
348
|
-
.bg {
|
349
|
-
display: block;
|
350
|
-
position: fixed;
|
351
|
-
top: 0;
|
352
|
-
left: 0;
|
353
|
-
z-index: 2;
|
354
|
-
width: 100vw;
|
355
|
-
height: 100vh;
|
356
|
-
background-color: #000;
|
357
|
-
visibility: hidden;
|
358
|
-
opacity: 0.6;
|
359
|
-
-webkit-transition:all 0.5s ease;
|
360
|
-
transition:all 0.5s ease;
|
361
|
-
}
|
362
|
-
|
363
|
-
.show {
|
364
|
-
visibility: visible;
|
365
|
-
}
|
366
|
-
}
|
367
|
-
}
|
368
299
|
```
|
7
ソース追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,4 +17,352 @@
|
|
17
17
|
|
18
18
|
といった流れを想定しています。ここでいうスクロールとは、
|
19
19
|
画面をスクロールして (つまり、ユーザーは画面を指で上に弾いて)下を見るという事ではなく、
|
20
|
-
水色の要素を下に弾いて移動させる、というイメージです。**(スクロール、以外に適当な表現があれば教えてください。これが分からないので、自力で調べるのに限界があります)**
|
20
|
+
水色の要素を下に弾いて移動させる、というイメージです。**(スクロール、以外に適当な表現があれば教えてください。これが分からないので、自力で調べるのに限界があります)**
|
21
|
+
|
22
|
+
---
|
23
|
+
ソースを表示します。
|
24
|
+
現時点では、手前の .coupon_areaをtouchmoveすると position:absoluteを外せるように設定したつもりです。
|
25
|
+
しかし、absoluteが消えるどころか3つのli要素自体が全て消えてしまいます。これの原因も分からないです。
|
26
|
+
|
27
|
+
|
28
|
+
```vue
|
29
|
+
<!-- thanks表示、announce非表示 OK -->
|
30
|
+
<template>
|
31
|
+
<div class="content_wapper">
|
32
|
+
|
33
|
+
<div class="content_inner">
|
34
|
+
|
35
|
+
<div class="member_barcode_area coupon_area">
|
36
|
+
<p>テキスト</p>
|
37
|
+
<div class="barcode"></div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<div class="thanks_text_area" v-if="coupondAllSlided" v-bind:class="{show: coupondAllSlided}">
|
41
|
+
<p>テキスト</p>
|
42
|
+
<div class="button_area">
|
43
|
+
<button class="type1">テキスト</button>
|
44
|
+
</div>
|
45
|
+
<p class="coupon_list_header">テキスト</p>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul class="coupon_list">
|
49
|
+
<li class="coupon_area hasImg back" v-if="couponIsSliding" v-bind:class="{notSlided: couponIsSliding}">
|
50
|
+
</li>
|
51
|
+
|
52
|
+
<li class="coupon_area hasImg between" v-if="couponIsSliding" v-bind:class="{notSlided: couponIsSliding}">
|
53
|
+
</li>
|
54
|
+
|
55
|
+
<li class="coupon_area front" v-on:touchmove="slide" v-if="couponIsSliding" v-bind:class="{notSlided: couponIsSliding}">
|
56
|
+
</li>
|
57
|
+
|
58
|
+
</ul>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
</template>
|
62
|
+
|
63
|
+
<script type="text/javascript" src="../assets/js/jsfile.js"></script>
|
64
|
+
|
65
|
+
<style scoped src="../assets/css/cssfile.css"></style>
|
66
|
+
|
67
|
+
```
|
68
|
+
```scss
|
69
|
+
@import "variables";
|
70
|
+
|
71
|
+
.content_wapper {
|
72
|
+
|
73
|
+
.content_inner {
|
74
|
+
margin: 0 0.2rem 0 0.2rem;
|
75
|
+
width: calc(100vw - (0.2rem * 2));
|
76
|
+
|
77
|
+
.member_barcode_area{
|
78
|
+
|
79
|
+
p{
|
80
|
+
text-align: center;
|
81
|
+
margin: 0.5rem 0;
|
82
|
+
font-size: 1.1rem;
|
83
|
+
|
84
|
+
&::before,&::after{
|
85
|
+
content: '';
|
86
|
+
background-color: #000;
|
87
|
+
vertical-align: middle;
|
88
|
+
display: inline-block;
|
89
|
+
background-repeat: no-repeat;
|
90
|
+
width: 15px;
|
91
|
+
height: 15px;
|
92
|
+
background-size: contain;
|
93
|
+
margin-bottom: 3px;
|
94
|
+
margin-right: 1px;
|
95
|
+
margin-left: 1px;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
.barcode{
|
100
|
+
width: 17rem;
|
101
|
+
height: 5rem;
|
102
|
+
background-color: #000;
|
103
|
+
margin-left: auto;
|
104
|
+
margin-right: auto;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
.thanks_text_area {
|
109
|
+
margin: 2rem 0;
|
110
|
+
text-align: center;
|
111
|
+
|
112
|
+
.coupon_list_header {
|
113
|
+
margin-top: 2rem;
|
114
|
+
}
|
115
|
+
|
116
|
+
.show {
|
117
|
+
visibility: show;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
.coupon_list {
|
122
|
+
position: relative;
|
123
|
+
|
124
|
+
.coupon_area {
|
125
|
+
height: 14rem;
|
126
|
+
left: 50%;
|
127
|
+
transform: translateX(-50%);
|
128
|
+
|
129
|
+
&.notSlided {
|
130
|
+
position: absolute;
|
131
|
+
}
|
132
|
+
|
133
|
+
&.back {
|
134
|
+
width: 80%;
|
135
|
+
}
|
136
|
+
|
137
|
+
&.between {
|
138
|
+
width: 90%;
|
139
|
+
z-index: 1;
|
140
|
+
top: 2rem;
|
141
|
+
}
|
142
|
+
|
143
|
+
&.front {
|
144
|
+
width: 95%;
|
145
|
+
z-index: 2;
|
146
|
+
top: 4rem;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
.coupon_area {
|
152
|
+
position: relative;
|
153
|
+
border: #0F70AA 2px solid;
|
154
|
+
background-color: #E0F3FF;
|
155
|
+
height: 8rem;
|
156
|
+
padding: 0.5rem 0.5rem 0.1rem 0.5rem;
|
157
|
+
margin: 0.5rem 0;
|
158
|
+
color: #484848;
|
159
|
+
|
160
|
+
.coupon_title {
|
161
|
+
|
162
|
+
.new {
|
163
|
+
display: inline-block;
|
164
|
+
height: 1.5rem;
|
165
|
+
line-height: 1.5rem;
|
166
|
+
width: 3.5rem;
|
167
|
+
text-align: center;
|
168
|
+
color: #ffffff;
|
169
|
+
background-color: #FF0000;
|
170
|
+
margin-right: 0.5rem;
|
171
|
+
border-radius: 15px;
|
172
|
+
-moz-border-radius: 15px;
|
173
|
+
-webkit-border-radius: 15px;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
.discount_text {
|
178
|
+
font-size: 2.5rem;
|
179
|
+
font-weight: bold;
|
180
|
+
text-align: center;
|
181
|
+
color: $BASE_COLOR;
|
182
|
+
}
|
183
|
+
|
184
|
+
.deadline_area {
|
185
|
+
font-weight: 400;
|
186
|
+
width: 10rem;
|
187
|
+
text-align: center;
|
188
|
+
margin-top: 1rem;
|
189
|
+
margin-left: auto;
|
190
|
+
margin-right: auto;
|
191
|
+
|
192
|
+
p {
|
193
|
+
font-size: 0.9rem;
|
194
|
+
|
195
|
+
&:first-child{
|
196
|
+
padding-bottom: 0.2rem;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
.announce_area {
|
202
|
+
background-color: $BASE_COLOR;
|
203
|
+
text-align: center;
|
204
|
+
vertical-align: middle;
|
205
|
+
margin: 1rem auto 0 auto;
|
206
|
+
color: $LABEL_COLOR;
|
207
|
+
width: 50%;
|
208
|
+
height: 3rem;
|
209
|
+
border-radius: 0.3rem;
|
210
|
+
position: fixed;
|
211
|
+
position: relative;
|
212
|
+
|
213
|
+
&::before {
|
214
|
+
content: '';
|
215
|
+
position: absolute;
|
216
|
+
display: block;
|
217
|
+
width: 0;
|
218
|
+
height: 0;
|
219
|
+
right: -9px;
|
220
|
+
top: 15px;
|
221
|
+
border-left: 10px solid $BASE_COLOR;
|
222
|
+
border-top: 10px solid transparent;
|
223
|
+
border-bottom: 10px solid transparent;
|
224
|
+
}
|
225
|
+
|
226
|
+
p {
|
227
|
+
line-height: 1rem;
|
228
|
+
padding-top: 0.5rem;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
.arrow {
|
233
|
+
float: right;
|
234
|
+
background-image: url(../img/down-arrow.png);
|
235
|
+
position: absolute;
|
236
|
+
right: -3rem;
|
237
|
+
top: 0;
|
238
|
+
background-repeat: no-repeat;
|
239
|
+
background-size: 30px 53px;
|
240
|
+
width: 2rem;
|
241
|
+
height: 5rem;
|
242
|
+
}
|
243
|
+
|
244
|
+
.per_coupons {
|
245
|
+
font-size: 1.2rem;
|
246
|
+
font-weight: bold;
|
247
|
+
text-align: center;
|
248
|
+
margin-top: 1rem;
|
249
|
+
}
|
250
|
+
|
251
|
+
.button_area {
|
252
|
+
width: 4.5rem;
|
253
|
+
position: absolute;
|
254
|
+
right: 3px;
|
255
|
+
bottom: 3px;
|
256
|
+
}
|
257
|
+
|
258
|
+
&.hasImg {
|
259
|
+
|
260
|
+
.img_area {
|
261
|
+
width: 5.5rem;
|
262
|
+
height: 5.5rem;
|
263
|
+
background-color: #000;
|
264
|
+
float: left;
|
265
|
+
display: inline-block;
|
266
|
+
}
|
267
|
+
|
268
|
+
.coupon_text_area {
|
269
|
+
margin-left: 0.5rem;
|
270
|
+
display: inline-block;
|
271
|
+
width: calc(100% - (5.5rem + 1rem));
|
272
|
+
|
273
|
+
.coupon_title {
|
274
|
+
height: 1.2rem;
|
275
|
+
}
|
276
|
+
|
277
|
+
.coupon_detail {
|
278
|
+
margin: 0.5rem 0 0 0;
|
279
|
+
line-height: 1.2rem;
|
280
|
+
font-weight: 200;
|
281
|
+
height: 3rem;
|
282
|
+
font-size: 0.8rem;
|
283
|
+
}
|
284
|
+
.deadline_area {
|
285
|
+
text-align: left;
|
286
|
+
margin: 0;
|
287
|
+
|
288
|
+
p.large {
|
289
|
+
font-size: 2rem;
|
290
|
+
font-weight: 500;
|
291
|
+
}
|
292
|
+
}
|
293
|
+
}
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|
297
|
+
|
298
|
+
.button_area {
|
299
|
+
width: calc(100vw - (1rem * 2));
|
300
|
+
margin-left: auto;
|
301
|
+
margin-right: auto;
|
302
|
+
|
303
|
+
button {
|
304
|
+
margin-top: 0.5rem;
|
305
|
+
|
306
|
+
&.type2 {
|
307
|
+
margin-top: 1rem;
|
308
|
+
}
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
.modal_area {
|
313
|
+
|
314
|
+
.modal {
|
315
|
+
display: block;
|
316
|
+
position: fixed;
|
317
|
+
top: 0;
|
318
|
+
bottom: 0;
|
319
|
+
right: 0;
|
320
|
+
left: 0;
|
321
|
+
z-index: 3;
|
322
|
+
width: 90%;
|
323
|
+
height: 15rem;
|
324
|
+
margin: auto;
|
325
|
+
border-radius: 5px;
|
326
|
+
background-color: #fff;
|
327
|
+
text-align: center;
|
328
|
+
visibility: hidden;
|
329
|
+
opacity: 1;
|
330
|
+
-webkit-transition:all 0.5s ease;
|
331
|
+
transition:all 0.5s ease;
|
332
|
+
|
333
|
+
.content{
|
334
|
+
padding: 2rem 1.5rem;
|
335
|
+
letter-spacing: 1px;
|
336
|
+
line-height: 1.5rem;
|
337
|
+
text-align: left;
|
338
|
+
font-weight: 200;
|
339
|
+
font-size: 1rem;
|
340
|
+
}
|
341
|
+
|
342
|
+
button{
|
343
|
+
width: 90%;
|
344
|
+
margin-top: 0.5rem;
|
345
|
+
}
|
346
|
+
}
|
347
|
+
|
348
|
+
.bg {
|
349
|
+
display: block;
|
350
|
+
position: fixed;
|
351
|
+
top: 0;
|
352
|
+
left: 0;
|
353
|
+
z-index: 2;
|
354
|
+
width: 100vw;
|
355
|
+
height: 100vh;
|
356
|
+
background-color: #000;
|
357
|
+
visibility: hidden;
|
358
|
+
opacity: 0.6;
|
359
|
+
-webkit-transition:all 0.5s ease;
|
360
|
+
transition:all 0.5s ease;
|
361
|
+
}
|
362
|
+
|
363
|
+
.show {
|
364
|
+
visibility: visible;
|
365
|
+
}
|
366
|
+
}
|
367
|
+
}
|
368
|
+
```
|
6
テキスト修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,4 +17,4 @@
|
|
17
17
|
|
18
18
|
といった流れを想定しています。ここでいうスクロールとは、
|
19
19
|
画面をスクロールして (つまり、ユーザーは画面を指で上に弾いて)下を見るという事ではなく、
|
20
|
-
水色の要素を下に弾いて移動させる、というイメージです。
|
20
|
+
水色の要素を下に弾いて移動させる、というイメージです。**(スクロール、以外に適当な表現があれば教えてください。これが分からないので、自力で調べるのに限界があります)**
|
5
テキスト修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,5 +16,5 @@
|
|
16
16
|
(3) スクロールした量を取得し、1枚の高さ+α 移動した際に、次の要素に可動かつ幅を100%に設定したclassを与える
|
17
17
|
|
18
18
|
といった流れを想定しています。ここでいうスクロールとは、
|
19
|
-
画面をスクロールして
|
19
|
+
画面をスクロールして (つまり、ユーザーは画面を指で上に弾いて)下を見るという事ではなく、
|
20
|
-
要素を下に弾いて移動させる、というイメージです。
|
20
|
+
水色の要素を下に弾いて移動させる、というイメージです。
|
4
数字
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,9 +11,9 @@
|
|
11
11
|
❸までの機能を実装させたいです。
|
12
12
|
|
13
13
|
当初の考えとしては、
|
14
|
-
1
|
14
|
+
(1) 十分スクロールできるよう、全体の高さを確保する
|
15
|
-
2
|
15
|
+
(2) 最も手前の要素を可動、それ以外を固定に設定
|
16
|
-
3
|
16
|
+
(3) スクロールした量を取得し、1枚の高さ+α 移動した際に、次の要素に可動かつ幅を100%に設定したclassを与える
|
17
17
|
|
18
18
|
といった流れを想定しています。ここでいうスクロールとは、
|
19
19
|
画面をスクロールして下に移動させる、という事ではなく、
|
3
インデント
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
❸までの機能を実装させたいです。
|
12
12
|
|
13
13
|
当初の考えとしては、
|
14
|
-
1.
|
14
|
+
1. 十分スクロールできるよう、全体の高さを確保する
|
15
15
|
2. 最も手前の要素を可動、それ以外を固定に設定
|
16
16
|
3. スクロールした量を取得し、1枚の高さ+α 移動した際に、次の要素に可動かつ幅を100%に設定したclassを与える
|
17
17
|
|
2
画像変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-

|
2
2
|
|
3
3
|
Vue.js で、図のような機能を実装したいです。
|
4
4
|
この機能を実装する方法がわからないので質問させて頂きます。
|
1
タグ追加
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|