diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-16 15:28:23 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-16 15:28:23 +0200 |
| commit | 15471cdd66966ec394f3b4c1614cac00b0261e59 (patch) | |
| tree | 8869298c790bed1bc0c8607e389092c517e7c63e /themes/danix-xyz-hacker/assets/css/main.min.css | |
| parent | 5b4ba192f8a7d405c7070f0276cd66bff96699dd (diff) | |
| download | danixxyz-15471cdd66966ec394f3b4c1614cac00b0261e59.tar.gz danixxyz-15471cdd66966ec394f3b4c1614cac00b0261e59.zip | |
feat: add header nav and hamburger menu styling with JS handlers
- Add header, nav-link, header-actions component CSS
- Add menu-overlay and menu-nav component CSS
- Update hamburger-menu.html with vanilla JS handlers:
- openMenu/closeMenu functions
- ESC key support
- Click outside to close (backdrop click)
- Menu link auto-close
- Scroll lock when menu open
- Replace Alpine @click with id-based event listeners
- Rebuild CSS: main.min.css updated
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/assets/css/main.min.css')
| -rw-r--r-- | themes/danix-xyz-hacker/assets/css/main.min.css | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/assets/css/main.min.css b/themes/danix-xyz-hacker/assets/css/main.min.css index 122dfcb..fac5cca 100644 --- a/themes/danix-xyz-hacker/assets/css/main.min.css +++ b/themes/danix-xyz-hacker/assets/css/main.min.css @@ -1470,6 +1470,40 @@ article.border.border-border\/30.rounded-lg.card.group.bg-bg { } } +/* Header navigation styling */ + +.header { + position: fixed; + top: 0px; + left: 0px; + right: 0px; + z-index: 40; +} + +/* Mobile menu overlay */ + +.menu-overlay { + visibility: hidden; + position: fixed; + inset: 0px; + z-index: 40; + background-color: var(--bg); + opacity: 0; + transition-property: all; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + transition-duration: 300ms; +} + +article.border.border-border\/30.rounded-lg.overflow-hidden.group.menu-overlay { + border-color: var(--border); + box-shadow: 0 0 20px var(--accent-glow); +} + +.menu-overlay.active { + visibility: visible; + opacity: 1; +} + /* Article metadata styling (with icons) */ /* Hero typography with fluid sizing */ |
