summaryrefslogtreecommitdiff
path: root/src/client/components/ui/info.vue
blob: e16f2736f13c42e1a3f986e3f711f91b9ec5ce72 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<template>
<div class="fpezltsf" :class="{ warn }">
	<i v-if="warn" class="fas fa-exclamation-triangle"></i>
	<i v-else class="fas fa-info-circle"></i>
	<slot></slot>
</div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import * as os from '@client/os';

export default defineComponent({
	props: {
		warn: {
			type: Boolean,
			required: false,
			default: false
		},
	},
	data() {
		return {
		};
	}
});
</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;
	}
}

._fitSide_ .fpezltsf {
	border-radius: 0;
}
</style>