fedilove-ui/routes/_components/LoadingMask.html

46 lines
985 B
HTML
Raw Normal View History

2018-02-15 02:37:19 +00:00
<div class="loading-mask-container {{shown ? 'loading-mask-container-shown' : ''}}">
{{#if shown}}
<div class="loading-mask">
<LoadingSpinner maskStyle="true"/>
</div>
{{/if}}
</div>
<style>
2018-02-15 02:37:19 +00:00
.loading-mask-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;
2018-02-15 02:37:19 +00:00
opacity: 0;
transition: opacity 333ms linear;
2018-02-15 02:23:11 +00:00
}
2018-02-15 02:37:19 +00:00
.loading-mask-container.loading-mask-container-shown {
2018-02-15 02:23:11 +00:00
pointer-events: auto;
2018-02-15 02:37:19 +00:00
opacity: 0.6;
}
.loading-mask {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: var(--mask-bg);
}
</style>
<script>
2018-01-15 07:24:27 +00:00
import LoadingSpinner from './LoadingSpinner.html'
2018-02-15 02:37:19 +00:00
import { store } from '../_store/store'
export default {
2018-02-15 02:37:19 +00:00
store: () => store,
computed: {
shown: ($logInToInstanceLoading) => $logInToInstanceLoading
},
2018-01-15 07:24:27 +00:00
components: {
LoadingSpinner
}
}
</script>