diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 2c35494..f2cd3c9 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -503,8 +503,8 @@ $(window).resize(function() { var navFixed = $('.kenjohn.navFixed'); window.top_barrier_height = (navFixed.length ? navFixed.height() : 0) + $('#orbit-bar').height(); + fix_first_element(); if ($(window).outerWidth() >200) { - fix_first_element(); if (resizeTimer) clearTimeout(resizeTimer); $('.outdropdowns').before($('.header-nav')); resizeTimer = setTimeout(function() { @@ -516,7 +516,6 @@ $('.navbar-toggle').bind(orbit.ClickMenuHandler()); } },500 )} else { - fix_first_element(true); resizeTimer = setTimeout(function(){ if( $('.mobile-menu .modules-menus').length > 0 ) { $('.navbar-header').after($('.modules-menus')); diff --git a/assets/stylesheets/template/layout/content.scss b/assets/stylesheets/template/layout/content.scss index 65d07f4..d59b46c 100644 --- a/assets/stylesheets/template/layout/content.scss +++ b/assets/stylesheets/template/layout/content.scss @@ -506,9 +506,6 @@ body{ overflow: visible!important; } //內頁 -.inner-page{ - padding: 50px 0; -} .internal-page{ background-color: #fff; .site-trigger__text{