2026-08-01 12:17:33 +08:00
|
|
|
.app-shell { min-width: 0; min-height: 100vh; }
|
|
|
|
|
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 240px; flex-direction: column; background: var(--cc-navy); color: #fff; }
|
|
|
|
|
.is-collapsed .app-sidebar { width: 76px; }
|
|
|
|
|
.brand-block { display: flex; height: 72px; align-items: center; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
|
|
|
|
|
.brand-logo { display: block; object-fit: contain; object-position: left center; }
|
|
|
|
|
.brand-logo-full { width: 184px; height: 58px; }
|
|
|
|
|
.brand-logo-mark { display: none; width: 40px; height: 40px; }
|
|
|
|
|
.is-collapsed .brand-logo-full { display: none; }
|
|
|
|
|
.is-collapsed .brand-logo-mark { display: block; }
|
2026-08-03 11:45:45 +08:00
|
|
|
.side-nav {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 14px 10px;
|
|
|
|
|
scrollbar-color: rgba(203, 214, 230, .5) transparent;
|
|
|
|
|
scrollbar-width: thin;
|
|
|
|
|
}
|
|
|
|
|
.side-nav::-webkit-scrollbar { width: 10px; }
|
|
|
|
|
.side-nav::-webkit-scrollbar-track,
|
|
|
|
|
.side-nav::-webkit-scrollbar-corner { background: transparent; }
|
|
|
|
|
.side-nav::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: rgba(203, 214, 230, .5); background-clip: padding-box; }
|
|
|
|
|
.side-nav::-webkit-scrollbar-thumb:hover { background-color: rgba(225, 233, 244, .78); }
|
|
|
|
|
.side-nav::-webkit-scrollbar-button,
|
|
|
|
|
.side-nav::-webkit-scrollbar-button:single-button,
|
|
|
|
|
.side-nav::-webkit-scrollbar-button:vertical:decrement,
|
|
|
|
|
.side-nav::-webkit-scrollbar-button:vertical:increment { display: none; width: 0; height: 0; background: transparent; }
|
2026-08-01 12:17:33 +08:00
|
|
|
.side-nav-menu {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-right: 0 !important;
|
|
|
|
|
background: transparent !important;
|
|
|
|
|
--el-menu-bg-color: transparent;
|
|
|
|
|
--el-menu-text-color: #bdc7d7;
|
|
|
|
|
--el-menu-active-color: var(--cc-navy);
|
|
|
|
|
--el-menu-hover-bg-color: rgba(255,255,255,.08);
|
|
|
|
|
}
|
|
|
|
|
.side-nav-menu.el-menu--collapse { width: 56px; }
|
|
|
|
|
.side-nav-menu .el-menu-item,
|
|
|
|
|
.side-nav-menu .el-sub-menu__title { height: 44px; margin: 3px 0; border-radius: 8px; line-height: 44px; }
|
|
|
|
|
.side-nav-menu .el-menu-item:hover,
|
|
|
|
|
.side-nav-menu .el-sub-menu__title:hover { color: #fff; }
|
|
|
|
|
.side-nav-menu .el-menu-item.is-active { background: #fff; color: var(--cc-navy); font-weight: 650; }
|
|
|
|
|
.side-nav-menu .el-sub-menu .el-menu-item { min-width: 0; padding-left: 48px !important; }
|
|
|
|
|
.side-nav-menu .el-menu-item svg,
|
|
|
|
|
.side-nav-menu .el-sub-menu__title svg { flex: 0 0 auto; margin-right: 12px; }
|
|
|
|
|
.sidebar-toggle { display: flex; height: 52px; align-items: center; justify-content: center; gap: 8px; border: 0; border-top: 1px solid rgba(255,255,255,.1); background: transparent; color: #aebbd0; cursor: pointer; }
|
|
|
|
|
.app-main { min-width: 0; min-height: 100vh; margin-left: 240px; }
|
|
|
|
|
.is-collapsed .app-main { margin-left: 76px; }
|
|
|
|
|
.app-header { position: sticky; top: 0; z-index: 15; display: flex; min-width: 0; min-height: 72px; align-items: center; gap: 16px; padding: 10px 20px; border-bottom: 1px solid var(--cc-border); background: rgba(255,255,255,.96); }
|
|
|
|
|
.page-heading { min-width: 0; flex: 1; }
|
|
|
|
|
.page-heading h1 { margin: 0; overflow: hidden; font-size: 20px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
|
.page-heading p { margin: 4px 0 0; overflow: hidden; color: var(--cc-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
|
.header-user { display: flex; min-width: 0; flex: 0 0 auto; align-items: center; gap: 10px; }
|
|
|
|
|
.user-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #eaf1ff; color: var(--cc-primary); font-weight: 700; }
|
|
|
|
|
.user-copy { display: flex; flex-direction: column; }
|
|
|
|
|
.user-copy strong { font-size: 13px; }
|
|
|
|
|
.user-copy span { color: var(--cc-muted); font-size: 11px; }
|
|
|
|
|
.mobile-menu-button { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
|
|
|
|
|
.header-user .el-button { width: 44px; height: 44px; }
|
|
|
|
|
.page-container { padding: 20px 20px 32px; }
|
|
|
|
|
|
|
|
|
|
/* Static permission preview */
|
|
|
|
|
.app-header > .el-dropdown { min-width: 0; max-width: 320px; flex: 0 1 320px; }
|
|
|
|
|
.role-preview-trigger { display: flex; width: 100%; min-width: 0; min-height: 44px; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--cc-border); border-radius: 8px; background: #fff; color: #172033; text-align: left; cursor: pointer; }
|
|
|
|
|
.role-preview-trigger:hover { border-color: #b8c6d9; background: #f8fafc; }
|
|
|
|
|
.role-preview-trigger:focus-visible { border-color: var(--cc-primary); outline: 3px solid rgba(21, 94, 239, .2); outline-offset: 1px; }
|
|
|
|
|
.role-preview-trigger:disabled, .role-preview-trigger[aria-disabled="true"] { cursor: not-allowed; opacity: .58; }
|
|
|
|
|
.role-preview-trigger > svg { flex: 0 0 auto; }
|
|
|
|
|
.role-preview-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
|
|
|
|
|
.role-preview-copy strong, .role-preview-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
|
.role-preview-copy strong { font-size: 12px; font-weight: 700; }
|
|
|
|
|
.role-preview-copy small { color: var(--cc-muted); font-size: 10px; line-height: 1.35; }
|