質問編集履歴
2
文字追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
### 該当のソースコード
|
28
28
|
|
29
|
-
```
|
29
|
+
```HTML
|
30
30
|
|
31
31
|
<!-- モーダル表示ボタン -->
|
32
32
|
|
1
HTML/scssを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,10 +24,362 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
|
28
|
-
|
29
27
|
### 該当のソースコード
|
30
28
|
|
29
|
+
```ここに言語を入力
|
30
|
+
|
31
|
+
<!-- モーダル表示ボタン -->
|
32
|
+
|
33
|
+
<div class="content">
|
34
|
+
|
35
|
+
<a class="js-modal-open" href="">?modal=show</a>
|
36
|
+
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<!-- モーダル中身 -->
|
40
|
+
|
41
|
+
<div class="modal js-modal">
|
42
|
+
|
43
|
+
<div class="modal__bg js-modal-close"></div>
|
44
|
+
|
45
|
+
<div class="modal__content">
|
46
|
+
|
47
|
+
<div class="modal__logo">
|
48
|
+
|
49
|
+
<img src="img/modal_logo.svg" alt="">
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<div class="modal__contens3">
|
54
|
+
|
55
|
+
<div class="modal__contens-inner">
|
56
|
+
|
57
|
+
<div class="modal__contents-top">
|
58
|
+
|
59
|
+
<p> ポイント1</p>
|
60
|
+
|
61
|
+
</div>
|
62
|
+
|
63
|
+
<div class="modal__contents">
|
64
|
+
|
65
|
+
<div class="modal__contents-middle-box">
|
66
|
+
|
67
|
+
<div class="modal__contents-middle">
|
68
|
+
|
69
|
+
<p>タイトル</p>
|
70
|
+
|
71
|
+
<p class="modal__contents-middle-sp"> タイトル</p>
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<div class="modal__contens-bottom">
|
76
|
+
|
77
|
+
<p>ダミーテキストダミー<span>テ<br>キストダミーテキスト</span></p>
|
78
|
+
|
79
|
+
</div>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div class="modal__contens-inner2">
|
88
|
+
|
89
|
+
<div class="modal__contents-top">
|
90
|
+
|
91
|
+
<p> ポイント2</p>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
<div class="modal__contents">
|
96
|
+
|
97
|
+
<div class="modal__contents-middle-box">
|
98
|
+
|
99
|
+
<div class="modal__contents-middle">
|
100
|
+
|
101
|
+
<p>タイトル</p>
|
102
|
+
|
103
|
+
<p class="modal__contents-middle-sp"> タイトル</p>
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<div class="modal__contens-bottom">
|
108
|
+
|
109
|
+
<p>ダミーテキストダミー<span>テ<br>キストダミーテキスト</span></p>
|
110
|
+
|
111
|
+
</div>
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
<div class="modal__contens-inner">
|
120
|
+
|
121
|
+
<div class="modal__contents-top">
|
122
|
+
|
123
|
+
<p> ポイント3</p>
|
124
|
+
|
125
|
+
</div>
|
126
|
+
|
127
|
+
<div class="modal__contents">
|
128
|
+
|
129
|
+
<div class="modal__contents-middle-box">
|
130
|
+
|
131
|
+
<div class="modal__contents-middle">
|
132
|
+
|
133
|
+
<p>タイトル</p>
|
134
|
+
|
135
|
+
<p class="modal__contents-middle-sp"> タイトル</p>
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
<div class="modal__contens-bottom">
|
140
|
+
|
141
|
+
<p>ダミーテキストダミー<span>テ<br>キストダミーテキスト</span></p>
|
142
|
+
|
143
|
+
</div>
|
144
|
+
|
145
|
+
</div>
|
146
|
+
|
147
|
+
</div>
|
148
|
+
|
149
|
+
</div>
|
150
|
+
|
151
|
+
</div>
|
152
|
+
|
153
|
+
<div class="modal__form">
|
154
|
+
|
155
|
+
<a href="#contact__form">無料相談・お申込みはこちら</a>
|
156
|
+
|
157
|
+
</div>
|
158
|
+
|
159
|
+
<a class="js-modal-close" href=""><i class="fas fa-times"></i></a>
|
160
|
+
|
161
|
+
</div><!--modal__inner-->
|
162
|
+
|
163
|
+
</div><!--modal-->
|
164
|
+
|
165
|
+
```
|
166
|
+
|
167
|
+
```scss
|
168
|
+
|
169
|
+
.modal__content {
|
170
|
+
|
171
|
+
margin: 0 auto;
|
172
|
+
|
173
|
+
padding: 40px;
|
174
|
+
|
175
|
+
}
|
176
|
+
|
177
|
+
.modal {
|
178
|
+
|
179
|
+
display: none;
|
180
|
+
|
181
|
+
height: 100vh;
|
182
|
+
|
183
|
+
position: fixed;
|
184
|
+
|
185
|
+
z-index: 10;
|
186
|
+
|
187
|
+
top: 0;
|
188
|
+
|
189
|
+
width: 100%;
|
190
|
+
|
191
|
+
}
|
192
|
+
|
193
|
+
.modal__bg {
|
194
|
+
|
195
|
+
background: rgba(191, 191, 191, 0.8);
|
196
|
+
|
197
|
+
height: 100vh;
|
198
|
+
|
199
|
+
position: absolute;
|
200
|
+
|
201
|
+
width: 100%;
|
202
|
+
|
203
|
+
}
|
204
|
+
|
205
|
+
.modal__content {
|
206
|
+
|
207
|
+
background: #fff;
|
208
|
+
|
209
|
+
border: 1px solid #707070;
|
210
|
+
|
211
|
+
border-radius: 20px;
|
212
|
+
|
213
|
+
left: 50%;
|
214
|
+
|
215
|
+
padding: 29px 38px 68px 64px;
|
216
|
+
|
217
|
+
position: absolute;
|
218
|
+
|
219
|
+
top: 50%;
|
220
|
+
|
221
|
+
transform: translate(-50%,-50%);
|
222
|
+
|
223
|
+
width: 67%; // モーダル白幅調節
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
.modal__form a {
|
228
|
+
|
229
|
+
display: block;
|
230
|
+
|
231
|
+
color: white;
|
232
|
+
|
233
|
+
background-color: $main_Red;
|
234
|
+
|
235
|
+
border-radius: 14px;
|
236
|
+
|
237
|
+
font-size: 24px;
|
238
|
+
|
239
|
+
padding: 27px 0 27px 84px;
|
240
|
+
|
241
|
+
white-space: nowrap;
|
242
|
+
|
243
|
+
}
|
244
|
+
|
245
|
+
.modal__form {
|
246
|
+
|
247
|
+
margin: 0 auto;
|
248
|
+
|
249
|
+
width: 60%;
|
250
|
+
|
251
|
+
}
|
252
|
+
|
253
|
+
.modal__contens3 {
|
254
|
+
|
255
|
+
margin-top: 43px;
|
256
|
+
|
257
|
+
margin-bottom: 79px;
|
258
|
+
|
259
|
+
display: flex;
|
260
|
+
|
261
|
+
justify-content: center;
|
262
|
+
|
263
|
+
}
|
264
|
+
|
265
|
+
.modal__contents-middle-box {
|
266
|
+
|
267
|
+
background-color: #E5F1FD;
|
268
|
+
|
269
|
+
width: 212px;
|
270
|
+
|
271
|
+
height: 190px;
|
272
|
+
|
273
|
+
position: absolute;
|
274
|
+
|
275
|
+
z-index: -1;
|
276
|
+
|
277
|
+
top: 18px;
|
278
|
+
|
279
|
+
left: 15px;
|
280
|
+
|
281
|
+
}
|
282
|
+
|
283
|
+
.modal__contens-inner2 {
|
284
|
+
|
285
|
+
margin: 0 28px;
|
286
|
+
|
287
|
+
}
|
288
|
+
|
289
|
+
.modal__contents, .modal__contents2 {
|
290
|
+
|
291
|
+
border: 2px solid #1692FF;
|
292
|
+
|
293
|
+
width: 212px;
|
294
|
+
|
295
|
+
height: 190px;
|
296
|
+
|
297
|
+
position: relative;
|
298
|
+
|
299
|
+
}
|
300
|
+
|
301
|
+
.fas {
|
302
|
+
|
303
|
+
font-size: 30px;
|
304
|
+
|
305
|
+
color: #1692FF;
|
306
|
+
|
307
|
+
position: absolute;
|
308
|
+
|
309
|
+
top: 34px;
|
310
|
+
|
311
|
+
right: 37px;
|
312
|
+
|
313
|
+
}
|
314
|
+
|
315
|
+
.modal__contents-top {
|
316
|
+
|
317
|
+
background-color: white;
|
318
|
+
|
319
|
+
width: 55%;
|
320
|
+
|
321
|
+
margin-left: 45px;
|
322
|
+
|
323
|
+
margin-bottom: -10px;
|
324
|
+
|
325
|
+
position: relative;
|
326
|
+
|
327
|
+
z-index: 1;
|
328
|
+
|
329
|
+
}
|
330
|
+
|
331
|
+
.modal__contents-top p {
|
332
|
+
|
333
|
+
color: #1692FF;
|
334
|
+
|
335
|
+
font-size: 19px;
|
336
|
+
|
337
|
+
// 本来は26px
|
338
|
+
|
339
|
+
line-height: 24px;
|
340
|
+
|
341
|
+
}
|
342
|
+
|
343
|
+
.modal__contents-middle {
|
344
|
+
|
345
|
+
padding: 16px 0 0 29px;
|
346
|
+
|
347
|
+
}
|
348
|
+
|
349
|
+
.modal__contents-middle p {
|
350
|
+
|
351
|
+
color: #444444;
|
352
|
+
|
353
|
+
font-size: 18px;
|
354
|
+
|
355
|
+
// 本来は20px
|
356
|
+
|
357
|
+
line-height: 32px;
|
358
|
+
|
359
|
+
}
|
360
|
+
|
361
|
+
.modal__contens-bottom {
|
362
|
+
|
363
|
+
padding: 21px 0 0 6px;
|
364
|
+
|
365
|
+
}
|
366
|
+
|
367
|
+
.modal__contens-bottom p {
|
368
|
+
|
369
|
+
color: #1692FF;
|
370
|
+
|
371
|
+
font-size: 14px;
|
372
|
+
|
373
|
+
// 本来は16px
|
374
|
+
|
375
|
+
line-height: 32px;
|
376
|
+
|
377
|
+
}
|
378
|
+
|
379
|
+
```
|
380
|
+
|
381
|
+
|
382
|
+
|
31
383
|
```js
|
32
384
|
|
33
385
|
// モーダル
|