Changes for page ListWebSearch

Last modified by Ecaterina Valica on 2010/07/22 10:30

From version 304.1
edited by Ecaterina Valica
on 2009/03/22 12:31
Change comment: There is no comment for this version
To version 316.1
edited by Ecaterina Valica
on 2009/03/23 15:59
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -36,7 +36,7 @@
36 36  <form action="">
37 37   <div id="searchBar">
38 38   {pre}
39 - <input type="text" name="text" class="searchQuery" value="$msg.get("xe.search.bar.query")" size="50" title="$msg.get('xe.search.bar.query.title')"/>
39 + <input type="text" name="text" class="searchQuery" value="$msg.get("xe.search.bar.query")" title="$msg.get('xe.search.bar.query.title')"/>
40 40   #spaceselect($space $spaces $spacesText)
41 41   <input type="submit" class="searchButton" value="Search" title="$msg.get('xe.search.bar.go.title')"/>
42 42   <div class="searchHelp">$msg.get("xe.search.bar.help")</div>
... ... @@ -44,5 +44,6 @@
44 44   </div>
45 45  </form>
46 46  #includeInContext("XWiki.WebSearchCode")
47 +#includeInContext("XWiki.ListSuggestions")
47 47  #includeInContext("XWiki.ListResults")
48 48  </div>
XWiki.StyleSheetExtension[0]
Code
... ... @@ -20,6 +20,7 @@
20 20   border: 2px solid #CCCCCC;
21 21   color: #4d4d4d;
22 22   font-size:15px;
23 + width: 400px;
23 23  }
24 24  .searchButton{
25 25   background-color:#B3B3B3;
... ... @@ -308,3 +308,66 @@
308 308   height: 1px;
309 309   margin: 0 211px;
310 310  }
312 +div.suggestResults{
313 + position: absolute;
314 + padding: 10px 0px;
315 + z-index: 100013;
316 + left: 5px;
317 + top: 27px;
318 + width: 422px;
319 +}
320 +div.suggestResults ul{
321 + list-style: none;
322 + margin: 0 0 -4px 0;
323 + padding: 0;
324 + overflow: hidden;
325 + background-color: #fff;
326 + border: 2px solid #ccc;
327 + border-top: none;
328 +}
329 +div.suggestResults ul li{
330 + color: #ccc;
331 + padding: 0;
332 + margin: 0 4px 4px;
333 + text-align: left;
334 +}
335 +div.suggestResults ul li a{
336 + color: #4D4D4D;
337 + display: block;
338 + text-decoration: none;
339 + background-color: transparent;
340 + position: relative;
341 + padding: 0;
342 + width: 100%;
343 +}
344 +div.suggestResults ul li a:hover{
345 + background-color: #fff;
346 +}
347 +div.suggestResults ul li a span.suggestItem{
348 + display: block;
349 + padding: 3px 6px;
350 + font-weight: normal;
351 + width: 100%;
352 + clear: both;
353 +}
354 +div.suggestResults ul li a span.suggestItem span.suggestName{
355 + text-align: left;
356 + width: 60%;
357 + display:inline-block;
358 + font-weight: bold;
359 +}
360 +div.suggestResults ul li a:hover span.suggestItem span.suggestName{
361 + text-decoration: underline;
362 +}
363 +div.suggestResults ul li a span.suggestItem span.suggestLocation{
364 + text-align: right;
365 + color: #cccccc;
366 + width: 36%;
367 + vertical-align: top;
368 + display:inline-block;
369 + padding-right: 6px;
370 +}
371 +div.suggestResults ul em{
372 + font-style: normal;
373 + color: #5599FF;
374 +}