Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Hide hero unit and filter selections on small resolutions, since they…
Browse files Browse the repository at this point in the history
… are not useful for phone users.
  • Loading branch information
Otto Kekäläinen committed Jul 1, 2012
1 parent 999daa4 commit 903d25e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions css/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ footer {
margin: 12px auto 0px;
}


// hide hero-unit and filters for really small screens
@media (max-width: 480px) {

#introtext, #filter-by, #facetview_filterbuttons {
visibility: hidden;
position: absolute;
top: -999px;
}

}


textarea.widget { width: 500px; height: 100px; }

/* OpenLayers/OSM attribution styling */
Expand Down
2 changes: 1 addition & 1 deletion js/libs/jquery.facetview.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
// pass a list of filters to be displayed
var buildfilters = function() {
var filters = options.facets;
var filterheader = "<h3>" + _("Filter by") + "</h3>";
var filterheader = "<h3 id='filter-by'>" + _("Filter by") + "</h3>";
var thefilters = "";

for ( var idx in filters ) {
Expand Down

0 comments on commit 903d25e

Please sign in to comment.