Skip to content

Commit

Permalink
Tweaks to accordion and hero components (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood authored May 20, 2024
1 parent 3b8255c commit 5f7d6a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/nationalarchives/components/accordion/accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@
right: 0.75rem;

border-width: #{math.div(math.sqrt(3), 2)}rem 0.5rem 0 0.5rem;
border-color: colour.colour-var("font-light") transparent transparent
transparent;
border-color: colour.colour-var("font-light") transparent;
border-style: solid;
}

Expand All @@ -59,7 +58,7 @@
@include colour.colour-background("background-tint");

&::before {
border-top-color: colour.colour-var("font-dark");
border-color: colour.colour-var("font-dark") transparent;
}
}
}
Expand Down Expand Up @@ -103,14 +102,6 @@
top: calc(50% - #{math.div(math.sqrt(3), 4)}rem);

border-width: 0 0.5rem #{math.div(math.sqrt(3), 2)}rem 0.5rem;
border-color: transparent transparent colour.colour-var("font-light")
transparent;
}

&:hover {
&::before {
border-bottom-color: colour.colour-var("font-dark");
}
}
}
}
6 changes: 6 additions & 0 deletions src/nationalarchives/components/hero/hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ $shift-units: 5 !default;
}

&__image {
width: 100%;

position: static;

order: 1;
Expand Down Expand Up @@ -298,6 +300,10 @@ $shift-units: 5 !default;
margin-top: spacing.space(1);
}

&--shift {
margin-bottom: 0;
}

&--shift &__content-inner {
position: static;
}
Expand Down

0 comments on commit 5f7d6a2

Please sign in to comment.