完善UI
This commit is contained in:
@@ -229,6 +229,7 @@ body.sidebar-collapsed .app { grid-template-columns: 96px 1fr; }
|
||||
/* ─── Sidebar ─── */
|
||||
aside.sidebar {
|
||||
--klein: #002fa7;
|
||||
--st-black: #101012;
|
||||
padding: 0;
|
||||
border-right: 1px solid rgba(27, 32, 40, 0.08);
|
||||
background: rgba(28, 34, 43, 0.035);
|
||||
@@ -414,6 +415,7 @@ aside.sidebar .nav-panel {
|
||||
height: calc(100vh - 116px);
|
||||
min-height: 0;
|
||||
padding-top: 14px;
|
||||
padding-bottom: 82px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
@@ -535,6 +537,55 @@ aside.sidebar .nav-subitem.active::before {
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 0 4px rgba(0, 47, 167, 0.10);
|
||||
}
|
||||
|
||||
aside.sidebar .org-switcher {
|
||||
position: absolute;
|
||||
z-index: 6;
|
||||
left: 12px;
|
||||
right: 6px;
|
||||
bottom: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #31343a;
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
aside.sidebar .org-switcher-name {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
aside.sidebar .org-switcher svg { width: 16px; height: 16px; flex-shrink: 0; color: #575f6f; }
|
||||
aside.sidebar .org-badge {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
flex-shrink: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
border-radius: 50%;
|
||||
color: #fff;
|
||||
background: var(--st-black);
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
}
|
||||
aside.sidebar .org-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||
body.sidebar-collapsed aside.sidebar .org-switcher {
|
||||
left: 0;
|
||||
right: 0;
|
||||
justify-content: center;
|
||||
}
|
||||
body.sidebar-collapsed aside.sidebar .org-switcher-name,
|
||||
body.sidebar-collapsed aside.sidebar .org-switcher svg { display: none; }
|
||||
aside.sidebar .nav-subitem .pill-mini {
|
||||
margin-left: auto;
|
||||
min-width: 18px;
|
||||
@@ -947,28 +998,6 @@ main { position: relative; background: #fff; min-width: 0; }
|
||||
letter-spacing: .02em;
|
||||
}
|
||||
|
||||
/* ─── Topbar · 头像 ─── */
|
||||
.topbar-avatar {
|
||||
width: 40px; height: 40px;
|
||||
border-radius: var(--r-pill);
|
||||
background: var(--accent-black);
|
||||
color: var(--accent-white);
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
font-size: 13px; font-weight: 600;
|
||||
cursor: pointer;
|
||||
border: 1px solid var(--border-faint);
|
||||
transition: transform var(--t-fast), box-shadow var(--t-base);
|
||||
flex-shrink: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.topbar-avatar:hover {
|
||||
transform: scale(1.04);
|
||||
box-shadow: 0 0 0 3px var(--heat-12);
|
||||
}
|
||||
.topbar-avatar img {
|
||||
width: 100%; height: 100%; object-fit: cover;
|
||||
}
|
||||
|
||||
/* ─── Content ─── */
|
||||
.content {
|
||||
/* 对齐 HTML 设计稿 #page-content(24px 28px 60px):原 48px 顶距使全站标题整体偏低 24px */
|
||||
|
||||
Reference in New Issue
Block a user