parent
557fdeaf38
commit
ca0a708076
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -0,0 +1,44 @@ |
||||
<script> |
||||
import Icon from '../components/Icon.svelte'; |
||||
import { fade } from 'svelte/transition'; |
||||
export let visible = false; |
||||
import { createEventDispatcher } from 'svelte'; |
||||
const dispatch = createEventDispatcher(); |
||||
</script> |
||||
|
||||
<style> |
||||
modal { |
||||
display: flex; |
||||
position: fixed; |
||||
align-items: center; |
||||
justify-content: center; |
||||
top: 0; |
||||
left: 0; |
||||
right: 0; |
||||
bottom: 0; |
||||
z-index: 10; |
||||
background: rgba(244,244,244,0.75); |
||||
} |
||||
|
||||
modal-content { |
||||
flex-direction: column; |
||||
background: white; |
||||
box-shadow: 4px 4px 4px var(--color-shadow-dark); |
||||
border: 1px solid var(--color-accent); |
||||
border-radius: 5px; |
||||
max-height: 50vh; |
||||
min-height: 50vh; |
||||
max-width: 50vh; |
||||
width: 100%; |
||||
z-index: 20; |
||||
padding: 0.5rem; |
||||
} |
||||
</style> |
||||
|
||||
{#if visible} |
||||
<modal on:click={ () => dispatch('click') }> |
||||
<modal-content> |
||||
<slot></slot> |
||||
</modal-content> |
||||
</modal> |
||||
{/if} |
Loading…
Reference in new issue