@@ -16,19 +16,17 @@ fullscreen: true
16
16
17
17
## Style the modal component step by step
18
18
19
- ** 1. Hello, ` vue-final-modal ` ! **
19
+ ** 1. Hello, ` vue-final-modal ` **
20
20
21
21
<v-basic ></v-basic >
22
22
23
- <!-- <codepen path="basic/VBasic"></codepen> -->
24
-
25
23
<show-code >
26
24
27
25
``` vue
28
26
<template>
29
27
<div>
30
28
<vue-final-modal v-model="showModal">
31
- <span class="modal__title">Hello, vue-final-modal ! </span>
29
+ <span class="modal__title">Hello, vue-final-modal</span>
32
30
</vue-final-modal>
33
31
<button class="vfm-btn" @click="showModal = true">Open modal</button>
34
32
</div>
@@ -56,15 +54,13 @@ export default {
56
54
57
55
<v-background ></v-background >
58
56
59
- <!-- <codepen path="basic/VBackground"></codepen> -->
60
-
61
57
<show-code >
62
58
63
59
``` vue
64
60
<template>
65
61
<div>
66
62
<vue-final-modal v-model="showModal" content-class="modal-content">
67
- <span class="modal__title">Hello, vue-final-modal ! </span>
63
+ <span class="modal__title">Hello, vue-final-modal</span>
68
64
</vue-final-modal>
69
65
<button class="vfm-btn" @click="showModal = true">Open modal</button>
70
66
</div>
@@ -106,8 +102,6 @@ export default {
106
102
107
103
<v-centered ></v-centered >
108
104
109
- <!-- <codepen path="basic/VCentered"></codepen> -->
110
-
111
105
<show-code >
112
106
113
107
``` vue
@@ -118,7 +112,7 @@ export default {
118
112
classes="modal-container"
119
113
content-class="modal-content"
120
114
>
121
- <span class="modal__title">Hello, vue-final-modal ! </span>
115
+ <span class="modal__title">Hello, vue-final-modal</span>
122
116
</vue-final-modal>
123
117
<button class="vfm-btn" @click="showModal = true">Open modal</button>
124
118
</div>
@@ -167,8 +161,6 @@ export default {
167
161
168
162
<v-content ></v-content >
169
163
170
- <!-- <codepen path="basic/VContent"></codepen> -->
171
-
172
164
<show-code >
173
165
174
166
``` vue
@@ -179,7 +171,7 @@ export default {
179
171
classes="modal-container"
180
172
content-class="modal-content"
181
173
>
182
- <span class="modal__title">Hello, vue-final-modal ! </span>
174
+ <span class="modal__title">Hello, vue-final-modal</span>
183
175
<div class="modal__content">
184
176
<p>
185
177
Vue Final Modal is a renderless, stackable, detachable and lightweight
@@ -234,8 +226,6 @@ export default {
234
226
235
227
<v-close-button ></v-close-button >
236
228
237
- <!-- <codepen path="basic/VCloseButton"></codepen> -->
238
-
239
229
<show-code >
240
230
241
231
``` vue
@@ -249,7 +239,7 @@ export default {
249
239
<button class="modal__close" @click="showModal = false">
250
240
<mdi-close></mdi-close>
251
241
</button>
252
- <span class="modal__title">Hello, vue-final-modal ! </span>
242
+ <span class="modal__title">Hello, vue-final-modal</span>
253
243
<div class="modal__content">
254
244
<p>
255
245
Vue Final Modal is a renderless, stackable, detachable and lightweight
@@ -311,8 +301,6 @@ export default {
311
301
312
302
<v-scrollable ></v-scrollable >
313
303
314
- <!-- <codepen path="basic/VScrollable"></codepen> -->
315
-
316
304
<show-code >
317
305
318
306
``` vue
@@ -326,7 +314,7 @@ export default {
326
314
<button class="modal__close" @click="showModal = false">
327
315
<mdi-close></mdi-close>
328
316
</button>
329
- <span class="modal__title">Hello, vue-final-modal ! </span>
317
+ <span class="modal__title">Hello, vue-final-modal</span>
330
318
<div class="modal__content">
331
319
<p v-for="i in 100" :key="i">
332
320
Vue Final Modal is a renderless, stackable, detachable and lightweight
@@ -393,8 +381,6 @@ export default {
393
381
394
382
<v-action-buttons ></v-action-buttons >
395
383
396
- <!-- <codepen path="basic/VActionButtons"></codepen> -->
397
-
398
384
<show-code >
399
385
400
386
``` vue
@@ -408,7 +394,7 @@ export default {
408
394
<button class="modal__close" @click="showModal = false">
409
395
<mdi-close></mdi-close>
410
396
</button>
411
- <span class="modal__title">Hello, vue-final-modal ! </span>
397
+ <span class="modal__title">Hello, vue-final-modal</span>
412
398
<div class="modal__content">
413
399
<p v-for="i in 100" :key="i">
414
400
Vue Final Modal is a renderless, stackable, detachable and lightweight
@@ -461,6 +447,8 @@ export default {
461
447
.modal__action {
462
448
display: flex;
463
449
justify-content: center;
450
+ align-items: center;
451
+ flex-shrink: 0;
464
452
padding: 1rem 0 0;
465
453
}
466
454
.modal__close {
@@ -484,8 +472,6 @@ export default {
484
472
485
473
<v-stackable ></v-stackable >
486
474
487
- <!-- <codepen path="basic/VStackable"></codepen> -->
488
-
489
475
<show-code >
490
476
491
477
``` vue
@@ -496,10 +482,10 @@ export default {
496
482
classes="modal-container"
497
483
content-class="modal-content"
498
484
>
499
- <button class="modal__close" @click="showModal = true ">
485
+ <button class="modal__close" @click="showModal = false ">
500
486
<mdi-close></mdi-close>
501
487
</button>
502
- <span class="modal__title">Hello, vue-final-modal ! </span>
488
+ <span class="modal__title">Hello, vue-final-modal</span>
503
489
<div class="modal__content">
504
490
<p v-for="i in 100" :key="i">
505
491
Vue Final Modal is a renderless, stackable, detachable and lightweight
@@ -585,6 +571,7 @@ export default {
585
571
display: flex;
586
572
justify-content: center;
587
573
align-items: center;
574
+ flex-shrink: 0;
588
575
padding: 1rem 0 0;
589
576
}
590
577
.modal__close {
0 commit comments