mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
34 lines
580 B
Vue
34 lines
580 B
Vue
<template>
|
|
<div :style="{ height, width }" class="b-skeleton" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'BSkeleton',
|
|
|
|
props: {
|
|
height: { type: String, required: true },
|
|
width: { type: String, required: true },
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.b-skeleton {
|
|
position: relative;
|
|
overflow: hidden;
|
|
background-color: $gray-200;
|
|
cursor: wait;
|
|
|
|
height: $font-size-base;
|
|
margin-bottom: map-get($spacers, 1);
|
|
|
|
@if $enable-rounded {
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
[data-bs-theme='dark'] & {
|
|
background-color: $gray-800;
|
|
}
|
|
}
|
|
</style>
|