562 lines
22 KiB
Vue
562 lines
22 KiB
Vue
<script setup lang="ts">
|
||
import { computed, h, onScopeDispose, provide, ref, shallowRef, watch } from 'vue'
|
||
import { RouterLink, useRoute } from 'vue-router'
|
||
import {
|
||
NButton,
|
||
NConfigProvider,
|
||
NMessageProvider,
|
||
NGlobalStyle,
|
||
NLayout,
|
||
NLayoutHeader,
|
||
NMenu,
|
||
NScrollbar,
|
||
zhCN,
|
||
dateZhCN,
|
||
type MenuOption
|
||
} from 'naive-ui'
|
||
import {
|
||
Clapperboard,
|
||
Archive,
|
||
Camera,
|
||
Images,
|
||
Palette,
|
||
Fingerprint,
|
||
FolderOpen,
|
||
FileText,
|
||
Layers,
|
||
PanelLeftClose,
|
||
PanelLeftOpen,
|
||
Settings2,
|
||
X
|
||
} from '@lucide/vue'
|
||
import ActionMessageProvider from './components/ui/ActionMessageProvider.vue'
|
||
import { AppDialog, StudioLogo } from './components/ui'
|
||
import { useTheme } from './composables/useTheme'
|
||
import ThemeToggle from './components/ui/ThemeToggle.vue'
|
||
import { projectAccessKey, type ProjectAccess } from './features/projects/access'
|
||
|
||
/** 窄屏将侧栏改为全屏覆盖层,关闭后不再占用正文宽度。 */
|
||
const NARROW_NAV = '(max-width: 800px)'
|
||
/** 折叠侧栏只占图标宽度,悬停文字覆盖正文而不挤动布局。 */
|
||
const SIDER_COLLAPSED_WIDTH = 64
|
||
/** 桌面端展开侧栏宽度。 */
|
||
const SIDER_EXPANDED_WIDTH = 208
|
||
/** 菜单图标尺寸,折叠/展开共用,避免切换时缩放。 */
|
||
const NAV_ICON_SIZE = 20
|
||
|
||
/** 应用外壳固定在视口内,业务数据仍由各工作区自行加载。 */
|
||
const route = useRoute()
|
||
const narrowMedia = window.matchMedia(NARROW_NAV)
|
||
const narrow = ref(narrowMedia.matches)
|
||
const collapsed = ref(narrow.value)
|
||
const settingsOpen = ref(false)
|
||
/** 始终保留菜单文字节点,用 CSS 同步控制整列文字的进出动画。 */
|
||
const menuCollapsed = false
|
||
/** Naive Menu 的桌面折叠宽度;移动端覆盖层不参与正文宽度计算。 */
|
||
const siderCollapsedWidth = SIDER_COLLAPSED_WIDTH
|
||
/** 侧栏展开宽度仅用于桌面布局。 */
|
||
const siderExpandedWidth = SIDER_EXPANDED_WIDTH
|
||
/** 折叠与展开共用的图标左偏移,避免切换时图标跳动。 */
|
||
const navIconIndent = computed(() => (narrow.value ? 20 : 22))
|
||
|
||
/** 视口跨过断点时:进入窄屏收回侧栏。 */
|
||
function syncNarrow(event: MediaQueryListEvent) {
|
||
narrow.value = event.matches
|
||
if (event.matches) collapsed.value = true
|
||
}
|
||
narrowMedia.addEventListener('change', syncNarrow)
|
||
onScopeDispose(() => narrowMedia.removeEventListener('change', syncNarrow))
|
||
|
||
/** 宽屏与窄屏都只切换这一份侧栏的展开态。 */
|
||
function toggleNav() {
|
||
collapsed.value = !collapsed.value
|
||
}
|
||
|
||
/** 打开连接信息;窄屏先收回侧栏给弹窗腾出宽度。 */
|
||
function openSettings() {
|
||
if (narrow.value) collapsed.value = true
|
||
settingsOpen.value = true
|
||
}
|
||
|
||
watch(
|
||
() => route.fullPath,
|
||
() => {
|
||
if (narrow.value) collapsed.value = true
|
||
}
|
||
)
|
||
|
||
/** Esc 收回窄屏展开的侧栏。 */
|
||
function onKeydown(event: KeyboardEvent) {
|
||
if (event.key === 'Escape' && narrow.value && !collapsed.value) collapsed.value = true
|
||
}
|
||
window.addEventListener('keydown', onKeydown)
|
||
onScopeDispose(() => window.removeEventListener('keydown', onKeydown))
|
||
|
||
/** 顶栏菜单按钮在移动端使用更符合抽屉导航语义的可访问名称。 */
|
||
const navToggleLabel = computed(() => {
|
||
if (narrow.value) return collapsed.value ? '打开主菜单' : '关闭主菜单'
|
||
return collapsed.value ? '展开侧栏' : '折叠侧栏'
|
||
})
|
||
const { preference, theme, overrides } = useTheme()
|
||
const projectId = computed(() => String(route.params.projectId || ''))
|
||
const projectAccess = shallowRef<ProjectAccess | null>(null)
|
||
provide(projectAccessKey, projectAccess)
|
||
const currentProjectAccess = computed(() =>
|
||
projectAccess.value?.projectId === projectId.value ? projectAccess.value : null
|
||
)
|
||
const apiBase = import.meta.env.VITE_API_BASE_URL || '/api'
|
||
const workflowItems = [
|
||
['create-drama', '剧本创作', FileText],
|
||
['breakdown', '剧本拆解', Layers],
|
||
['visual-style', '视觉风格', Palette],
|
||
['subject-identity', '主体身份', Fingerprint],
|
||
['subject-images', '形态图片', Images],
|
||
['storyboard', '分镜设计', Camera],
|
||
['production', '镜头生产', Clapperboard]
|
||
] as const
|
||
|
||
/** 图标始终留在原位,名称由菜单本身显示,不再创建逐项浮层。 */
|
||
function createMenuIcon(icon: typeof FolderOpen) {
|
||
return () => h('span', { class: 'admin-menu-icon' }, [h(icon, { size: NAV_ICON_SIZE })])
|
||
}
|
||
|
||
/** 菜单链接使用 RouterLink,保留新标签打开和浏览器导航行为。 */
|
||
const menuOptions = computed<MenuOption[]>(() => {
|
||
return [
|
||
{
|
||
key: '/projects',
|
||
label: () => h(RouterLink, { to: '/projects' }, () => h('span', { class: 'admin-menu-label' }, '我的剧本')),
|
||
icon: createMenuIcon(FolderOpen)
|
||
},
|
||
{
|
||
key: '/assets',
|
||
label: () => h(RouterLink, { to: '/assets' }, () => h('span', { class: 'admin-menu-label' }, '资产库')),
|
||
icon: createMenuIcon(Archive)
|
||
},
|
||
...(projectId.value
|
||
? [
|
||
{ type: 'divider' as const, key: 'divider' },
|
||
...workflowItems.map(([path, label, icon]) => {
|
||
const sectionAccess = currentProjectAccess.value?.sections[path]
|
||
const disabled = sectionAccess ? !sectionAccess.enabled : path !== 'create-drama'
|
||
const target = '/projects/' + projectId.value + '/' + path
|
||
return {
|
||
key: target,
|
||
disabled,
|
||
label: () =>
|
||
disabled
|
||
? h(
|
||
'span',
|
||
{
|
||
class: 'admin-menu-label',
|
||
title: sectionAccess?.reason || '请先完成前面的制作步骤',
|
||
'aria-disabled': 'true'
|
||
},
|
||
label
|
||
)
|
||
: h(RouterLink, { to: target }, () =>
|
||
h('span', { class: 'admin-menu-label' }, label)
|
||
),
|
||
icon: createMenuIcon(icon)
|
||
}
|
||
})
|
||
]
|
||
: [])
|
||
]
|
||
})
|
||
</script>
|
||
|
||
<template>
|
||
<NConfigProvider
|
||
:theme="theme"
|
||
:theme-overrides="overrides"
|
||
:locale="zhCN"
|
||
:date-locale="dateZhCN"
|
||
class="app-provider"
|
||
>
|
||
<!-- 以下是全局轻量操作结果提示模块 -->
|
||
<NMessageProvider :max="3">
|
||
<ActionMessageProvider>
|
||
<NGlobalStyle />
|
||
<a href="#main-content" class="skip-link">跳到主要内容</a>
|
||
<div
|
||
class="admin-layout"
|
||
:style="{
|
||
'--admin-sider-collapsed': siderCollapsedWidth + 'px',
|
||
'--admin-sider-expanded': siderExpandedWidth + 'px'
|
||
}"
|
||
>
|
||
<!-- 以下是主导航侧栏:桌面参与分栏,移动端固定覆盖整个视口。 -->
|
||
<aside
|
||
id="main-navigation"
|
||
class="admin-sider"
|
||
:class="{ 'is-collapsed': collapsed }"
|
||
:style="{
|
||
width: narrow ? '100%' : (collapsed ? siderCollapsedWidth : siderExpandedWidth) + 'px'
|
||
}"
|
||
aria-label="主导航"
|
||
:aria-hidden="narrow && collapsed ? 'true' : undefined"
|
||
:inert="narrow && collapsed ? true : undefined"
|
||
>
|
||
<header class="admin-sider-header">
|
||
<!-- 以下是侧栏品牌:桌面折叠裁切文字,移动端始终展示完整品牌。 -->
|
||
<RouterLink
|
||
to="/projects"
|
||
class="admin-brand"
|
||
:class="{ 'is-collapsed': collapsed }"
|
||
aria-label="短剧工作台首页"
|
||
>
|
||
<StudioLogo :size="narrow ? 23 : 27" /><span class="admin-brand-copy"
|
||
>短剧工作台<small>SHORT DRAMA STUDIO</small></span
|
||
>
|
||
</RouterLink>
|
||
<!-- 移动端全屏侧栏覆盖顶栏,因此在侧栏内部提供明确关闭入口。 -->
|
||
<NButton
|
||
quaternary
|
||
class="icon-button mobile-sider-close"
|
||
aria-label="关闭主菜单"
|
||
@click="toggleNav"
|
||
>
|
||
<template #icon><X :size="20" /></template>
|
||
</NButton>
|
||
</header>
|
||
<NScrollbar class="admin-nav-scroll">
|
||
<NMenu
|
||
:value="route.path"
|
||
:options="menuOptions"
|
||
:collapsed="menuCollapsed"
|
||
:collapsed-width="siderCollapsedWidth"
|
||
:icon-size="NAV_ICON_SIZE"
|
||
:collapsed-icon-size="NAV_ICON_SIZE"
|
||
:indent="navIconIndent"
|
||
:root-indent="navIconIndent"
|
||
/>
|
||
</NScrollbar>
|
||
<!-- 底部入口与菜单名称一起显示,图标始终可点击。 -->
|
||
<footer class="admin-sider-footer">
|
||
<NButton
|
||
quaternary
|
||
block
|
||
class="admin-settings-button"
|
||
:class="{ 'is-collapsed': collapsed }"
|
||
aria-label="连接设置"
|
||
@click="openSettings"
|
||
>
|
||
<template #icon><Settings2 :size="18" /></template>
|
||
<span class="admin-settings-label">连接设置</span>
|
||
</NButton>
|
||
</footer>
|
||
</aside>
|
||
<!-- 以下是顶栏与主内容 -->
|
||
<NLayout class="admin-main">
|
||
<NLayoutHeader class="admin-topbar">
|
||
<div class="flex min-w-0 items-center gap-3">
|
||
<NButton
|
||
quaternary
|
||
class="icon-button"
|
||
:aria-label="navToggleLabel"
|
||
:title="navToggleLabel"
|
||
:aria-expanded="!collapsed"
|
||
aria-controls="main-navigation"
|
||
@click="toggleNav"
|
||
>
|
||
<template #icon
|
||
><component :is="collapsed ? PanelLeftOpen : PanelLeftClose" :size="20"
|
||
/></template>
|
||
</NButton>
|
||
<span class="truncate text-sm">{{ route.meta.title || '工作空间' }}</span>
|
||
</div>
|
||
<ThemeToggle v-model="preference" />
|
||
</NLayoutHeader>
|
||
<main id="main-content" tabindex="-1" class="admin-content"><RouterView /></main>
|
||
</NLayout>
|
||
</div>
|
||
<AppDialog v-model:open="settingsOpen" title="连接设置" description="查看当前服务地址。">
|
||
<dl class="detail-grid mt-6">
|
||
<dt>API 地址</dt>
|
||
<dd>
|
||
<code>{{ apiBase }}</code>
|
||
</dd>
|
||
<dt>状态更新</dt>
|
||
<dd>制作任务会保存进度;刷新或重新进入页面后可以继续查看。</dd>
|
||
</dl>
|
||
</AppDialog>
|
||
</ActionMessageProvider>
|
||
</NMessageProvider>
|
||
</NConfigProvider>
|
||
</template>
|
||
|
||
<style>
|
||
/* 本组件专属布局与 Naive 内部结构覆盖。 */
|
||
@reference "styles/styles.css";
|
||
.skip-link {
|
||
@apply fixed z-[100] -top-[80px] left-[15px] py-2.5 px-[15px] bg-(--app-surface) border-[1px_solid_var(--color-accent)];
|
||
}
|
||
.skip-link:focus {
|
||
@apply top-2.5 z-[3000];
|
||
}
|
||
.admin-layout {
|
||
--admin-sider-collapsed: 64px;
|
||
--admin-sider-expanded: 208px;
|
||
@apply flex h-dvh overflow-hidden;
|
||
}
|
||
.admin-main {
|
||
@apply min-w-0 h-full flex-1;
|
||
}
|
||
.admin-main > .n-layout-scroll-container {
|
||
@apply h-full flex flex-col overflow-hidden;
|
||
}
|
||
.admin-sider {
|
||
@apply flex flex-col h-full w-[208px] shrink-0 overflow-hidden bg-(--app-subtle);
|
||
transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
|
||
}
|
||
.admin-sider-header {
|
||
@apply flex shrink-0 items-center overflow-hidden;
|
||
}
|
||
.mobile-sider-close {
|
||
@apply hidden shrink-0;
|
||
}
|
||
.admin-sider.is-collapsed {
|
||
width: var(--admin-sider-collapsed);
|
||
}
|
||
.admin-nav-scroll.n-scrollbar {
|
||
@apply flex-1 min-h-0;
|
||
min-width: var(--admin-sider-expanded);
|
||
}
|
||
.admin-sider .n-menu-item-content-header {
|
||
opacity: 1;
|
||
transition:
|
||
opacity 0.2s ease,
|
||
transform 0.2s ease;
|
||
}
|
||
.admin-sider.is-collapsed .n-menu-item-content-header {
|
||
opacity: 0;
|
||
}
|
||
/* 点击图标时命中菜单链接覆盖层,隐藏名称也不会阻断跳转。 */
|
||
.admin-sider.is-collapsed .n-menu-item-content__icon {
|
||
pointer-events: none;
|
||
}
|
||
.admin-sider-footer {
|
||
@apply w-full shrink-0 overflow-hidden;
|
||
padding-block: 8px max(8px, env(safe-area-inset-bottom));
|
||
}
|
||
.n-button.admin-settings-button {
|
||
@apply justify-start h-11 w-full overflow-hidden px-5;
|
||
}
|
||
.n-button.admin-settings-button .n-button__icon {
|
||
@apply shrink-0;
|
||
}
|
||
.admin-settings-label {
|
||
@apply whitespace-nowrap;
|
||
opacity: 1;
|
||
transition:
|
||
opacity 0.2s ease,
|
||
transform 0.2s ease;
|
||
}
|
||
.admin-sider.is-collapsed .admin-settings-label {
|
||
opacity: 0;
|
||
}
|
||
.admin-sider .n-menu .n-menu-item-content::before {
|
||
@apply left-0 right-0 rounded-none;
|
||
}
|
||
.admin-menu-icon {
|
||
@apply inline-flex items-center justify-center text-inherit;
|
||
}
|
||
.admin-menu-label {
|
||
display: inline-block;
|
||
transition:
|
||
transform 0.2s ease,
|
||
color 0.18s ease,
|
||
opacity 0.18s ease;
|
||
}
|
||
.admin-brand {
|
||
@apply flex shrink-0 items-center gap-3 h-[74px] overflow-hidden py-0 px-5 text-ink whitespace-nowrap;
|
||
min-width: var(--admin-sider-expanded);
|
||
}
|
||
.admin-brand-copy {
|
||
@apply text-[15px] font-semibold;
|
||
opacity: 1;
|
||
transition:
|
||
opacity 0.2s ease,
|
||
transform 0.2s ease;
|
||
}
|
||
.admin-sider.is-collapsed .admin-brand-copy {
|
||
opacity: 0;
|
||
}
|
||
.admin-brand-copy small {
|
||
@apply block text-[8px] tracking-[1px] font-normal text-muted mt-[3px];
|
||
}
|
||
.admin-topbar {
|
||
@apply relative z-10 flex items-center justify-between shrink-0 h-11 py-0 px-5 gap-3 bg-(--app-surface);
|
||
}
|
||
.admin-sider .n-menu-divider {
|
||
@apply h-3 bg-transparent;
|
||
}
|
||
.admin-content {
|
||
@apply flex-1 min-h-0 min-w-0 overflow-hidden outline-none;
|
||
}
|
||
/* 桌面折叠态:64px 图标轨道固定,整列名称在右侧浮现。 */
|
||
@media (min-width: 801px) {
|
||
.admin-sider.is-collapsed {
|
||
--admin-nav-reveal-width: 160px;
|
||
--admin-nav-hover-color: #111111;
|
||
position: relative;
|
||
z-index: 30;
|
||
overflow: visible;
|
||
}
|
||
:root[data-theme='dark'] .admin-sider.is-collapsed {
|
||
--admin-nav-hover-color: #ffffff;
|
||
}
|
||
/* 保留文字下方的磨砂效果,移除右侧渐隐遮罩产生的阴影边缘。 */
|
||
.admin-sider.is-collapsed::before {
|
||
content: '';
|
||
position: absolute;
|
||
inset: 0 auto 0 var(--admin-sider-collapsed);
|
||
width: calc(var(--admin-nav-reveal-width) - var(--admin-sider-collapsed));
|
||
background: color-mix(in srgb, var(--app-surface) 55%, transparent);
|
||
-webkit-backdrop-filter: blur(14px) saturate(110%);
|
||
backdrop-filter: blur(14px) saturate(110%);
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 0.2s ease;
|
||
}
|
||
.admin-sider.is-collapsed:is(:hover, :has(:focus-visible))::before {
|
||
opacity: 1;
|
||
}
|
||
.admin-sider.is-collapsed .admin-nav-scroll.n-scrollbar,
|
||
.admin-sider.is-collapsed .admin-sider-footer {
|
||
position: relative;
|
||
width: var(--admin-nav-reveal-width);
|
||
min-width: var(--admin-nav-reveal-width);
|
||
/* 隐藏的名称不能阻挡正文点击,淡出结束后再收回命中区域。 */
|
||
clip-path: inset(0 calc(var(--admin-nav-reveal-width) - var(--admin-sider-collapsed)) 0 0);
|
||
transition: clip-path 0s 0.2s;
|
||
}
|
||
.admin-sider.is-collapsed:is(:hover, :has(:focus-visible)) .admin-nav-scroll.n-scrollbar,
|
||
.admin-sider.is-collapsed:is(:hover, :has(:focus-visible)) .admin-sider-footer {
|
||
clip-path: inset(0);
|
||
transition-delay: 0s;
|
||
}
|
||
.admin-sider.is-collapsed .n-menu-item-content__icon {
|
||
margin-right: 34px !important;
|
||
}
|
||
.admin-sider.is-collapsed .admin-settings-label {
|
||
margin-left: 26px;
|
||
}
|
||
.admin-sider.is-collapsed .admin-menu-label,
|
||
.admin-sider.is-collapsed .admin-settings-label {
|
||
transform: translateX(-6px);
|
||
}
|
||
.admin-sider.is-collapsed:is(:hover, :has(:focus-visible)) .n-menu-item-content-header,
|
||
.admin-sider.is-collapsed:is(:hover, :has(:focus-visible)) .admin-settings-label {
|
||
opacity: 1;
|
||
}
|
||
.admin-sider.is-collapsed:is(:hover, :has(:focus-visible)) .admin-menu-label,
|
||
.admin-sider.is-collapsed:is(:hover, :has(:focus-visible)) .admin-settings-label {
|
||
transform: translateX(0);
|
||
}
|
||
/* 未选中项悬停时仅提高中性色对比,选中项保留主题色,禁用项保持原色。 */
|
||
.admin-sider.is-collapsed
|
||
.n-menu-item-content:not(.n-menu-item-content--disabled, .n-menu-item-content--selected):is(
|
||
:hover,
|
||
:has(:focus-visible)
|
||
)
|
||
.n-menu-item-content__icon,
|
||
.admin-sider.is-collapsed
|
||
.n-menu-item-content:not(.n-menu-item-content--disabled, .n-menu-item-content--selected):is(
|
||
:hover,
|
||
:has(:focus-visible)
|
||
)
|
||
.admin-menu-label,
|
||
.admin-sider.is-collapsed .admin-settings-button:is(:hover, :focus-visible) .n-button__icon,
|
||
.admin-sider.is-collapsed .admin-settings-button:is(:hover, :focus-visible) .admin-settings-label {
|
||
color: var(--admin-nav-hover-color);
|
||
}
|
||
/* 选中或悬停时强化菜单名称,禁用项不响应悬停。 */
|
||
.admin-sider.is-collapsed .n-menu-item-content--selected .admin-menu-label,
|
||
.admin-sider.is-collapsed
|
||
.n-menu-item-content:not(.n-menu-item-content--disabled):is(:hover, :has(:focus-visible))
|
||
.admin-menu-label,
|
||
.admin-sider.is-collapsed .admin-settings-button:is(:hover, :focus-visible) .admin-settings-label {
|
||
font-weight: 600;
|
||
}
|
||
/* 悬停未选中入口时,整列其余名称淡化;移开后恢复原有颜色与选中态。 */
|
||
.admin-sider.is-collapsed:has(
|
||
.n-menu-item-content:not(.n-menu-item-content--disabled, .n-menu-item-content--selected):hover
|
||
)
|
||
.n-menu-item-content:not(:hover)
|
||
.admin-menu-label,
|
||
.admin-sider.is-collapsed:has(
|
||
.n-menu-item-content:not(.n-menu-item-content--disabled, .n-menu-item-content--selected):hover
|
||
)
|
||
.admin-settings-label,
|
||
.admin-sider.is-collapsed:has(.admin-settings-button:hover) .admin-menu-label {
|
||
opacity: 0.55;
|
||
}
|
||
/* 选中、悬停背景仅落在图标轨道内。 */
|
||
.admin-sider.is-collapsed .n-menu .n-menu-item-content::before {
|
||
right: calc(var(--admin-nav-reveal-width) - var(--admin-sider-collapsed));
|
||
}
|
||
.admin-sider.is-collapsed .admin-settings-button .n-button__state-border,
|
||
.admin-sider.is-collapsed .admin-settings-button .n-button__border {
|
||
right: calc(var(--admin-nav-reveal-width) - var(--admin-sider-collapsed));
|
||
}
|
||
}
|
||
@media (max-width: 800px) {
|
||
.admin-sider {
|
||
@apply fixed inset-0 z-50 overflow-hidden;
|
||
width: 100% !important;
|
||
transform: translateX(0);
|
||
transition:
|
||
transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
|
||
visibility 0s;
|
||
}
|
||
/* 收起后整块导航移出视口且禁止交互,让正文使用完整屏幕宽度。 */
|
||
.admin-sider.is-collapsed {
|
||
transform: translateX(-100%);
|
||
visibility: hidden;
|
||
pointer-events: none;
|
||
transition:
|
||
transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
|
||
visibility 0s 0.28s;
|
||
}
|
||
.admin-layout > .admin-main {
|
||
@apply w-full min-w-0 max-w-full flex-1;
|
||
}
|
||
.admin-nav-scroll.n-scrollbar,
|
||
.admin-brand {
|
||
min-width: 100%;
|
||
}
|
||
.admin-sider-header {
|
||
@apply h-12;
|
||
}
|
||
.admin-brand {
|
||
@apply h-12 min-w-0 flex-1 justify-start px-3.5;
|
||
}
|
||
.admin-sider.is-collapsed .admin-brand-copy,
|
||
.admin-sider.is-collapsed .n-menu-item-content-header,
|
||
.admin-sider.is-collapsed .admin-settings-label {
|
||
opacity: 1;
|
||
}
|
||
.mobile-sider-close {
|
||
@apply flex mr-2;
|
||
}
|
||
.admin-topbar {
|
||
@apply py-0 px-2.5;
|
||
}
|
||
}
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.admin-sider,
|
||
.admin-sider.is-collapsed,
|
||
.admin-sider.is-collapsed::before,
|
||
.admin-sider.is-collapsed .admin-nav-scroll.n-scrollbar,
|
||
.admin-sider.is-collapsed .admin-sider-footer,
|
||
.admin-sider .n-menu-item-content-header,
|
||
.admin-menu-label,
|
||
.admin-brand-copy,
|
||
.admin-settings-label {
|
||
transition: none;
|
||
}
|
||
}
|
||
</style>
|