2018-01-14 19:22:57 +00:00
|
|
|
<div class="loading-container">
|
|
|
|
{{#if show}}
|
|
|
|
<div transition:fade class="loading-mask">
|
2018-01-15 07:24:27 +00:00
|
|
|
<LoadingSpinner maskStyle="true"/>
|
2018-01-14 19:22:57 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<style>
|
|
|
|
.loading-container {
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
position: fixed;
|
|
|
|
pointer-events: none;
|
|
|
|
z-index: 100;
|
|
|
|
}
|
|
|
|
.loading-mask {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
background: var(--mask-bg);
|
|
|
|
opacity: 0.6;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
import { fade } from 'svelte-transitions'
|
2018-01-15 07:24:27 +00:00
|
|
|
import LoadingSpinner from './LoadingSpinner.html'
|
2018-01-14 19:22:57 +00:00
|
|
|
|
|
|
|
export default {
|
2018-01-15 07:24:27 +00:00
|
|
|
transitions: {
|
|
|
|
fade
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
LoadingSpinner
|
|
|
|
}
|
2018-01-14 19:22:57 +00:00
|
|
|
}
|
|
|
|
</script>
|