Try to reduce the size of the search bar and search type option links.
Remove completely from login page (problem or make user rely on back button?)
Introduce mobile_hide class for cheap/easy method to alter pieces for mobile.
Signed-off-by: Bill Ott <bott@grpl.org>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
-%]
<div id="search-wrapper">
<div id="search-box">
- <span class="search_catalog_lbl">[% l('Search the Catalog') %]</span>
+ <span class="search_catalog_lbl mobile_hide">[% l('Search the Catalog') %]</span>
<span class="adv_search_catalog_lbl"><a href="[% mkurl(ctx.opac_root _ '/home') %]"
id="home_adv_search_link">[%l('Basic Search')%]</a></span>
[%# XXX TODO Give searchbar.tt2 more smarts so we can just do:
# INCLUDE "opac/parts/searchbar.tt2" %]
<div id="search-box">
- <span class="search_catalog_lbl"><a href="[% mkurl(ctx.opac_root _ '/home', {}, depart_list) %]">[% l('Search the Catalog') %]</a></span>
+ <span class="search_catalog_lbl"><a href="[% mkurl(ctx.opac_root _ '/home', {}, depart_list) %]">[% l('Basic Search') %]</a></span>
<span class="adv_search_catalog_lbl"><a href="[% mkurl(ctx.opac_root _ '/advanced', {}, depart_list) %]"
id="home_adv_search_link">[%l('Advanced Search')%]</a></span>
- <span class="browse_the_catalog_lbl">[% l('Browse the Catalog') %]</span>
+
+ <span class="browse_the_catalog_lbl mobile_hide">[% l('Browse the Catalog') %]</span>
</div>
</div>
<div id="content-wrapper">
<div id="main-content">
<div id="browse-the-catalog">
- <div id="browse-controls">
+ <div id="browse-controls" class='searchbar'>
<form method="get" onsubmit="$('browse-submit-spinner').className = ''; return true">
<input type="hidden" name="blimit"
value="[% blimit %]" />
arialabel=l('Select holding library') %]
[% l('Browse for [_1] starting with [_2] in [_3]', control_qtype, control_bterm, control_locg) %]
- <input type="submit" value="[% l('Go') %]" />
+ <input id='search-submit-go' type="submit" value="[% l('Browse') %]" alt="[% l('Browse') %]" class="opac-button"/>
<img id="browse-submit-spinner" src="[% ctx.media_prefix %]/opac/images/progressbar_green.gif" class="hidden" style="width: 16px; height: 16px;" alt="" />
</form>
</div>
#homesearch_main_logo img {
width:75%;
}
- #home_adv_search_link {
- display: block;
- }
#format_selector {
display:none;
}
#gold-links-holder {
display: none;
}
- #search-wrapper {
- display: block;
- }
#simple-detail-view-links {
display: none;
}
select#pickup_lib.search-wrapper-locg {
width: 100%;
}
- #search_box {
+ #search-wrapper #search-box {
width: 85%;
+ padding-top: 5px;
}
#qtype {
display: none;
h2.rdetail_uris {
clear: both;
}
+ .search_catalog_lbl {
+ margin-left: 0;
+ white-space: nowrap;
+ }
+ .adv_search_catalog_lbl {
+ margin-top: 0;
+ white-space: nowrap;
+ }
+ .browse_the_catalog_lbl {
+ white-space: nowrap;
+ }
+ .mobile_hide {
+ display: none;
+ }
+ .searchbar { width: 200px; line-height: 1.5em; }
+ #browse-controls { width: 200px; line-height: 1.5em; }
}
INCLUDE "opac/parts/topnav.tt2";
basic_search = "f";
ctx.page_title = l("Account Login") %]
- [% INCLUDE "opac/parts/searchbar.tt2" %]
+ <div class='mobile_hide'>
+ [% INCLUDE "opac/parts/searchbar.tt2" %]
+ </div>
<div id="content-wrapper">
<div id="main-content">
[% INCLUDE "opac/parts/login/form.tt2" %]
<form action="[% ctx.opac_root %]/results" method="get">
[%- END %]
<div id="search-box">
- <span class="search_catalog_lbl">[% l('Search the Catalog') %]</span>
+ <span class="search_catalog_lbl mobile_hide">[% l('Search the Catalog') %]</span>
<span class="adv_search_catalog_lbl"><a href="[% mkurl(ctx.opac_root _ '/advanced') %]"
id="home_adv_search_link">[% l('Advanced Search') %]</a></span>
<span class="browse_the_catalog_lbl"><a href="[% mkurl(ctx.opac_root _ '/browse', {}, ['fi:has_browse_entry']) %]">[% l('Browse the Catalog') %]</a></span>