parent
10b98a0bda
commit
19d1582ae4
|
@ -2,7 +2,7 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="px-3 py-4 border-b border-grey-3 flex" :class="{'bg-yellow-lightest': open}">
|
<div class="px-3 py-4 border-b border-grey-3 flex" :class="{'bg-yellow-lightest': open}">
|
||||||
<div class="flex-none mr-3">
|
<div class="flex-none mr-3">
|
||||||
<svg v-if="task.loading" class="h-5 w-5 text-grey fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#feedback__loading"></use></svg>
|
<svg v-if="task.loading" class="h-5 w-5 text-grey-5 fill-current rotates" role="presentation"><use xlink:href="/img/icons.symbol.svg#feedback__loading"></use></svg>
|
||||||
<svg v-if="!task.loading && task.success" class="h-5 w-5 text-green fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#feedback__success-circle"></use></svg>
|
<svg v-if="!task.loading && task.success" class="h-5 w-5 text-green fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#feedback__success-circle"></use></svg>
|
||||||
<svg v-if="!task.loading && !task.success" class="h-5 w-5 text-red fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#feedback__warning"></use></svg>
|
<svg v-if="!task.loading && !task.success" class="h-5 w-5 text-red fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#feedback__warning"></use></svg>
|
||||||
</div>
|
</div>
|
||||||
|
@ -78,3 +78,18 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.rotates {
|
||||||
|
animation: rotation 1s infinite linear
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes rotation {
|
||||||
|
from {
|
||||||
|
-webkit-transform: rotate(0deg)
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
-webkit-transform: rotate(-359deg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
Reference in a new issue