mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 04:59:06 +01:00
35 lines
550 B
Vue
35 lines
550 B
Vue
<template>
|
|
<div class="fpezltsf" :class="{ warn }">
|
|
<i v-if="warn" class="ph-warning-bold ph-lg"></i>
|
|
<i v-else class="ph-info-bold ph-lg"></i>
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { } from 'vue';
|
|
|
|
defineProps<{
|
|
warn?: boolean;
|
|
}>();
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.fpezltsf {
|
|
padding: 16px;
|
|
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>
|