Make modals look sane on phones
This commit is contained in:
parent
ac7cefb83f
commit
462e59e330
1 changed files with 9 additions and 0 deletions
|
@ -7,5 +7,14 @@
|
|||
@apply .relative .p-8 .bg-white .w-full .max-w-md .m-auto .flex-col .flex;
|
||||
transition: all 250ms ease;
|
||||
margin-top: 15%;
|
||||
|
||||
/**
|
||||
* On tiny phone screens make sure there is a margin on the sides and also
|
||||
* center the modal rather than putting it towards the top of the screen.
|
||||
*/
|
||||
@screen smx {
|
||||
margin-top: auto;
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue