File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11<template >
22 <transition name =" modal" >
33 <div class =" modal-mask" v-show =" isVisible" v-on:click =" closeOnBackground && close()" >
4- <div class =" modal-container p-8 " :class =" { 'full-screen': isFullScreen }" @click.stop >
4+ <div class =" modal-container top " :class =" { 'full-screen': isFullScreen }" @click.stop >
55 <div class =" modal-close-icon" v-on:click =" close" v-if =" dismissable && showCloseIcon" >
66 <Icon name =" x" aria-label =" Close modal" role =" button" />
77 </div >
8- <div class =" modal-content" >
8+ <div class =" modal-content p-8 " >
99 <slot />
1010 </div >
1111 </div >
Original file line number Diff line number Diff line change 66 & > .modal-container {
77 @apply .relative .w-full .max-w-md .m-auto .flex-col .flex ;
88
9+ & .top {
10+ margin-top : 15% ;
11+ }
12+
913 & > .modal-close-icon {
1014 @apply .absolute .pin-r .p-2 .text-white .cursor-pointer .opacity-50 ;
1115 transition: opacity 150ms linear, transform 150ms ease- in;
2024 & > .modal-content {
2125 @apply .bg-white .rounded .shadow-md ;
2226 transition: all 250ms ease;
23- margin- to p: 15%;
2427 }
2528
2629 /**
2730 * On tiny phone screens make sure there is a margin on the sides and also
2831 * center the modal rather than putting it towards the top of the screen.
2932 */
3033 @screen smx {
31- margin-top : auto;
3234 width : 90% ;
35+ .top {
36+ margin-top : auto;
37+ }
3338 }
3439 }
3540
You can’t perform that action at this time.
0 commit comments