diff --git a/src/scss/components/header/_header.scss b/src/scss/components/header/_header.scss
index a6b56fe..5729104 100644
--- a/src/scss/components/header/_header.scss
+++ b/src/scss/components/header/_header.scss
@@ -33,7 +33,7 @@
&:not(:has(.iati-header__nav[hidden])) {
padding-block-end: 0;
}
- @media (min-width: $screen-sm) {
+ @media (min-width: $mobile_nav_breakpoint) {
padding-block: 2rem;
}
}
@@ -50,7 +50,7 @@
> :last-child {
margin-inline-start: auto;
}
- @media (min-width: $screen-sm) {
+ @media (min-width: $mobile_nav_breakpoint) {
border-block-end: none;
padding-block-end: 0;
margin-block-end: 0;
diff --git a/src/scss/components/header/header.stories.ts b/src/scss/components/header/header.stories.ts
index d68a0a9..885ac8e 100644
--- a/src/scss/components/header/header.stories.ts
+++ b/src/scss/components/header/header.stories.ts
@@ -60,7 +60,7 @@ export const Header: Story = {
-
`,
};
diff --git a/src/scss/components/piped-list/_piped-list.scss b/src/scss/components/piped-list/_piped-list.scss
index c9eab41..33b4c01 100644
--- a/src/scss/components/piped-list/_piped-list.scss
+++ b/src/scss/components/piped-list/_piped-list.scss
@@ -1,28 +1,20 @@
@use "../../tokens/color" as *;
@use "../../tokens/font" as *;
+@use "../../base/mixins";
.iati-piped-list {
+ @include mixins.unstyled-list();
display: flex;
flex-wrap: wrap;
- gap: 0.5em;
- list-style-type: none;
- padding: 0;
- margin: 0;
& > * {
line-height: 1;
- position: relative;
+ padding: 0.2em;
+ &:not(:first-child) {
+ padding-left: 1em;
+ }
&:not(:last-child) {
- &:after {
- content: "";
- position: absolute;
- right: 1rem;
- height: 120%;
- width: 1px;
- display: block;
- background-color: currentColor;
- top: -10%;
- }
- padding-inline-end: 2rem;
+ border-right: 1px solid black;
+ padding-right: 1em;
}
}
}
diff --git a/src/scss/tokens/_screens.scss b/src/scss/tokens/_screens.scss
index 8d3cec2..e0d0a2e 100644
--- a/src/scss/tokens/_screens.scss
+++ b/src/scss/tokens/_screens.scss
@@ -4,4 +4,4 @@ $screen-lg: 1024px;
$screen-xl: 1280px;
$screen-2xl: 1536px;
-$mobile_nav_breakpoint: $screen-sm;
+$mobile_nav_breakpoint: $screen-md;
diff --git a/src/scss/utilities/_display.scss b/src/scss/utilities/_display.scss
index 3be4d94..6c22b0a 100644
--- a/src/scss/utilities/_display.scss
+++ b/src/scss/utilities/_display.scss
@@ -8,6 +8,13 @@
display: none;
}
+.hide--mobile-nav {
+ display: none;
+ @media (min-width: $mobile_nav_breakpoint) {
+ display: var(--display);
+ }
+}
+
.display--sm {
@media (min-width: $screen-sm) {
display: var(--display);