+
{{ $navEnabled := default true .Page.Params.GeekdocNav }}
{{ partial "site-header" (dict "Root" . "MenuEnabled" $navEnabled) }}
diff --git a/layouts/partials/menu-extra.html b/layouts/partials/menu-extra.html
new file mode 100644
index 0000000..fb9298c
--- /dev/null
+++ b/layouts/partials/menu-extra.html
@@ -0,0 +1,31 @@
+{{ $current := .current }}
+{{ template "menu-extra" dict "sect" .source "current" $current "site" $current.Site "target" .target }}
+
+
+{{ define "menu-extra" }}
+{{ $current := .current }}
+{{ $site := .site }}
+{{ $target := .target }}
+{{ $sect := .sect }}
+
+{{ range sort (default (seq 0) $sect) "weight" }}
+ {{ if isset . "ref" }}
+ {{ $this := $site.GetPage .ref }}
+ {{ $isCurrent := eq $current $this }}
+ {{ $icon := default false .icon }}
+
+ {{ if not .icon }}
+ {{ errorf "Missing 'icon' attribute in data file for '%s' menu item '%s'" $target .name }}
+ {{ end }}
+
+ {{ if eq $target "header" }}
+
+ {{ end }}
+ {{ end }}
+{{ end }}
+{{ end }}
diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html
index 982cb4d..2c03955 100644
--- a/layouts/partials/site-header.html
+++ b/layouts/partials/site-header.html
@@ -2,8 +2,14 @@
{{ if .MenuEnabled }}
{{ end }}
-
-
-
-
-
+
diff --git a/src/sass/_base.scss b/src/sass/_base.scss
index ea3a2cf..cd3f28d 100644
--- a/src/sass/_base.scss
+++ b/src/sass/_base.scss
@@ -126,6 +126,10 @@ img {
vertical-align: middle;
}
+#gdoc-dark-mode {
+ cursor: pointer;
+}
+
.fake-link:hover {
background-image: linear-gradient(var(--link-color), var(--link-color));
background-position: 0 100%;
@@ -170,7 +174,7 @@ img {
&__link,
&__link:visited {
- color: inherit;
+ color: var(--header-font-color);
}
&__link:hover {
@@ -193,6 +197,20 @@ img {
}
}
+.gdoc-menu-header {
+ &__items {
+ display: inline-block;
+ }
+
+ &__control {
+ display: none;
+
+ .icon {
+ cursor: pointer;
+ }
+ }
+}
+
.gdoc-nav {
flex: 0 0 $menu-width;
font-size: $font-size-14;
@@ -215,9 +233,14 @@ img {
margin: 0;
padding: 0;
+ .icon {
+ cursor: pointer;
+ }
+
.icon.gdoc_menu {
display: inline-block;
}
+
.icon.gdoc_arrow_back {
display: none;
}
diff --git a/src/sass/_mobile.scss b/src/sass/_mobile.scss
index bdcc689..240cf55 100644
--- a/src/sass/_mobile.scss
+++ b/src/sass/_mobile.scss
@@ -23,6 +23,16 @@
}
}
+ .gdoc-menu-header {
+ &__items {
+ display: none;
+ }
+
+ &__control {
+ display: inline-block;
+ }
+ }
+
.gdoc-error {
padding: $padding-16 * 6 $padding-16;
@@ -75,4 +85,22 @@
display: inline-block;
}
}
+
+ #menu-header-control:checked ~ .gdoc-header {
+ .gdoc-brand__title {
+ display: none;
+ }
+
+ .gdoc-menu-header {
+ &__items {
+ display: inline-block;
+ }
+
+ &__control {
+ .icon.gdoc_keyborad_arrow_left {
+ display: none;
+ }
+ }
+ }
+ }
}