style: dds webapp top nav

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2023-09-28 10:24:44 +02:00
parent 6e3d110e5b
commit c6aa90c33a
1 changed files with 6 additions and 7 deletions

View File

@ -2,14 +2,13 @@
{{ $firstSection := (index ($scratch.GetSortedMapValues "sections") 0).title }}
<div>
<nav>
<ul class="flex gap-4 md:hidden">
<ul class="box-content flex mt-1 gap-4 md:hidden">
{{ range site.Menus.main }}
<li
class="pb-1 mt-2 underline-offset-8 decoration-2 hover:underline hover:opacity-75
{{- if eq $firstSection .Name }}
underline
<li class="opacity-100 border-b-4 hover:opacity-100
{{- if not (eq $firstSection .Name) }}
opacity-60 border-blue-light dark:border-blue-dark-200 hover:border-blue-light-600 dark:hover:border-blue-dark-100
{{- end }}">
<a href="{{ .URL }}">{{ .Name }}</a>
<a class="block py-1 px-2" href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>