File tree Expand file tree Collapse file tree 3 files changed +35
-15
lines changed Expand file tree Collapse file tree 3 files changed +35
-15
lines changed Original file line number Diff line number Diff line change @@ -323,11 +323,11 @@ function html_search(){
323
323
flush ();
324
324
325
325
//show progressbar
326
- print '<div class="centeralign" id="dw__loading"> ' .NL ;
326
+ print '<div id="dw__loading"> ' .NL ;
327
327
print '<script type="text/javascript" charset="utf-8"><!--//--><![CDATA[//><!-- ' .NL ;
328
328
print 'showLoadBar(); ' .NL ;
329
329
print '//--><!]]></script> ' .NL ;
330
- print '<br />< /div> ' .NL ;
330
+ print '</div> ' .NL ;
331
331
flush ();
332
332
333
333
//do quick pagesearch
@@ -363,20 +363,24 @@ function html_search(){
363
363
//do fulltext search
364
364
$ data = ft_pageSearch ($ QUERY ,$ regex );
365
365
if (count ($ data )){
366
+ print '<dl class="search_results"> ' ;
366
367
$ num = 1 ;
367
368
foreach ($ data as $ id => $ cnt ){
368
- print '<div class="search_result" > ' ;
369
+ print '<dt > ' ;
369
370
print html_wikilink (': ' .$ id ,useHeading ('navigation ' )?null :$ id ,$ regex );
370
371
if ($ cnt !== 0 ){
371
- print ': <span class="search_cnt"> ' .$ cnt .' ' .$ lang ['hits ' ].'</span><br /> ' ;
372
+ print ': ' .$ cnt .' ' .$ lang ['hits ' ].'' ;
373
+ }
374
+ print '</dt> ' ;
375
+ if ($ cnt !== 0 ){
372
376
if ($ num < FT_SNIPPET_NUMBER ){ // create snippets for the first number of matches only
373
- print '<div class="search_snippet" > ' .ft_snippet ($ id ,$ regex ).'</div > ' ;
377
+ print '<dd > ' .ft_snippet ($ id ,$ regex ).'</dd > ' ;
374
378
}
375
379
$ num ++;
376
380
}
377
- print '</div> ' ;
378
381
flush ();
379
382
}
383
+ print '</dl> ' ;
380
384
}else {
381
385
print '<div class="nothing"> ' .$ lang ['nothingfound ' ].'</div> ' ;
382
386
}
Original file line number Diff line number Diff line change @@ -706,12 +706,20 @@ div.insitu-footnote {
706
706
}
707
707
708
708
/* --------------- search result formating --------------- */
709
- div .dokuwiki .search_result {
710
- margin-bottom : 6px ;
709
+ # dw__loading {
710
+ text-align : center;
711
+ margin-bottom : 1em ;
712
+ }
713
+
714
+ div .dokuwiki .search_results {
711
715
padding : 0 10px 0 30px ;
712
716
}
713
717
714
- div .dokuwiki .search_snippet {
718
+ div .dokuwiki .search_results dt {
719
+ margin-bottom : 3px ;
720
+ }
721
+ div .dokuwiki .search_results dd {
722
+ margin-bottom : 6px ;
715
723
color : __text_other__;
716
724
font-size : 12px ;
717
725
margin-left : 20px ;
Original file line number Diff line number Diff line change 8
8
9
9
/* loading gif */
10
10
# dw__loading {
11
+ text-align : center;
12
+ margin-bottom : 1.4em ;
11
13
}
12
14
13
15
/*____________ matching pagenames ____________*/
31
33
32
34
/*____________ search results ____________*/
33
35
34
- /* container for one search result */
35
- .dokuwiki div .search_result {
36
- margin-bottom : 1.4em ;
36
+ .dokuwiki dl .search_results {
37
+ margin-bottom : 1.2em ;
38
+ }
39
+
40
+ /* search heading */
41
+ .dokuwiki dl .search_results dt {
42
+ font-weight : normal;
43
+ margin-bottom : .2em ;
37
44
}
38
45
/* search snippet */
39
- .dokuwiki div . search_result div . search_snippet {
46
+ .dokuwiki dl . search_results dd {
40
47
color : __text_alt__;
41
48
background-color : inherit;
49
+ margin : 0 0 1.2em 0 ;
42
50
}
43
51
44
52
/* search hit in normal text */
47
55
background-color : __highlight__;
48
56
}
49
57
/* search hit in search results */
50
- .dokuwiki div . search_result strong .search_hit {
58
+ .dokuwiki . search_results strong .search_hit {
51
59
font-weight : normal;
52
60
}
53
61
/* ellipsis separating snippets */
54
- .dokuwiki div . search_result .search_sep {
62
+ .dokuwiki . search_results .search_sep {
55
63
color : __text__;
56
64
background-color : inherit;
57
65
}
You can’t perform that action at this time.
0 commit comments