diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 445f0ec..7bda678 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -2545,7 +2545,7 @@ $(function() { if ($(window).width() <769) { $('.modules-menu-level-0').after($('.header-nav')); }else{ - $('.navbar-header').before($('.header-nav')); + $('.dropdowns').before($('.header-nav')); }; $('.sitemenu-vertical .sitemenu-dropdown-toggle').click(function(){ $('.sitemenu-vertical .dropdown-menu').slideToggle(); @@ -2612,7 +2612,7 @@ $(function() { if ($(window).width() <769) { $('.modules-menu-level-0').after($('.header-nav')); }else{ - $('.navbar-header').before($('.header-nav')); + $('.dropdowns').before($('.header-nav')); }; if ($(window).width() > 821) { diff --git a/assets/stylesheets/template/layout/content.scss b/assets/stylesheets/template/layout/content.scss index 9a1f1b9..fa75456 100644 --- a/assets/stylesheets/template/layout/content.scss +++ b/assets/stylesheets/template/layout/content.scss @@ -15,7 +15,7 @@ } .internal-page{ .verticalhome{ - padding-top: 5em; + } // .outdropdowns{ // @media(min-width:769px){ @@ -24,10 +24,9 @@ // } } .verticalhome{ - padding-top: 3em; position: relative; width: 100%; - z-index: unset!important; + z-index: unset; } .internal-page{ .layout-content{ @@ -87,7 +86,7 @@ position: relative; width: 100%; padding-bottom: 3em; - padding-top: 2em; + padding-top: 1em; // p{ // padding-bottom: 1em; // } diff --git a/assets/stylesheets/template/layout/header.scss b/assets/stylesheets/template/layout/header.scss index 4a5d7ec..2d079f7 100644 --- a/assets/stylesheets/template/layout/header.scss +++ b/assets/stylesheets/template/layout/header.scss @@ -10,11 +10,15 @@ rgba(lighten($theme-color-second, 10%), 0.25) 25%, transparent ); - position: absolute; width: 100%; z-index: 1; padding: 0.5em 0; - padding-bottom: 3em; +} +.dropdowns{ + @media(min-width:769px){ + display: flex; + align-items: center; + } } .header-nav { ul{ diff --git a/assets/stylesheets/template/modules/menu.scss b/assets/stylesheets/template/modules/menu.scss index 068aa7c..cf93577 100644 --- a/assets/stylesheets/template/modules/menu.scss +++ b/assets/stylesheets/template/modules/menu.scss @@ -218,7 +218,7 @@ display: flex; flex-wrap: wrap; justify-content: flex-end; - width: 80%; + // width: 80%; } .has-dropdown.level-1.active { .modules-menu-level-1 { diff --git a/home/header.html.erb b/home/header.html.erb index a1a7852..61d38ea 100644 --- a/home/header.html.erb +++ b/home/header.html.erb @@ -18,13 +18,12 @@