Skip to content

Commit

Permalink
Merge pull request #454 from siteorigin/logo-booster-fixes
Browse files Browse the repository at this point in the history
Logo booster fixes
  • Loading branch information
AlexGStapleton authored Oct 14, 2024
2 parents 6785448 + 734a477 commit 350b603
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions js/north.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand Down
2 changes: 1 addition & 1 deletion sass/site/primary/_masthead.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
}

@at-root #masthead.floating img.alt-logo-scroll {
display: block;
display: inline-block;
}
}

Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 350b603

Please sign in to comment.