Mobile TPAC: Show Advanced Search button in results header
authorDan Scott <dscott@laurentian.ca>
Mon, 23 Sep 2013 19:16:16 +0000 (15:16 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 25 Sep 2013 22:45:12 +0000 (18:45 -0400)
Now that the advanced search UI is reasonably mobile-friendly, make it
visible. At the same time, make the wrapping behaviour more friendly by
giving a little bit of vertical margin between wrapped buttons (because
adding "Advanced Search" is almost guaranteed to cause wrapping).

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/src/templates/opac/results.tt2

index e3dcad8..5973d5f 100644 (file)
@@ -677,7 +677,8 @@ div.format_icon {
     font-size: [% css_fonts.size_small %];
     color: [% css_colors.text %];
     background: [% css_colors.accent_medium %];
-    margin-right: 6px;
+    margin-right: 0.5em;
+    margin-top: 0.5em;
 }
 
 .results_header_sel {
@@ -1200,8 +1201,8 @@ a.dash-link:hover { text-decoration: underline !important; }
 
 .results_header_btns, .results_header_sel {
     float:left;
-    margin-right: 6px;
-    height: 26px;
+    margin-right: 0.5em;
+    margin-top: 0.5em;
 }
 
 .opac-button:disabled {
@@ -1723,9 +1724,6 @@ a.preflib_change {
     #simple-detail-view-links {
         display: none;
     }
-    .results_header_btns:nth-child(2) {
-        display: none;
-    }
     .opac-button {
         padding: 5px;
         margin: 3px;
index 3862355..a1c087a 100644 (file)
                 <div class="results_header_btns">
                     <a href="[% mkurl(ctx.opac_root _ '/home', {$loc_name => loc_value}, 1) %]">[% l('Another Search') %]</a>
                 </div>
-                <div id="refine_hits" class="results_header_btns result_block_visible"><a onclick="getFacety();">[% l('Refine these results') %]</a></div>
-                <div id="return_to_hits" class="results_header_btns"><a onclick="getResulty();">[% l('Back to results') %]</a></div>
                 <div class="results_header_btns">
                     <a href="[% mkurl(ctx.opac_root _ '/advanced') %]">[% l('Advanced Search') %]</a>
                 </div>
+                <div id="refine_hits" class="results_header_btns result_block_visible"><a onclick="getFacety();">[% l('Refine these results') %]</a></div>
+                <div id="return_to_hits" class="results_header_btns"><a onclick="getResulty();">[% l('Back to results') %]</a></div>
                 [% IF ctx.mylist.size %]
                 <div class="results_header_btns cached_list_div">
                     [%- IF ctx.user; %]