Mercurial Hosting > luan
diff lucene/src/luan/modules/lucene/Web_search.luan @ 294:5652cdea25f5
Improve html code of core tools.
git-svn-id: https://luan-java.googlecode.com/svn/trunk@295 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | hugo.tech@gmail.com <hugo.tech@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 11 Dec 2014 03:12:26 +0000 |
parents | 4d53e9fc1bd9 |
children | d6cce1cc8948 |
line wrap: on
line diff
--- a/lucene/src/luan/modules/lucene/Web_search.luan Thu Dec 11 01:44:38 2014 +0000 +++ b/lucene/src/luan/modules/lucene/Web_search.luan Thu Dec 11 03:12:26 2014 +0000 @@ -4,7 +4,7 @@ local function basic_style() %> - body {font-family:'Arial',sans-serif;font-size:16px} + body {font-family:'Arial',sans-serif;font-size:16px;padding:1em 2em} input {padding:.5em;border-radius:10px;border:1px solid #ccc;font-size:16px} input.btn {background:#3B619D;color:#FFF;padding:.5em 2em;font-size:20px} h1 {font-weight:bold;font-size: 20px} @@ -14,6 +14,7 @@ table.results {margin-top:2em;border-collapse:collapse;font-size:90%} table.results th {background:#eee} table.results th,table.results td {border-left:1px solid #bbb;padding:.4em} + table.results tr:nth-child(odd) td {background:#f8f8f8} <% end local function form() %> @@ -30,7 +31,7 @@ <span class="label">Query:</span> <input name="query" size="60" value="Query.all_docs" /> <div class="tip"><span class="label"></span> Query examples: Query.term{ type = 'user' }</div> </p> - <p><span class="label">Max Rows:</span> <input name="rows" value="20" maxlength="5" onkeypress="return event.charCode >= 48 && event.charCode <= 57" style="width:3em"/></p> + <p><span class="label">Max Rows:</span> <input name="rows" value="100" maxlength="5" onkeypress="return event.charCode >= 48 && event.charCode <= 57" style="width:3em"/></p> <p> <span class="label">Sort:</span> <input name="sort" size="60" /> <div class="tip"><span class="label"></span> Sort examples: Query.sort{{ field = 'id', type='int' }}</div>