Added code to make top nav items unclickable. One of the items may need this
authorLaury GvR <laury@gaslightmedia.com>
Wed, 12 Jul 2017 14:17:51 +0000 (10:17 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 12 Jul 2017 14:17:51 +0000 (10:17 -0400)
css/app.css
js/app.js
js/custom/pageSetup.js
page.php
scss/_topbar.scss

index c21154f..00b30c4 100644 (file)
@@ -6943,9 +6943,11 @@ video {
     background: transparent !important; }
   .top-bar-section ul li.active:not(.has-form) a:not(.button) {
     background: transparent !important; }
-  .top-bar-section > div > ul > li a {
+  .top-bar-section > div > ul > li a {
     font-size: 12px;
     text-transform: uppercase; }
+  .top-bar-section > div > ul > li > a:hover {
+    cursor: default; }
   .top-bar-section > div > ul > li:hover {
     border-width: 0 0 3px;
     border-color: #b32024;
index 190898b..c2002cd 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -22,27 +22,29 @@ $(document).ready(function () {
         $(this).hide();
     });
 
-    // cache everything once
-    var page = $("body");
+    // The code below is useful if we want the top-level items to no longer be clickable
 
-    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');
+    // cache everything once
+//    var page = $("body");
+//
+//    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();
-            });
-        }
-    });
+//    $('.top-bar-section > div > ul > li').each( function () {
+//        console.log("test");
+//        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();
-            });
-        }
-    });
+//    $('.left-off-canvas-menu > ul > li').each( function () {
+//        if ( $(this).hasClass("menu-item-has-children") ){
+//            $(this).children("a").on('click', function(e){
+//                e.preventDefault();
+//            });
+//        }
+//    });
 });
index 5b3d7e3..faece45 100644 (file)
@@ -13,27 +13,29 @@ $(document).ready(function () {
         $(this).hide();
     });
 
-    // cache everything once
-    var page = $("body");
+    // The code below is useful if we want the top-level items to no longer be clickable
 
-    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');
+    // cache everything once
+//    var page = $("body");
+//
+//    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();
-            });
-        }
-    });
+//    $('.top-bar-section > div > ul > li').each( function () {
+//        console.log("test");
+//        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();
-            });
-        }
-    });
+//    $('.left-off-canvas-menu > ul > li').each( function () {
+//        if ( $(this).hasClass("menu-item-has-children") ){
+//            $(this).children("a").on('click', function(e){
+//                e.preventDefault();
+//            });
+//        }
+//    });
 });
index 9a33a87..c602e73 100644 (file)
--- a/page.php
+++ b/page.php
@@ -4,7 +4,7 @@
         <?php echo glm_get_background(); ?>
     </div>
     <?php //get_template_part('parts/reservation-form');?>
-    <div class="row">
+    <div class="row show-for-medium-up">
         <img class="orb-shadow" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/shadow-lrg.jpg">
     </div>
     <div id="content-wrapper">
index 7e0406b..5827adc 100644 (file)
     }
     > div > ul {
         > li {
-            a {
+            a {
                 font-size: 12px;
                 text-transform: uppercase;
             }
+            > a:hover {
+                cursor: default;
+            }
         }
         > li:hover {
             border-width: 0 0 3px;