From c4e1405985dd508465ff82d431374add4236a340 Mon Sep 17 00:00:00 2001 From: Alex S <17275120+AlexGStapleton@users.noreply.github.com> Date: Sat, 12 Oct 2024 13:40:46 +1300 Subject: [PATCH 1/4] Fix `.floating` not being added to the masthead after scroll. --- js/north.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/north.js b/js/north.js index ea0949a..8996b32 100644 --- a/js/north.js +++ b/js/north.js @@ -412,15 +412,14 @@ // Sticky header shadow. var smShadow = function() { - if ( $( window ).scrollTop() > whenToStickyMh ) { + if ( $( window ).scrollTop() > whenToStickyMh() ) { $( $mh ).addClass( 'floating' ); } else { $( $mh ).removeClass( 'floating' ); } }; - smShadow(); - $( window ).on( 'scroll', smShadow ); + $( window ).on( 'scroll', smShadow ).trigger( 'scroll' ); var smSetup = function() { From b6e175b20012bcff1ad8eeb3a48902fd43482a60 Mon Sep 17 00:00:00 2001 From: Alex S <17275120+AlexGStapleton@users.noreply.github.com> Date: Sat, 12 Oct 2024 13:41:01 +1300 Subject: [PATCH 2/4] Fix Sticky Logo Not Being Aligned --- sass/site/primary/_masthead.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sass/site/primary/_masthead.scss b/sass/site/primary/_masthead.scss index c05c835..324a08f 100644 --- a/sass/site/primary/_masthead.scss +++ b/sass/site/primary/_masthead.scss @@ -99,7 +99,7 @@ } @at-root #masthead.floating img.alt-logo-scroll { - display: block; + display: inline-block; } } From 734a477923838ed5e6362baf2ecfebe6ae6d84d0 Mon Sep 17 00:00:00 2001 From: Alex S <17275120+AlexGStapleton@users.noreply.github.com> Date: Sat, 12 Oct 2024 13:43:10 +1300 Subject: [PATCH 3/4] Commit Built CSS --- style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style.css b/style.css index 9a6b08a..9795acb 100644 --- a/style.css +++ b/style.css @@ -1429,7 +1429,7 @@ body.page-layout-stripped #main.site-main { #masthead .site-branding img.alt-logo-scroll { display: none; } #masthead.floating img.alt-logo-scroll { - display: block; } + display: inline-block; } #masthead .site-branding, #masthead .main-navigation { display: table-cell; From 8e538affad74e4fbac328ea39e8294f568673815 Mon Sep 17 00:00:00 2001 From: Andrew Misplon Date: Thu, 17 Oct 2024 00:45:29 +0100 Subject: [PATCH 4/4] Changelog update --- readme.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readme.txt b/readme.txt index 5d44aa7..c28c14c 100644 --- a/readme.txt +++ b/readme.txt @@ -104,6 +104,10 @@ Original design files are available on [Google Drive](https://drive.google.com/f == Changelog == += 1.20.5 - 17 October 2024 = +* Header: Restored the `floating` class to the masthead on scroll. +* Header: Ensured the sticky logo is always correctly aligned. + = 1.20.4 - 18 September 2024 = * WooCommerce: Updated pagination template version number. * Updated SiteOrigin Settings.