diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index a5652bf..9b1160c 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -93,14 +93,42 @@ Home About - Blog - Articles - Notes + {# Blog dropdown #} + + + Blog + + + + + + All Posts + Articles + Notes + Photos + Bookmarks + Likes + Replies + Reposts + + Interactions - GitHub - Listening - Funkwhale - YouTube + News + {# Activity dropdown #} + + + Activity + + + + + + GitHub + Listening + Funkwhale + YouTube + + @@ -115,17 +143,45 @@ {# Mobile nav dropdown #} - + Home About - Blog - Articles - Notes + {# Blog section #} + + + Blog + + + + + + All Posts + Articles + Notes + Photos + Bookmarks + Likes + Replies + Reposts + + Interactions - GitHub - Listening - Funkwhale - YouTube + News + {# Activity section #} + + + Activity + + + + + + GitHub + Listening + Funkwhale + YouTube + + diff --git a/css/tailwind.css b/css/tailwind.css index 5c6fac5..6dc5b77 100644 --- a/css/tailwind.css +++ b/css/tailwind.css @@ -68,10 +68,28 @@ @apply flex items-center gap-4; } - .site-nav a { + .site-nav > a, + .site-nav .nav-dropdown-trigger { @apply text-surface-600 dark:text-surface-400 hover:text-primary-600 dark:hover:text-primary-400 no-underline transition-colors py-2; } + /* Navigation dropdown */ + .nav-dropdown { + @apply relative; + } + + .nav-dropdown-trigger { + @apply flex items-center gap-1 cursor-pointer bg-transparent border-none text-base; + } + + .nav-dropdown-menu { + @apply absolute top-full left-0 mt-1 py-2 bg-white dark:bg-surface-800 border border-surface-200 dark:border-surface-700 rounded-lg shadow-lg min-w-[160px] z-50; + } + + .nav-dropdown-menu a { + @apply block px-4 py-2 text-sm text-surface-600 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-700 hover:text-primary-600 dark:hover:text-primary-400 no-underline; + } + /* Mobile menu toggle button */ .menu-toggle { @apply md:hidden p-2 rounded-lg text-surface-600 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-800 transition-colors; @@ -86,6 +104,23 @@ @apply block px-4 py-3 text-surface-600 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-800 hover:text-primary-600 dark:hover:text-primary-400 no-underline transition-colors border-b border-surface-100 dark:border-surface-800 last:border-b-0; } + /* Mobile nav collapsible sections */ + .mobile-nav-section { + @apply border-b border-surface-100 dark:border-surface-800; + } + + .mobile-nav-toggle { + @apply flex items-center justify-between w-full px-4 py-3 text-surface-600 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-800 hover:text-primary-600 dark:hover:text-primary-400 transition-colors bg-transparent border-none text-base text-left cursor-pointer; + } + + .mobile-nav-submenu { + @apply bg-surface-50 dark:bg-surface-800; + } + + .mobile-nav-submenu a { + @apply pl-8 py-2 text-sm border-b-0; + } + /* Theme toggle button */ .theme-toggle { @apply p-2 rounded-lg text-surface-600 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-800 transition-colors;