pinafore/routes/_components/LoadingMask.html
2018-02-14 18:23:11 -08:00

41 lines
820 B
HTML

<div class="loading-container {{shown ? 'loading-container-shown' : ''}}">
<div class="loading-mask">
<LoadingSpinner maskStyle="true"/>
</div>
</div>
<style>
.loading-container {
left: 0;
right: 0;
top: 0;
bottom: 0;
position: fixed;
z-index: 100;
pointer-events: none;
}
.loading-container.loading-container-shown {
pointer-events: auto;
}
.loading-mask {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: var(--mask-bg);
opacity: 0;
transition: opacity 333ms linear;
}
.loading-container-shown .loading-mask {
opacity: 0.6;
}
</style>
<script>
import LoadingSpinner from './LoadingSpinner.html'
export default {
components: {
LoadingSpinner
}
}
</script>