2020-10-17 14:12:00 +03:00
|
|
|
<template>
|
2021-10-08 16:03:06 +03:00
|
|
|
<div class="mk-app" :class="{ wallpaper, isMobile }" :style="`--headerHeight:` + headerHeight + 'px'">
|
2021-07-19 05:36:35 +03:00
|
|
|
<XHeaderMenu v-if="showMenuOnTop"/>
|
|
|
|
|
|
|
|
<div class="columns" :class="{ fullView, withGlobalHeader: showMenuOnTop }">
|
|
|
|
<template v-if="!isMobile">
|
|
|
|
<div class="sidebar" v-if="!showMenuOnTop">
|
|
|
|
<XSidebar/>
|
|
|
|
</div>
|
|
|
|
<div class="widgets left" ref="widgetsLeft" v-else>
|
|
|
|
<XWidgets @mounted="attachSticky('widgetsLeft')" :place="'left'"/>
|
|
|
|
</div>
|
|
|
|
</template>
|
2021-04-10 06:40:50 +03:00
|
|
|
|
2021-09-17 16:39:15 +03:00
|
|
|
<main class="main" @contextmenu.stop="onContextmenu" :style="{ background: pageInfo?.bg }">
|
2021-04-15 17:27:28 +03:00
|
|
|
<header class="header" @click="onHeaderClick">
|
2021-10-08 16:03:06 +03:00
|
|
|
<XHeader :info="pageInfo" v-get-size="(w, h) => headerHeight = h" :thin="true"/>
|
2021-04-10 06:40:50 +03:00
|
|
|
</header>
|
2021-04-11 18:05:13 +03:00
|
|
|
<div class="content" :class="{ _flat_: !fullView }">
|
2020-10-17 14:12:00 +03:00
|
|
|
<router-view v-slot="{ Component }">
|
2020-12-19 03:55:52 +02:00
|
|
|
<transition :name="$store.state.animation ? 'page' : ''" mode="out-in" @enter="onTransition">
|
2020-10-17 14:12:00 +03:00
|
|
|
<keep-alive :include="['timeline']">
|
|
|
|
<component :is="Component" :ref="changePage"/>
|
|
|
|
</keep-alive>
|
|
|
|
</transition>
|
|
|
|
</router-view>
|
|
|
|
</div>
|
|
|
|
</main>
|
2020-10-24 19:21:41 +03:00
|
|
|
|
2021-07-19 05:36:35 +03:00
|
|
|
<div v-if="isDesktop" class="widgets right" ref="widgetsRight">
|
|
|
|
<XWidgets @mounted="attachSticky('widgetsRight')" :place="null"/>
|
2021-04-10 06:40:50 +03:00
|
|
|
</div>
|
2020-10-17 14:12:00 +03:00
|
|
|
</div>
|
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
<div class="buttons" v-if="isMobile">
|
2021-04-20 17:22:59 +03:00
|
|
|
<button class="button nav _button" @click="showDrawerNav" ref="navButton"><i class="fas fa-bars"></i><span v-if="navIndicated" class="indicator"><i class="fas fa-circle"></i></span></button>
|
|
|
|
<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>
|
|
|
|
<button class="button post _button" @click="post"><i class="fas fa-pencil-alt"></i></button>
|
2020-10-17 14:12:00 +03:00
|
|
|
</div>
|
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
<XDrawerSidebar ref="drawerNav" class="sidebar" v-if="isMobile"/>
|
2020-10-17 14:12:00 +03:00
|
|
|
|
|
|
|
<transition name="tray-back">
|
|
|
|
<div class="tray-back _modalBg"
|
|
|
|
v-if="widgetsShowing"
|
|
|
|
@click="widgetsShowing = false"
|
|
|
|
@touchstart.passive="widgetsShowing = false"
|
|
|
|
></div>
|
|
|
|
</transition>
|
|
|
|
|
|
|
|
<transition name="tray">
|
|
|
|
<XWidgets v-if="widgetsShowing" class="tray"/>
|
|
|
|
</transition>
|
|
|
|
|
2021-09-04 11:54:24 +03:00
|
|
|
<iframe v-if="$store.state.aiChanMode" class="ivnzpscs" ref="live2d" src="https://misskey-dev.github.io/mascot-web/?scale=2&y=1.4"></iframe>
|
|
|
|
|
2020-10-24 19:21:41 +03:00
|
|
|
<XCommon/>
|
2020-10-17 14:12:00 +03:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2021-09-04 11:54:24 +03:00
|
|
|
import { defineComponent, defineAsyncComponent, markRaw } from 'vue';
|
2021-03-23 10:30:14 +02:00
|
|
|
import { instanceName } from '@client/config';
|
|
|
|
import { StickySidebar } from '@client/scripts/sticky-sidebar';
|
2021-04-10 06:40:50 +03:00
|
|
|
import XSidebar from './default.sidebar.vue';
|
|
|
|
import XDrawerSidebar from '@client/ui/_common_/sidebar.vue';
|
2020-10-24 19:21:41 +03:00
|
|
|
import XCommon from './_common_/common.vue';
|
2020-10-17 14:12:00 +03:00
|
|
|
import XHeader from './_common_/header.vue';
|
2021-03-23 10:30:14 +02:00
|
|
|
import * as os from '@client/os';
|
2021-07-19 05:36:35 +03:00
|
|
|
import { menuDef } from '@client/menu';
|
2021-04-10 06:54:12 +03:00
|
|
|
import * as symbols from '@client/symbols';
|
2020-10-17 14:12:00 +03:00
|
|
|
|
|
|
|
const DESKTOP_THRESHOLD = 1100;
|
2021-04-10 06:40:50 +03:00
|
|
|
const MOBILE_THRESHOLD = 600;
|
2020-10-17 14:12:00 +03:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
2020-10-24 19:21:41 +03:00
|
|
|
XCommon,
|
2020-10-17 14:12:00 +03:00
|
|
|
XSidebar,
|
2021-04-10 06:40:50 +03:00
|
|
|
XDrawerSidebar,
|
2020-10-17 14:12:00 +03:00
|
|
|
XHeader,
|
2021-07-19 05:36:35 +03:00
|
|
|
XHeaderMenu: defineAsyncComponent(() => import('./default.header.vue')),
|
2020-10-17 14:12:00 +03:00
|
|
|
XWidgets: defineAsyncComponent(() => import('./default.widgets.vue')),
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
pageInfo: null,
|
2021-10-08 16:03:06 +03:00
|
|
|
headerHeight: 0,
|
2021-07-19 05:36:35 +03:00
|
|
|
menuDef: menuDef,
|
2021-04-10 06:40:50 +03:00
|
|
|
isMobile: window.innerWidth <= MOBILE_THRESHOLD,
|
|
|
|
isDesktop: window.innerWidth >= DESKTOP_THRESHOLD,
|
2020-10-17 14:12:00 +03:00
|
|
|
widgetsShowing: false,
|
2021-04-11 18:05:13 +03:00
|
|
|
fullView: false,
|
2020-10-17 14:12:00 +03:00
|
|
|
wallpaper: localStorage.getItem('wallpaper') != null,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
navIndicated(): boolean {
|
|
|
|
for (const def in this.menuDef) {
|
|
|
|
if (def === 'notifications') continue; // 通知は下にボタンとして表示されてるから
|
|
|
|
if (this.menuDef[def].indicated) return true;
|
|
|
|
}
|
|
|
|
return false;
|
2021-07-19 05:36:35 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
showMenuOnTop(): boolean {
|
|
|
|
return !this.isMobile && this.$store.state.menuDisplay === 'top';
|
2020-10-17 14:12:00 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
|
|
document.documentElement.style.overflowY = 'scroll';
|
|
|
|
|
2020-12-19 03:55:52 +02:00
|
|
|
if (this.$store.state.widgets.length === 0) {
|
|
|
|
this.$store.set('widgets', [{
|
2020-10-17 14:12:00 +03:00
|
|
|
name: 'calendar',
|
2021-07-25 07:07:08 +03:00
|
|
|
id: 'a', place: null, data: {}
|
2020-10-17 14:12:00 +03:00
|
|
|
}, {
|
|
|
|
name: 'notifications',
|
2021-07-25 07:07:08 +03:00
|
|
|
id: 'b', place: null, data: {}
|
2020-10-17 14:12:00 +03:00
|
|
|
}, {
|
|
|
|
name: 'trends',
|
2021-07-25 07:07:08 +03:00
|
|
|
id: 'c', place: null, data: {}
|
2020-10-17 14:12:00 +03:00
|
|
|
}]);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
2021-04-10 06:40:50 +03:00
|
|
|
window.addEventListener('resize', () => {
|
|
|
|
this.isMobile = (window.innerWidth <= MOBILE_THRESHOLD);
|
|
|
|
this.isDesktop = (window.innerWidth >= DESKTOP_THRESHOLD);
|
|
|
|
}, { passive: true });
|
2021-09-04 11:54:24 +03:00
|
|
|
|
|
|
|
if (this.$store.state.aiChanMode) {
|
|
|
|
const iframeRect = this.$refs.live2d.getBoundingClientRect();
|
|
|
|
window.addEventListener('mousemove', ev => {
|
|
|
|
this.$refs.live2d.contentWindow.postMessage({
|
|
|
|
type: 'moveCursor',
|
|
|
|
body: {
|
|
|
|
x: ev.clientX - iframeRect.left,
|
|
|
|
y: ev.clientY - iframeRect.top,
|
|
|
|
}
|
|
|
|
}, '*');
|
|
|
|
}, { passive: true });
|
2021-09-17 16:39:15 +03:00
|
|
|
window.addEventListener('touchmove', ev => {
|
|
|
|
this.$refs.live2d.contentWindow.postMessage({
|
|
|
|
type: 'moveCursor',
|
|
|
|
body: {
|
|
|
|
x: ev.touches[0].clientX - iframeRect.left,
|
|
|
|
y: ev.touches[0].clientY - iframeRect.top,
|
|
|
|
}
|
|
|
|
}, '*');
|
|
|
|
}, { passive: true });
|
2021-09-04 11:54:24 +03:00
|
|
|
}
|
2020-10-17 14:12:00 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
changePage(page) {
|
|
|
|
if (page == null) return;
|
2021-04-10 06:54:12 +03:00
|
|
|
if (page[symbols.PAGE_INFO]) {
|
|
|
|
this.pageInfo = page[symbols.PAGE_INFO];
|
2020-12-30 04:01:33 +02:00
|
|
|
document.title = `${this.pageInfo.title} | ${instanceName}`;
|
2020-10-17 14:12:00 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2021-07-19 05:36:35 +03:00
|
|
|
attachSticky(ref) {
|
2021-07-27 15:37:32 +03:00
|
|
|
const sticky = new StickySidebar(this.$refs[ref], this.$store.state.menuDisplay === 'top' ? 0 : 16, this.$store.state.menuDisplay === 'top' ? 60 : 0); // TODO: ヘッダーの高さを60pxと決め打ちしているのを直す
|
2020-10-17 14:12:00 +03:00
|
|
|
window.addEventListener('scroll', () => {
|
|
|
|
sticky.calc(window.scrollY);
|
|
|
|
}, { passive: true });
|
|
|
|
},
|
|
|
|
|
2020-12-27 03:42:38 +02:00
|
|
|
post() {
|
|
|
|
os.post();
|
|
|
|
},
|
|
|
|
|
2020-10-17 14:12:00 +03:00
|
|
|
top() {
|
|
|
|
window.scroll({ top: 0, behavior: 'smooth' });
|
|
|
|
},
|
|
|
|
|
2021-08-05 16:43:14 +03:00
|
|
|
back() {
|
|
|
|
history.back();
|
|
|
|
},
|
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
showDrawerNav() {
|
|
|
|
this.$refs.drawerNav.show();
|
|
|
|
},
|
|
|
|
|
2020-10-17 14:12:00 +03:00
|
|
|
onTransition() {
|
|
|
|
if (window._scroll) window._scroll();
|
|
|
|
},
|
|
|
|
|
2020-11-07 05:30:16 +02:00
|
|
|
onHeaderClick() {
|
|
|
|
window.scroll({ top: 0, behavior: 'smooth' });
|
|
|
|
},
|
|
|
|
|
2020-10-25 03:26:19 +03:00
|
|
|
onContextmenu(e) {
|
2021-02-06 17:11:16 +02:00
|
|
|
const isLink = (el: HTMLElement) => {
|
|
|
|
if (el.tagName === 'A') return true;
|
|
|
|
if (el.parentElement) {
|
|
|
|
return isLink(el.parentElement);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
if (isLink(e.target)) return;
|
2021-04-29 06:31:47 +03:00
|
|
|
if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO', 'CANVAS'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return;
|
2021-01-11 11:49:39 +02:00
|
|
|
if (window.getSelection().toString() !== '') return;
|
2020-11-03 03:06:19 +02:00
|
|
|
const path = this.$route.path;
|
2020-10-25 03:26:19 +03:00
|
|
|
os.contextMenu([{
|
|
|
|
type: 'label',
|
2020-11-03 03:06:19 +02:00
|
|
|
text: path,
|
2021-04-11 18:05:13 +03:00
|
|
|
}, {
|
2021-04-20 17:22:59 +03:00
|
|
|
icon: this.fullView ? 'fas fa-compress' : 'fas fa-expand',
|
2021-04-11 18:05:13 +03:00
|
|
|
text: this.fullView ? this.$ts.quitFullView : this.$ts.fullView,
|
|
|
|
action: () => {
|
|
|
|
this.fullView = !this.fullView;
|
|
|
|
}
|
2020-10-25 03:26:19 +03:00
|
|
|
}, {
|
2021-04-20 17:22:59 +03:00
|
|
|
icon: 'fas fa-window-maximize',
|
2020-12-26 03:47:36 +02:00
|
|
|
text: this.$ts.openInWindow,
|
2020-10-25 03:26:19 +03:00
|
|
|
action: () => {
|
2020-11-03 03:06:19 +02:00
|
|
|
os.pageWindow(path);
|
2020-10-25 03:26:19 +03:00
|
|
|
}
|
|
|
|
}], e);
|
|
|
|
},
|
2021-09-04 11:54:24 +03:00
|
|
|
|
|
|
|
onAiClick(ev) {
|
|
|
|
//if (this.live2d) this.live2d.click(ev);
|
|
|
|
}
|
2020-10-17 14:12:00 +03:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.tray-enter-active,
|
|
|
|
.tray-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);
|
|
|
|
}
|
|
|
|
.tray-enter-from,
|
|
|
|
.tray-leave-active {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateX(240px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tray-back-enter-active,
|
|
|
|
.tray-back-leave-active {
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
|
|
}
|
|
|
|
.tray-back-enter-from,
|
|
|
|
.tray-back-leave-active {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mk-app {
|
2021-04-10 06:40:50 +03:00
|
|
|
$ui-font-size: 1em;
|
|
|
|
$widgets-hide-threshold: 1200px;
|
|
|
|
$nav-icon-only-width: 78px; // TODO: どこかに集約したい
|
2020-10-17 14:12:00 +03:00
|
|
|
|
|
|
|
// ほんとは単に 100vh と書きたいところだが... https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
|
|
|
|
min-height: calc(var(--vh, 1vh) * 100);
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
2020-11-28 06:30:09 +02:00
|
|
|
&.wallpaper {
|
|
|
|
background: var(--wallpaperOverlay);
|
2021-08-11 16:34:45 +03:00
|
|
|
//backdrop-filter: var(--blur, blur(4px));
|
2020-11-28 06:30:09 +02:00
|
|
|
}
|
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
&.isMobile {
|
|
|
|
> .columns {
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
2020-12-29 04:47:36 +02:00
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
> .main {
|
|
|
|
margin: 0;
|
2021-04-11 17:49:13 +03:00
|
|
|
padding-bottom: 92px;
|
2021-04-10 06:40:50 +03:00
|
|
|
border: none;
|
|
|
|
width: 100%;
|
|
|
|
border-radius: 0;
|
2020-10-17 14:12:00 +03:00
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
> .header {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2020-10-17 14:12:00 +03:00
|
|
|
}
|
2021-04-10 06:40:50 +03:00
|
|
|
}
|
2020-10-17 14:12:00 +03:00
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
> .columns {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
max-width: 100%;
|
2021-04-23 05:31:43 +03:00
|
|
|
//margin: 32px 0;
|
2021-04-10 06:40:50 +03:00
|
|
|
|
2021-04-11 18:05:13 +03:00
|
|
|
&.fullView {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
> .sidebar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .widgets {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .main {
|
|
|
|
margin: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
> .main {
|
2021-04-12 19:59:18 +03:00
|
|
|
min-width: 0;
|
2021-04-10 06:40:50 +03:00
|
|
|
width: 750px;
|
|
|
|
margin: 0 16px 0 0;
|
2021-08-05 16:43:14 +03:00
|
|
|
background: var(--panel);
|
2021-08-07 16:06:50 +03:00
|
|
|
border-left: solid 1px var(--divider);
|
|
|
|
border-right: solid 1px var(--divider);
|
2021-04-23 05:31:43 +03:00
|
|
|
border-radius: 0;
|
2021-08-07 16:06:50 +03:00
|
|
|
overflow: clip;
|
2021-04-10 06:40:50 +03:00
|
|
|
--margin: 12px;
|
|
|
|
|
|
|
|
> .header {
|
|
|
|
position: sticky;
|
|
|
|
z-index: 1000;
|
2021-07-19 05:36:35 +03:00
|
|
|
top: var(--globalHeaderHeight, 0px);
|
2021-08-11 16:34:45 +03:00
|
|
|
-webkit-backdrop-filter: var(--blur, blur(32px));
|
|
|
|
backdrop-filter: var(--blur, blur(32px));
|
2021-04-10 06:40:50 +03:00
|
|
|
background-color: var(--header);
|
2021-08-05 16:43:14 +03:00
|
|
|
border-bottom: solid 0.5px var(--divider);
|
2021-04-10 06:40:50 +03:00
|
|
|
}
|
2020-10-17 14:12:00 +03:00
|
|
|
|
|
|
|
> .content {
|
2021-10-08 16:03:06 +03:00
|
|
|
--stickyTop: calc(var(--globalHeaderHeight, 0px) + var(--headerHeight));
|
2020-10-17 14:12:00 +03:00
|
|
|
}
|
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
@media (max-width: 850px) {
|
2021-10-08 16:03:06 +03:00
|
|
|
padding-top: var(--headerHeight);
|
2020-10-17 17:49:17 +03:00
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
> .header {
|
|
|
|
position: fixed;
|
|
|
|
width: calc(100% - #{$nav-icon-only-width});
|
2020-10-17 17:49:17 +03:00
|
|
|
}
|
2020-10-17 14:12:00 +03:00
|
|
|
}
|
|
|
|
}
|
2020-10-24 19:21:41 +03:00
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
> .widgets {
|
2021-07-27 15:37:32 +03:00
|
|
|
//--panelBorder: none;
|
2021-04-16 09:44:17 +03:00
|
|
|
width: 300px;
|
2021-04-23 05:31:43 +03:00
|
|
|
margin-top: 16px;
|
2020-10-17 14:12:00 +03:00
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
@media (max-width: $widgets-hide-threshold) {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-07-19 05:36:35 +03:00
|
|
|
|
|
|
|
&.left {
|
|
|
|
margin-right: 16px;
|
|
|
|
}
|
2020-10-17 14:12:00 +03:00
|
|
|
}
|
|
|
|
|
2021-04-23 05:31:43 +03:00
|
|
|
> .sidebar {
|
|
|
|
margin-top: 16px;
|
|
|
|
}
|
|
|
|
|
2021-07-19 05:36:35 +03:00
|
|
|
&.withGlobalHeader {
|
|
|
|
--globalHeaderHeight: 60px; // TODO: 60pxと決め打ちしているのを直す
|
|
|
|
|
|
|
|
> .main {
|
2021-07-27 15:37:32 +03:00
|
|
|
margin-top: 0;
|
2021-08-07 16:06:50 +03:00
|
|
|
border: solid 1px var(--divider);
|
2021-07-19 05:36:35 +03:00
|
|
|
border-radius: var(--radius);
|
|
|
|
}
|
|
|
|
|
|
|
|
> .widgets {
|
|
|
|
--stickyTop: var(--globalHeaderHeight);
|
2021-07-27 15:37:32 +03:00
|
|
|
margin-top: 0;
|
2021-07-19 05:36:35 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
@media (max-width: 850px) {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
> .sidebar {
|
|
|
|
border-right: solid 0.5px var(--divider);
|
|
|
|
}
|
2020-10-17 14:12:00 +03:00
|
|
|
|
2021-04-10 06:40:50 +03:00
|
|
|
> .main {
|
|
|
|
margin: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2020-10-17 14:12:00 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .buttons {
|
|
|
|
position: fixed;
|
|
|
|
z-index: 1000;
|
|
|
|
bottom: 0;
|
2020-12-29 10:31:46 +02:00
|
|
|
padding: 16px;
|
2020-10-17 14:12:00 +03:00
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
2021-08-11 16:34:45 +03:00
|
|
|
-webkit-backdrop-filter: var(--blur, blur(32px));
|
|
|
|
backdrop-filter: var(--blur, blur(32px));
|
2020-12-29 10:31:46 +02:00
|
|
|
background-color: var(--header);
|
2021-04-10 06:40:50 +03:00
|
|
|
border-top: solid 0.5px var(--divider);
|
2020-10-17 14:12:00 +03:00
|
|
|
|
|
|
|
> .button {
|
|
|
|
position: relative;
|
2020-12-29 10:31:46 +02:00
|
|
|
flex: 1;
|
2020-10-17 14:12:00 +03:00
|
|
|
padding: 0;
|
|
|
|
margin: auto;
|
|
|
|
height: 64px;
|
2020-12-29 10:31:46 +02:00
|
|
|
border-radius: 8px;
|
2020-10-17 14:12:00 +03:00
|
|
|
background: var(--panel);
|
|
|
|
color: var(--fg);
|
|
|
|
|
2020-12-29 10:31:46 +02:00
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 400px) {
|
|
|
|
height: 60px;
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-17 14:12:00 +03:00
|
|
|
&:hover {
|
|
|
|
background: var(--X2);
|
|
|
|
}
|
|
|
|
|
2021-04-20 17:22:59 +03:00
|
|
|
> .indicator {
|
2020-10-17 14:12:00 +03: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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .tray-back {
|
|
|
|
z-index: 1001;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .tray {
|
|
|
|
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;
|
|
|
|
background: var(--bg);
|
|
|
|
}
|
2021-09-04 11:54:24 +03:00
|
|
|
|
|
|
|
> .ivnzpscs {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 300px;
|
|
|
|
height: 600px;
|
|
|
|
border: none;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2020-10-17 14:12:00 +03:00
|
|
|
}
|
|
|
|
</style>
|