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,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>
|
||||
|
|
Loading…
Reference in New Issue