Commit 63897c4b authored by Pablo Marcos's avatar Pablo Marcos Committed by Carl Schwan
Browse files

Added suggested changes

parent 72a7edf6
details {
border: 1px solid #5850ec;
border-radius: 10px;
padding: .5em .5em 0;
padding: .5rem .5rem 0;
}
summary {
margin: -.5em -.5em 0;
padding: .5em;
margin: -.5rem -.5rem 0;
padding: .5rem;
}
summary:hover {
......@@ -14,11 +14,11 @@ summary:hover {
}
details[open] {
padding: .5em;
padding: .5rem;
}
details[open] summary {
border-bottom: 1px solid #aaa;
margin-bottom: .5em;
margin-bottom: .5rem;
font-weight: bold;
}
<ul class="navbar-nav mr-auto">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
<li class="nav-item dropdown {{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
<div class="dropdown-menu">
{{ range .Children }}
<a class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }} dropdown-item"
href="{{ .URL }}">{{ .Name }}
</a>
{{ end }}
</div>
</li>
{{ else }}
<li class="nav-item">
<a class="nav-link {{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}active{{ end }}" href="{{ .URL }}">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
</li>
{{ end }}
{{ end }}
</ul>
<ul class="navbar-nav ml-auto">
{{ if .IsTranslated }}
<li class="nav-item dropdown" aria-describedby="language-picker-description">
<p class="sr-only" id="language-picker-description">{{ i18n "Select-your-language" }}</p>
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<img src="/aether/languages.png" alt="" />
<span>{{ i18n "translations" }}</span>
</a>
<div class="dropdown-menu dropdonw-trans" role="listbox">
<a class="dropdown-item" aria-selected="true" hreflang="{{ .Site.Language.Lang }}" role="option" lang="{{ .Site.Language.Lang }}" href="{{ .Permalink }}">{{ .Site.Language.LanguageName }}</a>
{{ range .Translations }}
<a class="dropdown-item" hreflang="{{ .Language.Lang }}" role="option" lang="{{ .Language.Lang }}" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
{{ end }}
</div>
</li>
{{ end }}
</ul>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment