Tweaks to mobile css and ui, a=chris

Chris Pollett [2013-11-30 07:Nov:th]
Tweaks to mobile css and ui, a=chris
Filename
css/search.css
views/elements/subsearch_element.php
diff --git a/css/search.css b/css/search.css
index f7332cf17..e7096cfde 100755
--- a/css/search.css
+++ b/css/search.css
@@ -519,6 +519,7 @@ body.mobile
     z-index: 4;
 }

+
 #more-on
 {
     display: none;
@@ -538,7 +539,6 @@ li.outer div
     z-index:3;
 }

-
 .html-ltr li.outer div
 {
     left: 1.85in;
@@ -558,9 +558,10 @@ li.outer div

 .mobile li.outer div
 {
-    left: 110px;
+    left: 2px;
     position: relative;
-    right: 110px;
+    right: 2px;
+    width: 80px;
 }

 ul.in-list
@@ -568,12 +569,23 @@ ul.in-list
     background-color: white;
 }

+.mobile ul.in-list
+{
+    padding-left:2px;
+    margin-left:0;
+}
+
 ul.in-list li
 {
     list-style-type: none;
     padding-bottom: 0.05in;
     padding-top: 0.05in;
 }
+.mobile ul.in-list li
+{
+    padding-bottom: 2px;
+    padding-top: 2px;
+}

 .html-rtl .subsearch ul
 {
@@ -1023,6 +1035,13 @@ ul.in-list li
     top: -0.6in;
     z-index: 1;
 }
+.mobile .spell
+{
+    position: relative;
+    top:-15px;
+    left: 4px;
+    right: 4px;
+}

 .search-box
 {
diff --git a/views/elements/subsearch_element.php b/views/elements/subsearch_element.php
index c6ba88d82..d984df435 100644
--- a/views/elements/subsearch_element.php
+++ b/views/elements/subsearch_element.php
@@ -60,7 +60,9 @@ class SubsearchElement extends Element
             $data['SUBSEARCH'] = "";
         }
         $drop_threshold = 3;
-
+        if(MOBILE) {
+        $drop_threshold = 0;
+        }
         if(count($data["SUBSEARCHES"]) > $drop_threshold + 1) {
             $subdropdown = true;
         } else {
@@ -126,4 +128,4 @@ class SubsearchElement extends Element
         <?php
         }
 }
-?>
\ No newline at end of file
+?>
ViewGit