c2370a1be6
* chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
40 lines
743 B
Vue
40 lines
743 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<div :class="[$style.root, { [$style.warn]: warn }]">
|
|
<i v-if="warn" class="ti ti-alert-triangle" :class="$style.i"></i>
|
|
<i v-else class="ti ti-info-circle" :class="$style.i"></i>
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { } from 'vue';
|
|
|
|
const props = defineProps<{
|
|
warn?: boolean;
|
|
}>();
|
|
</script>
|
|
|
|
<style lang="scss" module>
|
|
.root {
|
|
padding: 12px 14px;
|
|
font-size: 90%;
|
|
background: var(--infoBg);
|
|
color: var(--infoFg);
|
|
border-radius: var(--radius);
|
|
white-space: pre-wrap;
|
|
|
|
&.warn {
|
|
background: var(--infoWarnBg);
|
|
color: var(--infoWarnFg);
|
|
}
|
|
}
|
|
|
|
.i {
|
|
margin-right: 4px;
|
|
}
|
|
</style>
|