diff --git a/js/theme.js b/js/theme.js index f624945a7..cf284b36d 100644 --- a/js/theme.js +++ b/js/theme.js @@ -10,6 +10,11 @@ jQuery( document ).ready( function( $ ) { timeout = false; $.fn.smallMenu = function() { + if ( ! masthead.find( '.menu' ).children().length ) { + $( '.menu-toggle' ).remove(); + return; + } + masthead.find( '.site-navigation' ).removeClass( 'main-navigation' ).addClass( 'main-small-navigation' ); masthead.find( '.site-navigation h3' ).removeClass( 'assistive-text' ).addClass( 'menu-toggle' ); diff --git a/style.css b/style.css index 40c0e51ce..cf26e5173 100644 --- a/style.css +++ b/style.css @@ -507,7 +507,7 @@ a:hover { } /* Navigation Menu */ -.main-navigation { +.main-navigation .menu { display: inline-block; margin-top: 24px; margin-top: 1.714285714rem; @@ -1286,7 +1286,6 @@ label ~ span.required { margin: 0.571428571rem 0 0; font-size: 13px; font-size: 0.928571429rem; - line-height: 1.846153846; line-height: 1.714285714; list-style-type: square; list-style-position: inside;