Skip to content

Commit bdb077e

Browse files
authored
Website Update
1 parent 0972d9f commit bdb077e

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

docs/assets/css/style.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -582,9 +582,12 @@ a {
582582

583583
.nav-menu-blur {
584584
display: block;
585-
position: fixed;
586-
inset: 0;
587-
z-index: 1;
585+
position: absolute;
586+
top: var(--menu-blur-top, 0px);
587+
left: 0;
588+
right: 0;
589+
height: var(--menu-blur-height, 0px);
590+
z-index: 2;
588591
pointer-events: none;
589592
opacity: 0;
590593
visibility: hidden;
@@ -604,17 +607,14 @@ a {
604607
.page-wrap,
605608
.site-footer {
606609
transition:
607-
filter .28s cubic-bezier(.22,1,.36,1),
608-
-webkit-filter .28s cubic-bezier(.22,1,.36,1),
609-
opacity .28s ease;
610-
will-change: filter;
610+
opacity .28s ease,
611+
filter .28s cubic-bezier(.22,1,.36,1);
611612
}
612613

613614
body.nav-menu-open .page-wrap,
614615
body.nav-menu-open .site-footer {
615-
filter: blur(16px) saturate(138%);
616-
-webkit-filter: blur(16px) saturate(138%);
617616
opacity: 1;
617+
filter: blur(16px) saturate(138%);
618618
}
619619

620620
.desktop {

docs/assets/js/shell.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const body = document.body;
55
const base = (body?.getAttribute('data-base') || '.').trim();
6-
const assetVersion = '20260320e';
6+
const assetVersion = '20260320h';
77
const prefersReducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
88

99
const projects = [
@@ -118,6 +118,8 @@
118118

119119
function clearPortraitMenuLayoutVars(){
120120
const root = document.documentElement;
121+
root.style.removeProperty('--menu-blur-top');
122+
root.style.removeProperty('--menu-blur-height');
121123
root.style.removeProperty('--mobile-row-inline');
122124
root.style.removeProperty('--mobile-menu-inline');
123125
root.style.removeProperty('--mobile-menu-top');
@@ -136,11 +138,15 @@
136138
}
137139

138140
const vv = window.visualViewport;
141+
const scrollTop = Math.round(window.scrollY || window.pageYOffset || 0);
139142
const viewportTop = Math.round(vv?.offsetTop ?? 0);
140143
const viewportHeight = Math.round(vv?.height ?? window.innerHeight);
141144
const viewportWidth = Math.round(vv?.width ?? window.innerWidth);
142145
const viewportBottom = viewportTop + viewportHeight;
143146

147+
root.style.setProperty('--menu-blur-top', `${scrollTop + viewportTop}px`);
148+
root.style.setProperty('--menu-blur-height', `${Math.max(0, viewportHeight)}px`);
149+
144150
const rowInline = Math.round(Math.min(Math.max(viewportWidth * 0.118, 50), 60));
145151
const menuInline = Math.round(Math.min(Math.max(viewportWidth * 0.084, 36), 46));
146152
root.style.setProperty('--mobile-row-inline', `${rowInline}px`);

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="preconnect" href="https://fonts.googleapis.com">
99
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1010
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Unbounded:wght@500;700;800&display=swap" rel="stylesheet">
11-
<link rel="stylesheet" href="assets/css/style.css?v=20260320f">
11+
<link rel="stylesheet" href="assets/css/style.css?v=20260320j">
1212

1313
<link rel="icon" type="image/svg+xml" href="favicon.svg">
1414
<link rel="icon" sizes="192x192" href="android-chrome-192x192.png">
@@ -29,9 +29,9 @@
2929
<script>document.documentElement.classList.add('js');</script>
3030
</head>
3131
<body class="page-home" data-base=".">
32+
<div class="nav-menu-blur" aria-hidden="true"></div>
3233
<header class="site-nav" aria-label="Primary">
3334
<div class="nav-backdrop" aria-hidden="true"></div>
34-
<div class="nav-menu-blur" aria-hidden="true"></div>
3535
<div class="nav-shell">
3636
<div id="nav-slot"></div>
3737
</div>
@@ -133,6 +133,6 @@ <h2>Live Modules</h2>
133133

134134
<div id="footer-slot"></div>
135135

136-
<script src="assets/js/shell.js?v=20260320e" defer></script>
136+
<script src="assets/js/shell.js?v=20260320h" defer></script>
137137
</body>
138138
</html>

0 commit comments

Comments
 (0)