From 920c0a1d493b82071fc7ac8562c0d0ce414a9989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Tue, 17 Feb 2026 19:49:10 +0100 Subject: [PATCH] fix(header): Fix inline menu items and theme switch icon styling --- assets/css/tailwind.css | 18 ++++++++++++++++++ partials/header.hbs | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index fdc73f6..ed99427 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -48,6 +48,24 @@ html[data-theme='light'] { } } +@layer components { + /* Main navigation styling */ + header nav ul { + @apply flex items-center space-x-4; /* Make li items inline with spacing */ + } + header nav ul li a { + @apply text-[var(--text-primary)] hover:text-[var(--text-secondary)] transition-colors duration-200; /* Default link style */ + } + + /* Mobile navigation styling */ + #mobile-menu nav ul { + @apply flex flex-col items-center space-y-8; /* Stack items vertically in mobile menu */ + } + #mobile-menu nav ul li a { + @apply text-[var(--text-primary)] text-3xl font-bold hover:text-[var(--text-secondary)] transition-colors duration-200; + } +} + @keyframes fadeInUp { from { opacity: 0; diff --git a/partials/header.hbs b/partials/header.hbs index b432c34..80f6259 100644 --- a/partials/header.hbs +++ b/partials/header.hbs @@ -5,7 +5,7 @@
-