Something went wrong. Try again.
UIKit a SolidJS component library inspired by Google's Material 3 Expressive
Something went wrong. Try again.
1.6 kB 81 lines
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182.component { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem; animation: fadeBackground 0.25s ease-out forwards;
& > .card { width: 100%; max-width: var(--dialog-max-width, 64rem); display: flex; flex-direction: column; gap: 0.5rem; position: relative; max-height: calc(100% - 1rem); overflow-y: auto; animation: fadeCard 0.125s ease-out forwards; }
&[data-mobile="true"] { align-items: flex-end; padding: 0 0.5rem;
& > .card { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important;
&::before { content: ""; position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%); width: 4rem; height: 0.25rem; background-color: rgb(var(--uk-sys-color-on-background)); border-radius: 0.25rem; } } }
&[data-bottom-attach="true"] > .card { position: absolute; bottom: 0; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
&[data-no-darken="true"] { pointer-events: none; background-color: transparent !important;
> .card { pointer-events: auto; } }}
@keyframes fadeBackground { from { background-color: rgba(0, 0, 0, 0); } to { background-color: rgba(0, 0, 0, 0.5); }}
@keyframes fadeCard { from { opacity: 0; } to { opacity: 1; }}