Changes for page ListWebSearch

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

From version 170.1
edited by Ecaterina Valica
on 2009/03/19 15:51
Change comment: There is no comment for this version
To version 207.1
edited by Ecaterina Valica
on 2009/03/19 20:20
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -4,7 +4,6 @@
4 4  #else
5 5   #set($space = $request.space)
6 6  #end
7 -
8 8  #set($spacesText = {})
9 9  #set($spaces = $xwiki.spaces)
10 10  #set($ok = $spacesText.put("All","All"))
... ... @@ -16,7 +16,7 @@
16 16   <option value="$spacesText.get($space)" #if($selectspace == $spacesText.get($space))selected="selected"#end>$space</option>
17 17  #end
18 18  #macro(spaceselect $selectspace $spaces $spacesText)
19 - <select name="space">
18 + <select name="space" title="$msg.get('xe.search.bar.spaces.title')">
20 20   #spaceoption("All spaces" $selectspace $spacesText)
21 21   #foreach($space in $spaces)
22 22   #spaceoption($space $selectspace $spacesText)
... ... @@ -36,9 +36,9 @@
36 36  <form action="">
37 37   <div id="searchBar">
38 38   {pre}
39 - <input type="text" name="text" value="search..." size="50"/>
40 - #spaceselect($space $spaces $spacesText) <input class="button searchButton" type="image" src="/xwiki/skins/albatross/go.png" value="Go"/>
41 - <div class="searchHelp">eq. xwiki* AND "search query"</div>
38 + <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 + #spaceselect($space $spaces $spacesText) <input class="button" type="image" src="/xwiki/skins/albatross/go.png" value="Go" accesskey="s" title="$msg.get('xe.search.bar.go.title')"/>
40 + <div class="searchHelp">$msg.get("xe.search.bar.help")</div>
42 42   {/pre}
43 43   </div>
44 44  </form>
XWiki.StyleSheetExtension[0]
Code
... ... @@ -4,18 +4,18 @@
4 4  }
5 5  /* Search Bar*/
6 6  #searchBar{
7 - padding: 10px 10px 5px 10px;
8 - background-color: #e6e6e6;
9 - border: 1px solid #b3b3b3;
10 10   margin-bottom: 11px;
8 + padding-left: 5px;
11 11   clear: both;
12 12  }
13 -#searchBar input, #searchBar select {
14 - border: 1px solid #b3b3b3;
11 +#searchBar .searchQuery, #searchBar select {
12 + border: 1px solid #5599FF;
15 15   color: #4d4d4d;
16 16  }
17 -.searchButton{
18 - border: none;
15 +.searchQuery{
16 + background:transparent url($xwiki.getSkinFile("search.png")) center left no-repeat;
17 + display:inline-block;
18 + padding-left:18px;
19 19  }
20 20  .searchHelp{
21 21   font-size: 80%;
... ... @@ -24,12 +24,10 @@
24 24  /* Search Filters*/
25 25  .searchFilters{
26 26   clear: both;
27 - margin-bottom: 15px;
28 28   font-size: 90%;
29 29  }
30 30  #sortFilter{
31 31   color: #808080;
32 - background-color: #F9F9F9;
33 33   padding: 5px;
34 34   line-height: 16px;
35 35  }
... ... @@ -37,19 +37,17 @@
37 37   color: #808080;
38 38  }
39 39  #sortFilter a:hover{
40 - color: #777777;
41 - font-weight: bold;
38 + color: #4D4D4D;
42 42  }
43 43  #sortFilter a#currentSort{
44 - color: #777777;
41 + color: #4D4D4D;
45 45   font-weight: bold;
46 46  }
47 47  .paginationFilter {
48 48   color: #808080;
49 49   height: 100%;
50 - background-color: #F9F9F9;
51 51   border-top: 1px solid #CCCCCC;
52 - padding: 5px;
48 + padding: 5px 0px 5px 5px;
53 53   display: block;
54 54   line-height: 22px;
55 55  }
... ... @@ -57,7 +57,7 @@
57 57   float: left;
58 58  }
59 59  .resultsNo .currentResultsNo, .resultsNo .totalResultsNo{
60 - color: #4D4D4D;
56 + color: #808080;
61 61  }
62 62  .pagination{
63 63   float: right;
... ... @@ -67,11 +67,10 @@
67 67   color: #808080;
68 68  }
69 69  .pagination a:hover{
70 - color: #777777;
71 - font-weight: bold;
66 + color: #4D4D4D;
72 72  }
73 73  .pagination a.currentPagination{
74 - color: #777777;
69 + color: #4D4D4D;
75 75   font-weight: bold;
76 76  }
77 77  .controlPagination{
... ... @@ -107,10 +107,11 @@
107 107   width: 100%;
108 108   z-index: 1;
109 109  }
110 -/* Search Filters*/
105 +/* Search Result List*/
111 111  #searchResultsList{
112 112   clear: both;
113 113   display: table;
109 + padding-top: 15px;
114 114  }
115 115  .resultItem{
116 116   display: block;
... ... @@ -125,13 +125,13 @@
125 125   width: 3%;
126 126  }
127 127  .itemType .typeComment{
128 - background:transparent url($xwiki.getSkinFile("comment.png")) center right no-repeat;
124 + background:transparent url($xwiki.getSkinFile("comment.gif")) center right no-repeat;
129 129   display:inline-block;
130 130   width:16px;
131 131   height:16px;
132 132  }
133 133  .itemType .typeAttachment{
134 - background:transparent url($xwiki.getSkinFile("attach.png")) center right no-repeat;
130 + background:transparent url($xwiki.getSkinFile("attach.gif")) center right no-repeat;
135 135   display:inline-block;
136 136   width:16px;
137 137   height:16px;
... ... @@ -150,11 +150,19 @@
150 150  .itemDescription a{
151 151   color: #5599ff;
152 152  }
149 +.itemDescription a:hover{
150 + color: #5599ff;
151 +}
153 153  .itemTitle a{
154 154   color: #4d4d4d;
155 155   font-weight: bold;
156 156   font-size:130%;
157 157  }
157 +.itemTitle a:hover{
158 + color: #4d4d4d;
159 + font-weight: bold;
160 + font-size:130%;
161 +}
158 158  .itemLocation{
159 159   color: #808080;
160 160   font-size:90%;
... ... @@ -165,7 +165,10 @@
165 165   font-size:90%;
166 166  }
167 167  .itemModifiers a.itemAuthor, .itemModifiers a.itemDate{}
168 -.itemContext{}
172 +.itemContext .highlight{
173 + background-color: #f7ff94;
174 + padding: 0px 5px 0px 5px;
175 +}
169 169  .itemOthers{
170 170   color: #808080;
171 171   font-size:80%;
... ... @@ -257,7 +257,6 @@
257 257   height: 1px;
258 258  }
259 259  .searchFooter{
260 - margin-bottom: 15px;
261 261   display: block;
262 262   clear: both;
263 263   text-align: right;