Sleepyfx's picture
download
raw
14.6 kB
/* =============================================================================
SleepyFX Pro — Navigation
Bottom nav (mobile), topbar, and sidebar (tablet/desktop).
Glassmorphism for both. All values reference theme.css tokens.
============================================================================= */
/* =============================================================================
TOPBAR
============================================================================= */
.topbar {
position: sticky;
top: 0;
z-index: var(--z-nav);
display: flex;
align-items: center;
justify-content: space-between;
height: var(--topbar-height, 56px);
padding: 0 var(--space-4);
background: var(--glass-bg);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border-bottom: 1px solid var(--glass-border);
gap: var(--space-3);
/* Extend into status bar area on notched devices */
padding-top: env(safe-area-inset-top, 0px);
}
/* --- Logo / Brand --- */
.topbar-logo {
display: flex;
align-items: center;
gap: var(--space-2);
font-family: var(--font-sans);
font-weight: var(--font-bold);
font-size: var(--text-lg);
color: var(--text-primary);
letter-spacing: var(--tracking-tight);
text-decoration: none;
flex-shrink: 0;
user-select: none;
}
.topbar-logo-mark {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: var(--radius-md);
background: var(--brand);
flex-shrink: 0;
}
.topbar-logo-mark svg {
color: var(--text-inverted);
}
.topbar-logo-text {
font-size: var(--text-lg);
color: var(--text-primary);
}
.topbar-logo-text span {
color: var(--brand);
}
/* --- Center slot (page title or HUD strip) --- */
.topbar-center {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
}
.topbar-title {
font-size: var(--text-base);
font-weight: var(--font-semibold);
color: var(--text-primary);
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* --- Right actions --- */
.topbar-actions {
display: flex;
align-items: center;
gap: var(--space-1);
flex-shrink: 0;
}
.topbar-btn {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: var(--radius-md);
background: transparent;
border: none;
color: var(--text-secondary);
cursor: pointer;
transition:
background var(--transition-fast),
color var(--transition-fast);
-webkit-tap-highlight-color: transparent;
}
.topbar-btn:hover {
background: var(--bg-muted);
color: var(--text-primary);
}
.topbar-btn:active {
background: var(--bg-elevated);
transform: scale(0.93);
}
/* --- Session Pill --- */
.session-pill {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
border-radius: var(--radius-pill);
font-family: var(--font-mono);
font-size: var(--text-xs);
font-weight: var(--font-bold);
text-transform: uppercase;
letter-spacing: var(--tracking-caps);
border: 1px solid transparent;
user-select: none;
transition:
background var(--transition-base),
color var(--transition-base),
border-color var(--transition-base);
}
/* Live indicator dot */
.session-pill::before {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
flex-shrink: 0;
animation: pulse 1.8s ease infinite;
}
/* Session variants */
.session-pill.session-asia {
background: var(--info-muted);
color: var(--info);
border-color: var(--border-info);
}
.session-pill.session-london {
background: var(--warning-muted);
color: var(--warning);
border-color: var(--border-warning);
}
.session-pill.session-new-york {
background: var(--success-muted);
color: var(--success);
border-color: var(--border-success);
}
.session-pill.session-overlap {
background: var(--secondary-light);
color: var(--secondary);
border-color: oklch(70% 0.13 300 / 0.35);
}
.session-pill.session-closed {
background: var(--bg-elevated);
color: var(--text-tertiary);
border-color: var(--border);
}
.session-pill.session-closed::before {
animation: none;
opacity: 0.4;
}
/* =============================================================================
BOTTOM NAV (Mobile-first)
============================================================================= */
.bottom-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: var(--bottomnav-height, 64px);
display: flex;
justify-content: space-around;
align-items: center;
background: var(--glass-bg);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border-top: 1px solid var(--glass-border);
z-index: var(--z-nav);
/* Safe-area inset for swipe-home iPhones */
padding: 0 var(--space-2) env(safe-area-inset-bottom, 0px);
gap: 0;
}
/* --- Nav Item --- */
.nav-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
flex: 1;
height: 100%;
color: var(--text-tertiary);
font-size: var(--text-2xs);
font-weight: var(--font-medium);
text-decoration: none;
text-align: center;
padding: var(--space-2) var(--space-1);
border-radius: var(--radius-md);
cursor: pointer;
-webkit-tap-highlight-color: transparent;
user-select: none;
transition:
color var(--transition-fast),
transform var(--transition-fast);
position: relative;
letter-spacing: 0.01em;
}
/* Icon slot */
.nav-item .nav-icon {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
position: relative;
flex-shrink: 0;
}
.nav-item .nav-icon svg {
width: 22px;
height: 22px;
stroke-width: 1.8;
transition: transform var(--transition-fast);
}
/* Label */
.nav-item .nav-label {
font-size: var(--text-2xs);
line-height: 1;
transition: color var(--transition-fast);
}
/* Active state */
.nav-item.active,
.nav-item[aria-current="page"] {
color: var(--brand);
font-weight: var(--font-semibold);
}
.nav-item.active .nav-icon svg,
.nav-item[aria-current="page"] .nav-icon svg {
transform: scale(1.08);
}
/* Active indicator dot above icon */
.nav-item.active .nav-icon::after,
.nav-item[aria-current="page"] .nav-icon::after {
content: '';
position: absolute;
top: -4px;
left: 50%;
transform: translateX(-50%);
width: 16px;
height: 3px;
border-radius: var(--radius-pill);
background: var(--brand);
}
/* Hover (touch only fallback) */
@media (hover: hover) {
.nav-item:hover {
color: var(--text-secondary);
}
}
/* Touch feedback */
.nav-item:active {
transform: scale(0.92);
}
/* Badge / notification count on nav icon */
.nav-badge {
position: absolute;
top: -3px;
right: -5px;
min-width: 16px;
height: 16px;
padding: 0 4px;
background: var(--danger);
color: oklch(97% 0 0);
border-radius: var(--radius-pill);
font-family: var(--font-mono);
font-size: 9px;
font-weight: var(--font-bold);
display: flex;
align-items: center;
justify-content: center;
border: 1.5px solid var(--bg-primary);
line-height: 1;
}
/* =============================================================================
SIDEBAR — Tablet (768px+)
============================================================================= */
@media (min-width: 768px) {
/* Hide bottom nav, show sidebar */
.bottom-nav {
/* Transform: fixed bottom → fixed left sidebar */
top: 0;
bottom: 0;
left: 0;
right: auto;
width: 64px;
height: 100dvh;
height: 100vh;
flex-direction: column;
justify-content: flex-start;
align-items: center;
border-top: none;
border-right: 1px solid var(--glass-border);
padding: 0 0 env(safe-area-inset-bottom, 0px);
padding-top: calc(var(--topbar-height, 56px) + var(--space-4));
gap: var(--space-1);
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: none;
}
.bottom-nav::-webkit-scrollbar {
display: none;
}
.nav-item {
width: 48px;
height: 48px;
flex-direction: column;
padding: var(--space-2);
border-radius: var(--radius-md);
gap: 4px;
flex: none;
}
.nav-item .nav-label {
font-size: 8px;
}
/* Active indicator: left bar instead of top dot */
.nav-item.active .nav-icon::after,
.nav-item[aria-current="page"] .nav-icon::after {
top: 50%;
left: -12px;
right: auto;
transform: translateY(-50%);
width: 3px;
height: 16px;
}
/* Topbar shifts right */
.topbar {
left: 64px;
}
/* Page content shifts right */
.page {
margin-left: 64px;
}
}
/* =============================================================================
SIDEBAR — Desktop (1100px+)
============================================================================= */
@media (min-width: 1100px) {
.bottom-nav {
width: 200px;
align-items: flex-start;
padding-left: var(--space-3);
padding-right: var(--space-3);
gap: var(--space-1);
}
.nav-item {
width: 100%;
height: 44px;
flex-direction: row;
justify-content: flex-start;
padding: 0 var(--space-3);
gap: var(--space-3);
border-radius: var(--radius-md);
}
.nav-item .nav-label {
font-size: var(--text-sm);
font-weight: var(--font-medium);
display: block;
letter-spacing: 0;
}
.nav-item .nav-icon {
width: 20px;
height: 20px;
}
.nav-item .nav-icon svg {
width: 18px;
height: 18px;
}
/* Active: left accent bar */
.nav-item.active,
.nav-item[aria-current="page"] {
background: var(--brand-muted);
}
.nav-item.active .nav-icon::after,
.nav-item[aria-current="page"] .nav-icon::after {
top: 50%;
left: -12px;
right: auto;
transform: translateY(-50%);
width: 3px;
height: 20px;
}
.topbar {
left: 200px;
}
.page {
margin-left: 200px;
}
}
/* =============================================================================
NAV SECTION SEPARATOR (Desktop sidebar)
============================================================================= */
.nav-separator {
width: 100%;
height: 1px;
background: var(--border);
margin: var(--space-2) 0;
display: none;
}
@media (min-width: 1100px) {
.nav-separator {
display: block;
}
}
/* =============================================================================
NAV SECTION LABEL (Desktop sidebar)
============================================================================= */
.nav-section-label {
display: none;
font-size: var(--text-2xs);
font-weight: var(--font-semibold);
color: var(--text-tertiary);
text-transform: uppercase;
letter-spacing: var(--tracking-caps);
padding: var(--space-3) var(--space-3) var(--space-1);
width: 100%;
}
@media (min-width: 1100px) {
.nav-section-label {
display: block;
}
}
/* =============================================================================
NAV FOOTER (Desktop: user info / version at bottom of sidebar)
============================================================================= */
.nav-footer {
display: none;
margin-top: auto;
padding: var(--space-3);
width: 100%;
border-top: 1px solid var(--border);
}
@media (min-width: 1100px) {
.nav-footer {
display: flex;
align-items: center;
gap: var(--space-2);
}
}
.nav-footer-avatar {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--brand-light);
color: var(--brand);
display: flex;
align-items: center;
justify-content: center;
font-size: var(--text-xs);
font-weight: var(--font-bold);
flex-shrink: 0;
}
.nav-footer-info {
flex: 1;
min-width: 0;
}
.nav-footer-name {
font-size: var(--text-sm);
font-weight: var(--font-semibold);
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.nav-footer-plan {
font-size: var(--text-xs);
color: var(--text-tertiary);
}
/* =============================================================================
TOPBAR — RESPONSIVE ADJUSTMENTS
============================================================================= */
@media (min-width: 768px) {
.topbar {
position: fixed;
top: 0;
right: 0;
left: 64px;
height: var(--topbar-height, 56px);
}
}
@media (min-width: 1100px) {
.topbar {
left: 200px;
}
}
/* =============================================================================
CONNECTION STATUS STRIP (below topbar)
============================================================================= */
.connection-strip {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
padding: var(--space-1) var(--space-4);
font-size: var(--text-xs);
font-weight: var(--font-medium);
transition: all var(--transition-base);
overflow: hidden;
max-height: 0;
opacity: 0;
}
.connection-strip.offline {
max-height: 32px;
opacity: 1;
background: var(--danger-muted);
color: var(--danger);
border-bottom: 1px solid var(--border-danger);
}
.connection-strip.reconnecting {
max-height: 32px;
opacity: 1;
background: var(--warning-muted);
color: var(--warning);
border-bottom: 1px solid var(--border-warning);
}
.connection-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
flex-shrink: 0;
}
.connection-strip.offline .connection-dot {
animation: none;
}
.connection-strip.reconnecting .connection-dot {
animation: pulse 1s ease infinite;
}

Xet Storage Details

Size:
14.6 kB
·
Xet hash:
6ea199b7eb001a27bb2e913570a433de4e3cd6ad8dd584b21dc0df7071bbfe61

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.