Skip to content

Commit 1b9f554

Browse files
committed
Merge branch 'release/1.20.27'
2 parents 7f776c7 + 265b0a6 commit 1b9f554

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

js/jquery.theme-main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ jQuery ( function( $ ) {
279279
if ( $body.hasClass( 'admin-bar' ) ) {
280280
threshold = $( '#wpadminbar' ).css( 'position' ) == 'absolute' ? 0 : $( '#wpadminbar' ).outerHeight();
281281
}
282-
var navTop = parseInt( $initTop - $( window ).scrollTop() ); // Force truncation of float value.
282+
283+
// Round up to the nearest pixel.
284+
var navTop = Math.ceil( $initTop - $( window ).scrollTop() );
283285
if ( navTop < threshold ) {
284286
$$.addClass( 'sticky' );
285287
$body.addClass( 'vantage-sticky-menu sticky-menu' );

readme.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ This theme makes use of the SiteOrigin Settings Framework contained in the /inc
106106

107107
== Changelog ==
108108

109+
= 1.20.27 - 20 October 2024 =
110+
* Restored menu alignment setting when a menu has not been assigned to the theme's primary menu location.
111+
* Logo in Menu: Moved the spacing CSS to the logo wrapper container.
112+
109113
= 1.20.26 - 25 September 2024 =
110114
* Max Mega Menu: Improved full-width display.
111115

style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -668,14 +668,14 @@ body {
668668
margin-left: auto;
669669
}
670670
#masthead.masthead-logo-in-menu .logo-in-menu-wrapper {
671-
margin-top: auto;
672671
margin-bottom: auto;
672+
margin-right: 15px;
673+
margin-top: auto;
674+
padding: 10px 0;
673675
}
674676
#masthead.masthead-logo-in-menu .logo {
675677
align-items: center;
676678
display: flex;
677-
padding: 10px 0;
678-
margin-right: 15px;
679679
}
680680
#masthead.masthead-logo-in-menu .logo > * {
681681
display: block;
@@ -712,7 +712,7 @@ body {
712712
display: flex;
713713
}
714714
#masthead:not(.masthead-logo-in-menu) .main-navigation-container .mobile-nav-customize-wrapper,
715-
#masthead:not(.masthead-logo-in-menu) .main-navigation-container > div[class^="menu-"],
715+
#masthead:not(.masthead-logo-in-menu) .main-navigation-container > div[class^="menu"],
716716
#masthead.masthead-logo-in-menu .main-navigation-container {
717717
flex: 2;
718718
}

style.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,15 +509,15 @@ body {
509509
}
510510

511511
.logo-in-menu-wrapper {
512-
margin-top: auto;
513512
margin-bottom: auto;
513+
margin-right: 15px;
514+
margin-top: auto;
515+
padding: 10px 0;
514516
}
515517

516518
.logo {
517519
align-items: center;
518520
display: flex;
519-
padding: 10px 0;
520-
margin-right: 15px;
521521

522522
> * {
523523
display: block;

0 commit comments

Comments
 (0)