wip: bbui modal to spectrum conversion
This commit is contained in:
parent
eb143f9af3
commit
7f4250dca2
|
@ -38,25 +38,24 @@
|
||||||
<svelte:window on:keydown={handleKey} />
|
<svelte:window on:keydown={handleKey} />
|
||||||
|
|
||||||
{#if visible}
|
{#if visible}
|
||||||
<Portal target="body">
|
<Portal target="modal-container">
|
||||||
<div
|
<div class="overlay spectrum-Modal" transition:fade={{ duration: 200 }} on:click|self={hide}>
|
||||||
class="overlay"
|
<section
|
||||||
on:click|self={hide}
|
class="spectrum-Dialog spectrum-Dialog--large spectrum-Dialog--dismissable" role="dialog" tabindex="-1" aria-modal="true">
|
||||||
transition:fade={{ duration: 200 }}>
|
<div
|
||||||
<div
|
class="scroll-wrapper"
|
||||||
class="scroll-wrapper"
|
on:click|self={hide}
|
||||||
on:click|self={hide}
|
transition:fly={{ y: 30, duration: 200 }}>
|
||||||
transition:fly={{ y: 30, duration: 200 }}>
|
<div class="content-wrapper" on:click|self={hide}>
|
||||||
<div class="content-wrapper" on:click|self={hide}>
|
<div
|
||||||
<div
|
class="modal {width ? width : ''}"
|
||||||
class="modal"
|
class:padding
|
||||||
class:padding
|
class:border>
|
||||||
class:border
|
<slot />
|
||||||
style={width ? `flex: 0 0 ${width}` : ''}>
|
</div>
|
||||||
<slot />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</Portal>
|
</Portal>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -100,7 +99,6 @@
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
display: grid;
|
display: grid;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
box-shadow: 0 0 4rem 1.5rem rgba(0, 0, 0, 0.15);
|
|
||||||
position: relative;
|
position: relative;
|
||||||
flex: 0 0 400px;
|
flex: 0 0 400px;
|
||||||
margin: 2rem 0;
|
margin: 2rem 0;
|
||||||
|
@ -110,7 +108,4 @@
|
||||||
.modal.padding {
|
.modal.padding {
|
||||||
padding: var(--spacing-xl);
|
padding: var(--spacing-xl);
|
||||||
}
|
}
|
||||||
.modal.border {
|
|
||||||
border: var(--border-dark);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -76,6 +76,7 @@
|
||||||
|
|
||||||
<AppList />
|
<AppList />
|
||||||
</div>
|
</div>
|
||||||
|
<div id="modal-container" />
|
||||||
|
|
||||||
<Modal bind:this={modal} padding={false} width="600px" on:hide={closeModal}>
|
<Modal bind:this={modal} padding={false} width="600px" on:hide={closeModal}>
|
||||||
<CreateAppModal {hasKey} {template} />
|
<CreateAppModal {hasKey} {template} />
|
||||||
|
@ -121,4 +122,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#modal-container {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue