2020-01-29 19:37:25 +00:00
|
|
|
<template>
|
2023-04-08 00:01:42 +00:00
|
|
|
<MkModal
|
|
|
|
ref="modal"
|
|
|
|
:prefer-type="'dialog'"
|
|
|
|
@click="done(true)"
|
|
|
|
@closed="emit('closed')"
|
|
|
|
>
|
2023-02-18 23:34:41 +00:00
|
|
|
<div :class="$style.root">
|
|
|
|
<div v-if="icon" :class="$style.icon">
|
|
|
|
<i :class="icon"></i>
|
2022-10-26 05:44:38 +00:00
|
|
|
</div>
|
2023-04-08 00:01:42 +00:00
|
|
|
<div
|
|
|
|
v-else-if="!input && !select"
|
|
|
|
:class="[$style.icon, $style['type_' + type]]"
|
|
|
|
>
|
|
|
|
<i
|
|
|
|
v-if="type === 'success'"
|
|
|
|
:class="$style.iconInner"
|
|
|
|
class="ph-check ph-bold ph-lg"
|
|
|
|
></i>
|
|
|
|
<i
|
|
|
|
v-else-if="type === 'error'"
|
|
|
|
:class="$style.iconInner"
|
|
|
|
class="ph-circle-wavy-warning ph-bold ph-lg"
|
|
|
|
></i>
|
|
|
|
<i
|
|
|
|
v-else-if="type === 'warning'"
|
|
|
|
:class="$style.iconInner"
|
|
|
|
class="ph-warning ph-bold ph-lg"
|
|
|
|
></i>
|
|
|
|
<i
|
|
|
|
v-else-if="type === 'info'"
|
|
|
|
:class="$style.iconInner"
|
|
|
|
class="ph-info ph-bold ph-lg"
|
|
|
|
></i>
|
|
|
|
<i
|
|
|
|
v-else-if="type === 'question'"
|
|
|
|
:class="$style.iconInner"
|
|
|
|
class="ph-circle-question ph-bold ph-lg"
|
|
|
|
></i>
|
|
|
|
<MkLoading
|
|
|
|
v-else-if="type === 'waiting'"
|
|
|
|
:class="$style.iconInner"
|
|
|
|
:em="true"
|
|
|
|
/>
|
2023-02-18 23:34:41 +00:00
|
|
|
</div>
|
2023-04-08 00:01:42 +00:00
|
|
|
<header v-if="title" :class="$style.title">
|
|
|
|
<Mfm :text="title" />
|
|
|
|
</header>
|
|
|
|
<header
|
|
|
|
v-if="title == null && input && input.type === 'password'"
|
|
|
|
:class="$style.title"
|
|
|
|
>
|
|
|
|
<Mfm :text="i18n.ts.password" />
|
|
|
|
</header>
|
2023-06-15 23:12:32 +00:00
|
|
|
<div v-if="text" :class="$style.text">
|
|
|
|
<Mfm :text="text" />
|
|
|
|
</div>
|
2023-04-08 00:01:42 +00:00
|
|
|
<MkInput
|
2023-06-08 17:01:51 +00:00
|
|
|
ref="inputEl"
|
2023-04-08 00:01:42 +00:00
|
|
|
v-if="input && input.type !== 'paragraph'"
|
|
|
|
v-model="inputValue"
|
|
|
|
autofocus
|
2023-06-15 23:12:32 +00:00
|
|
|
:autocomplete="input.autocomplete"
|
2023-06-12 06:25:10 +00:00
|
|
|
:type="input.type == 'search' ? 'search' : input.type || 'text'"
|
2023-04-08 00:01:42 +00:00
|
|
|
:placeholder="input.placeholder || undefined"
|
|
|
|
@keydown="onInputKeydown"
|
2023-06-12 04:57:20 +00:00
|
|
|
:style="{
|
2023-06-12 06:25:10 +00:00
|
|
|
width: input.type === 'search' ? '300px' : null,
|
2023-06-12 04:57:20 +00:00
|
|
|
}"
|
2023-04-08 00:01:42 +00:00
|
|
|
>
|
|
|
|
<template v-if="input.type === 'password'" #prefix
|
|
|
|
><i class="ph-password ph-bold ph-lg"></i
|
|
|
|
></template>
|
2023-06-15 23:12:32 +00:00
|
|
|
<template #caption>
|
|
|
|
<span
|
|
|
|
v-if="
|
|
|
|
okButtonDisabled &&
|
|
|
|
disabledReason === 'charactersExceeded'
|
|
|
|
"
|
|
|
|
v-text="i18n.t('_dialog.charactersExceeded', { current: (inputValue as string).length, max: input.maxLength ?? 'NaN' })"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
v-else-if="
|
|
|
|
okButtonDisabled &&
|
|
|
|
disabledReason === 'charactersBelow'
|
|
|
|
"
|
|
|
|
v-text="i18n.t('_dialog.charactersBelow', { current: (inputValue as string).length, min: input.minLength ?? 'NaN' })"
|
|
|
|
/>
|
|
|
|
</template>
|
2023-06-12 06:25:10 +00:00
|
|
|
<template v-if="input.type === 'search'" #suffix>
|
2023-06-08 17:01:51 +00:00
|
|
|
<button
|
|
|
|
class="_buttonIcon"
|
|
|
|
@click.stop="openSearchFilters"
|
|
|
|
v-tooltip.noDelay="i18n.ts.filter"
|
|
|
|
>
|
|
|
|
<i class="ph-funnel ph-bold"></i>
|
|
|
|
</button>
|
|
|
|
</template>
|
2023-02-18 23:34:41 +00:00
|
|
|
</MkInput>
|
2023-04-08 00:01:42 +00:00
|
|
|
<MkTextarea
|
|
|
|
v-if="input && input.type === 'paragraph'"
|
|
|
|
v-model="inputValue"
|
|
|
|
autofocus
|
|
|
|
:type="paragraph"
|
|
|
|
:placeholder="input.placeholder || undefined"
|
|
|
|
>
|
2023-03-19 07:22:28 +00:00
|
|
|
</MkTextarea>
|
2023-02-18 23:34:41 +00:00
|
|
|
<MkSelect v-if="select" v-model="selectedValue" autofocus>
|
|
|
|
<template v-if="select.items">
|
2023-04-08 00:01:42 +00:00
|
|
|
<option v-for="item in select.items" :value="item.value">
|
|
|
|
{{ item.text }}
|
|
|
|
</option>
|
2023-02-18 23:34:41 +00:00
|
|
|
</template>
|
|
|
|
<template v-else>
|
2023-04-08 00:01:42 +00:00
|
|
|
<optgroup
|
|
|
|
v-for="groupedItem in select.groupedItems"
|
|
|
|
:label="groupedItem.label"
|
|
|
|
>
|
|
|
|
<option
|
|
|
|
v-for="item in groupedItem.items"
|
|
|
|
:value="item.value"
|
|
|
|
>
|
|
|
|
{{ item.text }}
|
|
|
|
</option>
|
2023-02-18 23:34:41 +00:00
|
|
|
</optgroup>
|
|
|
|
</template>
|
|
|
|
</MkSelect>
|
2023-06-08 17:01:51 +00:00
|
|
|
|
2023-04-08 00:01:42 +00:00
|
|
|
<div
|
|
|
|
v-if="(showOkButton || showCancelButton) && !actions"
|
|
|
|
:class="$style.buttons"
|
|
|
|
>
|
2023-02-18 23:34:41 +00:00
|
|
|
<div v-if="!isYesNo">
|
2023-04-08 00:01:42 +00:00
|
|
|
<MkButton
|
|
|
|
v-if="showOkButton"
|
|
|
|
inline
|
|
|
|
primary
|
|
|
|
:autofocus="!input && !select"
|
2023-06-15 23:12:32 +00:00
|
|
|
:disabled="okButtonDisabled"
|
2023-04-08 00:01:42 +00:00
|
|
|
@click="ok"
|
|
|
|
>{{
|
|
|
|
showCancelButton || input || select
|
|
|
|
? i18n.ts.ok
|
|
|
|
: i18n.ts.gotIt
|
|
|
|
}}</MkButton
|
|
|
|
>
|
|
|
|
<MkButton
|
|
|
|
v-if="showCancelButton || input || select"
|
|
|
|
inline
|
|
|
|
@click="cancel"
|
|
|
|
>{{ i18n.ts.cancel }}</MkButton
|
|
|
|
>
|
2023-02-18 23:34:41 +00:00
|
|
|
</div>
|
|
|
|
<div v-else>
|
2023-04-08 00:01:42 +00:00
|
|
|
<MkButton
|
|
|
|
v-if="showOkButton"
|
|
|
|
inline
|
|
|
|
primary
|
|
|
|
:autofocus="!input && !select"
|
|
|
|
@click="ok"
|
2023-06-15 23:12:32 +00:00
|
|
|
>{{ i18n.ts.yes }}
|
|
|
|
</MkButton>
|
2023-04-08 00:01:42 +00:00
|
|
|
<MkButton
|
|
|
|
v-if="showCancelButton || input || select"
|
|
|
|
inline
|
|
|
|
@click="cancel"
|
|
|
|
>{{ i18n.ts.no }}</MkButton
|
|
|
|
>
|
2023-02-18 23:34:41 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="actions" :class="$style.buttons">
|
2023-04-08 00:01:42 +00:00
|
|
|
<MkButton
|
|
|
|
v-for="action in actions"
|
|
|
|
:key="action.text"
|
|
|
|
inline
|
|
|
|
:primary="action.primary"
|
|
|
|
@click="
|
|
|
|
() => {
|
|
|
|
action.callback();
|
|
|
|
modal?.close();
|
|
|
|
}
|
|
|
|
"
|
|
|
|
>{{ action.text }}</MkButton
|
|
|
|
>
|
2022-10-26 05:44:38 +00:00
|
|
|
</div>
|
2020-10-17 11:12:00 +00:00
|
|
|
</div>
|
2023-02-18 23:34:41 +00:00
|
|
|
</MkModal>
|
2020-01-29 19:37:25 +00:00
|
|
|
</template>
|
|
|
|
|
2022-01-10 15:05:18 +00:00
|
|
|
<script lang="ts" setup>
|
2023-06-11 00:58:22 +00:00
|
|
|
import { onBeforeUnmount, onMounted, ref, shallowRef } from "vue";
|
2023-04-08 00:01:42 +00:00
|
|
|
import MkModal from "@/components/MkModal.vue";
|
|
|
|
import MkButton from "@/components/MkButton.vue";
|
|
|
|
import MkInput from "@/components/form/input.vue";
|
|
|
|
import MkTextarea from "@/components/form/textarea.vue";
|
|
|
|
import MkSelect from "@/components/form/select.vue";
|
2023-06-08 17:01:51 +00:00
|
|
|
import * as os from "@/os";
|
2023-04-08 00:01:42 +00:00
|
|
|
import { i18n } from "@/i18n";
|
2023-06-08 17:01:51 +00:00
|
|
|
import * as Acct from "calckey-js/built/acct";
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2022-01-10 15:05:18 +00:00
|
|
|
type Input = {
|
2023-04-08 00:01:42 +00:00
|
|
|
type: HTMLInputElement["type"];
|
2022-01-10 15:05:18 +00:00
|
|
|
placeholder?: string | null;
|
2023-06-15 23:12:32 +00:00
|
|
|
autocomplete?: string;
|
|
|
|
default: string | number | null;
|
|
|
|
minLength?: number;
|
|
|
|
maxLength?: number;
|
2022-01-10 15:05:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
type Select = {
|
|
|
|
items: {
|
|
|
|
value: string;
|
|
|
|
text: string;
|
|
|
|
}[];
|
|
|
|
groupedItems: {
|
|
|
|
label: string;
|
|
|
|
items: {
|
|
|
|
value: string;
|
|
|
|
text: string;
|
|
|
|
}[];
|
|
|
|
}[];
|
|
|
|
default: string | null;
|
|
|
|
};
|
|
|
|
|
2023-04-08 00:01:42 +00:00
|
|
|
const props = withDefaults(
|
|
|
|
defineProps<{
|
|
|
|
type?:
|
|
|
|
| "success"
|
|
|
|
| "error"
|
|
|
|
| "warning"
|
|
|
|
| "info"
|
|
|
|
| "question"
|
2023-06-08 17:01:51 +00:00
|
|
|
| "waiting"
|
|
|
|
| "search";
|
2023-04-08 00:01:42 +00:00
|
|
|
title: string;
|
|
|
|
text?: string;
|
|
|
|
input?: Input;
|
|
|
|
select?: Select;
|
|
|
|
icon?: string;
|
|
|
|
actions?: {
|
|
|
|
text: string;
|
|
|
|
primary?: boolean;
|
|
|
|
callback: (...args: any[]) => void;
|
|
|
|
}[];
|
|
|
|
showOkButton?: boolean;
|
|
|
|
showCancelButton?: boolean;
|
|
|
|
isYesNo?: boolean;
|
|
|
|
|
|
|
|
cancelableByBgClick?: boolean;
|
|
|
|
okText?: string;
|
|
|
|
cancelText?: string;
|
|
|
|
}>(),
|
|
|
|
{
|
|
|
|
type: "info",
|
|
|
|
showOkButton: true,
|
|
|
|
showCancelButton: false,
|
|
|
|
isYesNo: false,
|
|
|
|
|
|
|
|
cancelableByBgClick: true,
|
|
|
|
}
|
|
|
|
);
|
2022-01-10 15:05:18 +00:00
|
|
|
|
|
|
|
const emit = defineEmits<{
|
2023-04-08 00:01:42 +00:00
|
|
|
(ev: "done", v: { canceled: boolean; result: any }): void;
|
|
|
|
(ev: "closed"): void;
|
2022-01-10 15:05:18 +00:00
|
|
|
}>();
|
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
const modal = shallowRef<InstanceType<typeof MkModal>>();
|
2022-01-10 15:05:18 +00:00
|
|
|
|
2023-06-15 23:12:32 +00:00
|
|
|
const inputValue = ref<string | number | null>(props.input?.default ?? null);
|
|
|
|
const selectedValue = ref(props.select?.default ?? null);
|
|
|
|
|
|
|
|
let disabledReason = $ref<null | "charactersExceeded" | "charactersBelow">(
|
|
|
|
null
|
|
|
|
);
|
|
|
|
const okButtonDisabled = $computed<boolean>(() => {
|
|
|
|
if (props.input) {
|
|
|
|
if (props.input.minLength) {
|
|
|
|
if (
|
|
|
|
(inputValue.value || inputValue.value === "") &&
|
|
|
|
(inputValue.value as string).length < props.input.minLength
|
|
|
|
) {
|
|
|
|
disabledReason = "charactersBelow";
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (props.input.maxLength) {
|
|
|
|
if (
|
|
|
|
inputValue.value &&
|
|
|
|
(inputValue.value as string).length > props.input.maxLength
|
|
|
|
) {
|
|
|
|
disabledReason = "charactersExceeded";
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
});
|
2022-01-10 15:05:18 +00:00
|
|
|
|
2023-06-08 17:01:51 +00:00
|
|
|
const inputEl = ref<typeof MkInput>();
|
|
|
|
|
2022-01-10 15:05:18 +00:00
|
|
|
function done(canceled: boolean, result?) {
|
2023-04-08 00:01:42 +00:00
|
|
|
emit("done", { canceled, result });
|
2023-06-12 08:01:32 +00:00
|
|
|
modal.value?.close();
|
2022-01-10 15:05:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
async function ok() {
|
|
|
|
if (!props.showOkButton) return;
|
|
|
|
|
2023-04-08 00:01:42 +00:00
|
|
|
const result = props.input
|
|
|
|
? inputValue.value
|
|
|
|
: props.select
|
|
|
|
? selectedValue.value
|
|
|
|
: true;
|
2022-01-10 15:05:18 +00:00
|
|
|
done(false, result);
|
|
|
|
}
|
|
|
|
|
|
|
|
function cancel() {
|
|
|
|
done(true);
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
function onBgClick() {
|
|
|
|
if (props.cancelableByBgClick) cancel();
|
|
|
|
}
|
|
|
|
*/
|
2022-05-26 13:53:09 +00:00
|
|
|
function onKeydown(evt: KeyboardEvent) {
|
2023-04-08 00:01:42 +00:00
|
|
|
if (evt.key === "Escape") cancel();
|
2022-01-10 15:05:18 +00:00
|
|
|
}
|
|
|
|
|
2022-05-26 13:53:09 +00:00
|
|
|
function onInputKeydown(evt: KeyboardEvent) {
|
2023-04-08 00:01:42 +00:00
|
|
|
if (evt.key === "Enter") {
|
2022-05-26 13:53:09 +00:00
|
|
|
evt.preventDefault();
|
|
|
|
evt.stopPropagation();
|
2022-01-10 15:05:18 +00:00
|
|
|
ok();
|
2020-01-29 19:37:25 +00:00
|
|
|
}
|
2022-01-10 15:05:18 +00:00
|
|
|
}
|
|
|
|
|
2023-06-12 08:39:52 +00:00
|
|
|
function formatDateToYYYYMMDD(date) {
|
|
|
|
const year = date.getFullYear();
|
|
|
|
const month = ("0" + (date.getMonth() + 1)).slice(-2);
|
2023-06-14 00:32:01 +00:00
|
|
|
const day = ("0" + (date.getDate() + 1)).slice(-2);
|
2023-06-14 00:16:10 +00:00
|
|
|
return `${year}-${month}-${day}`;
|
2023-06-12 08:39:52 +00:00
|
|
|
}
|
|
|
|
|
2023-06-08 17:01:51 +00:00
|
|
|
async function openSearchFilters(ev) {
|
2023-06-11 00:48:35 +00:00
|
|
|
await os.popupMenu(
|
|
|
|
[
|
|
|
|
{
|
|
|
|
icon: "ph-user ph-bold ph-lg",
|
2023-06-12 02:05:50 +00:00
|
|
|
text: i18n.ts._filters.fromUser,
|
2023-06-11 00:48:35 +00:00
|
|
|
action: () => {
|
|
|
|
os.selectUser().then((user) => {
|
|
|
|
inputValue.value += " from:@" + Acct.toString(user);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2023-06-12 09:19:27 +00:00
|
|
|
type: "parent",
|
2023-06-12 02:05:50 +00:00
|
|
|
text: i18n.ts._filters.withFile,
|
2023-06-12 09:19:27 +00:00
|
|
|
icon: "ph-paperclip ph-bold ph-lg",
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
text: i18n.ts.image,
|
|
|
|
icon: "ph-image-square ph-bold ph-lg",
|
|
|
|
action: () => {
|
|
|
|
inputValue.value += " has:image";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: i18n.ts.video,
|
|
|
|
icon: "ph-video-camera ph-bold ph-lg",
|
|
|
|
action: () => {
|
|
|
|
inputValue.value += " has:video";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: i18n.ts.audio,
|
|
|
|
icon: "ph-music-note ph-bold ph-lg",
|
|
|
|
action: () => {
|
|
|
|
inputValue.value += " has:audio";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: i18n.ts.file,
|
|
|
|
icon: "ph-file ph-bold ph-lg",
|
|
|
|
action: () => {
|
|
|
|
inputValue.value += " has:file";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2023-06-11 00:48:35 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
icon: "ph-link ph-bold ph-lg",
|
2023-06-12 02:05:50 +00:00
|
|
|
text: i18n.ts._filters.fromDomain,
|
2023-06-11 00:48:35 +00:00
|
|
|
action: () => {
|
|
|
|
inputValue.value += " domain:";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
icon: "ph-calendar-blank ph-bold ph-lg",
|
2023-06-12 02:05:50 +00:00
|
|
|
text: i18n.ts._filters.notesBefore,
|
2023-06-11 00:48:35 +00:00
|
|
|
action: () => {
|
|
|
|
os.inputDate({
|
2023-06-12 02:05:50 +00:00
|
|
|
title: i18n.ts._filters.notesBefore,
|
2023-06-11 00:48:35 +00:00
|
|
|
}).then((res) => {
|
|
|
|
if (res.canceled) return;
|
2023-06-12 09:19:27 +00:00
|
|
|
inputValue.value +=
|
|
|
|
" before:" + formatDateToYYYYMMDD(res.result);
|
2023-06-11 00:48:35 +00:00
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
icon: "ph-calendar-blank ph-bold ph-lg",
|
2023-06-12 02:05:50 +00:00
|
|
|
text: i18n.ts._filters.notesAfter,
|
2023-06-11 00:48:35 +00:00
|
|
|
action: () => {
|
|
|
|
os.inputDate({
|
2023-06-12 02:05:50 +00:00
|
|
|
title: i18n.ts._filters.notesAfter,
|
2023-06-11 00:48:35 +00:00
|
|
|
}).then((res) => {
|
|
|
|
if (res.canceled) return;
|
2023-06-12 09:19:27 +00:00
|
|
|
inputValue.value +=
|
|
|
|
" after:" + formatDateToYYYYMMDD(res.result);
|
2023-06-11 00:48:35 +00:00
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
icon: "ph-eye ph-bold ph-lg",
|
2023-06-12 02:05:50 +00:00
|
|
|
text: i18n.ts._filters.followingOnly,
|
2023-06-11 00:48:35 +00:00
|
|
|
action: () => {
|
|
|
|
inputValue.value += " filter:following ";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
icon: "ph-users-three ph-bold ph-lg",
|
2023-06-12 02:05:50 +00:00
|
|
|
text: i18n.ts._filters.followersOnly,
|
2023-06-11 00:48:35 +00:00
|
|
|
action: () => {
|
|
|
|
inputValue.value += " filter:followers ";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
ev.target,
|
|
|
|
{ noReturnFocus: true }
|
|
|
|
);
|
2023-06-08 17:01:51 +00:00
|
|
|
inputEl.value.focus();
|
|
|
|
inputEl.value.selectRange(inputValue.value.length, inputValue.value.length); // cursor at end
|
|
|
|
}
|
|
|
|
|
2022-01-10 15:05:18 +00:00
|
|
|
onMounted(() => {
|
2023-04-08 00:01:42 +00:00
|
|
|
document.addEventListener("keydown", onKeydown);
|
2022-01-10 15:05:18 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
onBeforeUnmount(() => {
|
2023-04-08 00:01:42 +00:00
|
|
|
document.removeEventListener("keydown", onKeydown);
|
2020-01-29 19:37:25 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
<style lang="scss" module>
|
|
|
|
.root {
|
2020-10-17 11:12:00 +00:00
|
|
|
position: relative;
|
2023-02-18 23:34:41 +00:00
|
|
|
margin: auto;
|
2020-10-17 11:12:00 +00:00
|
|
|
padding: 32px;
|
|
|
|
min-width: 320px;
|
|
|
|
max-width: 480px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
text-align: center;
|
|
|
|
background: var(--panel);
|
|
|
|
border-radius: var(--radius);
|
2023-02-18 23:34:41 +00:00
|
|
|
}
|
2020-10-17 11:12:00 +00:00
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
.icon {
|
|
|
|
font-size: 24px;
|
2021-11-28 11:07:37 +00:00
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
& + .title {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
}
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
.iconInner {
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
.type_info {
|
|
|
|
color: var(--accent);
|
|
|
|
}
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
.type_success {
|
|
|
|
color: var(--success);
|
|
|
|
}
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
.type_error {
|
|
|
|
color: var(--error);
|
|
|
|
}
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
.type_warning {
|
|
|
|
color: var(--warn);
|
|
|
|
}
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
.title {
|
|
|
|
margin: 0 0 8px 0;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1.1em;
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
& + .text {
|
|
|
|
margin-top: 8px;
|
2020-10-17 11:12:00 +00:00
|
|
|
}
|
2023-02-18 23:34:41 +00:00
|
|
|
}
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
.text {
|
|
|
|
margin: 16px 0 0 0;
|
|
|
|
}
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2023-02-18 23:34:41 +00:00
|
|
|
.buttons {
|
|
|
|
margin-top: 16px;
|
|
|
|
display: flex;
|
|
|
|
gap: 8px;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
2020-01-29 19:37:25 +00:00
|
|
|
}
|
|
|
|
</style>
|