From 5f7d6a228b7f8562885d5cc1ead9dd9963186935 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Mon, 20 May 2024 17:47:14 +0100 Subject: [PATCH] Tweaks to accordion and hero components (#121) --- .../components/accordion/accordion.scss | 13 ++----------- src/nationalarchives/components/hero/hero.scss | 6 ++++++ 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/nationalarchives/components/accordion/accordion.scss b/src/nationalarchives/components/accordion/accordion.scss index a7073b7a..25c84349 100644 --- a/src/nationalarchives/components/accordion/accordion.scss +++ b/src/nationalarchives/components/accordion/accordion.scss @@ -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; } @@ -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; } } } @@ -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"); - } } } } diff --git a/src/nationalarchives/components/hero/hero.scss b/src/nationalarchives/components/hero/hero.scss index 0e3467c8..e177cf41 100644 --- a/src/nationalarchives/components/hero/hero.scss +++ b/src/nationalarchives/components/hero/hero.scss @@ -270,6 +270,8 @@ $shift-units: 5 !default; } &__image { + width: 100%; + position: static; order: 1; @@ -298,6 +300,10 @@ $shift-units: 5 !default; margin-top: spacing.space(1); } + &--shift { + margin-bottom: 0; + } + &--shift &__content-inner { position: static; }