2018-02-15 02:23:11 +00:00
|
|
|
<div class="loading-container {{shown ? 'loading-container-shown' : ''}}">
|
|
|
|
<div class="loading-mask">
|
2018-01-15 07:24:27 +00:00
|
|
|
<LoadingSpinner maskStyle="true"/>
|
2018-01-14 19:22:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<style>
|
|
|
|
.loading-container {
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
position: fixed;
|
|
|
|
z-index: 100;
|
2018-02-15 02:23:11 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
.loading-container.loading-container-shown {
|
|
|
|
pointer-events: auto;
|
2018-01-14 19:22:57 +00:00
|
|
|
}
|
|
|
|
.loading-mask {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
background: var(--mask-bg);
|
2018-02-15 02:23:11 +00:00
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 333ms linear;
|
|
|
|
}
|
|
|
|
.loading-container-shown .loading-mask {
|
2018-01-14 19:22:57 +00:00
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
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
|
|
|
components: {
|
|
|
|
LoadingSpinner
|
|
|
|
}
|
2018-01-14 19:22:57 +00:00
|
|
|
}
|
|
|
|
</script>
|