Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c588ee102c | |||
| 94b0f34f46 | |||
| bb0220c166 | |||
| 3583df44ac |
+7
-18
@@ -144,8 +144,6 @@
|
|||||||
--radius-xl: 2rem;
|
--radius-xl: 2rem;
|
||||||
--radius-xxl: 2.5rem;
|
--radius-xxl: 2.5rem;
|
||||||
|
|
||||||
--header-offset: 6.5rem;
|
|
||||||
|
|
||||||
|
|
||||||
/* Semantic tokens: contextual usage */
|
/* Semantic tokens: contextual usage */
|
||||||
--color-background: light-dark(var(--color-neutral-100), var(--color-neutral-900));
|
--color-background: light-dark(var(--color-neutral-100), var(--color-neutral-900));
|
||||||
@@ -193,9 +191,8 @@
|
|||||||
|
|
||||||
--border: #d8d8d8;
|
--border: #d8d8d8;
|
||||||
--header-offset: 6.5rem;
|
--header-offset: 6.5rem;
|
||||||
--overlay: rgb(12 12 12 / 0.8);
|
--overlay: light-dark(rgb(247 247 247 / 0.8), rgb(18 18 18 / 0.8));
|
||||||
--panel: rgb(255 255 255 / 0.76);
|
--panel: rgb(255 255 255 / 0.76);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
*,
|
*,
|
||||||
@@ -490,7 +487,7 @@ button:active, .button-primary:active, .logo:active {
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
padding-top: max(1px, env(safe-area-inset-top));
|
padding-top: max(1px, env(safe-area-inset-top));
|
||||||
z-index: 100;
|
z-index: 400;
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(
|
||||||
180deg,
|
180deg,
|
||||||
light-dark(var(--gradient-stop-1-light), var(--gradient-stop-1-dark)) 0%,
|
light-dark(var(--gradient-stop-1-light), var(--gradient-stop-1-dark)) 0%,
|
||||||
@@ -617,13 +614,9 @@ button:active, .button-primary:active, .logo:active {
|
|||||||
transition: transform 0.25s ease, opacity 0.25s ease;
|
transition: transform 0.25s ease, opacity 0.25s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-toggle.is-open {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-overlay {
|
.menu-overlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
inset: var(--header-offset) 0 0 0;
|
inset: 0;
|
||||||
background: var(--overlay);
|
background: var(--overlay);
|
||||||
backdrop-filter: blur(6px);
|
backdrop-filter: blur(6px);
|
||||||
-webkit-backdrop-filter: blur(6px);
|
-webkit-backdrop-filter: blur(6px);
|
||||||
@@ -635,7 +628,10 @@ button:active, .button-primary:active, .logo:active {
|
|||||||
|
|
||||||
.mobile-menu {
|
.mobile-menu {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
inset: auto 1rem 1rem 1rem;
|
top: 6.5rem;
|
||||||
|
right: 1rem;
|
||||||
|
bottom: 1rem;
|
||||||
|
left: 1rem;
|
||||||
width: auto;
|
width: auto;
|
||||||
max-width: 24rem;
|
max-width: 24rem;
|
||||||
margin-inline: auto;
|
margin-inline: auto;
|
||||||
@@ -653,13 +649,6 @@ button:active, .button-primary:active, .logo:active {
|
|||||||
z-index: 300;
|
z-index: 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-menu__header {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-menu ul {
|
.mobile-menu ul {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
const body = document.body;
|
const body = document.body;
|
||||||
const menuToggle = document.getElementById('menuToggle');
|
const menuToggle = document.getElementById('menuToggle');
|
||||||
const menuClose = document.getElementById('menuClose');
|
|
||||||
const menuOverlay = document.getElementById('menuOverlay');
|
const menuOverlay = document.getElementById('menuOverlay');
|
||||||
const mobileMenu = document.getElementById('mobileMenu');
|
const mobileMenu = document.getElementById('mobileMenu');
|
||||||
const siteContent = document.getElementById('siteContent');
|
const siteContent = document.getElementById('siteContent');
|
||||||
@@ -15,7 +14,7 @@
|
|||||||
menuToggle.setAttribute('aria-label', 'Close menu');
|
menuToggle.setAttribute('aria-label', 'Close menu');
|
||||||
mobileMenu.setAttribute('aria-hidden', 'false');
|
mobileMenu.setAttribute('aria-hidden', 'false');
|
||||||
siteContent.setAttribute('inert', '');
|
siteContent.setAttribute('inert', '');
|
||||||
menuClose.focus();
|
menuToggle.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeMenu() {
|
function closeMenu() {
|
||||||
@@ -43,7 +42,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
menuToggle.addEventListener('click', toggleMenu);
|
menuToggle.addEventListener('click', toggleMenu);
|
||||||
menuClose.addEventListener('click', closeMenu);
|
|
||||||
menuOverlay.addEventListener('click', closeMenu);
|
menuOverlay.addEventListener('click', closeMenu);
|
||||||
|
|
||||||
document.addEventListener('keydown', (event) => {
|
document.addEventListener('keydown', (event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user