2023-07-27 07:31:52 +02:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-07-11 03:13:11 +02:00
|
|
|
<template>
|
2023-01-10 02:30:38 +01:00
|
|
|
<div :class="[$style.root, { [$style.rootIsMobile]: isMobile }]">
|
2021-12-03 14:09:40 +01:00
|
|
|
<XSidebar v-if="!isMobile"/>
|
2020-07-11 03:13:11 +02:00
|
|
|
|
2023-01-10 02:30:38 +01:00
|
|
|
<div :class="$style.main">
|
2023-12-10 09:53:38 +01:00
|
|
|
<XAnnouncements v-if="$i"/>
|
2023-01-10 02:30:38 +01:00
|
|
|
<XStatusBars/>
|
2023-06-24 05:58:26 +02:00
|
|
|
<div ref="columnsEl" :class="[$style.sections, { [$style.center]: deckStore.reactiveState.columnAlign.value === 'center', [$style.snapScroll]: snapScroll }]" @contextmenu.self.prevent="onContextmenu" @wheel.self="onWheel">
|
2023-05-20 03:05:35 +02:00
|
|
|
<!-- sectionを利用しているのは、deck.vue側でcolumnに対してfirst-of-typeを効かせるため -->
|
|
|
|
<section
|
|
|
|
v-for="ids in layout"
|
|
|
|
:class="$style.section"
|
|
|
|
:style="columns.filter(c => ids.includes(c.id)).some(c => c.flexible) ? { flex: 1, minWidth: '350px' } : { width: Math.max(...columns.filter(c => ids.includes(c.id)).map(c => c.width)) + 'px' }"
|
2023-06-24 05:58:26 +02:00
|
|
|
@wheel.self="onWheel"
|
2023-05-20 03:05:35 +02:00
|
|
|
>
|
|
|
|
<component
|
|
|
|
:is="columnComponents[columns.find(c => c.id === id)!.type] ?? XTlColumn"
|
|
|
|
v-for="id in ids"
|
|
|
|
:ref="id"
|
|
|
|
:key="id"
|
2023-01-10 02:30:38 +01:00
|
|
|
:class="$style.column"
|
2023-05-20 03:05:35 +02:00
|
|
|
:column="columns.find(c => c.id === id)"
|
|
|
|
:isStacked="ids.length > 1"
|
2023-06-24 05:58:26 +02:00
|
|
|
@headerWheel="onWheel"
|
2022-07-03 16:13:41 +02:00
|
|
|
/>
|
2023-05-20 03:05:35 +02:00
|
|
|
</section>
|
2023-01-10 02:30:38 +01:00
|
|
|
<div v-if="layout.length === 0" class="_panel" :class="$style.onboarding">
|
2022-07-03 16:13:41 +02:00
|
|
|
<div>{{ i18n.ts._deck.introduction }}</div>
|
2023-01-10 02:30:38 +01:00
|
|
|
<MkButton primary style="margin: 1em auto;" @click="addColumn">{{ i18n.ts._deck.addColumn }}</MkButton>
|
2022-07-03 16:13:41 +02:00
|
|
|
<div>{{ i18n.ts._deck.introduction2 }}</div>
|
2022-07-03 13:30:58 +02:00
|
|
|
</div>
|
2023-01-10 02:30:38 +01:00
|
|
|
<div :class="$style.sideMenu">
|
|
|
|
<div :class="$style.sideMenuTop">
|
|
|
|
<button v-tooltip.noDelay.left="`${i18n.ts._deck.profile}: ${deckStore.state.profile}`" :class="$style.sideMenuButton" class="_button" @click="changeProfile"><i class="ti ti-caret-down"></i></button>
|
|
|
|
<button v-tooltip.noDelay.left="i18n.ts._deck.deleteProfile" :class="$style.sideMenuButton" class="_button" @click="deleteProfile"><i class="ti ti-trash"></i></button>
|
2022-07-16 08:19:44 +02:00
|
|
|
</div>
|
2023-01-10 02:30:38 +01:00
|
|
|
<div :class="$style.sideMenuMiddle">
|
|
|
|
<button v-tooltip.noDelay.left="i18n.ts._deck.addColumn" :class="$style.sideMenuButton" class="_button" @click="addColumn"><i class="ti ti-plus"></i></button>
|
2022-07-16 08:19:44 +02:00
|
|
|
</div>
|
2023-01-10 02:30:38 +01:00
|
|
|
<div :class="$style.sideMenuBottom">
|
|
|
|
<button v-tooltip.noDelay.left="i18n.ts.settings" :class="$style.sideMenuButton" class="_button" @click="showSettings"><i class="ti ti-settings"></i></button>
|
2022-07-16 08:19:44 +02:00
|
|
|
</div>
|
2022-07-03 13:30:58 +02:00
|
|
|
</div>
|
2022-07-03 07:40:02 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-11 03:13:11 +02:00
|
|
|
|
2023-01-10 02:30:38 +01:00
|
|
|
<div v-if="isMobile" :class="$style.nav">
|
|
|
|
<button :class="$style.navButton" class="_button" @click="drawerMenuShowing = true"><i :class="$style.navButtonIcon" class="ti ti-menu-2"></i><span v-if="menuIndicated" :class="$style.navButtonIndicator"><i class="_indicatorCircle"></i></span></button>
|
|
|
|
<button :class="$style.navButton" class="_button" @click="mainRouter.push('/')"><i :class="$style.navButtonIcon" class="ti ti-home"></i></button>
|
2023-11-01 05:34:05 +01:00
|
|
|
<button :class="$style.navButton" class="_button" @click="mainRouter.push('/my/notifications')">
|
|
|
|
<i :class="$style.navButtonIcon" class="ti ti-bell"></i>
|
|
|
|
<span v-if="$i?.hasUnreadNotification" :class="$style.navButtonIndicator">
|
|
|
|
<span class="_indicateCounter" :class="$style.itemIndicateValueIcon">{{ $i.unreadNotificationsCount > 99 ? '99+' : $i.unreadNotificationsCount }}</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
2023-01-10 11:53:33 +01:00
|
|
|
<button :class="$style.postButton" class="_button" @click="os.post()"><i :class="$style.navButtonIcon" class="ti ti-pencil"></i></button>
|
2021-12-03 14:09:40 +01:00
|
|
|
</div>
|
|
|
|
|
2023-01-10 12:17:08 +01:00
|
|
|
<Transition
|
2023-05-19 13:52:15 +02:00
|
|
|
:enterActiveClass="defaultStore.state.animation ? $style.transition_menuDrawerBg_enterActive : ''"
|
|
|
|
:leaveActiveClass="defaultStore.state.animation ? $style.transition_menuDrawerBg_leaveActive : ''"
|
|
|
|
:enterFromClass="defaultStore.state.animation ? $style.transition_menuDrawerBg_enterFrom : ''"
|
|
|
|
:leaveToClass="defaultStore.state.animation ? $style.transition_menuDrawerBg_leaveTo : ''"
|
2023-01-10 12:17:08 +01:00
|
|
|
>
|
2022-06-20 10:38:49 +02:00
|
|
|
<div
|
|
|
|
v-if="drawerMenuShowing"
|
2023-01-10 02:30:38 +01:00
|
|
|
:class="$style.menuBg"
|
|
|
|
class="_modalBg"
|
2021-12-03 14:09:40 +01:00
|
|
|
@click="drawerMenuShowing = false"
|
|
|
|
@touchstart.passive="drawerMenuShowing = false"
|
|
|
|
></div>
|
2022-12-30 05:37:14 +01:00
|
|
|
</Transition>
|
2021-12-03 14:09:40 +01:00
|
|
|
|
2023-01-10 12:17:08 +01:00
|
|
|
<Transition
|
2023-05-19 13:52:15 +02:00
|
|
|
:enterActiveClass="defaultStore.state.animation ? $style.transition_menuDrawer_enterActive : ''"
|
|
|
|
:leaveActiveClass="defaultStore.state.animation ? $style.transition_menuDrawer_leaveActive : ''"
|
|
|
|
:enterFromClass="defaultStore.state.animation ? $style.transition_menuDrawer_enterFrom : ''"
|
|
|
|
:leaveToClass="defaultStore.state.animation ? $style.transition_menuDrawer_leaveTo : ''"
|
2023-01-10 12:17:08 +01:00
|
|
|
>
|
|
|
|
<div v-if="drawerMenuShowing" :class="$style.menu">
|
|
|
|
<XDrawerMenu/>
|
|
|
|
</div>
|
2022-12-30 05:37:14 +01:00
|
|
|
</Transition>
|
2020-07-11 03:13:11 +02:00
|
|
|
|
2020-10-24 18:21:41 +02:00
|
|
|
<XCommon/>
|
2020-07-11 03:13:11 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-03-20 19:11:14 +01:00
|
|
|
<script lang="ts" setup>
|
2023-12-07 06:42:09 +01:00
|
|
|
import { computed, defineAsyncComponent, ref, watch, shallowRef } from 'vue';
|
2020-07-11 03:13:11 +02:00
|
|
|
import { v4 as uuid } from 'uuid';
|
2022-06-20 10:38:49 +02:00
|
|
|
import XCommon from './_common_/common.vue';
|
2023-09-19 09:37:43 +02:00
|
|
|
import { deckStore, addColumn as addColumnToStore, loadDeck, getProfiles, deleteProfile as deleteProfile_ } from './deck/deck-store.js';
|
2022-07-14 10:42:12 +02:00
|
|
|
import XSidebar from '@/ui/_common_/navbar.vue';
|
|
|
|
import XDrawerMenu from '@/ui/_common_/navbar-for-mobile.vue';
|
2022-09-06 11:21:49 +02:00
|
|
|
import MkButton from '@/components/MkButton.vue';
|
2023-09-19 09:37:43 +02:00
|
|
|
import * as os from '@/os.js';
|
|
|
|
import { navbarItemDef } from '@/navbar.js';
|
|
|
|
import { $i } from '@/account.js';
|
|
|
|
import { i18n } from '@/i18n.js';
|
|
|
|
import { unisonReload } from '@/scripts/unison-reload.js';
|
|
|
|
import { deviceKind } from '@/scripts/device-kind.js';
|
|
|
|
import { defaultStore } from '@/store.js';
|
2023-05-20 03:05:35 +02:00
|
|
|
import XMainColumn from '@/ui/deck/main-column.vue';
|
|
|
|
import XTlColumn from '@/ui/deck/tl-column.vue';
|
|
|
|
import XAntennaColumn from '@/ui/deck/antenna-column.vue';
|
|
|
|
import XListColumn from '@/ui/deck/list-column.vue';
|
|
|
|
import XChannelColumn from '@/ui/deck/channel-column.vue';
|
|
|
|
import XNotificationsColumn from '@/ui/deck/notifications-column.vue';
|
|
|
|
import XWidgetsColumn from '@/ui/deck/widgets-column.vue';
|
|
|
|
import XMentionsColumn from '@/ui/deck/mentions-column.vue';
|
|
|
|
import XDirectColumn from '@/ui/deck/direct-column.vue';
|
|
|
|
import XRoleTimelineColumn from '@/ui/deck/role-timeline-column.vue';
|
2024-01-30 13:07:34 +01:00
|
|
|
import { mainRouter } from '@/router/main.js';
|
2022-07-03 07:40:02 +02:00
|
|
|
const XStatusBars = defineAsyncComponent(() => import('@/ui/_common_/statusbars.vue'));
|
2023-08-13 13:12:29 +02:00
|
|
|
const XAnnouncements = defineAsyncComponent(() => import('@/ui/_common_/announcements.vue'));
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2023-05-20 03:05:35 +02:00
|
|
|
const columnComponents = {
|
|
|
|
main: XMainColumn,
|
|
|
|
widgets: XWidgetsColumn,
|
|
|
|
notifications: XNotificationsColumn,
|
|
|
|
tl: XTlColumn,
|
|
|
|
list: XListColumn,
|
|
|
|
channel: XChannelColumn,
|
|
|
|
antenna: XAntennaColumn,
|
|
|
|
mentions: XMentionsColumn,
|
|
|
|
direct: XDirectColumn,
|
|
|
|
roleTimeline: XRoleTimelineColumn,
|
|
|
|
};
|
|
|
|
|
2022-07-16 22:12:22 +02:00
|
|
|
mainRouter.navHook = (path, flag): boolean => {
|
|
|
|
if (flag === 'forcePage') return false;
|
2022-07-05 08:55:55 +02:00
|
|
|
const noMainColumn = !deckStore.state.columns.some(x => x.type === 'main');
|
|
|
|
if (deckStore.state.navWindow || noMainColumn) {
|
2022-06-28 10:59:23 +02:00
|
|
|
os.pageWindow(path);
|
|
|
|
return true;
|
2022-07-05 08:55:55 +02:00
|
|
|
}
|
|
|
|
return false;
|
|
|
|
};
|
2022-06-28 10:59:23 +02:00
|
|
|
|
2022-03-20 19:11:14 +01:00
|
|
|
const isMobile = ref(window.innerWidth <= 500);
|
|
|
|
window.addEventListener('resize', () => {
|
|
|
|
isMobile.value = window.innerWidth <= 500;
|
2020-07-11 03:13:11 +02:00
|
|
|
});
|
2022-03-20 19:11:14 +01:00
|
|
|
|
2023-02-23 11:49:24 +01:00
|
|
|
const snapScroll = deviceKind === 'smartphone' || deviceKind === 'tablet';
|
2022-03-20 19:11:14 +01:00
|
|
|
const drawerMenuShowing = ref(false);
|
|
|
|
|
2022-06-20 10:38:49 +02:00
|
|
|
const route = 'TODO';
|
2022-03-20 19:11:14 +01:00
|
|
|
watch(route, () => {
|
|
|
|
drawerMenuShowing.value = false;
|
|
|
|
});
|
|
|
|
|
|
|
|
const columns = deckStore.reactiveState.columns;
|
|
|
|
const layout = deckStore.reactiveState.layout;
|
|
|
|
const menuIndicated = computed(() => {
|
|
|
|
if ($i == null) return false;
|
2022-07-14 10:42:12 +02:00
|
|
|
for (const def in navbarItemDef) {
|
|
|
|
if (navbarItemDef[def].indicated) return true;
|
2022-03-20 19:11:14 +01:00
|
|
|
}
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
2022-07-05 09:07:53 +02:00
|
|
|
function showSettings() {
|
|
|
|
os.pageWindow('/settings/deck');
|
|
|
|
}
|
|
|
|
|
2023-12-07 06:42:09 +01:00
|
|
|
const columnsEl = shallowRef<HTMLElement>();
|
2022-07-03 07:40:02 +02:00
|
|
|
|
2022-03-20 19:11:14 +01:00
|
|
|
const addColumn = async (ev) => {
|
|
|
|
const columns = [
|
|
|
|
'main',
|
|
|
|
'widgets',
|
|
|
|
'notifications',
|
|
|
|
'tl',
|
|
|
|
'antenna',
|
|
|
|
'list',
|
2023-02-09 02:35:28 +01:00
|
|
|
'channel',
|
2022-03-20 19:11:14 +01:00
|
|
|
'mentions',
|
|
|
|
'direct',
|
2023-04-12 04:40:08 +02:00
|
|
|
'roleTimeline',
|
2022-03-20 19:11:14 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
const { canceled, result: column } = await os.select({
|
|
|
|
title: i18n.ts._deck.addColumn,
|
|
|
|
items: columns.map(column => ({
|
2024-01-20 00:11:59 +01:00
|
|
|
value: column, text: i18n.ts._deck._columns[column],
|
2022-06-20 10:38:49 +02:00
|
|
|
})),
|
2022-03-20 19:11:14 +01:00
|
|
|
});
|
|
|
|
if (canceled) return;
|
|
|
|
|
|
|
|
addColumnToStore({
|
|
|
|
type: column,
|
|
|
|
id: uuid(),
|
2024-01-20 00:11:59 +01:00
|
|
|
name: i18n.ts._deck._columns[column],
|
2022-03-20 19:11:14 +01:00
|
|
|
width: 330,
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
const onContextmenu = (ev) => {
|
|
|
|
os.contextMenu([{
|
|
|
|
text: i18n.ts._deck.addColumn,
|
|
|
|
action: addColumn,
|
|
|
|
}], ev);
|
|
|
|
};
|
|
|
|
|
2023-06-24 05:58:26 +02:00
|
|
|
function onWheel(ev: WheelEvent) {
|
|
|
|
if (ev.deltaX === 0) {
|
2023-12-07 06:42:09 +01:00
|
|
|
columnsEl.value.scrollLeft += ev.deltaY;
|
2022-03-20 19:11:14 +01:00
|
|
|
}
|
2023-06-24 05:58:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
document.documentElement.style.overflowY = 'hidden';
|
|
|
|
document.documentElement.style.scrollBehavior = 'auto';
|
2022-03-20 19:11:14 +01:00
|
|
|
|
2023-05-20 03:12:18 +02:00
|
|
|
loadDeck();
|
2022-07-16 08:19:44 +02:00
|
|
|
|
|
|
|
function changeProfile(ev: MouseEvent) {
|
|
|
|
const items = ref([{
|
|
|
|
text: deckStore.state.profile,
|
|
|
|
active: true.valueOf,
|
|
|
|
}]);
|
|
|
|
getProfiles().then(profiles => {
|
|
|
|
items.value = [{
|
|
|
|
text: deckStore.state.profile,
|
|
|
|
active: true.valueOf,
|
|
|
|
}, ...(profiles.filter(k => k !== deckStore.state.profile).map(k => ({
|
|
|
|
text: k,
|
|
|
|
action: () => {
|
|
|
|
deckStore.set('profile', k);
|
|
|
|
unisonReload();
|
|
|
|
},
|
2023-12-12 02:26:37 +01:00
|
|
|
}))), { type: 'divider' }, {
|
2022-07-16 08:19:44 +02:00
|
|
|
text: i18n.ts._deck.newProfile,
|
2022-12-19 11:01:30 +01:00
|
|
|
icon: 'ti ti-plus',
|
2022-07-16 08:19:44 +02:00
|
|
|
action: async () => {
|
|
|
|
const { canceled, result: name } = await os.inputText({
|
|
|
|
title: i18n.ts._deck.profile,
|
2024-01-30 11:53:53 +01:00
|
|
|
minLength: 1,
|
2022-07-16 08:19:44 +02:00
|
|
|
});
|
|
|
|
if (canceled) return;
|
|
|
|
|
|
|
|
deckStore.set('profile', name);
|
|
|
|
unisonReload();
|
|
|
|
},
|
|
|
|
}];
|
|
|
|
});
|
|
|
|
os.popupMenu(items, ev.currentTarget ?? ev.target);
|
|
|
|
}
|
|
|
|
|
|
|
|
async function deleteProfile() {
|
|
|
|
const { canceled } = await os.confirm({
|
|
|
|
type: 'warning',
|
2024-01-20 00:11:59 +01:00
|
|
|
text: i18n.tsx.deleteAreYouSure({ x: deckStore.state.profile }),
|
2022-07-16 08:19:44 +02:00
|
|
|
});
|
|
|
|
if (canceled) return;
|
|
|
|
|
|
|
|
deleteProfile_(deckStore.state.profile);
|
|
|
|
deckStore.set('profile', 'default');
|
|
|
|
unisonReload();
|
|
|
|
}
|
2020-07-11 03:13:11 +02:00
|
|
|
</script>
|
|
|
|
|
2023-06-09 05:51:16 +02:00
|
|
|
<style>
|
|
|
|
html,
|
|
|
|
body {
|
2023-06-09 05:55:27 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: clip;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
overscroll-behavior: none;
|
2023-06-09 05:51:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#misskey_app {
|
2023-06-09 05:55:27 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: clip;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2023-06-09 05:51:16 +02:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2023-01-10 12:17:08 +01:00
|
|
|
<style lang="scss" module>
|
|
|
|
.transition_menuDrawerBg_enterActive,
|
|
|
|
.transition_menuDrawerBg_leaveActive {
|
2021-12-03 14:09:40 +01:00
|
|
|
opacity: 1;
|
2023-01-10 12:17:08 +01:00
|
|
|
transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
|
2021-12-03 14:09:40 +01:00
|
|
|
}
|
2023-01-10 12:17:08 +01:00
|
|
|
.transition_menuDrawerBg_enterFrom,
|
|
|
|
.transition_menuDrawerBg_leaveTo {
|
2021-12-03 14:09:40 +01:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2023-01-10 12:17:08 +01:00
|
|
|
.transition_menuDrawer_enterActive,
|
|
|
|
.transition_menuDrawer_leaveActive {
|
2021-12-03 14:09:40 +01:00
|
|
|
opacity: 1;
|
2023-01-10 12:17:08 +01:00
|
|
|
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 14:09:40 +01:00
|
|
|
}
|
2023-01-10 12:17:08 +01:00
|
|
|
.transition_menuDrawer_enterFrom,
|
|
|
|
.transition_menuDrawer_leaveTo {
|
2021-12-03 14:09:40 +01:00
|
|
|
opacity: 0;
|
2023-01-10 12:17:08 +01:00
|
|
|
transform: translateX(-240px);
|
2021-12-03 14:09:40 +01:00
|
|
|
}
|
|
|
|
|
2023-01-10 02:30:38 +01:00
|
|
|
.root {
|
2020-07-11 03:13:11 +02:00
|
|
|
$nav-hide-threshold: 650px; // TODO: どこかに集約したい
|
|
|
|
|
|
|
|
--margin: var(--marginHalf);
|
|
|
|
|
2023-05-26 04:31:39 +02:00
|
|
|
--columnGap: 6px;
|
2022-07-03 13:30:58 +02:00
|
|
|
|
2020-07-11 03:13:11 +02:00
|
|
|
display: flex;
|
2022-11-13 03:43:23 +01:00
|
|
|
height: 100dvh;
|
2020-07-11 03:13:11 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
flex: 1;
|
2023-01-10 02:30:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.rootIsMobile {
|
|
|
|
padding-bottom: 100px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.main {
|
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2023-05-20 03:05:35 +02:00
|
|
|
.sections {
|
2023-01-10 02:30:38 +01:00
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: clip;
|
2023-05-31 05:24:00 +02:00
|
|
|
overscroll-behavior: contain;
|
2023-05-26 04:31:39 +02:00
|
|
|
background: var(--deckBg);
|
2023-01-10 02:30:38 +01:00
|
|
|
|
|
|
|
&.center {
|
2023-05-20 03:05:35 +02:00
|
|
|
> .section:first-of-type {
|
2023-05-26 06:30:26 +02:00
|
|
|
margin-left: auto !important;
|
2023-01-10 02:30:38 +01:00
|
|
|
}
|
|
|
|
|
2023-05-20 03:05:35 +02:00
|
|
|
> .section:last-of-type {
|
2023-05-26 06:30:26 +02:00
|
|
|
margin-right: auto !important;
|
2023-01-10 02:30:38 +01:00
|
|
|
}
|
|
|
|
}
|
2023-02-19 11:54:19 +01:00
|
|
|
|
|
|
|
&.snapScroll {
|
|
|
|
scroll-snap-type: x mandatory;
|
|
|
|
}
|
2023-01-10 02:30:38 +01:00
|
|
|
}
|
|
|
|
|
2023-05-20 03:05:35 +02:00
|
|
|
.section {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-02-19 11:54:19 +01:00
|
|
|
scroll-snap-align: start;
|
2023-01-10 02:30:38 +01:00
|
|
|
flex-shrink: 0;
|
2023-05-27 05:09:19 +02:00
|
|
|
padding-top: var(--columnGap);
|
|
|
|
padding-bottom: var(--columnGap);
|
2023-05-29 12:37:03 +02:00
|
|
|
padding-left: var(--columnGap);
|
2020-07-11 03:13:11 +02:00
|
|
|
|
2023-05-20 03:05:35 +02:00
|
|
|
> .column:not(:last-of-type) {
|
2023-05-26 04:31:39 +02:00
|
|
|
margin-bottom: var(--columnGap);
|
2020-07-11 03:13:11 +02:00
|
|
|
}
|
2023-01-10 02:30:38 +01:00
|
|
|
}
|
2020-07-11 03:13:11 +02:00
|
|
|
|
2023-01-10 02:30:38 +01:00
|
|
|
.onboarding {
|
|
|
|
padding: 32px;
|
|
|
|
height: min-content;
|
|
|
|
text-align: center;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sideMenu {
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
margin-left: auto;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sideMenuButton {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
aspect-ratio: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sideMenuTop {
|
|
|
|
margin-bottom: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sideMenuMiddle {
|
|
|
|
margin-top: auto;
|
|
|
|
margin-bottom: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sideMenuBottom {
|
|
|
|
margin-top: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menuBg {
|
|
|
|
z-index: 1001;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1001;
|
|
|
|
height: 100dvh;
|
|
|
|
width: 240px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
contain: strict;
|
|
|
|
overflow: auto;
|
|
|
|
overscroll-behavior: contain;
|
|
|
|
background: var(--navBg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav {
|
|
|
|
position: fixed;
|
|
|
|
z-index: 1000;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
padding: 12px 12px max(12px, env(safe-area-inset-bottom, 0px)) 12px;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
|
|
grid-gap: 8px;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
-webkit-backdrop-filter: var(--blur, blur(32px));
|
|
|
|
backdrop-filter: var(--blur, blur(32px));
|
|
|
|
background-color: var(--header);
|
|
|
|
border-top: solid 0.5px var(--divider);
|
|
|
|
}
|
|
|
|
|
|
|
|
.navButton {
|
|
|
|
position: relative;
|
|
|
|
padding: 0;
|
|
|
|
aspect-ratio: 1;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 60px;
|
|
|
|
margin: auto;
|
|
|
|
border-radius: 100%;
|
|
|
|
background: var(--panel);
|
|
|
|
color: var(--fg);
|
|
|
|
|
|
|
|
&:hover {
|
2023-01-10 11:52:44 +01:00
|
|
|
background: var(--panelHighlight);
|
2020-07-11 03:13:11 +02:00
|
|
|
}
|
2021-12-03 14:09:40 +01:00
|
|
|
|
2023-01-10 11:52:44 +01:00
|
|
|
&:active {
|
|
|
|
background: var(--X2);
|
2021-12-03 14:09:40 +01:00
|
|
|
}
|
2023-01-10 08:26:51 +01:00
|
|
|
}
|
2021-12-03 14:09:40 +01:00
|
|
|
|
2023-01-10 08:26:51 +01:00
|
|
|
.postButton {
|
2023-01-10 11:53:33 +01:00
|
|
|
composes: navButton;
|
2023-01-10 08:26:51 +01:00
|
|
|
background: linear-gradient(90deg, var(--buttonGradateA), var(--buttonGradateB));
|
|
|
|
color: var(--fgOnAccent);
|
2023-01-10 11:52:44 +01:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: linear-gradient(90deg, var(--X8), var(--X8));
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background: linear-gradient(90deg, var(--X8), var(--X8));
|
|
|
|
}
|
2020-07-11 03:13:11 +02:00
|
|
|
}
|
2023-01-10 02:30:38 +01:00
|
|
|
|
|
|
|
.navButtonIcon {
|
|
|
|
font-size: 18px;
|
2023-01-13 05:24:38 +01:00
|
|
|
vertical-align: middle;
|
2023-01-10 02:30:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.navButtonIndicator {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
color: var(--indicator);
|
|
|
|
font-size: 16px;
|
2024-01-21 12:26:52 +01:00
|
|
|
animation: global-blink 1s infinite;
|
2023-11-01 05:34:05 +01:00
|
|
|
|
|
|
|
&:has(.itemIndicateValueIcon) {
|
|
|
|
animation: none;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
2023-01-10 02:30:38 +01:00
|
|
|
}
|
2020-07-11 03:13:11 +02:00
|
|
|
</style>
|