Files
client-web/src/styles/shell.css
T

72 lines
8.1 KiB
CSS
Raw Normal View History

2026-09-18 16:48:35 +08:00
.client-shell { min-height: 100vh; overflow-x: hidden; background: #f6f8fb; }
.top-header { position: fixed; inset: 0 0 auto 224px; z-index: 20; display: flex; width: auto; max-width: calc(100vw - 224px); height: 68px; align-items: center; gap: 16px; padding: 0 24px; border-bottom: 1px solid #edf1f6; background: rgba(255, 255, 255, .98); backdrop-filter: blur(12px); }
.client-header-menu-button { display: none; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; place-items: center; }
2026-09-18 16:48:35 +08:00
.client-header-greeting { min-width: 0; flex: 1; margin: 0; color: #667085; font-size: 13px; }
.client-user { display: flex; align-items: center; gap: 10px; }
2026-09-18 16:48:35 +08:00
.client-header-notifications { position: relative; display: inline-grid; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #526176; place-items: center; }
2026-08-12 18:49:54 +08:00
.client-header-notifications { text-decoration: none; }
2026-09-18 16:48:35 +08:00
.client-header-notifications:hover { background: #f3f6fb; color: #2563eb; }
2026-08-12 18:24:03 +08:00
.client-header-notifications-badge { position: absolute; top: -8px; right: -9px; min-width: 16px; padding: 1px 4px; border-radius: 10px; color: #fff; background: #d64545; font-size: 10px; line-height: 14px; text-align: center; }
2026-08-03 17:44:42 +08:00
.client-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #e9f2ff; color: #1565c0; font-weight: 750; }
2026-09-18 16:48:35 +08:00
.client-header-profile { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 10px; color: inherit; text-decoration: none; }
.client-header-profile:hover { background: #f3f6fb; }
.client-user-copy { display: flex; flex-direction: column; }
2026-08-03 17:44:42 +08:00
.client-user-copy strong { color: #25324a; font-size: 12px; }
.client-user-copy small { color: #8893a3; font-size: 10px; }
2026-09-18 16:48:35 +08:00
.client-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 21; display: flex; width: 224px; flex-direction: column; overflow: hidden; padding: 12px; border-right: 1px solid #dfe8f3; background: linear-gradient(180deg, #f5f8ff 0%, #edf5fc 100%); box-shadow: 6px 0 24px rgba(34, 74, 126, .055); color: #172033; font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif; font-synthesis: none; }
.client-sidebar-brand { display: flex; flex: 0 0 82px; min-height: 82px; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 15px; background: linear-gradient(145deg, #0a2b50, #0b3d6c); box-shadow: 0 9px 24px rgba(9, 45, 82, .18); }
.client-sidebar-brand-link { display: flex; width: 100%; min-width: 0; align-items: center; color: #172033; text-decoration: none; }
.client-sidebar-brand-logo { display: block; width: min(100%, 160px); height: 58px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.client-sidebar nav { display: flex; flex: 1; min-width: 0; min-height: 0; flex-direction: column; overflow-x: hidden; overflow-y: auto; scrollbar-color: #dce3ed transparent; scrollbar-width: thin; }
2026-08-03 11:44:50 +08:00
.client-sidebar nav::-webkit-scrollbar { width: 10px; background: transparent; }
.client-sidebar nav::-webkit-scrollbar-track { background: transparent; }
2026-09-18 16:48:35 +08:00
.client-sidebar nav::-webkit-scrollbar-thumb { min-height: 40px; border: 3px solid transparent; border-radius: 999px; background: #dce3ed; background-clip: padding-box; }
.client-sidebar nav::-webkit-scrollbar-thumb:hover { background-color: #c2ccda; }
2026-08-03 11:44:50 +08:00
.client-sidebar nav::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.client-sidebar nav::-webkit-scrollbar-corner { background: transparent; }
.client-nav-menu,
.client-nav-submenu { min-width: 0; margin: 0; padding: 0; list-style: none; }
.client-nav-menu { flex: 1; background: transparent; }
2026-09-18 16:48:35 +08:00
.client-nav-submenu { margin: 3px 0 2px 15px; padding: 0 0 0 12px; border-left: 1px solid #e6ebf2; }
.client-nav-node { min-width: 0; }
2026-09-18 16:48:35 +08:00
.client-nav-node.has-divider-before { margin-top: 9px; padding-top: 9px; border-top: 1px solid #eef2f7; }
.client-sidebar-group-trigger,
2026-09-18 16:48:35 +08:00
.client-sidebar-link { display: flex; position: relative; width: 100%; min-height: 46px; min-width: 0; align-items: center; gap: 11px; margin: 2px 0; padding: 7px 10px; border: 1px solid transparent; border-radius: 12px; color: #64748b; font-size: 13px; font-weight: 650; line-height: 1.35; transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }
.client-sidebar-group-trigger { border: 0; background: transparent; cursor: pointer; text-align: left; }
.client-sidebar-link { text-decoration: none; }
.client-sidebar-group-trigger:hover,
2026-09-18 16:48:35 +08:00
.client-sidebar-link:hover { border-color: #dbeafe; background: #f5f9ff; color: #2563eb; transform: translateX(2px); }
.client-nav-menu > .client-nav-node > .client-sidebar-link[aria-current="page"] { border-color: #2d80ff; background: linear-gradient(100deg, #2f6df6, #16a3df); box-shadow: 0 8px 20px rgba(37, 99, 235, .22); color: #fff; font-weight: 700; }
.client-nav-menu > .client-nav-node > .client-sidebar-link[aria-current="page"]::before { display: none; }
.client-nav-submenu .client-sidebar-link { min-height: 39px; margin: 1px 0; padding: 5px 9px; border-radius: 10px; color: #718096; font-size: 12px; font-weight: 550; }
.client-sidebar .client-nav-submenu .client-sidebar-node-icon { width: 25px; height: 25px; flex: 0 0 25px; padding: 6px; border-radius: 7px; background: #f1f5f9; color: #7b8ba1; opacity: .9; }
.client-nav-submenu .client-sidebar-link:hover { background: #f5f9ff; color: #2563eb; }
.client-nav-submenu .client-sidebar-link[aria-current="page"] { border-color: #dbeafe; background: #eff6ff; color: #2563eb; font-weight: 650; }
.client-nav-node.is-active-parent > .client-sidebar-group-trigger { background: #f8faff; color: #2563eb; font-weight: 650; }
.client-sidebar .client-sidebar-group-trigger > .client-sidebar-node-icon,
.client-nav-menu > .client-nav-node > .client-sidebar-link > .client-sidebar-node-icon { width: 31px; height: 31px; flex: 0 0 31px; padding: 7px; border-radius: 9px; background: #f1f5f9; color: #64748b; }
.client-nav-menu > .client-nav-node > .client-sidebar-link[aria-current="page"] > .client-sidebar-node-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.client-sidebar .client-sidebar-group-chevron { width: 16px; height: 16px; flex: 0 0 16px; margin-left: auto; transform: rotate(-90deg); transition: transform .2s ease; }
.client-sidebar-group-trigger[aria-expanded="true"] .client-sidebar-group-chevron { transform: rotate(0); }
.client-sidebar-group-trigger span,
.client-sidebar-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-sidebar-group-trigger:focus-visible,
.client-sidebar-link:focus-visible,
2026-08-03 10:51:53 +08:00
.client-header-menu-button:focus-visible,
2026-08-12 18:49:54 +08:00
.client-header-notifications:focus-visible,
2026-09-18 16:48:35 +08:00
.client-header-profile:focus-visible,
2026-08-03 11:44:50 +08:00
.client-sidebar-brand button:focus-visible,
2026-09-18 16:48:35 +08:00
.client-sidebar-logout:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
2026-08-03 11:44:50 +08:00
.client-sidebar-brand button,
.client-sidebar-scrim { display: none; }
2026-09-18 16:48:35 +08:00
.client-sidebar-logout { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: 9px; margin: 10px 0 0; padding: 7px 10px; border: 1px solid #fecaca; border-radius: 11px; background: #fff7f7; color: #e05252; cursor: pointer; font-size: 13px; font-weight: 600; text-align: left; }
.client-sidebar-logout:hover { border-color: #fca5a5; background: #fff0f0; color: #c93737; }
2026-08-03 11:44:50 +08:00
.client-sidebar-logout svg { flex: 0 0 18px; }
2026-09-18 16:48:35 +08:00
.client-main { width: calc(100% - 224px); max-width: 100%; min-height: 100vh; margin-left: 224px; padding: 126px 20px 40px; }
.is-dashboard-route .client-main { padding-top: 88px; }
2026-09-11 16:17:24 +08:00
.client-breadcrumb { display: flex; min-width: 0; align-items: center; gap: 8px; margin: 0 0 14px; color: #98a2b3; font-size: 12px; line-height: 1.5; }
.client-breadcrumb a { color: #667085; text-decoration: none; }
.client-breadcrumb a:hover { color: #1565c0; }
.client-breadcrumb a:focus-visible { border-radius: 3px; outline: 2px solid #6db9ff; outline-offset: 2px; }
.client-breadcrumb strong { min-width: 0; overflow: hidden; color: #344054; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }