2020-10-17 13:12:00 +02:00
|
|
|
<template>
|
2022-01-28 04:14:21 +01:00
|
|
|
<transition :name="$store.state.animation ? (type === 'drawer') ? 'modal-drawer' : (type === 'popup') ? 'modal-popup' : 'modal' : ''" :duration="$store.state.animation ? 200 : 0" appear @after-leave="emit('closed')" @enter="emit('opening')" @after-enter="childRendered">
|
2021-12-16 18:14:40 +01:00
|
|
|
<div v-show="manualShowing != null ? manualShowing : showing" v-hotkey.global="keymap" class="qzhlnise" :class="{ drawer: type === 'drawer', dialog: type === 'dialog' || type === 'dialog:top', popup: type === 'popup' }" :style="{ zIndex, pointerEvents: (manualShowing != null ? manualShowing : showing) ? 'auto' : 'none', '--transformOrigin': transformOrigin }">
|
2021-12-17 05:15:06 +01:00
|
|
|
<div class="bg _modalBg" :class="{ transparent: transparentBg && (type === 'popup') }" :style="{ zIndex }" @click="onBgClick" @contextmenu.prevent.stop="() => {}"></div>
|
2021-12-16 18:14:40 +01:00
|
|
|
<div ref="content" class="content" :class="{ fixed, top: type === 'dialog:top' }" :style="{ zIndex }" @click.self="onBgClick">
|
|
|
|
<slot :max-height="maxHeight" :type="type"></slot>
|
2021-03-05 08:59:43 +01:00
|
|
|
</div>
|
2020-10-17 13:12:00 +02:00
|
|
|
</div>
|
2021-03-05 08:59:43 +01:00
|
|
|
</transition>
|
2020-10-17 13:12:00 +02:00
|
|
|
</template>
|
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { nextTick, onMounted, computed, ref, watch, provide } from 'vue';
|
2021-12-11 15:01:05 +01:00
|
|
|
import * as os from '@/os';
|
2021-12-16 18:14:40 +01:00
|
|
|
import { isTouchUsing } from '@/scripts/touch';
|
2021-12-20 16:20:30 +01:00
|
|
|
import { defaultStore } from '@/store';
|
2022-02-08 10:46:39 +01:00
|
|
|
import { deviceKind } from '@/scripts/device-kind';
|
2020-10-17 13:12:00 +02:00
|
|
|
|
|
|
|
function getFixedContainer(el: Element | null): Element | null {
|
|
|
|
if (el == null || el.tagName === 'BODY') return null;
|
|
|
|
const position = window.getComputedStyle(el).getPropertyValue('position');
|
|
|
|
if (position === 'fixed') {
|
|
|
|
return el;
|
|
|
|
} else {
|
|
|
|
return getFixedContainer(el.parentElement);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-28 04:21:35 +01:00
|
|
|
type ModalTypes = 'popup' | 'dialog' | 'dialog:top' | 'drawer';
|
2022-01-28 04:20:42 +01:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
const props = withDefaults(defineProps<{
|
2022-01-28 04:30:47 +01:00
|
|
|
manualShowing?: boolean | null;
|
2022-03-06 15:21:19 +01:00
|
|
|
anchor?: { x: string; y: string; };
|
2022-01-28 04:14:21 +01:00
|
|
|
src?: HTMLElement;
|
2022-01-28 04:20:42 +01:00
|
|
|
preferType?: ModalTypes | 'auto';
|
2022-01-28 04:14:21 +01:00
|
|
|
zPriority?: 'low' | 'middle' | 'high';
|
|
|
|
noOverlap?: boolean;
|
|
|
|
transparentBg?: boolean;
|
|
|
|
}>(), {
|
|
|
|
manualShowing: null,
|
|
|
|
src: null,
|
2022-03-19 14:03:53 +01:00
|
|
|
anchor: () => ({ x: 'center', y: 'bottom' }),
|
2022-01-28 04:14:21 +01:00
|
|
|
preferType: 'auto',
|
|
|
|
zPriority: 'low',
|
|
|
|
noOverlap: true,
|
|
|
|
transparentBg: false,
|
|
|
|
});
|
2021-12-16 18:14:40 +01:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
const emit = defineEmits<{
|
|
|
|
(ev: 'opening'): void;
|
|
|
|
(ev: 'click'): void;
|
|
|
|
(ev: 'esc'): void;
|
|
|
|
(ev: 'close'): void;
|
|
|
|
(ev: 'closed'): void;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
provide('modal', true);
|
|
|
|
|
|
|
|
const maxHeight = ref<number>();
|
|
|
|
const fixed = ref(false);
|
|
|
|
const transformOrigin = ref('center');
|
|
|
|
const showing = ref(true);
|
|
|
|
const content = ref<HTMLElement>();
|
|
|
|
const zIndex = os.claimZIndex(props.zPriority);
|
|
|
|
const type = computed(() => {
|
|
|
|
if (props.preferType === 'auto') {
|
2022-02-08 10:46:39 +01:00
|
|
|
if (!defaultStore.state.disableDrawer && isTouchUsing && deviceKind === 'smartphone') {
|
2022-01-28 04:14:21 +01:00
|
|
|
return 'drawer';
|
|
|
|
} else {
|
|
|
|
return props.src != null ? 'popup' : 'dialog';
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
2022-01-28 04:14:21 +01:00
|
|
|
} else {
|
2022-01-28 04:20:42 +01:00
|
|
|
return props.preferType!;
|
2022-01-28 04:14:21 +01:00
|
|
|
}
|
|
|
|
});
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
let contentClicking = false;
|
2021-12-16 18:14:40 +01:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
const close = () => {
|
|
|
|
// eslint-disable-next-line vue/no-mutating-props
|
|
|
|
if (props.src) props.src.style.pointerEvents = 'auto';
|
|
|
|
showing.value = false;
|
|
|
|
emit('close');
|
|
|
|
};
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
const onBgClick = () => {
|
|
|
|
if (contentClicking) return;
|
|
|
|
emit('click');
|
|
|
|
};
|
2021-12-16 18:14:40 +01:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
if (type.value === 'drawer') {
|
2022-02-23 15:40:31 +01:00
|
|
|
maxHeight.value = window.innerHeight / 1.5;
|
2022-01-28 04:14:21 +01:00
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
const keymap = {
|
|
|
|
'esc': () => emit('esc'),
|
|
|
|
};
|
2021-03-05 08:59:43 +01:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
const MARGIN = 16;
|
2021-02-27 18:22:53 +01:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
const align = () => {
|
|
|
|
if (props.src == null) return;
|
|
|
|
if (type.value === 'drawer') return;
|
2022-02-23 15:40:31 +01:00
|
|
|
if (type.value === 'dialog') return;
|
2021-02-27 18:22:53 +01:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
const popover = content.value!;
|
|
|
|
if (popover == null) return;
|
|
|
|
|
2022-03-19 14:03:53 +01:00
|
|
|
const srcRect = props.src.getBoundingClientRect();
|
2022-01-28 04:14:21 +01:00
|
|
|
|
|
|
|
const width = popover.offsetWidth;
|
|
|
|
const height = popover.offsetHeight;
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
let left;
|
|
|
|
let top;
|
|
|
|
|
2022-03-19 14:03:53 +01:00
|
|
|
const x = srcRect.left + (fixed.value ? 0 : window.pageXOffset);
|
|
|
|
const y = srcRect.top + (fixed.value ? 0 : window.pageYOffset);
|
2022-03-06 15:21:19 +01:00
|
|
|
|
|
|
|
if (props.anchor.x === 'center') {
|
|
|
|
left = x + (props.src.offsetWidth / 2) - (width / 2);
|
|
|
|
} else if (props.anchor.x === 'left') {
|
|
|
|
// TODO
|
|
|
|
} else if (props.anchor.x === 'right') {
|
|
|
|
left = x + props.src.offsetWidth;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (props.anchor.y === 'center') {
|
2022-01-28 04:14:21 +01:00
|
|
|
top = (y - (height / 2));
|
2022-03-06 15:21:19 +01:00
|
|
|
} else if (props.anchor.y === 'top') {
|
|
|
|
// TODO
|
|
|
|
} else if (props.anchor.y === 'bottom') {
|
|
|
|
top = y + props.src.offsetHeight;
|
2022-01-28 04:14:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (fixed.value) {
|
|
|
|
// 画面から横にはみ出る場合
|
|
|
|
if (left + width > window.innerWidth) {
|
|
|
|
left = window.innerWidth - width;
|
|
|
|
}
|
|
|
|
|
2022-02-13 08:35:53 +01:00
|
|
|
const underSpace = (window.innerHeight - MARGIN) - top;
|
2022-03-19 14:03:53 +01:00
|
|
|
const upperSpace = (srcRect.top - MARGIN);
|
2022-02-13 08:35:53 +01:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
// 画面から縦にはみ出る場合
|
|
|
|
if (top + height > (window.innerHeight - MARGIN)) {
|
2022-03-06 15:21:19 +01:00
|
|
|
if (props.noOverlap && props.anchor.x === 'center') {
|
2022-01-28 04:14:21 +01:00
|
|
|
if (underSpace >= (upperSpace / 3)) {
|
2022-02-13 08:35:53 +01:00
|
|
|
maxHeight.value = underSpace;
|
2022-01-28 04:14:21 +01:00
|
|
|
} else {
|
2022-02-13 08:35:53 +01:00
|
|
|
maxHeight.value = upperSpace;
|
2022-01-28 04:14:21 +01:00
|
|
|
top = (upperSpace + MARGIN) - height;
|
2021-02-27 18:22:53 +01:00
|
|
|
}
|
|
|
|
} else {
|
2022-01-28 04:14:21 +01:00
|
|
|
top = (window.innerHeight - MARGIN) - height;
|
|
|
|
}
|
2022-02-13 08:35:53 +01:00
|
|
|
} else {
|
|
|
|
maxHeight.value = underSpace;
|
2022-01-28 04:14:21 +01:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
// 画面から横にはみ出る場合
|
|
|
|
if (left + width - window.pageXOffset > window.innerWidth) {
|
|
|
|
left = window.innerWidth - width + window.pageXOffset - 1;
|
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2022-02-13 08:35:53 +01:00
|
|
|
const underSpace = (window.innerHeight - MARGIN) - (top - window.pageYOffset);
|
2022-03-19 14:03:53 +01:00
|
|
|
const upperSpace = (srcRect.top - MARGIN);
|
2022-02-13 08:35:53 +01:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
// 画面から縦にはみ出る場合
|
|
|
|
if (top + height - window.pageYOffset > (window.innerHeight - MARGIN)) {
|
2022-03-06 15:21:19 +01:00
|
|
|
if (props.noOverlap && props.anchor.x === 'center') {
|
2022-01-28 04:14:21 +01:00
|
|
|
if (underSpace >= (upperSpace / 3)) {
|
2022-02-13 08:35:53 +01:00
|
|
|
maxHeight.value = underSpace;
|
2022-01-28 04:14:21 +01:00
|
|
|
} else {
|
2022-02-13 08:35:53 +01:00
|
|
|
maxHeight.value = upperSpace;
|
2022-01-28 04:14:21 +01:00
|
|
|
top = window.pageYOffset + ((upperSpace + MARGIN) - height);
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
2022-01-28 04:14:21 +01:00
|
|
|
} else {
|
|
|
|
top = (window.innerHeight - MARGIN) - height + window.pageYOffset - 1;
|
2021-02-27 18:22:53 +01:00
|
|
|
}
|
2022-02-13 08:35:53 +01:00
|
|
|
} else {
|
|
|
|
maxHeight.value = underSpace;
|
2022-01-28 04:14:21 +01:00
|
|
|
}
|
|
|
|
}
|
2021-02-27 18:22:53 +01:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
if (top < 0) {
|
|
|
|
top = MARGIN;
|
|
|
|
}
|
2021-02-27 18:22:53 +01:00
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
if (left < 0) {
|
|
|
|
left = 0;
|
|
|
|
}
|
2021-02-27 18:22:53 +01:00
|
|
|
|
2022-03-06 15:21:19 +01:00
|
|
|
let transformOriginX = 'center';
|
|
|
|
let transformOriginY = 'center';
|
|
|
|
|
2022-03-19 14:03:53 +01:00
|
|
|
if (top >= srcRect.top + props.src.offsetHeight + (fixed.value ? 0 : window.pageYOffset)) {
|
2022-03-06 15:21:19 +01:00
|
|
|
transformOriginY = 'top';
|
2022-03-19 14:03:53 +01:00
|
|
|
} else if ((top + height) <= srcRect.top + (fixed.value ? 0 : window.pageYOffset)) {
|
2022-03-06 15:21:19 +01:00
|
|
|
transformOriginY = 'bottom';
|
|
|
|
}
|
|
|
|
|
2022-03-19 14:03:53 +01:00
|
|
|
if (left >= srcRect.left + props.src.offsetWidth + (fixed.value ? 0 : window.pageXOffset)) {
|
|
|
|
transformOriginX = 'left';
|
|
|
|
} else if ((left + width) <= srcRect.left + (fixed.value ? 0 : window.pageXOffset)) {
|
|
|
|
transformOriginX = 'right';
|
2022-01-28 04:14:21 +01:00
|
|
|
}
|
2021-02-27 18:22:53 +01:00
|
|
|
|
2022-03-06 15:21:19 +01:00
|
|
|
transformOrigin.value = `${transformOriginX} ${transformOriginY}`;
|
|
|
|
|
2022-01-28 04:14:21 +01:00
|
|
|
popover.style.left = left + 'px';
|
|
|
|
popover.style.top = top + 'px';
|
|
|
|
};
|
|
|
|
|
|
|
|
const childRendered = () => {
|
|
|
|
// モーダルコンテンツにマウスボタンが押され、コンテンツ外でマウスボタンが離されたときにモーダルバックグラウンドクリックと判定させないためにマウスイベントを監視しフラグ管理する
|
|
|
|
const el = content.value!.children[0];
|
|
|
|
el.addEventListener('mousedown', ev => {
|
|
|
|
contentClicking = true;
|
|
|
|
window.addEventListener('mouseup', ev => {
|
|
|
|
// click イベントより先に mouseup イベントが発生するかもしれないのでちょっと待つ
|
|
|
|
window.setTimeout(() => {
|
|
|
|
contentClicking = false;
|
|
|
|
}, 100);
|
|
|
|
}, { passive: true, once: true });
|
|
|
|
}, { passive: true });
|
|
|
|
};
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
watch(() => props.src, async () => {
|
|
|
|
if (props.src) {
|
|
|
|
// eslint-disable-next-line vue/no-mutating-props
|
|
|
|
props.src.style.pointerEvents = 'none';
|
|
|
|
}
|
|
|
|
fixed.value = (type.value === 'drawer') || (getFixedContainer(props.src) != null);
|
|
|
|
|
2022-06-10 07:36:55 +02:00
|
|
|
await nextTick();
|
2022-01-28 04:14:21 +01:00
|
|
|
|
|
|
|
align();
|
|
|
|
}, { immediate: true, });
|
|
|
|
|
|
|
|
nextTick(() => {
|
|
|
|
const popover = content.value;
|
|
|
|
new ResizeObserver((entries, observer) => {
|
|
|
|
align();
|
|
|
|
}).observe(popover!);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
defineExpose({
|
|
|
|
close,
|
2020-10-17 13:12:00 +02:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2021-03-05 08:59:43 +01:00
|
|
|
.modal-enter-active, .modal-leave-active {
|
|
|
|
> .bg {
|
2021-12-16 18:14:40 +01:00
|
|
|
transition: opacity 0.2s !important;
|
2021-03-05 08:59:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
> .content {
|
2021-12-16 18:14:40 +01:00
|
|
|
transform-origin: var(--transformOrigin);
|
|
|
|
transition: opacity 0.2s, transform 0.2s !important;
|
2021-03-05 08:59:43 +01:00
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
2021-03-05 08:59:43 +01:00
|
|
|
.modal-enter-from, .modal-leave-to {
|
|
|
|
> .bg {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .content {
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0;
|
2021-12-16 18:14:40 +01:00
|
|
|
transform-origin: var(--transformOrigin);
|
2021-03-05 08:59:43 +01:00
|
|
|
transform: scale(0.9);
|
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
|
|
|
|
2021-03-05 08:59:43 +01:00
|
|
|
.modal-popup-enter-active, .modal-popup-leave-active {
|
|
|
|
> .bg {
|
2021-12-16 18:14:40 +01:00
|
|
|
transition: opacity 0.2s !important;
|
2021-03-05 08:59:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
> .content {
|
2021-12-16 18:14:40 +01:00
|
|
|
transform-origin: var(--transformOrigin);
|
|
|
|
transition: opacity 0.2s cubic-bezier(0, 0, 0.2, 1), transform 0.2s cubic-bezier(0, 0, 0.2, 1) !important;
|
2021-03-05 08:59:43 +01:00
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
2021-03-05 08:59:43 +01:00
|
|
|
.modal-popup-enter-from, .modal-popup-leave-to {
|
|
|
|
> .bg {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .content {
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0;
|
2021-12-16 18:14:40 +01:00
|
|
|
transform-origin: var(--transformOrigin);
|
2021-03-05 08:59:43 +01:00
|
|
|
transform: scale(0.9);
|
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
|
|
|
|
2021-12-16 18:14:40 +01:00
|
|
|
.modal-drawer-enter-active {
|
|
|
|
> .bg {
|
|
|
|
transition: opacity 0.2s !important;
|
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2021-12-16 18:14:40 +01:00
|
|
|
> .content {
|
|
|
|
transition: transform 0.2s cubic-bezier(0,.5,0,1) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.modal-drawer-leave-active {
|
|
|
|
> .bg {
|
|
|
|
transition: opacity 0.2s !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .content {
|
|
|
|
transition: transform 0.2s cubic-bezier(0,.5,0,1) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.modal-drawer-enter-from, .modal-drawer-leave-to {
|
|
|
|
> .bg {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .content {
|
|
|
|
pointer-events: none;
|
|
|
|
transform: translateY(100%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.qzhlnise {
|
2021-12-17 05:15:06 +01:00
|
|
|
> .bg {
|
|
|
|
&.transparent {
|
|
|
|
background: transparent;
|
|
|
|
-webkit-backdrop-filter: none;
|
|
|
|
backdrop-filter: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-16 18:14:40 +01:00
|
|
|
&.dialog {
|
|
|
|
> .content {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2020-10-17 13:12:00 +02:00
|
|
|
margin: auto;
|
2021-12-16 18:14:40 +01:00
|
|
|
padding: 32px;
|
|
|
|
// TODO: mask-imageはiOSだとやたら重い。なんとかしたい
|
|
|
|
-webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 32px, rgba(0,0,0,1) calc(100% - 32px), rgba(0,0,0,0) 100%);
|
|
|
|
mask-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 32px, rgba(0,0,0,1) calc(100% - 32px), rgba(0,0,0,0) 100%);
|
|
|
|
overflow: auto;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
@media (max-width: 500px) {
|
|
|
|
padding: 16px;
|
|
|
|
-webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 16px, rgba(0,0,0,1) calc(100% - 16px), rgba(0,0,0,0) 100%);
|
|
|
|
mask-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 16px, rgba(0,0,0,1) calc(100% - 16px), rgba(0,0,0,0) 100%);
|
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2021-03-05 08:59:43 +01:00
|
|
|
> ::v-deep(*) {
|
2021-12-16 18:14:40 +01:00
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.top {
|
|
|
|
> ::v-deep(*) {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.popup {
|
|
|
|
> .content {
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
&.fixed {
|
|
|
|
position: fixed;
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-16 18:14:40 +01:00
|
|
|
&.drawer {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: clip;
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2021-12-16 18:14:40 +01:00
|
|
|
> .content {
|
2020-10-17 13:12:00 +02:00
|
|
|
position: fixed;
|
2021-12-16 18:14:40 +01:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
margin: auto;
|
|
|
|
|
|
|
|
> ::v-deep(*) {
|
|
|
|
margin: auto;
|
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
|
|
|
}
|
2021-12-16 18:14:40 +01:00
|
|
|
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
|
|
|
</style>
|