Add basic modal support
This commit is contained in:
parent
bb3486f559
commit
61dc86421d
4 changed files with 85 additions and 7 deletions
|
@ -7,13 +7,13 @@
|
|||
@apply .relative .w-full .max-w-md .m-auto .flex-col .flex;
|
||||
|
||||
&.top {
|
||||
margin-top: 15%;
|
||||
margin-top: 10%;
|
||||
}
|
||||
|
||||
& > .modal-close-icon {
|
||||
@apply .absolute .pin-r .p-2 .text-white .cursor-pointer .opacity-50;
|
||||
transition: opacity 150ms linear, transform 150ms ease-in;
|
||||
top: -2.5rem;
|
||||
top: -2rem;
|
||||
|
||||
&:hover {
|
||||
@apply .opacity-100;
|
||||
|
@ -22,7 +22,7 @@
|
|||
}
|
||||
|
||||
& > .modal-content {
|
||||
@apply .bg-white .rounded .shadow-md;
|
||||
@apply .bg-neutral-900 .rounded .shadow-md;
|
||||
transition: all 250ms ease;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue