Files
mixtape/zero.Web.UI/App/components/loading.vue
T

50 lines
713 B
Vue
Raw Normal View History

2020-04-14 11:11:01 +02:00
<template>
2020-08-20 01:35:08 +02:00
<i class="ui-loading" :class="{'is-big': isBig }"></i>
2020-04-14 11:11:01 +02:00
</template>
<script>
export default {
2020-08-20 01:35:08 +02:00
name: 'uiLoading',
props: {
isBig: {
type: Boolean,
default: false
}
}
2020-04-14 11:11:01 +02:00
}
</script>
<style lang="scss">
.ui-loading
{
display: inline-block;
width: 28px;
height: 28px;
border-radius: 40px;
border: 2px solid var(--color-box);
border-left-color: var(--color-text);
2020-04-14 11:11:01 +02:00
will-change: transform;
2020-08-20 01:35:08 +02:00
animation: loadingRotation 0.8s linear infinite;
&.is-big
{
width: 36px;
height: 36px;
border-width: 2px;
}
2020-04-14 11:11:01 +02:00
}
@keyframes loadingRotation
{
0%
{
transform: rotate(0)
}
100%
{
transform: rotate(1turn)
}
}
</style>