2020-01-29 20:37:25 +01:00
|
|
|
<template>
|
|
|
|
<div class="fpezltsf" :class="{ warn }">
|
2022-12-19 11:01:30 +01:00
|
|
|
<i v-if="warn" class="ti ti-alert-triangle"></i>
|
|
|
|
<i v-else class="ti ti-info-circle"></i>
|
2020-01-29 20:37:25 +01:00
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-09-06 11:09:17 +02:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2022-09-06 11:09:17 +02:00
|
|
|
const props = defineProps<{
|
|
|
|
warn?: boolean;
|
|
|
|
}>();
|
2020-01-29 20:37:25 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.fpezltsf {
|
2022-12-20 05:11:44 +01:00
|
|
|
padding: 12px;
|
2020-01-29 20:37:25 +01:00
|
|
|
font-size: 90%;
|
|
|
|
background: var(--infoBg);
|
|
|
|
color: var(--infoFg);
|
2021-01-11 12:38:34 +01:00
|
|
|
border-radius: var(--radius);
|
2020-01-29 20:37:25 +01:00
|
|
|
|
|
|
|
&.warn {
|
|
|
|
background: var(--infoWarnBg);
|
|
|
|
color: var(--infoWarnFg);
|
|
|
|
}
|
|
|
|
|
|
|
|
> i {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|