mobile-friendly search results
This commit is contained in:
parent
437e1f60e5
commit
35b9973a4a
@ -123,7 +123,7 @@ func (this *ArchiveState) renderSearch(w http.ResponseWriter) {
|
|||||||
|
|
||||||
this.renderTemplateHead(w)
|
this.renderTemplateHead(w)
|
||||||
totalResults := 0
|
totalResults := 0
|
||||||
w.Write([]byte(`<ul>`))
|
w.Write([]byte(`<ul class="search-results">`))
|
||||||
|
|
||||||
limit := this.log.LatestDate().Next() // one off the end
|
limit := this.log.LatestDate().Next() // one off the end
|
||||||
for ympair := this.log.EarliestDate(); !ympair.Equals(limit); ympair = ympair.Next() {
|
for ympair := this.log.EarliestDate(); !ympair.Equals(limit); ympair = ympair.Next() {
|
||||||
|
@ -61,7 +61,8 @@ select {
|
|||||||
|
|
||||||
#chatarea {
|
#chatarea {
|
||||||
word-break:break-word;
|
word-break:break-word;
|
||||||
white-space: pre;
|
white-space: pre; /* Safari 1/2, IE 6/7 */
|
||||||
|
white-space: pre-wrap; /* Chrome, Firefox, IE8++ */
|
||||||
}
|
}
|
||||||
|
|
||||||
.timestamp {
|
.timestamp {
|
||||||
@ -256,6 +257,21 @@ select {
|
|||||||
#searchbox {
|
#searchbox {
|
||||||
width:auto;
|
width:auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul.search-results {
|
||||||
|
list-style-type: none;
|
||||||
|
padding-left: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-results li a:first-child {
|
||||||
|
/* convert mini link to touchable */
|
||||||
|
display:inline-block;
|
||||||
|
padding: 2px 6px;
|
||||||
|
margin: 2px;
|
||||||
|
border: 1px solid grey;
|
||||||
|
background: lightgrey;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 400px) {
|
@media (max-width: 400px) {
|
||||||
|
Loading…
Reference in New Issue
Block a user