- 全局样式对标Air Spark设计系统(背景、glass card、配色、圆角) - 视频详情弹窗(VideoDetailModal)全屏预览+信息面板 - GenerationCard重构:fixed定位tooltip、9:16视频适配、blob下载 - 个人中心:总额度/今日/本月三卡片布局 - Dashboard图表配色统一为#6c63ff主色调 - Sidebar、InputBar、Toolbar等组件样式优化 - 新增AmbientBackground、AssetsPage组件 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
141 lines
2.3 KiB
CSS
141 lines
2.3 KiB
CSS
.sidebar {
|
|
width: 76px;
|
|
height: 100%;
|
|
background: var(--color-sidebar-bg);
|
|
backdrop-filter: blur(16px) saturate(160%);
|
|
border-right: 1px solid rgba(255, 255, 255, 0.08);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 16px 0;
|
|
flex-shrink: 0;
|
|
z-index: 50;
|
|
}
|
|
|
|
.logo {
|
|
margin-bottom: 28px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.navItems {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.navItem {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 10px 0;
|
|
width: 56px;
|
|
border-radius: 8px;
|
|
color: var(--color-text-disabled);
|
|
cursor: pointer;
|
|
transition: color 0.15s, background 0.15s;
|
|
font-size: 11px;
|
|
user-select: none;
|
|
}
|
|
|
|
.navItem:hover {
|
|
color: var(--color-text-secondary);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.navItem.active {
|
|
color: var(--color-primary);
|
|
background: var(--color-sidebar-active);
|
|
}
|
|
|
|
/* Bottom section */
|
|
.bottom {
|
|
margin-top: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
/* Quota display */
|
|
.quota {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
cursor: pointer;
|
|
padding: 8px 4px;
|
|
border-radius: 8px;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.quota:hover {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.diamondIcon {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.quotaNumber {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--color-text-primary);
|
|
line-height: 1;
|
|
}
|
|
|
|
.quotaLabel {
|
|
font-size: 9px;
|
|
color: var(--color-text-secondary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Admin button */
|
|
.adminBtn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 8px;
|
|
color: var(--color-text-disabled);
|
|
cursor: pointer;
|
|
transition: color 0.15s, background 0.15s;
|
|
}
|
|
|
|
.adminBtn:hover {
|
|
color: var(--color-primary);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
/* User avatar */
|
|
.avatar {
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 50%;
|
|
background: var(--color-primary);
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.avatar:hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.sidebar {
|
|
display: none;
|
|
}
|
|
}
|