From 09d2344cbcd6ef72e4c8e290ce79560544351979 Mon Sep 17 00:00:00 2001 From: Damien Wilson Date: Wed, 9 Oct 2024 20:32:38 +0100 Subject: [PATCH 1/2] Adjust focus layer --- public/app/themes/clarity/src/components/c-logo-bar/style.styl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/themes/clarity/src/components/c-logo-bar/style.styl b/public/app/themes/clarity/src/components/c-logo-bar/style.styl index 783f06ad0..7dff8c65b 100644 --- a/public/app/themes/clarity/src/components/c-logo-bar/style.styl +++ b/public/app/themes/clarity/src/components/c-logo-bar/style.styl @@ -31,7 +31,7 @@ font-weight: 400; line-height: 31px; float: left; - padding: $spacing $spacing 0.6rem; + padding: $spacing $spacing 0.8rem; } &__switch { From ef2a5c5ce2c899c0c31f222ffd2987e2320485e9 Mon Sep 17 00:00:00 2001 From: Damien Wilson Date: Wed, 9 Oct 2024 20:50:21 +0100 Subject: [PATCH 2/2] Dynamic background sizes --- .../app/themes/clarity/src/components/c-logo-bar/style.styl | 2 +- public/app/themes/clarity/src/components/c-logo-bar/view.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/app/themes/clarity/src/components/c-logo-bar/style.styl b/public/app/themes/clarity/src/components/c-logo-bar/style.styl index 7dff8c65b..521e53398 100644 --- a/public/app/themes/clarity/src/components/c-logo-bar/style.styl +++ b/public/app/themes/clarity/src/components/c-logo-bar/style.styl @@ -16,7 +16,7 @@ } .image { - background-size: 94%; + background-size: inherit; background-repeat: no-repeat; background-position: 1px 12px; width: 38px; diff --git a/public/app/themes/clarity/src/components/c-logo-bar/view.php b/public/app/themes/clarity/src/components/c-logo-bar/view.php index 798f4ad19..214056d62 100644 --- a/public/app/themes/clarity/src/components/c-logo-bar/view.php +++ b/public/app/themes/clarity/src/components/c-logo-bar/view.php @@ -6,10 +6,11 @@ $activeAgency = $oAgency->getCurrentAgency(); $header_logo = get_field(get_intranet_code() .'_header_logo', 'option'); $logo = get_stylesheet_directory_uri() . '/dist/images/moj_logo_header.png'; +$size = "94%"; -# If law commission, use different logo if ($activeAgency['shortcode'] === 'law-commission') { $logo = get_stylesheet_directory_uri() . '/dist/images/lawcomms_logo_new.jpg'; + $size = "100%"; } # If header logo is set, use that instead @@ -22,7 +23,7 @@