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;
$('.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();
+ });
+ }
+ });
});
$('.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();
+ });
+ }
+ });
});
}
}
#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;