Setting height of header images to 500px
authorLaury GvR <laury@gaslightmedia.com>
Wed, 12 Jul 2017 12:52:31 +0000 (08:52 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 12 Jul 2017 12:52:31 +0000 (08:52 -0400)
css/app.css
js/app.js
js/custom/pageSetup.js
scss/_main.scss

index c58acbd..aafee86 100644 (file)
@@ -7141,15 +7141,15 @@ main #mid {
             margin-bottom: 15px; } }
 
 #head-img {
-  min-height: 409px;
+  min-height: 500px;
   margin: -185px auto 0; }
   @media only screen and (max-width: 40em) {
     #head-img {
       margin-top: -140px;
       min-height: 170px; } }
   #head-img .featured-image {
-    min-height: 409px;
-    margin-top: -295px; }
+    min-height: 500px;
+    margin-top: -210px; }
     @media only screen and (max-width: 40em) {
       #head-img .featured-image {
         margin-top: -140px;
index 7dad80e..190898b 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -21,4 +21,28 @@ $(document).ready(function () {
     $('.title.back.js-generated').each(function() {
         $(this).hide();
     });
+
+    // cache everything once
+    var page = $("body");
+
+    var topbar_menu_items       = page.find(".top-bar-section").children("ul#menu-main-navigation-left").children("li");
+    var offcanvas_menu_items    = page.find(".left-off-canvas-menu").children("ul.left-off-canvas-list").children('li');
+
+    // disable the links for top nav items that have subpages
+    topbar_menu_items.each( function () {
+        if ( $(this).hasClass("menu-item-has-children") ){
+            $(this).children("a").on('click', function(e){
+                e.preventDefault();
+            });
+        }
+    });
+
+    // disable the links for off canvas nav items that have subpages
+    offcanvas_menu_items.each( function () {
+        if ( $(this).hasClass("menu-item-has-children") ){
+            $(this).children("a").on('click', function(e){
+                e.preventDefault();
+            });
+        }
+    });
 });
index db8b503..5b3d7e3 100644 (file)
@@ -12,4 +12,28 @@ $(document).ready(function () {
     $('.title.back.js-generated').each(function() {
         $(this).hide();
     });
+
+    // cache everything once
+    var page = $("body");
+
+    var topbar_menu_items       = page.find(".top-bar-section").children("ul#menu-main-navigation-left").children("li");
+    var offcanvas_menu_items    = page.find(".left-off-canvas-menu").children("ul.left-off-canvas-list").children('li');
+
+    // disable the links for top nav items that have subpages
+    topbar_menu_items.each( function () {
+        if ( $(this).hasClass("menu-item-has-children") ){
+            $(this).children("a").on('click', function(e){
+                e.preventDefault();
+            });
+        }
+    });
+
+    // disable the links for off canvas nav items that have subpages
+    offcanvas_menu_items.each( function () {
+        if ( $(this).hasClass("menu-item-has-children") ){
+            $(this).children("a").on('click', function(e){
+                e.preventDefault();
+            });
+        }
+    });
 });
index 0944f22..46f9d7c 100644 (file)
@@ -217,15 +217,15 @@ main {
     }
 }
 #head-img {
-    min-height: 409px;
+    min-height: 500px;
     margin: -185px auto 0;
     @media #{$small-only} {
         margin-top: -140px;
         min-height: 170px;
     }
     .featured-image {
-        min-height: 409px;
-        margin-top: -295px;
+        min-height: 500px;
+        margin-top: -210px;
         @media #{$small-only} {
             margin-top: -140px;
             min-height: 170px;