2018-06-16 23:25:26 +00:00
|
|
|
.modal-mask {
|
|
|
|
@apply .fixed .pin .z-50 .overflow-auto .flex;
|
2019-07-17 04:43:11 +00:00
|
|
|
background: rgba(0, 0, 0, 0.70);
|
2018-06-16 23:25:26 +00:00
|
|
|
transition: opacity 250ms ease;
|
|
|
|
|
|
|
|
& > .modal-container {
|
2020-03-30 05:04:38 +00:00
|
|
|
@apply .relative .w-full .max-w-1/2 .m-auto .flex-col .flex;
|
2018-06-16 23:50:18 +00:00
|
|
|
|
2020-04-03 23:39:55 +00:00
|
|
|
&.top {
|
2019-07-10 05:41:09 +00:00
|
|
|
margin-top: 10%;
|
2020-04-03 23:39:55 +00:00
|
|
|
}
|
2019-05-14 23:51:38 +00:00
|
|
|
|
2019-05-11 05:50:59 +00:00
|
|
|
& > .modal-close-icon {
|
2020-07-03 21:19:05 +00:00
|
|
|
@apply .absolute .right-0 .p-2 .text-white .cursor-pointer .opacity-50;
|
2019-05-11 05:50:59 +00:00
|
|
|
transition: opacity 150ms linear, transform 150ms ease-in;
|
2019-07-10 05:41:09 +00:00
|
|
|
top: -2rem;
|
2019-05-11 05:50:59 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@apply .opacity-100;
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-14 23:48:38 +00:00
|
|
|
& > .modal-content {
|
2020-03-26 04:58:37 +00:00
|
|
|
@apply .bg-neutral-800 .rounded .shadow-md .overflow-y-scroll;
|
|
|
|
max-height: calc(100vh - 16rem);
|
2019-05-14 23:48:38 +00:00
|
|
|
transition: all 250ms ease;
|
|
|
|
}
|
|
|
|
|
2018-06-16 23:50:18 +00:00
|
|
|
/**
|
|
|
|
* 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 {
|
|
|
|
width: 90%;
|
2019-05-14 23:51:38 +00:00
|
|
|
.top {
|
|
|
|
margin-top: auto;
|
|
|
|
}
|
2018-06-16 23:50:18 +00:00
|
|
|
}
|
2018-06-16 23:25:26 +00:00
|
|
|
}
|
2019-03-11 01:42:53 +00:00
|
|
|
|
2019-05-11 05:50:59 +00:00
|
|
|
& > .modal-container.full-screen {
|
2020-03-26 04:58:37 +00:00
|
|
|
@apply .w-3/4;
|
2019-05-11 05:50:59 +00:00
|
|
|
height: calc(100vh - 16rem);
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
|
2019-03-11 01:42:53 +00:00
|
|
|
& > .modal-container.w-auto {
|
|
|
|
@apply .w-auto;
|
|
|
|
}
|
2018-06-16 23:25:26 +00:00
|
|
|
}
|