Files
yoyos.sh/src/components/MobileMenu.css
T
Johan Sandoval a8d193cde0
Mirror to Gitea / mirror (push) Skipped
Louder retro effects, less Chicago, smoother menu
Bake grungy treatments into photos (toon/cel shading with ink outlines,
dithered pixel art, photocopy, riso misprint, faded vintage with dust and
scratches) via tools/fx.py, and add a live WebGL shader (CRT, VHS,
pixel-resolve, toon) used on hero images. Add glitch and RGB-split type,
camcorder OSD, manga speed lines, sparkles, speech bubbles, checker strips,
TV test-pattern placeholders and a CRT power-off/on page transition.

Keep the L-train menu and line colors but drop the other Chicago
references (star logo, skyline hero, flag footer, Chicago postcard).

Fix menu lag: grain overlay no longer uses a blend mode, the header drops
its backdrop blur, menu layers are GPU-promoted, and background effects
pause while the menu is open.
2026-10-08 16:48:00 +00:00

128 lines
2.6 KiB
CSS

/* Overrides for React Bits' StaggeredMenu: CTA station list on cream stock. */
.yo-menu.staggered-menu-wrapper.fixed-wrapper {
z-index: 200;
height: 100dvh;
width: 100%;
}
.yo-menu .staggered-menu-header {
height: 3.75rem;
padding: 0 var(--gutter);
}
.yo-menu .sm-toggle {
min-height: 44px;
padding: 0 0.85rem;
gap: 0.5rem;
border: 2px solid #141412;
border-radius: 999px;
background: #fffdf7;
font-family: var(--ff-grotesk);
font-weight: 700;
font-size: 0.95rem;
}
.yo-menu .sm-prelayers,
.yo-menu .staggered-menu-panel {
width: 100%;
}
/* promote the sliding layers up front so the first frame doesn't stutter */
.yo-menu .sm-prelayer,
.yo-menu .staggered-menu-panel,
.yo-menu .sm-panel-itemLabel {
will-change: transform;
backface-visibility: hidden;
}
/* pause decorative motion behind the open menu */
html.menu-open main * {
animation-play-state: paused !important;
}
.yo-menu .staggered-menu-panel {
background: #f4f1e8;
padding: 5.5rem var(--gutter) 2rem;
backdrop-filter: none;
}
.yo-menu .sm-panel-list {
position: relative;
gap: 0;
padding-left: 2.6rem;
}
.yo-menu .sm-panel-list::before {
content: '';
position: absolute;
left: 0.85rem;
top: 1.2rem;
bottom: 1.2rem;
width: 6px;
border-radius: 3px;
background: #141412;
}
.yo-menu .sm-panel-itemWrap {
overflow: visible;
}
.yo-menu .sm-panel-item {
display: flex;
align-items: center;
min-height: 3.6rem;
padding: 0.35rem 0;
font-family: var(--ff-grotesk);
font-weight: 800;
font-size: clamp(2.3rem, 11vw, 3.4rem);
letter-spacing: -0.04em;
text-transform: none;
color: #141412;
}
.yo-menu .sm-panel-item::before {
content: '';
position: absolute;
left: -2.6rem;
top: 50%;
width: 1.4rem;
height: 1.4rem;
margin-left: 0.3rem;
translate: 0 -50%;
border-radius: 50%;
background: var(--item-color, #141412);
border: 4px solid #141412;
box-sizing: border-box;
}
.yo-menu .sm-panel-item[aria-current='page'] {
color: var(--item-color);
}
.yo-menu .sm-panel-item[aria-current='page']::before {
background: #fff;
border-color: var(--item-color);
}
.yo-menu .sm-panel-item:hover {
color: var(--item-color, #c60c30);
}
.yo-menu-foot {
margin-top: auto;
padding-top: 2rem;
display: grid;
gap: 0.4rem;
font-family: var(--ff-mono);
font-size: 0.9rem;
color: #141412;
}
.yo-menu-foot a {
color: #141412;
text-decoration-color: #c60c30;
}
.yo-menu-status {
display: flex;
align-items: center;
gap: 0.5rem;
}
.yo-menu-status span {
width: 0.6rem;
height: 0.6rem;
border-radius: 50%;
background: #2fd36b;
}
html.menu-open {
overflow: hidden;
}
@media (min-width: 56.01rem) {
.yo-menu {
display: none;
}
}