Index: trunk/extensions/MobileFrontend/javascripts/opensearch.js |
— | — | @@ -67,11 +67,13 @@ |
68 | 68 | if ( !sections || sections.length < 1 ) { |
69 | 69 | results.innerHTML = "No results"; |
70 | 70 | } else { |
71 | | - var html = ''; |
| 71 | + var html = '<div class="suggestions-results">'; |
72 | 72 | for ( i = 0; i < sections.length; i++ ) { |
73 | 73 | var section = sections[i]; |
74 | | - html = html + "<a href='" + section.value + "'>" + section.label + "</a><br/>"; |
| 74 | + var rel = i + 1; |
| 75 | + html = html + "<div class=\"suggestions-result\" rel=\"" + rel + "\" title=\"" + section.label + "\"><a href='" + section.value + "'>" + section.label + "</a></div>"; |
75 | 76 | } |
| 77 | + html = html + '</div>'; |
76 | 78 | results.innerHTML = html; |
77 | 79 | } |
78 | 80 | } |
\ No newline at end of file |
Index: trunk/extensions/MobileFrontend/stylesheets/common.css |
— | — | @@ -15,6 +15,41 @@ |
16 | 16 | display: none; |
17 | 17 | } |
18 | 18 | |
| 19 | +.suggestions-results { |
| 20 | + font-size: 0.8em; |
| 21 | + cursor: pointer; |
| 22 | +} |
| 23 | + |
| 24 | +.suggestions-result { |
| 25 | + color: black; |
| 26 | + color: WindowText; |
| 27 | + margin: 0; |
| 28 | + line-height: 1.5em; |
| 29 | + padding: 0.01em 0.25em; |
| 30 | + text-align: left; |
| 31 | +} |
| 32 | + |
| 33 | +.suggestions-result a { |
| 34 | + text-decoration: none; |
| 35 | + color: #000000; |
| 36 | +} |
| 37 | +.suggestions-result a:link { |
| 38 | + text-decoration: none; |
| 39 | + color:#000000; |
| 40 | +} |
| 41 | +.suggestions-result a:visited { |
| 42 | + text-decoration: none; |
| 43 | + color:#000000; |
| 44 | +} |
| 45 | +.suggestions-result a:hover { |
| 46 | + text-decoration: none; |
| 47 | + color:#000000; |
| 48 | +} |
| 49 | +.suggestions-result a:active { |
| 50 | + text-decoration: none; |
| 51 | + color:#000000; |
| 52 | +} |
| 53 | + |
19 | 54 | #results { |
20 | 55 | display: none; |
21 | 56 | background-color: #ffffff; |