Align Taro pages with Next hub/nav/book/community/VIP, pack the single-index Xiaohongshu portal with host-chrome safe areas, and refresh shared book content plus portal README constraints. Co-authored-by: Cursor <cursoragent@cursor.com>
270 lines
5.0 KiB
CSS
270 lines
5.0 KiB
CSS
/* Ported from nomadweb Navbar — match Next /community exactly */
|
|
|
|
.navbar {
|
|
position: fixed;
|
|
top: 88px !important;
|
|
top: var(--app-pad-top, 88px) !important;
|
|
left: 0;
|
|
right: 0;
|
|
height: 44px;
|
|
min-height: 44px;
|
|
padding-top: 0;
|
|
box-sizing: border-box;
|
|
z-index: 1000;
|
|
transition: all var(--transition);
|
|
background: transparent;
|
|
}
|
|
|
|
.navbar.scrolled {
|
|
background: rgba(10, 14, 23, 0.85);
|
|
backdrop-filter: blur(20px);
|
|
border-bottom: var(--border-glass);
|
|
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
[data-theme="light"] .navbar.scrolled,
|
|
.page-shell[data-theme="light"] .navbar.scrolled,
|
|
.hub-root[data-theme="light"] .navbar.scrolled {
|
|
background: rgba(248, 250, 252, 0.9);
|
|
}
|
|
|
|
.nav-container {
|
|
max-width: none;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0 16px 0 var(--app-pad-left, 16px);
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.nav-container > .logo {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-container > .nav-links {
|
|
flex: 1;
|
|
justify-content: center;
|
|
min-width: 0;
|
|
}
|
|
|
|
.nav-utils {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-left: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-utils .nav-lang-btn,
|
|
.nav-utils .nav-cta,
|
|
.nav-utils .nav-notify {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-utils .nav-cta {
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.nav-notify-guest {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-family: var(--font-display);
|
|
font-weight: 800;
|
|
font-size: 1.35rem;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.logo span {
|
|
background: linear-gradient(135deg, #FF6B6B, #FFE66D, #4ECDC4);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
animation: logoSpin 20s linear infinite;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
@keyframes logoSpin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.nav-links a {
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.nav-links a:hover {
|
|
color: var(--text-primary);
|
|
background: var(--bg-glass);
|
|
}
|
|
|
|
.nav-cta {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 50%;
|
|
border: var(--border-glass);
|
|
background: var(--bg-glass);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.2rem;
|
|
transition: all var(--transition);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.nav-cta:hover {
|
|
transform: scale(1.1);
|
|
box-shadow: var(--shadow-glow);
|
|
}
|
|
|
|
.mobile-menu-btn {
|
|
display: none;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
}
|
|
|
|
.mobile-menu-btn span {
|
|
display: block;
|
|
width: 24px;
|
|
height: 2px;
|
|
background: var(--text-primary);
|
|
border-radius: 2px;
|
|
transition: all 0.3s ease;
|
|
transform-origin: center;
|
|
}
|
|
|
|
.mobile-menu-btn.open span:nth-child(1) {
|
|
transform: translateY(7px) rotate(45deg);
|
|
}
|
|
|
|
.mobile-menu-btn.open span:nth-child(2) {
|
|
opacity: 0;
|
|
transform: scaleX(0);
|
|
}
|
|
|
|
.mobile-menu-btn.open span:nth-child(3) {
|
|
transform: translateY(-7px) rotate(-45deg);
|
|
}
|
|
|
|
/* ===== Hero ===== */
|
|
|
|
|
|
.nav-notify {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-lang-btn {
|
|
min-width: 44px;
|
|
min-height: 36px;
|
|
padding: 6px 12px;
|
|
border-radius: 10px;
|
|
border: var(--border-glass);
|
|
background: rgba(17, 24, 39, 0.8);
|
|
color: var(--text-primary);
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s, background 0.2s;
|
|
}
|
|
|
|
.nav-lang-btn:hover {
|
|
border-color: var(--accent-2);
|
|
}
|
|
|
|
.nav-notify-badge {
|
|
position: absolute;
|
|
top: -4px;
|
|
right: -4px;
|
|
font-size: 0.65rem;
|
|
font-style: normal;
|
|
background: var(--accent-1);
|
|
color: #fff;
|
|
border-radius: 999px;
|
|
padding: 1px 5px;
|
|
}
|
|
|
|
.nav-notify { position: relative; }
|
|
|
|
/* Next globals: hamburger only on ≤1024 — keep ≤768 for drop panel */
|
|
@media (max-width: 1024px) {
|
|
.mobile-menu-btn {
|
|
display: flex !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.nav-links {
|
|
display: none;
|
|
flex-direction: column;
|
|
position: absolute;
|
|
top: var(--nav-height, 72px);
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1100;
|
|
background: var(--bg-secondary, #111827);
|
|
padding: 16px 20px 20px;
|
|
border-bottom: var(--border-glass);
|
|
opacity: 0;
|
|
transform: translateY(-8px);
|
|
pointer-events: none;
|
|
transition: all 0.3s ease;
|
|
gap: 4px;
|
|
}
|
|
.nav-links.open {
|
|
display: flex !important;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
pointer-events: auto;
|
|
}
|
|
.nav-mobile-link {
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 44px;
|
|
padding: 0 12px;
|
|
border-radius: 10px;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #f1f5f9);
|
|
cursor: pointer;
|
|
}
|
|
.nav-mobile-link:active,
|
|
.nav-mobile-link:hover {
|
|
background: rgba(78, 205, 196, 0.12);
|
|
color: var(--accent-3, #4ecdc4);
|
|
}
|
|
}
|
|
|
|
@media (min-width: 769px) {
|
|
.nav-links {
|
|
display: none !important;
|
|
}
|
|
} |