Compare commits

..

2 Commits

2 changed files with 14 additions and 0 deletions

View File

@ -96,6 +96,7 @@
font-size: 2.4rem; font-size: 2.4rem;
font-weight: 400; font-weight: 400;
line-height: 6rem; line-height: 6rem;
padding: 0.5em 0 0.5em 0.5em;
color: $fg-color; color: $fg-color;
cursor: pointer; cursor: pointer;
&:hover, &:hover,
@ -107,4 +108,12 @@
} }
} }
} }
.primary-menu-item {
display: none;
@media only screen and (max-width: 768px) {
display: block;
margin-left: auto;
}
}
} }

View File

@ -4,6 +4,11 @@
{{ .Site.Title }} {{ .Site.Title }}
</a> </a>
{{ if or .Site.Menus.main .Site.IsMultiLingual }} {{ if or .Site.Menus.main .Site.IsMultiLingual }}
<span class="primary-menu-item">
{{ with index $.Site.Menus.main 0 }}
<a class="navigation-link" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{ end }}
</span>
<input type="checkbox" id="menu-toggle" /> <input type="checkbox" id="menu-toggle" />
<label class="menu-button float-right" for="menu-toggle">{{ partial "svg/hamburger.svg" }}</label> <label class="menu-button float-right" for="menu-toggle">{{ partial "svg/hamburger.svg" }}</label>
<ul class="navigation-list"> <ul class="navigation-list">