mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-15 20:06:54 +01:00
4f15b6f7c2
This reverts commit ada04c1932
.
34 lines
567 B
Vue
34 lines
567 B
Vue
<template>
|
|
<div class="fpezltsf" :class="{ warn }">
|
|
<i v-if="warn" class="ti ti-alert-triangle"></i>
|
|
<i v-else class="ti ti-info-circle"></i>
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { } from 'vue';
|
|
|
|
const props = defineProps<{
|
|
warn?: boolean;
|
|
}>();
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.fpezltsf {
|
|
padding: 12px 14px;
|
|
font-size: 90%;
|
|
background: var(--infoBg);
|
|
color: var(--infoFg);
|
|
border-radius: var(--radius);
|
|
|
|
&.warn {
|
|
background: var(--infoWarnBg);
|
|
color: var(--infoWarnFg);
|
|
}
|
|
|
|
> i {
|
|
margin-right: 4px;
|
|
}
|
|
}
|
|
</style>
|