adjusted off canvas search and topbar search
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 11 Feb 2016 20:10:05 +0000 (15:10 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 11 Feb 2016 20:10:05 +0000 (15:10 -0500)
css/app.css
js/app.js
js/custom/pageSetup.js
parts/search.php
scss/_topbar.scss

index a801486..c5f8880 100644 (file)
@@ -6639,14 +6639,16 @@ header {
 .top-bar-section ul li:nth-child(1) ul.dropdown {
   -webkit-column-count: 1; }
 
-#searchform {
-  display: none; }
-
-#searchform .button {
-  display: none; }
-
-#lar-search {
-  height: 30px; }
+@media only screen and (min-width:64.063em) {
+  #searchform .button {
+    display: none; }
+  #searchform {
+    display: none;
+    float: right;
+    height: 30px; }
+  #lar-search {
+    height: 25px;
+    padding: 0; } }
 
 .blog-wrap {
   background: url(../assets/repeating-pattern.jpg) repeat;
index 719690c..d5982d8 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -56,11 +56,10 @@ $(document).ready(function () {
 //        blocks.init();
     $("#searchIcon").click(function(){
         if($("#searchform").css("display") == "none"){
+//           $("#searchform").css("display", "inline");
             $("#searchform").toggle("slide");
             $("#searchIcon").css("visibility", "hidden");
-        } else {
-            $("#searchform").toggle("slide");
-        }
+        } 
          $("#lar-search").focus();
     });
     $("#lar-search").blur(function(){
index b94dcc5..9e1c330 100644 (file)
@@ -47,11 +47,10 @@ $(document).ready(function () {
 //        blocks.init();
     $("#searchIcon").click(function(){
         if($("#searchform").css("display") == "none"){
+//           $("#searchform").css("display", "inline");
             $("#searchform").toggle("slide");
             $("#searchIcon").css("visibility", "hidden");
-        } else {
-            $("#searchform").toggle("slide");
-        }
+        } 
          $("#lar-search").focus();
     });
     $("#lar-search").blur(function(){
index 1408622..fddee5b 100644 (file)
@@ -1,6 +1,5 @@
-<span>
+
    <form role="search" method="get" id="searchform" action="<?php echo home_url('/'); ?>">
     <input class="search-input" type="text" placeholder="Search" value="" name="s" id="lar-search">
     <input type="submit" class="button" name="submit" value="Search">
 </form>
-</span>
\ No newline at end of file
index aa245cd..1462ce5 100644 (file)
 .top-bar-section ul li:nth-child(1) ul.dropdown{
     -webkit-column-count: 1;
 }
-#searchform{
-    display: none;
-}
-#searchform .button{
-    display: none;
+@media #{$large-up}{
+    #searchform .button{
+        display: none;
+    }
+    #searchform{
+        display: none;
+        float: right;
+        height: 30px;
+    }
+    #lar-search{
+        height: 25px;
+        padding: 0;
+    }
 }
-#lar-search{
-    height: 30px;
-}
\ No newline at end of file