Skip to content

Commit

Permalink
Merge branch 'release/1.6.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Dec 24, 2018
2 parents 8efe33a + c3bdcd5 commit 4750ffa
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
11 changes: 6 additions & 5 deletions js/north.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,10 @@ jQuery( function( $ ) {

if ( $mhs === false ) {
$mhs = $( '<div class="masthead-sentinel"></div>' ).insertAfter( $mh );
}
if ( ! $( 'body' ).hasClass( 'page-layout-menu-overlap' ) ) {
$mhs.css( 'height', $mh.outerHeight() );

if ( ! $( 'body' ).hasClass( 'page-layout-menu-overlap' ) ) {
$mhs.css( 'height', $mh.outerHeight() );
}
}
// Toggle .topbar-out with visibility of top-bar in the viewport.
if ( ! $( 'body' ).hasClass( 'no-topbar' ) && ! $tb.northIsVisible() ) {
Expand Down Expand Up @@ -421,8 +422,8 @@ jQuery( function( $ ) {

if ( $mh.data( 'scale-logo' ) ) {
var $img = $mh.find( '.site-branding img' ),
imgWidth = $img.get(0).naturalWidth,
imgHeight = $img.get(0).naturalHeight,
imgWidth = $img.attr( 'width' ),
imgHeight = $img.attr( 'height' ),
scaledWidth = imgWidth * siteoriginNorth.logoScale,
scaledHeight = imgHeight * siteoriginNorth.logoScale;

Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Contributors: SiteOrigin
Tags: one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce

Requires at least: 4.7
Tested up to: 4.9.6
Tested up to: 5.0.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -97,6 +97,10 @@ Original design files are available on [Google Drive](https://drive.google.com/f

== Changelog ==

= 1.6.2 - 24 December 2018 =
* Ensured Retina logo uses regular logo dimensions x 2.
* Prevented masthead sentinel resize on scroll.

= 1.6.1 - 20 December 2018 =
* Moved changelog to readme.txt file.
* Updated scaling logo function to prevent logo removal during scroll.
Expand Down
8 changes: 5 additions & 3 deletions sass/elements/_elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ figure {
margin-right: 0;
}

img {
height: auto; /* Make sure images are scaled correctly. */
max-width: 100%; /* Adhere to container width. */
#topbar-widgets, .site-content, .site-footer {
img {
height: auto; /* Make sure images are scaled correctly. */
max-width: 100%; /* Adhere to container width. */
}
}

code {
Expand Down
2 changes: 1 addition & 1 deletion style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4750ffa

Please sign in to comment.