Pinafore-Web-Client-Frontend/routes/_components/LoadingMask.html

41 lines
820 B
HTML
Raw Normal View History

2018-02-15 03:23:11 +01:00
<div class="loading-container {{shown ? 'loading-container-shown' : ''}}">
<div class="loading-mask">
2018-01-15 08:24:27 +01:00
<LoadingSpinner maskStyle="true"/>
</div>
</div>
<style>
.loading-container {
left: 0;
right: 0;
top: 0;
bottom: 0;
position: fixed;
z-index: 100;
2018-02-15 03:23:11 +01:00
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);
2018-02-15 03:23:11 +01:00
opacity: 0;
transition: opacity 333ms linear;
}
.loading-container-shown .loading-mask {
opacity: 0.6;
}
</style>
<script>
2018-01-15 08:24:27 +01:00
import LoadingSpinner from './LoadingSpinner.html'
export default {
2018-01-15 08:24:27 +01:00
components: {
LoadingSpinner
}
}
</script>