diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index b028c459eb..8ca38a16bf 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -6,9 +6,9 @@ var root_url="/"; var baseUri=root_url.replace(/\/$/, ''); - + {{- $showvisitedlinks := .Site.Params.showVisitedLinks }} + {{- $currentNode := . }} - {{- $showvisitedlinks := .Site.Params.showVisitedLinks }} {{ partial "logo.html" . }} diff --git a/static/css/theme.css b/static/css/theme.css index bfedfeb945..ed8d1b8931 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -1435,6 +1435,20 @@ h6 a { clear: both; } +.footerLangSwitch, +.footerVariantSwitch, +.footerVisitedLinks, +.footerFooter { + display: none; +} + +.showLangSwitch, +.showVariantSwitch, +.showVisitedLinks, +.showFooter { + display: initial; +} + @media only all and (max-width: 47.938em) { #breadcrumbs .links, #top-github-link-text { display: none; @@ -1455,6 +1469,13 @@ h6 a { /* clears the 'X' from Internet Explorer's search input */ input[type=search]::-ms-clear { display: none; width : 0; height: 0; } input[type=search]::-ms-reveal { display: none; width : 0; height: 0; } + + .showLangSwitch, + .showVariantSwitch, + .showVisitedLinks, + .showFooter { + display: block; + } } /* clears the 'X' from Chrome's search input */ @@ -1462,17 +1483,3 @@ input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-results-button, input[type="search"]::-webkit-search-results-decoration { display: none; } - -.footerLangSwitch, -.footerVariantSwitch, -.footerVisitedLinks, -.footerFooter { - display: none; -} - -.showLangSwitch, -.showVariantSwitch, -.showVisitedLinks, -.showFooter { - display: initial; -}