mirror of https://github.com/docker/docs.git
style: dds webapp top nav
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
6e3d110e5b
commit
c6aa90c33a
|
@ -2,15 +2,14 @@
|
||||||
{{ $firstSection := (index ($scratch.GetSortedMapValues "sections") 0).title }}
|
{{ $firstSection := (index ($scratch.GetSortedMapValues "sections") 0).title }}
|
||||||
<div>
|
<div>
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="flex gap-4 md:hidden">
|
<ul class="box-content flex mt-1 gap-4 md:hidden">
|
||||||
{{ range site.Menus.main }}
|
{{ range site.Menus.main }}
|
||||||
<li
|
<li class="opacity-100 border-b-4 hover:opacity-100
|
||||||
class="pb-1 mt-2 underline-offset-8 decoration-2 hover:underline hover:opacity-75
|
{{- if not (eq $firstSection .Name) }}
|
||||||
{{- if eq $firstSection .Name }}
|
opacity-60 border-blue-light dark:border-blue-dark-200 hover:border-blue-light-600 dark:hover:border-blue-dark-100
|
||||||
underline
|
|
||||||
{{- end }}">
|
{{- end }}">
|
||||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
<a class="block py-1 px-2" href="{{ .URL }}">{{ .Name }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in New Issue