Skip to content

Commit 7a360e3

Browse files
committed
header and footer nav update
1 parent 820638d commit 7a360e3

4 files changed

Lines changed: 33 additions & 22 deletions

File tree

assets/css/cross-page.css

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,7 @@ table tbody td {
175175
/* CLS fix: reserve space for nav before hydration */
176176
arm-top-navigation:not(:defined) {
177177
display: block;
178-
min-height: 80px;
179-
}
180-
@media (max-width: 1024px) {
181-
arm-top-navigation:not(:defined) {
182-
min-height: 60px;
183-
}
178+
min-height: 60px;
184179
}
185180

186181
/* Fix global nav height */
@@ -189,23 +184,18 @@ arm-top-navigation:not(:defined) {
189184
/*************************************/
190185
#global-nav-height-fixer {
191186
max-width: 100vw;
192-
height: 80px;
187+
height: 60px;
193188
overflow: hidden;
194189
position: relative;
195190
top: 0;
196191
}
197-
@media (max-width: 1024px) { /* smaller screens than LG */
198-
#global-nav-height-fixer {
199-
height: 60px;
200-
}
201-
}
202192
.nav-transparent {
203-
background: transparent;
204-
background-color: transparent;
193+
background: var(--ads-ui-ink-100);
194+
background-color: var(--ads-ui-ink-100);
205195
}
206196
.nav-black {
207-
background: #010101;
208-
background-color: #010101;
197+
background: var(--ads-ui-ink-100);
198+
background-color: var(--ads-ui-ink-100);
209199
}
210200

211201
/* Fix Masthead Height */

themes/arm-design-system-hugo-theme/layouts/partials/footer/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
*/}}
1010

1111
<div id="arm-footer">
12-
<arm-footer-navigation></arm-footer-navigation>
12+
<arm-footer-navigation lang="en" theme="dark"></arm-footer-navigation>
1313
</div>

themes/arm-design-system-hugo-theme/layouts/partials/head/head.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@
5555
integrity="sha384-caAG7P/HrHxcdQa2gTEfvZYGPLQk7yRwVdvtRn6sa3TRKzcAyY1LMvObXKGhwFNb"
5656
crossorigin="anonymous">
5757
</script>
58-
<!-- Arm Header & Footer loading -->
59-
<script type="text/javascript" src="https://www.arm.com/arm-global-web-components/devhub/app.js" ></script>
58+
<!-- Arm Header & Footer loading.
59+
TODO: Replace the test bundle with its production URL when Arm publishes it. -->
60+
<script
61+
type="text/javascript"
62+
src="https://www.arm.com/arm-global-web-components/devhub/test.js"
63+
defer>
64+
</script>
6065

6166

6267

themes/arm-design-system-hugo-theme/layouts/partials/header/nav-masthead.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@
77

88
<!-- No masthead on homepage, as that has a special gradient look/feel -->
99
{{ if .IsHome }}
10-
<div id="global-nav-height-fixer" class="nav-black">
11-
<arm-top-navigation observe="#breadcrumb-element"></arm-top-navigation> <!-- to set to all black all the time: observe="head" -->
10+
<div id="global-nav-height-fixer" class="nav-black">
11+
<arm-top-navigation
12+
observe="#breadcrumb-element"
13+
desktopbreakpoint="1200"
14+
theme="dark"
15+
hostname="learn.arm.com"
16+
enable-ui-route="true"
17+
lang="en"
18+
disabled-subnav-animation>
19+
</arm-top-navigation> <!-- to set to all black all the time: observe="head" -->
1220
</div>
1321
<div id="only-breadcrumb-masthead">
1422
<div class="is-responsive-width">
@@ -20,7 +28,15 @@
2028
<div id="nav-masthead-breadcrumbs">
2129
<!-- Global Nav -->
2230
<div id="global-nav-height-fixer" class="nav-transparent">
23-
<arm-top-navigation observe="#breadcrumb-element"></arm-top-navigation>
31+
<arm-top-navigation
32+
observe="#breadcrumb-element"
33+
desktopbreakpoint="1200"
34+
theme="dark"
35+
hostname="learn.arm.com"
36+
enable-ui-route="true"
37+
lang="en"
38+
disabled-subnav-animation>
39+
</arm-top-navigation>
2440
</div>
2541
<!-- Masthead -->
2642
<div id="expanded-masthead" class="u-bg-color-ads-ui-violet-90">

0 commit comments

Comments
 (0)