Sleepyfx's picture
download
raw
15.3 kB
/* filepath: css/nav.css
* SleepyFX Pro — Topbar & Bottom Navigation
* Depends on: css/theme.css, css/components.css (button base)
* Glass surfaces ONLY — topbar and nav are the designated recipients.
* Mobile-first: 5 nav items, center trade button floats above bar.
* ─────────────────────────────────────────────────────────────────────────────
*/
/* ═══════════════════════════════════════════════════════════════════════════
TOPBAR
═══════════════════════════════════════════════════════════════════════════ */
.sfx-topbar {
/* Positioning */
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: var(--sfx-z-sticky);
/* Glass surface */
background-color: var(--sfx-glass-bg);
-webkit-backdrop-filter: var(--sfx-glass-blur);
backdrop-filter: var(--sfx-glass-blur);
border-bottom: 1px solid var(--sfx-glass-border);
/* Height accounts for safe area (notched phones) */
height: calc(var(--sfx-topbar-height) + var(--sfx-safe-area-top));
padding-top: var(--sfx-safe-area-top);
/* Layout */
display: flex;
align-items: center;
justify-content: space-between;
padding-inline: var(--sfx-space-2);
/* No will-change — glass surfaces don't move, no promotion needed */
}
/* ── Logo ─────────────────────────────────────────────────────────────────── */
.sfx-topbar__logo {
display: flex;
align-items: center;
gap: 6px;
color: var(--sfx-accent);
font-family: var(--sfx-font-sans);
font-size: var(--sfx-font-size-md);
font-weight: var(--sfx-font-weight-bold);
letter-spacing: var(--sfx-letter-spacing-tight);
text-decoration: none;
/* Minimum touch target */
min-height: var(--sfx-touch-target);
min-width: var(--sfx-touch-target);
/* Overflow clipping in case icon + text wraps */
white-space: nowrap;
}
.sfx-topbar__logo:hover {
color: var(--sfx-accent-hover);
text-decoration: none;
}
.sfx-topbar__logo-icon {
width: 24px;
height: 24px;
flex-shrink: 0;
}
.sfx-topbar__logo-text {
/* Hide wordmark on very narrow screens (< 360px) to preserve topbar space */
}
@media (max-width: 359px) {
.sfx-topbar__logo-text {
display: none;
}
}
/* ── Clock ────────────────────────────────────────────────────────────────── */
/* Centered absolutely so it doesn't push logo or controls aside. */
.sfx-topbar__clock {
position: absolute;
left: 50%;
top: var(--sfx-safe-area-top);
height: var(--sfx-topbar-height);
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
/* Prevent overlap with left/right controls */
max-width: 180px;
pointer-events: none;
}
.sfx-topbar__clock-time {
font-family: var(--sfx-font-mono);
font-size: var(--sfx-font-size-md);
font-weight: var(--sfx-font-weight-normal);
color: var(--sfx-text-primary);
font-variant-numeric: tabular-nums;
letter-spacing: 0.04em;
line-height: 1;
}
.sfx-topbar__clock-tz {
font-size: var(--sfx-font-size-xs);
color: var(--sfx-text-muted);
margin-left: 4px;
letter-spacing: var(--sfx-letter-spacing-wide);
}
/* ── Right side controls cluster ──────────────────────────────────────────── */
.sfx-topbar__controls {
display: flex;
align-items: center;
gap: 4px;
}
/* ── Session Pill ─────────────────────────────────────────────────────────── */
/* Shows which trading session is active. Dot + name. */
.sfx-topbar__session-pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px var(--sfx-space-1);
border-radius: var(--sfx-radius-full);
background-color: oklch(100% 0 0 / 0.05);
border: 1px solid var(--sfx-border);
min-height: 28px;
cursor: default;
}
.sfx-topbar__session-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background-color: var(--sfx-text-muted);
flex-shrink: 0;
/* Default off-session color; JS sets inline --dot-color or class */
}
/* Session state classes set by JS */
.sfx-topbar__session-pill[data-session="Asia"] .sfx-topbar__session-dot {
background-color: var(--sfx-info);
}
.sfx-topbar__session-pill[data-session="London"] .sfx-topbar__session-dot {
background-color: var(--sfx-warning);
}
.sfx-topbar__session-pill[data-session="NY AM"] .sfx-topbar__session-dot {
background-color: var(--sfx-profit);
}
.sfx-topbar__session-pill[data-session="NY PM"] .sfx-topbar__session-dot {
background-color: var(--sfx-accent);
}
.sfx-topbar__session-pill[data-session="Closed"] .sfx-topbar__session-dot {
background-color: var(--sfx-text-muted);
}
/* Killzone indicator — pulse animation when inside a killzone */
.sfx-topbar__session-pill.is-killzone .sfx-topbar__session-dot {
animation: sfx-pulse 2s var(--sfx-easing-in-out) infinite;
}
.sfx-topbar__session-name {
font-size: var(--sfx-font-size-xs);
font-weight: var(--sfx-font-weight-medium);
color: var(--sfx-text-secondary);
letter-spacing: 0.02em;
white-space: nowrap;
}
/* Hide session name on very narrow screens */
@media (max-width: 380px) {
.sfx-topbar__session-name {
display: none;
}
.sfx-topbar__session-pill {
padding: 4px 6px;
}
}
/* ── Theme Toggle Button ───────────────────────────────────────────────────── */
.sfx-topbar__theme-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: var(--sfx-touch-target);
height: var(--sfx-touch-target);
border: none;
background: transparent;
color: var(--sfx-text-secondary);
border-radius: var(--sfx-radius-md);
cursor: pointer;
transition:
color var(--sfx-duration-fast) var(--sfx-easing-out),
background-color var(--sfx-duration-fast) var(--sfx-easing-out),
transform var(--sfx-duration-normal) var(--sfx-easing-out);
}
.sfx-topbar__theme-toggle:hover {
color: var(--sfx-text-primary);
background-color: oklch(100% 0 0 / 0.06);
}
/* Icon rotates 180° on dark→light toggle. JS toggles .is-light on button. */
.sfx-topbar__theme-toggle.is-light {
transform: rotate(180deg);
}
.sfx-topbar__theme-toggle:focus-visible {
outline: 2px solid var(--sfx-accent);
outline-offset: 3px;
}
/* ── Tablet / Desktop Topbar adjustments ──────────────────────────────────── */
@media (min-width: 768px) {
.sfx-topbar {
padding-inline: var(--sfx-space-3);
}
.sfx-topbar__clock-time {
font-size: var(--sfx-font-size-lg);
}
}
@media (min-width: 1024px) {
.sfx-topbar {
padding-inline: calc((100% - var(--sfx-max-width)) / 2 + var(--sfx-space-4));
}
}
/* ═══════════════════════════════════════════════════════════════════════════
BOTTOM NAVIGATION
═══════════════════════════════════════════════════════════════════════════ */
.sfx-bottom-nav {
/* Positioning */
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: var(--sfx-z-sticky);
/* Glass surface */
background-color: var(--sfx-glass-bg);
-webkit-backdrop-filter: var(--sfx-glass-blur);
backdrop-filter: var(--sfx-glass-blur);
border-top: 1px solid var(--sfx-glass-border);
/* Height + safe area */
height: calc(var(--sfx-nav-height) + var(--sfx-safe-area-bottom));
padding-bottom: var(--sfx-safe-area-bottom);
/* Layout — 5 items, evenly distributed */
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
/* Constrain width and center on wide screens */
max-width: 100%;
}
/* ── Nav Items ────────────────────────────────────────────────────────────── */
.sfx-bottom-nav__item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
/* Touch target */
min-width: var(--sfx-touch-target);
min-height: var(--sfx-touch-target);
padding: 6px var(--sfx-space-1);
/* Reset */
border: none;
background: transparent;
cursor: pointer;
text-decoration: none;
/* Typography */
color: var(--sfx-text-muted);
font-family: var(--sfx-font-sans);
font-size: var(--sfx-font-size-xs);
font-weight: var(--sfx-font-weight-medium);
letter-spacing: 0.01em;
/* Transition — color only, GPU-composited */
transition: color var(--sfx-duration-fast) var(--sfx-easing-out);
/* Prevent text wrapping on tiny labels */
white-space: nowrap;
-webkit-tap-highlight-color: transparent;
position: relative;
}
.sfx-bottom-nav__item:hover {
color: var(--sfx-text-secondary);
}
.sfx-bottom-nav__item:focus-visible {
outline: 2px solid var(--sfx-accent);
outline-offset: -2px;
border-radius: var(--sfx-radius-sm);
}
/* ── Icon ─────────────────────────────────────────────────────────────────── */
.sfx-bottom-nav__icon {
width: 22px;
height: 22px;
flex-shrink: 0;
stroke: currentColor;
fill: none;
stroke-width: 1.6;
/* Subtle transform entrance when selected */
transition: transform var(--sfx-duration-fast) var(--sfx-easing-out);
}
/* ── Label ────────────────────────────────────────────────────────────────── */
.sfx-bottom-nav__label {
font-size: var(--sfx-font-size-xs);
line-height: 1;
}
/* ── Active State ─────────────────────────────────────────────────────────── */
.sfx-bottom-nav__item--active,
.sfx-bottom-nav__item[aria-current="page"] {
color: var(--sfx-accent);
}
/* Icon nudge upward on active — subtle, spatial */
.sfx-bottom-nav__item--active .sfx-bottom-nav__icon,
.sfx-bottom-nav__item[aria-current="page"] .sfx-bottom-nav__icon {
transform: translateY(-1px);
}
/* Active indicator dot below icon — minimal affordance */
.sfx-bottom-nav__item--active::after,
.sfx-bottom-nav__item[aria-current="page"]::after {
content: '';
position: absolute;
bottom: 4px;
left: 50%;
transform: translateX(-50%);
width: 4px;
height: 4px;
border-radius: 50%;
background-color: var(--sfx-accent);
}
/* ── Trade Action Button (center, floating above bar) ────────────────────── */
/* Elevated with translateY — announces primacy without a label. */
.sfx-bottom-nav__trade-btn {
display: flex;
align-items: center;
justify-content: center;
/* Circle dimensions */
width: 54px;
height: 54px;
border-radius: 50%;
flex-shrink: 0;
/* Elevation: float above the nav bar */
transform: translateY(-14px);
/* Style */
background-color: var(--sfx-accent);
color: var(--sfx-text-on-accent);
border: none;
cursor: pointer;
/* Shadow — matches elevated token */
box-shadow:
var(--sfx-shadow-elevated),
0 0 0 4px var(--sfx-bg-page),
/* ring creates visual separation from nav */
0 0 0 5px var(--sfx-glass-border);
/* Transition — GPU only */
transition:
transform var(--sfx-duration-fast) var(--sfx-easing-out),
box-shadow var(--sfx-duration-fast) var(--sfx-easing-out),
background-color var(--sfx-duration-fast) var(--sfx-easing-out);
-webkit-tap-highlight-color: transparent;
}
.sfx-bottom-nav__trade-btn:hover {
transform: translateY(-16px) scale(1.05);
background-color: var(--sfx-accent-hover);
box-shadow:
var(--sfx-shadow-modal),
0 0 0 4px var(--sfx-bg-page),
0 0 0 5px var(--sfx-glass-border);
}
.sfx-bottom-nav__trade-btn:active {
transform: translateY(-12px) scale(0.96);
box-shadow:
var(--sfx-shadow-card),
0 0 0 4px var(--sfx-bg-page),
0 0 0 5px var(--sfx-glass-border);
}
.sfx-bottom-nav__trade-btn:focus-visible {
outline: 2px solid var(--sfx-accent);
outline-offset: 4px;
}
.sfx-bottom-nav__trade-btn-icon {
width: 22px;
height: 22px;
stroke: currentColor;
fill: none;
stroke-width: 2;
flex-shrink: 0;
}
/* Button ripple effect — pseudo-element expands on click */
.sfx-bottom-nav__trade-btn::before {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
background: oklch(100% 0 0 / 0.2);
transform: scale(0);
opacity: 0;
transition:
transform var(--sfx-duration-normal) var(--sfx-easing-out),
opacity var(--sfx-duration-normal) var(--sfx-easing-out);
pointer-events: none;
}
.sfx-bottom-nav__trade-btn:active::before {
transform: scale(1.3);
opacity: 0;
}
/* ── Desktop / Tablet: hide bottom nav, show sidebar or top nav ──────────── */
@media (min-width: 1024px) {
.sfx-bottom-nav {
display: none;
}
}
/* ── Tablet: show labels more comfortably ─────────────────────────────────── */
@media (min-width: 768px) {
.sfx-bottom-nav {
max-width: var(--sfx-max-width);
left: 50%;
transform: translateX(-50%);
border-left: 1px solid var(--sfx-glass-border);
border-right: 1px solid var(--sfx-glass-border);
border-radius: var(--sfx-radius-xl) var(--sfx-radius-xl) 0 0;
right: auto;
width: 100%;
}
.sfx-bottom-nav__item {
padding: 8px var(--sfx-space-2);
}
}

Xet Storage Details

Size:
15.3 kB
·
Xet hash:
2a5651aeed5a40ac08ab25230caec45945e1f2d3faa14e5742d0f3a5f92d2f5d

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