diff --git a/assets/css/cross-page.css b/assets/css/cross-page.css index bd2230f2d3..529aa47b2a 100644 --- a/assets/css/cross-page.css +++ b/assets/css/cross-page.css @@ -175,12 +175,7 @@ table tbody td { /* CLS fix: reserve space for nav before hydration */ arm-top-navigation:not(:defined) { display: block; - min-height: 80px; -} -@media (max-width: 1024px) { - arm-top-navigation:not(:defined) { - min-height: 60px; - } + min-height: 60px; } /* Fix global nav height */ @@ -189,23 +184,15 @@ arm-top-navigation:not(:defined) { /*************************************/ #global-nav-height-fixer { max-width: 100vw; - height: 80px; + height: 60px; overflow: hidden; position: relative; top: 0; } -@media (max-width: 1024px) { /* smaller screens than LG */ - #global-nav-height-fixer { - height: 60px; - } -} -.nav-transparent { - background: transparent; - background-color: transparent; -} +.nav-transparent, .nav-black { - background: #010101; - background-color: #010101; + background: var(--ads-ui-ink-100); + background-color: var(--ads-ui-ink-100); } /* Fix Masthead Height */ diff --git a/config.toml b/config.toml index c8c86c9e20..75cd2c5ad7 100644 --- a/config.toml +++ b/config.toml @@ -73,6 +73,9 @@ github_project_repo = "https://github.com/ArmDeveloperEcosystem/arm-learning-pat # location of assets assetsDir = "assets" +# Optionally override the global web components bundle for a specific deployment. +# global_web_components_url = "https://www.arm.com/arm-global-web-components/devhub/app.js" + # Specify a value here if your content directory is not in your repo's root directory # github_subdir = "" diff --git a/themes/arm-design-system-hugo-theme/layouts/partials/footer/footer.html b/themes/arm-design-system-hugo-theme/layouts/partials/footer/footer.html index 73e72fa1ea..30a8516042 100644 --- a/themes/arm-design-system-hugo-theme/layouts/partials/footer/footer.html +++ b/themes/arm-design-system-hugo-theme/layouts/partials/footer/footer.html @@ -9,5 +9,5 @@ */}} diff --git a/themes/arm-design-system-hugo-theme/layouts/partials/head/head.html b/themes/arm-design-system-hugo-theme/layouts/partials/head/head.html index 8ad73fbd6a..30fa11444c 100644 --- a/themes/arm-design-system-hugo-theme/layouts/partials/head/head.html +++ b/themes/arm-design-system-hugo-theme/layouts/partials/head/head.html @@ -55,8 +55,17 @@ integrity="sha384-caAG7P/HrHxcdQa2gTEfvZYGPLQk7yRwVdvtRn6sa3TRKzcAyY1LMvObXKGhwFNb" crossorigin="anonymous"> - - + +{{ $globalWebComponentsURL := .Site.Params.global_web_components_url | default "https://www.arm.com/arm-global-web-components/devhub/app.js" }} +{{ if and hugo.IsServer (not .Site.Params.global_web_components_url) }} + {{ $globalWebComponentsURL = "https://www.arm.com/arm-global-web-components/devhub/test.js" }} +{{ end }} + diff --git a/themes/arm-design-system-hugo-theme/layouts/partials/header/nav-masthead.html b/themes/arm-design-system-hugo-theme/layouts/partials/header/nav-masthead.html index b820866c71..a228e7c963 100644 --- a/themes/arm-design-system-hugo-theme/layouts/partials/header/nav-masthead.html +++ b/themes/arm-design-system-hugo-theme/layouts/partials/header/nav-masthead.html @@ -7,8 +7,16 @@ {{ if .IsHome }} -