Skip to content

Commit

Permalink
Merge branch 'main' into unify-color
Browse files Browse the repository at this point in the history
  • Loading branch information
fkakatie authored Jul 30, 2024
2 parents 51acbed + 516d856 commit fa63d2e
Show file tree
Hide file tree
Showing 13 changed files with 1,024 additions and 3,866 deletions.
7 changes: 4 additions & 3 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<meta property="og:title" content="Page not found">
<script src="/scripts/scripts.js" type="module" crossorigin="use-credentials"></script>
<script type="module">
import { sampleRUM } from '/scripts/aem.js';

window.addEventListener('load', () => {
if (document.referrer) {
const { origin, pathname } = new URL(document.referrer);
Expand All @@ -26,9 +24,12 @@
btnContainer.append(backBtn);
}
}
sampleRUM('404', { source: document.referrer });
});
</script>
<script type="module">
import { sampleRUM } from '/scripts/aem.js';
sampleRUM('404', { source: document.referrer });
</script>
<link rel="stylesheet" href="/styles/styles.css">
<style>
main.error {
Expand Down
3 changes: 2 additions & 1 deletion blocks/footer/footer.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
footer {
padding: 2rem;
font-size: var(--body-font-size-s);
background-color: var(--light-color);
font-size: var(--body-font-size-xs);
}

footer .footer {
Expand Down
4 changes: 2 additions & 2 deletions blocks/fragment/fragment.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '../../scripts/scripts.js';

import {
loadBlocks,
loadSections,
} from '../../scripts/aem.js';

/**
Expand All @@ -34,7 +34,7 @@ export async function loadFragment(path) {
resetAttributeBase('source', 'srcset');

decorateMain(main);
await loadBlocks(main);
await loadSections(main);
return main;
}
}
Expand Down
8 changes: 2 additions & 6 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ header nav {
max-width: 1264px;
height: var(--nav-height);
padding: 0 1rem;
font-family: var(--body-font-family);
}

header nav[aria-expanded='true'] {
Expand Down Expand Up @@ -170,19 +169,18 @@ header nav .nav-sections ul {
list-style: none;
padding-left: 0;
font-size: var(--body-font-size-s);
font-weight: 500;
}

header nav .nav-sections ul > li {
font-weight: 700;
font-weight: 500;
}

header nav .nav-sections ul > li > ul {
margin-top: 0;
}

header nav .nav-sections ul > li > ul > li {
font-weight: 500;
font-weight: 400;
}

@media (width >= 900px) {
Expand Down Expand Up @@ -226,13 +224,11 @@ header nav .nav-sections ul > li > ul > li {
display: flex;
gap: 2em;
margin: 0;
font-size: var(--body-font-size-xs);
}

header nav .nav-sections .default-content-wrapper > ul > li {
flex: 0 1 auto;
position: relative;
font-weight: 500;
}

header nav .nav-sections .default-content-wrapper > ul > li > ul {
Expand Down
Binary file added fonts/roboto-condensed-bold.woff2
Binary file not shown.
Binary file added fonts/roboto-medium.woff2
Binary file not shown.
Loading

0 comments on commit fa63d2e

Please sign in to comment.