mirror of
https://github.com/Patiun/com.gregkilmer.www.git
synced 2026-11-07 19:58:24 +00:00
Open the My world menu over the page
The header clipped everything to its own box, so the dropdown was cut off below the nav line. Only the nebula and banner are clipped now, and the header stacks above the page content. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012aSbo2D1qP8cMFQCykf7kx
This commit is contained in:
@@ -24,8 +24,10 @@ const inWorld = world.some((w) => w.key === current);
|
|||||||
const aria = (key: NavKey) => (key === current ? "page" : undefined);
|
const aria = (key: NavKey) => (key === current ? "page" : undefined);
|
||||||
---
|
---
|
||||||
<header class="gk-site-header">
|
<header class="gk-site-header">
|
||||||
<div class="nebula" aria-hidden="true"></div>
|
<div class="decor" aria-hidden="true">
|
||||||
<img src={filamentBanner} alt="" aria-hidden="true" class="banner" />
|
<div class="nebula"></div>
|
||||||
|
<img src={filamentBanner} alt="" class="banner" />
|
||||||
|
</div>
|
||||||
{
|
{
|
||||||
store ? (
|
store ? (
|
||||||
<nav aria-label="Store" class="nav">
|
<nav aria-label="Store" class="nav">
|
||||||
@@ -88,17 +90,24 @@ const aria = (key: NavKey) => (key === current ? "page" : undefined);
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
/* The header sits above the page so the My world menu opens over it; only
|
||||||
|
the nebula and banner are clipped to the header. */
|
||||||
.gk-site-header {
|
.gk-site-header {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
z-index: 10;
|
||||||
color: var(--gk-text);
|
color: var(--gk-text);
|
||||||
isolation: isolate;
|
isolation: isolate;
|
||||||
}
|
}
|
||||||
|
.decor {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
z-index: -1;
|
||||||
|
overflow: hidden;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
.nebula {
|
.nebula {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
z-index: -1;
|
|
||||||
pointer-events: none;
|
|
||||||
background:
|
background:
|
||||||
radial-gradient(ellipse 70% 90% at 100% 0%, rgba(106, 47, 224, 0.28), transparent 70%),
|
radial-gradient(ellipse 70% 90% at 100% 0%, rgba(106, 47, 224, 0.28), transparent 70%),
|
||||||
radial-gradient(ellipse 55% 80% at 0% 70%, rgba(20, 163, 154, 0.18), transparent 70%);
|
radial-gradient(ellipse 55% 80% at 0% 70%, rgba(20, 163, 154, 0.18), transparent 70%);
|
||||||
@@ -112,8 +121,6 @@ const aria = (key: NavKey) => (key === current ? "page" : undefined);
|
|||||||
width: 900px;
|
width: 900px;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
opacity: 0.22;
|
opacity: 0.22;
|
||||||
pointer-events: none;
|
|
||||||
z-index: -1;
|
|
||||||
}
|
}
|
||||||
.nav {
|
.nav {
|
||||||
max-width: var(--gk-page-max);
|
max-width: var(--gk-page-max);
|
||||||
|
|||||||
Reference in New Issue
Block a user