Skip to content

Commit b461079

Browse files
authored
Website Update
1 parent 18d1a03 commit b461079

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

docs/assets/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ a {
726726
}
727727

728728
.nav--open .brand {
729-
transform: translate3d(var(--mobile-brand-shift-x, 0px), var(--mobile-brand-shift-y, 0px), 0) scale(1.18);
729+
transform: translate3d(var(--mobile-brand-shift-x, 0px), var(--mobile-brand-shift-y, 0px), 0) scale(1.22);
730730
}
731731

732732
.nav-search,

docs/assets/js/shell.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
if (row && sheetContent){
198198
const rowRect = row.getBoundingClientRect();
199199
const sheetContentRect = sheetContent.getBoundingClientRect();
200-
const menuGap = Math.round(Math.min(Math.max(viewportHeight * 0.17, 114), 148));
200+
const menuGap = Math.round(Math.min(Math.max(viewportHeight * 0.19, 126), 162));
201201
const menuTop = Math.round(Math.max(72, rowRect.bottom + menuGap - sheetContentRect.top));
202202
root.style.setProperty('--mobile-menu-top', `${menuTop}px`);
203203
}
@@ -208,11 +208,14 @@
208208
const brand = nav.querySelector('.brand');
209209
const logo = nav.querySelector('.brand-logo');
210210
const firstLink = nav.querySelector('.mobile-menu a');
211-
if (brand && firstLink){
211+
if (brand && firstLink && row){
212212
const logoRect = (logo || brand).getBoundingClientRect();
213213
const firstLinkRect = firstLink.getBoundingClientRect();
214-
const gapAbove = Math.round(Math.min(Math.max(viewportHeight * 0.038, 26), 34));
215-
const targetTop = firstLinkRect.top - logoRect.height - gapAbove;
214+
const rowRect = row.getBoundingClientRect();
215+
const gapAbove = Math.round(Math.min(Math.max(viewportHeight * 0.028, 18), 24));
216+
const alignedTop = firstLinkRect.top - logoRect.height - gapAbove;
217+
const minLogoTop = Math.round(rowRect.top + 12);
218+
const targetTop = Math.max(alignedTop, minLogoTop);
216219
const shiftX = Math.round(firstLinkRect.left - logoRect.left);
217220
const shiftY = Math.round(targetTop - logoRect.top);
218221

docs/index.html

Lines changed: 2 additions & 2 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=20260322a">
11+
<link rel="stylesheet" href="assets/css/style.css?v=20260323b">
1212

1313
<link rel="icon" type="image/svg+xml" href="favicon.svg">
1414
<link rel="icon" sizes="192x192" href="android-chrome-192x192.png">
@@ -133,6 +133,6 @@ <h2>Live Modules</h2>
133133

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

136-
<script src="assets/js/shell.js?v=20260323a" defer></script>
136+
<script src="assets/js/shell.js?v=20260323b" defer></script>
137137
</body>
138138
</html>

0 commit comments

Comments
 (0)