summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkInfo.vue
blob: 7aaf2c5bcbd0eef5c25671b7728812fe9d314e5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<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>