2021-04-09 22:40:50 -05:00
|
|
|
<template>
|
2021-12-03 07:09:40 -06:00
|
|
|
<div class="dkgtipfy" :class="{ wallpaper }">
|
|
|
|
<XSidebar v-if="!isMobile" class="sidebar"/>
|
2021-04-09 22:40:50 -05:00
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
<div class="contents" :style="{ background: pageInfo?.bg }" @contextmenu.stop="onContextmenu">
|
|
|
|
<main>
|
2021-04-09 22:40:50 -05:00
|
|
|
<div class="content">
|
2021-10-23 14:03:07 -05:00
|
|
|
<MkStickyContainer>
|
|
|
|
<template #header><MkHeader v-if="pageInfo && !pageInfo.hideHeader" :info="pageInfo"/></template>
|
|
|
|
<router-view v-slot="{ Component }">
|
|
|
|
<transition :name="$store.state.animation ? 'page' : ''" mode="out-in" @enter="onTransition">
|
2022-01-21 06:47:36 -06:00
|
|
|
<keep-alive :include="['MkTimelinePage']">
|
2021-10-23 14:03:07 -05:00
|
|
|
<component :is="Component" :ref="changePage"/>
|
|
|
|
</keep-alive>
|
|
|
|
</transition>
|
|
|
|
</router-view>
|
|
|
|
</MkStickyContainer>
|
2021-04-09 22:40:50 -05:00
|
|
|
</div>
|
|
|
|
<div class="spacer"></div>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
<XSideView v-if="isDesktop" ref="side" class="side"/>
|
2021-04-09 22:40:50 -05:00
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
<div v-if="isDesktop" ref="widgetsEl" class="widgets">
|
2021-04-09 22:40:50 -05:00
|
|
|
<XWidgets @mounted="attachSticky"/>
|
|
|
|
</div>
|
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
<button class="widgetButton _button" :class="{ show: true }" @click="widgetsShowing = true"><i class="fas fa-layer-group"></i></button>
|
|
|
|
|
|
|
|
<div v-if="isMobile" class="buttons">
|
|
|
|
<button class="button nav _button" @click="drawerMenuShowing = true"><i class="fas fa-bars"></i><span v-if="menuIndicated" class="indicator"><i class="fas fa-circle"></i></span></button>
|
2021-04-20 09:22:59 -05:00
|
|
|
<button class="button home _button" @click="$route.name === 'index' ? top() : $router.push('/')"><i class="fas fa-home"></i></button>
|
|
|
|
<button class="button notifications _button" @click="$router.push('/my/notifications')"><i class="fas fa-bell"></i><span v-if="$i.hasUnreadNotification" class="indicator"><i class="fas fa-circle"></i></span></button>
|
|
|
|
<button class="button widget _button" @click="widgetsShowing = true"><i class="fas fa-layer-group"></i></button>
|
2021-12-03 07:09:40 -06:00
|
|
|
<button class="button post _button" @click="post()"><i class="fas fa-pencil-alt"></i></button>
|
2021-04-09 22:40:50 -05:00
|
|
|
</div>
|
|
|
|
|
2022-01-25 08:18:21 -06:00
|
|
|
<transition :name="$store.state.animation ? 'menuDrawer-back' : ''">
|
2021-12-03 07:09:40 -06:00
|
|
|
<div v-if="drawerMenuShowing"
|
|
|
|
class="menuDrawer-back _modalBg"
|
|
|
|
@click="drawerMenuShowing = false"
|
|
|
|
@touchstart.passive="drawerMenuShowing = false"
|
|
|
|
></div>
|
|
|
|
</transition>
|
|
|
|
|
2022-01-25 08:18:21 -06:00
|
|
|
<transition :name="$store.state.animation ? 'menuDrawer' : ''">
|
2021-12-03 07:09:40 -06:00
|
|
|
<XDrawerMenu v-if="drawerMenuShowing" class="menuDrawer"/>
|
|
|
|
</transition>
|
2021-04-09 22:40:50 -05:00
|
|
|
|
2022-01-25 08:18:21 -06:00
|
|
|
<transition :name="$store.state.animation ? 'widgetsDrawer-back' : ''">
|
2021-11-19 04:36:12 -06:00
|
|
|
<div v-if="widgetsShowing"
|
2021-12-03 07:09:40 -06:00
|
|
|
class="widgetsDrawer-back _modalBg"
|
2021-04-09 22:40:50 -05:00
|
|
|
@click="widgetsShowing = false"
|
|
|
|
@touchstart.passive="widgetsShowing = false"
|
|
|
|
></div>
|
|
|
|
</transition>
|
|
|
|
|
2022-01-25 08:18:21 -06:00
|
|
|
<transition :name="$store.state.animation ? 'widgetsDrawer' : ''">
|
2021-12-03 07:09:40 -06:00
|
|
|
<XWidgets v-if="widgetsShowing" class="widgetsDrawer"/>
|
2021-04-09 22:40:50 -05:00
|
|
|
</transition>
|
|
|
|
|
|
|
|
<XCommon/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2021-12-03 07:09:40 -06:00
|
|
|
import { defineComponent, defineAsyncComponent, provide, onMounted, computed, ref, watch } from 'vue';
|
2021-11-11 11:02:25 -06:00
|
|
|
import { instanceName } from '@/config';
|
|
|
|
import { StickySidebar } from '@/scripts/sticky-sidebar';
|
|
|
|
import XSidebar from '@/ui/_common_/sidebar.vue';
|
2021-12-03 07:09:40 -06:00
|
|
|
import XDrawerMenu from '@/ui/_common_/sidebar-for-mobile.vue';
|
2021-04-09 22:40:50 -05:00
|
|
|
import XCommon from './_common_/common.vue';
|
2021-12-03 07:09:40 -06:00
|
|
|
import XSideView from './classic.side.vue';
|
2021-11-11 11:02:25 -06:00
|
|
|
import * as os from '@/os';
|
|
|
|
import * as symbols from '@/symbols';
|
2021-12-03 07:09:40 -06:00
|
|
|
import { defaultStore } from '@/store';
|
|
|
|
import * as EventEmitter from 'eventemitter3';
|
|
|
|
import { menuDef } from '@/menu';
|
|
|
|
import { useRoute } from 'vue-router';
|
|
|
|
import { i18n } from '@/i18n';
|
2021-04-09 22:40:50 -05:00
|
|
|
|
|
|
|
const DESKTOP_THRESHOLD = 1100;
|
2021-12-03 07:09:40 -06:00
|
|
|
const MOBILE_THRESHOLD = 500;
|
2021-04-09 22:40:50 -05:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
|
|
|
XCommon,
|
|
|
|
XSidebar,
|
2021-12-03 07:09:40 -06:00
|
|
|
XDrawerMenu,
|
2021-04-09 22:40:50 -05:00
|
|
|
XWidgets: defineAsyncComponent(() => import('./universal.widgets.vue')),
|
2021-12-03 07:09:40 -06:00
|
|
|
XSideView, // NOTE: dynamic importするとAsyncComponentWrapperが間に入るせいでref取得できなくて面倒になる
|
2021-04-09 22:40:50 -05:00
|
|
|
},
|
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
setup() {
|
|
|
|
const isDesktop = ref(window.innerWidth >= DESKTOP_THRESHOLD);
|
|
|
|
const isMobile = ref(window.innerWidth <= MOBILE_THRESHOLD);
|
|
|
|
window.addEventListener('resize', () => {
|
|
|
|
isMobile.value = window.innerWidth <= MOBILE_THRESHOLD;
|
|
|
|
});
|
2021-04-09 22:40:50 -05:00
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
const pageInfo = ref();
|
|
|
|
const widgetsEl = ref<HTMLElement>();
|
|
|
|
const widgetsShowing = ref(false);
|
2021-04-09 22:40:50 -05:00
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
const sideViewController = new EventEmitter();
|
|
|
|
|
|
|
|
provide('sideViewHook', isDesktop.value ? (url) => {
|
|
|
|
sideViewController.emit('navigate', url);
|
|
|
|
} : null);
|
|
|
|
|
|
|
|
const menuIndicated = computed(() => {
|
|
|
|
for (const def in menuDef) {
|
2021-04-09 22:40:50 -05:00
|
|
|
if (def === 'notifications') continue; // 通知は下にボタンとして表示されてるから
|
2021-12-03 07:09:40 -06:00
|
|
|
if (menuDef[def].indicated) return true;
|
2021-04-09 22:40:50 -05:00
|
|
|
}
|
|
|
|
return false;
|
2021-12-03 07:09:40 -06:00
|
|
|
});
|
|
|
|
|
|
|
|
const drawerMenuShowing = ref(false);
|
|
|
|
|
|
|
|
const route = useRoute();
|
|
|
|
watch(route, () => {
|
|
|
|
drawerMenuShowing.value = false;
|
|
|
|
});
|
2021-04-09 22:40:50 -05:00
|
|
|
|
|
|
|
document.documentElement.style.overflowY = 'scroll';
|
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
if (defaultStore.state.widgets.length === 0) {
|
|
|
|
defaultStore.set('widgets', [{
|
2021-04-09 22:40:50 -05:00
|
|
|
name: 'calendar',
|
|
|
|
id: 'a', place: 'right', data: {}
|
|
|
|
}, {
|
|
|
|
name: 'notifications',
|
|
|
|
id: 'b', place: 'right', data: {}
|
|
|
|
}, {
|
|
|
|
name: 'trends',
|
|
|
|
id: 'c', place: 'right', data: {}
|
|
|
|
}]);
|
|
|
|
}
|
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
onMounted(() => {
|
|
|
|
if (!isDesktop.value) {
|
|
|
|
window.addEventListener('resize', () => {
|
|
|
|
if (window.innerWidth >= DESKTOP_THRESHOLD) isDesktop.value = true;
|
|
|
|
}, { passive: true });
|
|
|
|
}
|
2021-04-09 22:40:50 -05:00
|
|
|
});
|
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
const changePage = (page) => {
|
2021-04-09 22:40:50 -05:00
|
|
|
if (page == null) return;
|
2021-04-09 22:54:12 -05:00
|
|
|
if (page[symbols.PAGE_INFO]) {
|
2021-12-03 07:09:40 -06:00
|
|
|
pageInfo.value = page[symbols.PAGE_INFO];
|
|
|
|
document.title = `${pageInfo.value.title} | ${instanceName}`;
|
2021-04-09 22:40:50 -05:00
|
|
|
}
|
2021-12-03 07:09:40 -06:00
|
|
|
};
|
2021-04-09 22:40:50 -05:00
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
const onContextmenu = (ev) => {
|
2021-04-09 22:40:50 -05:00
|
|
|
const isLink = (el: HTMLElement) => {
|
|
|
|
if (el.tagName === 'A') return true;
|
|
|
|
if (el.parentElement) {
|
|
|
|
return isLink(el.parentElement);
|
|
|
|
}
|
|
|
|
};
|
2021-12-03 07:09:40 -06:00
|
|
|
if (isLink(ev.target)) return;
|
|
|
|
if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO', 'CANVAS'].includes(ev.target.tagName) || ev.target.attributes['contenteditable']) return;
|
2021-04-09 22:40:50 -05:00
|
|
|
if (window.getSelection().toString() !== '') return;
|
2021-12-03 07:09:40 -06:00
|
|
|
const path = route.path;
|
2021-04-09 22:40:50 -05:00
|
|
|
os.contextMenu([{
|
|
|
|
type: 'label',
|
|
|
|
text: path,
|
|
|
|
}, {
|
2021-04-20 09:22:59 -05:00
|
|
|
icon: 'fas fa-columns',
|
2022-01-27 20:39:49 -06:00
|
|
|
text: i18n.ts.openInSideView,
|
2021-04-09 22:40:50 -05:00
|
|
|
action: () => {
|
|
|
|
this.$refs.side.navigate(path);
|
|
|
|
}
|
|
|
|
}, {
|
2021-04-20 09:22:59 -05:00
|
|
|
icon: 'fas fa-window-maximize',
|
2022-01-27 20:39:49 -06:00
|
|
|
text: i18n.ts.openInWindow,
|
2021-04-09 22:40:50 -05:00
|
|
|
action: () => {
|
|
|
|
os.pageWindow(path);
|
|
|
|
}
|
2021-12-03 07:09:40 -06:00
|
|
|
}], ev);
|
|
|
|
};
|
|
|
|
|
|
|
|
const attachSticky = (el) => {
|
|
|
|
const sticky = new StickySidebar(widgetsEl.value);
|
|
|
|
window.addEventListener('scroll', () => {
|
|
|
|
sticky.calc(window.scrollY);
|
|
|
|
}, { passive: true });
|
|
|
|
};
|
|
|
|
|
|
|
|
return {
|
|
|
|
pageInfo,
|
|
|
|
isDesktop,
|
|
|
|
isMobile,
|
|
|
|
widgetsEl,
|
|
|
|
widgetsShowing,
|
|
|
|
drawerMenuShowing,
|
|
|
|
menuIndicated,
|
|
|
|
wallpaper: localStorage.getItem('wallpaper') != null,
|
|
|
|
changePage,
|
|
|
|
top: () => {
|
|
|
|
window.scroll({ top: 0, behavior: 'smooth' });
|
|
|
|
},
|
|
|
|
onTransition: () => {
|
|
|
|
if (window._scroll) window._scroll();
|
|
|
|
},
|
|
|
|
post: os.post,
|
|
|
|
onContextmenu,
|
|
|
|
attachSticky,
|
|
|
|
};
|
|
|
|
},
|
2021-04-09 22:40:50 -05:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2021-12-03 07:09:40 -06:00
|
|
|
.widgetsDrawer-enter-active,
|
|
|
|
.widgetsDrawer-leave-active {
|
2021-04-09 22:40:50 -05:00
|
|
|
opacity: 1;
|
|
|
|
transform: translateX(0);
|
|
|
|
transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
|
|
}
|
2021-12-03 07:09:40 -06:00
|
|
|
.widgetsDrawer-enter-from,
|
|
|
|
.widgetsDrawer-leave-active {
|
2021-04-09 22:40:50 -05:00
|
|
|
opacity: 0;
|
|
|
|
transform: translateX(240px);
|
|
|
|
}
|
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
.widgetsDrawer-back-enter-active,
|
|
|
|
.widgetsDrawer-back-leave-active {
|
2021-04-09 22:40:50 -05:00
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
|
|
}
|
2021-12-03 07:09:40 -06:00
|
|
|
.widgetsDrawer-back-enter-from,
|
|
|
|
.widgetsDrawer-back-leave-active {
|
2021-04-09 22:40:50 -05:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
.menuDrawer-enter-active,
|
|
|
|
.menuDrawer-leave-active {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateX(0);
|
|
|
|
transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
|
|
}
|
|
|
|
.menuDrawer-enter-from,
|
|
|
|
.menuDrawer-leave-active {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateX(-240px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.menuDrawer-back-enter-active,
|
|
|
|
.menuDrawer-back-leave-active {
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
|
|
}
|
|
|
|
.menuDrawer-back-enter-from,
|
|
|
|
.menuDrawer-back-leave-active {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dkgtipfy {
|
2021-04-09 22:40:50 -05:00
|
|
|
$ui-font-size: 1em; // TODO: どこかに集約したい
|
|
|
|
$widgets-hide-threshold: 1090px;
|
|
|
|
|
|
|
|
// ほんとは単に 100vh と書きたいところだが... https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
|
|
|
|
min-height: calc(var(--vh, 1vh) * 100);
|
|
|
|
box-sizing: border-box;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
&.wallpaper {
|
|
|
|
background: var(--wallpaperOverlay);
|
2021-08-11 08:34:45 -05:00
|
|
|
//backdrop-filter: var(--blur, blur(4px));
|
2021-04-09 22:40:50 -05:00
|
|
|
}
|
|
|
|
|
2021-08-16 01:21:58 -05:00
|
|
|
> .sidebar {
|
2021-11-30 08:08:34 -06:00
|
|
|
border-right: solid 0.5px var(--divider);
|
2021-08-16 01:21:58 -05:00
|
|
|
}
|
|
|
|
|
2021-04-09 22:40:50 -05:00
|
|
|
> .contents {
|
|
|
|
width: 100%;
|
|
|
|
min-width: 0;
|
2021-08-14 08:35:15 -05:00
|
|
|
background: var(--panel);
|
2021-04-09 22:40:50 -05:00
|
|
|
|
|
|
|
> main {
|
|
|
|
min-width: 0;
|
|
|
|
|
|
|
|
> .spacer {
|
|
|
|
height: 82px;
|
|
|
|
|
|
|
|
@media (min-width: ($widgets-hide-threshold + 1px)) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .side {
|
|
|
|
min-width: 370px;
|
|
|
|
max-width: 370px;
|
|
|
|
border-left: solid 0.5px var(--divider);
|
|
|
|
}
|
|
|
|
|
|
|
|
> .widgets {
|
|
|
|
padding: 0 var(--margin);
|
2021-09-20 14:09:28 -05:00
|
|
|
border-left: solid 0.5px var(--divider);
|
|
|
|
background: var(--bg);
|
2021-04-09 22:40:50 -05:00
|
|
|
|
|
|
|
@media (max-width: $widgets-hide-threshold) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
/*
|
2021-04-09 22:40:50 -05:00
|
|
|
> .widgetButton {
|
|
|
|
display: block;
|
|
|
|
position: fixed;
|
|
|
|
z-index: 1000;
|
|
|
|
bottom: 32px;
|
|
|
|
right: 32px;
|
|
|
|
width: 64px;
|
|
|
|
height: 64px;
|
|
|
|
border-radius: 100%;
|
|
|
|
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);
|
|
|
|
font-size: 22px;
|
|
|
|
background: var(--panel);
|
|
|
|
|
|
|
|
&.navHidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: ($widgets-hide-threshold + 1px)) {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-12-03 07:09:40 -06:00
|
|
|
}*/
|
|
|
|
|
|
|
|
> .widgetButton {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .widgetsDrawer-back {
|
|
|
|
z-index: 1001;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .widgetsDrawer {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 1001;
|
|
|
|
// ほんとは単に 100vh と書きたいところだが... https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
|
|
|
|
height: calc(var(--vh, 1vh) * 100);
|
|
|
|
padding: var(--margin);
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: auto;
|
2021-12-03 07:22:08 -06:00
|
|
|
overscroll-behavior: contain;
|
2021-12-03 07:09:40 -06:00
|
|
|
background: var(--bg);
|
2021-04-09 22:40:50 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
> .buttons {
|
|
|
|
position: fixed;
|
|
|
|
z-index: 1000;
|
|
|
|
bottom: 0;
|
2021-12-03 07:09:40 -06:00
|
|
|
left: 0;
|
2021-04-09 22:40:50 -05:00
|
|
|
padding: 16px;
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
2021-08-11 08:34:45 -05:00
|
|
|
-webkit-backdrop-filter: var(--blur, blur(32px));
|
|
|
|
backdrop-filter: var(--blur, blur(32px));
|
2021-04-09 22:40:50 -05:00
|
|
|
background-color: var(--header);
|
|
|
|
|
|
|
|
> .button {
|
|
|
|
position: relative;
|
|
|
|
flex: 1;
|
|
|
|
padding: 0;
|
|
|
|
margin: auto;
|
|
|
|
height: 64px;
|
|
|
|
border-radius: 8px;
|
|
|
|
background: var(--panel);
|
|
|
|
color: var(--fg);
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 400px) {
|
|
|
|
height: 60px;
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--X2);
|
|
|
|
}
|
|
|
|
|
2021-04-20 09:22:59 -05:00
|
|
|
> .indicator {
|
2021-04-09 22:40:50 -05:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
color: var(--indicator);
|
|
|
|
font-size: 16px;
|
|
|
|
animation: blink 1s infinite;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> * {
|
|
|
|
font-size: 22px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
> .menuDrawer-back {
|
2021-04-09 22:40:50 -05:00
|
|
|
z-index: 1001;
|
|
|
|
}
|
|
|
|
|
2021-12-03 07:09:40 -06:00
|
|
|
> .menuDrawer {
|
2021-04-09 22:40:50 -05:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
2021-12-03 07:09:40 -06:00
|
|
|
left: 0;
|
2021-04-09 22:40:50 -05:00
|
|
|
z-index: 1001;
|
|
|
|
// ほんとは単に 100vh と書きたいところだが... https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
|
|
|
|
height: calc(var(--vh, 1vh) * 100);
|
2021-12-03 07:09:40 -06:00
|
|
|
width: 240px;
|
2021-04-09 22:40:50 -05:00
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: auto;
|
2021-12-03 07:22:08 -06:00
|
|
|
overscroll-behavior: contain;
|
2021-04-09 22:40:50 -05:00
|
|
|
background: var(--bg);
|
|
|
|
}
|
2021-12-03 07:09:40 -06:00
|
|
|
|
2021-04-09 22:40:50 -05:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
</style>
|