質問編集履歴

2

修正

2021/11/15 14:17

投稿

KKsall
KKsall

スコア25

test CHANGED
File without changes
test CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
 
4
4
 
5
+ デモ
6
+
7
+ https://codepen.io/boo-jp/pen/ZEJmOeG
8
+
9
+
10
+
5
11
  ```ここに言語を入力
6
12
 
7
13
  const modalbtns = document.querySelectorAll("[data-target]");

1

修正

2021/11/15 14:17

投稿

KKsall
KKsall

スコア25

test CHANGED
File without changes
test CHANGED
@@ -163,3 +163,201 @@
163
163
  </div>
164
164
 
165
165
  ```
166
+
167
+
168
+
169
+ ```ここに言語を入力
170
+
171
+ .has-background-modal {
172
+
173
+ position: fixed;
174
+
175
+ top: 0;
176
+
177
+ left: 0;
178
+
179
+ z-index: 3;
180
+
181
+ display: none;
182
+
183
+ width: 100%;
184
+
185
+ height: 100%;
186
+
187
+ overflow: auto;
188
+
189
+ background-color: rgba(0, 0, 0, .5);
190
+
191
+ }
192
+
193
+
194
+
195
+ .p-modal-content {
196
+
197
+ width: 75rem;
198
+
199
+ margin: 10% auto;
200
+
201
+ background: $color-white;
202
+
203
+ border-radius: .5rem;
204
+
205
+ animation-name: modalopen;
206
+
207
+ animation-duration: var(--modal-duration);
208
+
209
+ }
210
+
211
+
212
+
213
+ .p-modal-header {
214
+
215
+ position: relative;
216
+
217
+ padding: 50px 0 30px;
218
+
219
+
220
+
221
+ h2{
222
+
223
+ width: 67.7rem;
224
+
225
+ padding: 0 3rem;
226
+
227
+ margin: auto;
228
+
229
+ @include font-size(16);
230
+
231
+ font-weight: bold;
232
+
233
+ }
234
+
235
+ }
236
+
237
+
238
+
239
+ .p-modal-body {
240
+
241
+ padding: 20px;
242
+
243
+ }
244
+
245
+
246
+
247
+ .modalclose {
248
+
249
+ position: absolute;
250
+
251
+ top: .5rem;
252
+
253
+ right: 2rem;
254
+
255
+ color: var(--color-primary);
256
+
257
+ @include font-size(30);
258
+
259
+ }
260
+
261
+
262
+
263
+ .modalclose:hover,
264
+
265
+ .modalclose:focus {
266
+
267
+ color: var(--color-primary);
268
+
269
+ cursor: pointer;
270
+
271
+ }
272
+
273
+
274
+
275
+ .active {
276
+
277
+ display: block;
278
+
279
+ }
280
+
281
+
282
+
283
+
284
+
285
+ @keyframes modalopen {
286
+
287
+
288
+
289
+ from {
290
+
291
+ opacity: 0;
292
+
293
+ }
294
+
295
+
296
+
297
+ to {
298
+
299
+ opacity: 1;
300
+
301
+ }
302
+
303
+ }
304
+
305
+
306
+
307
+ //message-modal
308
+
309
+
310
+
311
+ .has-background-message-modal {
312
+
313
+ position: fixed;
314
+
315
+ top: 0;
316
+
317
+ left: 0;
318
+
319
+ z-index: 3;
320
+
321
+ width: 100%;
322
+
323
+ overflow: auto;
324
+
325
+ }
326
+
327
+
328
+
329
+ .p-message-content{
330
+
331
+ /* width: 1286px; */
332
+
333
+ width: 1460px;
334
+
335
+ height: 64px;
336
+
337
+ margin: 5% 2.5% auto;
338
+
339
+ @include border-radius(.5);
340
+
341
+
342
+
343
+ &__body{
344
+
345
+ display: flex;
346
+
347
+ align-items: center;
348
+
349
+ justify-content: center;
350
+
351
+ height: 100%;
352
+
353
+ font-weight: bold;
354
+
355
+ color: $color-white;
356
+
357
+ @include font-size(18);
358
+
359
+ }
360
+
361
+ }
362
+
363
+ ```