Ability to sort using form fields (for mobile portrait mode)

We now display sort options as a select box plus a descending checkbox, which
means you can apply sort orders even in portrait mode on a mobile phone where
the column headers are hidden.

Closes #199
This commit is contained in:
Simon Willison 2018-04-09 17:30:44 -07:00
commit 57b19f09d1
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
4 changed files with 46 additions and 5 deletions

View file

@ -103,6 +103,10 @@ form label {
display: inline-block;
width: 15%;
}
label.sort_by_desc {
width: auto;
padding-right: 1em;
}
form input[type=text],
form input[type=search] {
border: 1px solid #ccc;
@ -216,10 +220,6 @@ form input[type=submit] {
.filters input.filter-value {
width: 140px;
}
form input[type=submit] {
display: block;
margin-top: 0.6em;
}
}
a.not-underlined {