57c036e257
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 193h56m53s
CI/CD Pipeline / Frontend Lint (push) Failing after 193h57m22s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 193h57m33s
fix: P1 审计修复 - CSS变量替换与响应式增强
192 lines
3.5 KiB
CSS
192 lines
3.5 KiB
CSS
/* Phase 1 Header 样式 + 手机端适配 */
|
|
.xx-top-nav {
|
|
height: 68px;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: var(--z-fixed);
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(16px);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.xx-top-nav-inner {
|
|
max-width: 1440px;
|
|
margin: 0 auto;
|
|
height: 100%;
|
|
padding: 0 var(--space-lg);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.xx-brand {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
font-size: var(--font-size-xl);
|
|
font-weight: var(--font-weight-extrabold);
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
color: var(--text-primary);
|
|
padding: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.xx-logo {
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--gradient-primary);
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--text-inverse);
|
|
box-shadow: var(--shadow-primary);
|
|
font-size: var(--font-size-xl);
|
|
}
|
|
|
|
/* 桌面端导航链接 */
|
|
.xx-nav-links {
|
|
display: flex;
|
|
gap: var(--space-md);
|
|
color: var(--text-secondary);
|
|
font-weight: var(--font-weight-bold);
|
|
}
|
|
|
|
.xx-nav-links button {
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
padding: 6px 4px;
|
|
font-size: var(--font-size-base);
|
|
font-weight: var(--font-weight-bold);
|
|
transition: color var(--transition-fast);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.xx-nav-links button:hover {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.xx-nav-links button.active {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
/* 右侧区域 */
|
|
.xx-right-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.xx-user-menu {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
cursor: pointer;
|
|
color: var(--text-primary);
|
|
font-size: var(--font-size-base);
|
|
}
|
|
|
|
.xx-avatar {
|
|
width: 34px;
|
|
height: 34px;
|
|
background: var(--primary-soft);
|
|
color: var(--primary-dark);
|
|
}
|
|
|
|
/* 汉堡菜单按钮(默认隐藏) */
|
|
.xx-hamburger {
|
|
display: none;
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
font-size: var(--font-size-xl);
|
|
color: var(--text-secondary);
|
|
padding: var(--space-sm);
|
|
}
|
|
|
|
/* 手机端导航抽屉内容 */
|
|
.xx-mobile-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.xx-mobile-nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px var(--space-md);
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
font-size: var(--font-size-md);
|
|
color: var(--color-gray-700);
|
|
border-radius: var(--radius-sm);
|
|
transition: background var(--transition-fast);
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.xx-mobile-nav-item:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.xx-mobile-nav-item.active {
|
|
background: var(--primary-soft);
|
|
color: var(--primary-color);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
|
|
.xx-mobile-nav-icon {
|
|
font-size: 18px;
|
|
width: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* ===== 手机端响应式 ===== */
|
|
@media (max-width: 768px) {
|
|
.xx-top-nav {
|
|
height: 56px;
|
|
}
|
|
|
|
.xx-top-nav-inner {
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.xx-brand-text {
|
|
display: none;
|
|
}
|
|
|
|
/* 隐藏桌面端导航 */
|
|
.xx-nav-links {
|
|
display: none;
|
|
}
|
|
|
|
/* 显示汉堡菜单 */
|
|
.xx-hamburger {
|
|
display: block;
|
|
}
|
|
|
|
/* 隐藏用户名 */
|
|
.xx-username {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* 小屏幕平板:导航文字缩小 */
|
|
@media (min-width: 769px) and (max-width: 1024px) {
|
|
.xx-nav-links {
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.xx-nav-links button {
|
|
font-size: 13px;
|
|
}
|
|
}
|