File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
site/themes/arangodb-docs-theme Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 88 {{- if $page.Pages }}
99 {{- /* section (with child pages) */}}
1010 < li class ="nav-section ">
11- < div class ="nav-section-header ">
11+ {{- $isVersioned := eq $page.RelPermalink "/arangodb/" }}
12+ < div class ="nav-section-header{{ if $isVersioned }} nav-section-header-versioned{{ end }} ">
1213 < a class ="link-nav " href ="{{ .RelPermalink }} "> {{ .Params.menuTitle | markdownify }}</ a >
1314 < label class ="expand-nav "> < input type ="checkbox "> </ label >
1415 </ div >
15- {{- $isVersioned := eq $page.RelPermalink "/arangodb/" }}
16- {{ if $isVersioned }}
16+ {{- if $isVersioned }}
1717 {{- partial "version-selector.html" . }}
1818 {{- range $versionSection := $page.Pages }}
1919 < ol class ="nav-ol " data-version ="{{ index (split $versionSection.Path "/") 2 }}">
Original file line number Diff line number Diff line change @@ -1973,6 +1973,12 @@ nav.pagination .next {
19731973 display : flex;
19741974}
19751975
1976+ .nav-section-header-versioned {
1977+ position : sticky;
1978+ top : -0.5rem ;
1979+ background-color : var (--gray-950 );
1980+ }
1981+
19761982.nav-section > .nav-ol ,
19771983.nav-section > .version-selector {
19781984 display : none;
@@ -2059,4 +2065,6 @@ nav.pagination .next {
20592065 border : none;
20602066 width : calc (100% - 2rem );
20612067 margin-left : 1rem ;
2068+ position : sticky;
2069+ top : 2rem ;
20622070}
You can’t perform that action at this time.
0 commit comments