mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-25 14:20:42 +00:00
feat: icon shift on header menu (#219)
This commit is contained in:
parent
98110f1a09
commit
d03c035d48
@ -19,12 +19,14 @@
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $target "header" }}
|
||||
<span>
|
||||
<a href="{{ if .external }}{{ .ref }}{{ else }}{{ relref $current .ref }}{{ end }}" class="gdoc-header__link">
|
||||
<svg class="icon {{ .icon }}">
|
||||
<title>{{ .name }}</title>
|
||||
<use xlink:href="#{{ .icon }}"></use>
|
||||
</svg>
|
||||
</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -38,19 +38,23 @@
|
||||
</svg>
|
||||
</span>
|
||||
{{ if .Root.Site.Data.menu.extra.header }}
|
||||
<a href="{{ .Root.Site.BaseURL }}" class="gdoc-header__link gdoc-menu-header__home">
|
||||
<span class="gdoc-menu-header__home">
|
||||
<a href="{{ .Root.Site.BaseURL }}" class="gdoc-header__link">
|
||||
<svg class="icon gdoc_home">
|
||||
<title>Back to homepage</title>
|
||||
<use xlink:href="#gdoc_home"></use>
|
||||
</svg>
|
||||
</a>
|
||||
<label for="menu-header-control" class="gdoc-menu-header__control">
|
||||
</span>
|
||||
<span class="gdoc-menu-header__control">
|
||||
<label for="menu-header-control">
|
||||
<svg class="icon gdoc_keyborad_arrow_right">
|
||||
<use xlink:href="#gdoc_keyborad_arrow_right"></use>
|
||||
<title>Close Menu Bar</title>
|
||||
</svg>
|
||||
</label>
|
||||
</span>
|
||||
</span>
|
||||
<label for="menu-header-control" class="gdoc-menu-header__control">
|
||||
<svg class="icon gdoc_keyborad_arrow_left">
|
||||
<use xlink:href="#gdoc_keyborad_arrow_left"></use>
|
||||
|
@ -201,8 +201,8 @@ img {
|
||||
&__items {
|
||||
display: inline-block;
|
||||
|
||||
:not(:last-child) {
|
||||
margin-right: $padding-8;
|
||||
> span {
|
||||
margin-left: $padding-8;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user