Make modals look sane on phones

This commit is contained in:
Dane Everitt 2018-06-16 16:50:18 -07:00
parent ac7cefb83f
commit 462e59e330
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -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%;
}
}
}