Skip to content

Commit 462e59e

Browse files
committed
Make modals look sane on phones
1 parent ac7cefb commit 462e59e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

resources/assets/styles/components/modal.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,14 @@
77
@apply .relative .p-8 .bg-white .w-full .max-w-md .m-auto .flex-col .flex;
88
transition: all 250ms ease;
99
margin-top: 15%;
10+
11+
/**
12+
* On tiny phone screens make sure there is a margin on the sides and also
13+
* center the modal rather than putting it towards the top of the screen.
14+
*/
15+
@screen smx {
16+
margin-top: auto;
17+
width: 90%;
18+
}
1019
}
1120
}

0 commit comments

Comments
 (0)