diff options
author | Anika Henke <anika@selfthinker.org> | 2012-04-09 19:06:15 +0100 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2012-04-09 19:06:15 +0100 |
commit | 91b05b6bf9cb9fd3aeced777159422f4e8114a9c (patch) | |
tree | 1e5b8f838513352694486d381fda2c40e6cfad5f /lib/tpl | |
parent | d5acc30de20298eb6ed7545e70484599c4d95867 (diff) | |
download | rpg-91b05b6bf9cb9fd3aeced777159422f4e8114a9c.tar.gz rpg-91b05b6bf9cb9fd3aeced777159422f4e8114a9c.tar.bz2 |
improved HTML for search results
Attention: Template authors need to adjust their CSS!
Original structure:
div.search_result >
a.wikilink1 > span.search_cnt
br
div.search_snippet
New structure:
dl.search_results >
dt > a.wikilink1
dd
Diffstat (limited to 'lib/tpl')
-rw-r--r-- | lib/tpl/default/design.css | 14 | ||||
-rw-r--r-- | lib/tpl/dokuwiki/css/_search.css | 20 |
2 files changed, 25 insertions, 9 deletions
diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css index 48438527e..300b62a15 100644 --- a/lib/tpl/default/design.css +++ b/lib/tpl/default/design.css @@ -706,12 +706,20 @@ div.insitu-footnote { } /* --------------- search result formating --------------- */ -div.dokuwiki .search_result { - margin-bottom: 6px; +#dw__loading { + text-align: center; + margin-bottom: 1em; +} + +div.dokuwiki .search_results { padding: 0 10px 0 30px; } -div.dokuwiki .search_snippet { +div.dokuwiki .search_results dt { + margin-bottom: 3px; +} +div.dokuwiki .search_results dd { + margin-bottom: 6px; color: __text_other__; font-size: 12px; margin-left: 20px; diff --git a/lib/tpl/dokuwiki/css/_search.css b/lib/tpl/dokuwiki/css/_search.css index 446efe331..0090308c9 100644 --- a/lib/tpl/dokuwiki/css/_search.css +++ b/lib/tpl/dokuwiki/css/_search.css @@ -8,6 +8,8 @@ /* loading gif */ #dw__loading { + text-align: center; + margin-bottom: 1.4em; } /*____________ matching pagenames ____________*/ @@ -31,14 +33,20 @@ /*____________ search results ____________*/ -/* container for one search result */ -.dokuwiki div.search_result { - margin-bottom: 1.4em; +.dokuwiki dl.search_results { + margin-bottom: 1.2em; +} + +/* search heading */ +.dokuwiki dl.search_results dt { + font-weight: normal; + margin-bottom: .2em; } /* search snippet */ -.dokuwiki div.search_result div.search_snippet { +.dokuwiki dl.search_results dd { color: __text_alt__; background-color: inherit; + margin: 0 0 1.2em 0; } /* search hit in normal text */ @@ -47,11 +55,11 @@ background-color: __highlight__; } /* search hit in search results */ -.dokuwiki div.search_result strong.search_hit { +.dokuwiki .search_results strong.search_hit { font-weight: normal; } /* ellipsis separating snippets */ -.dokuwiki div.search_result .search_sep { +.dokuwiki .search_results .search_sep { color: __text__; background-color: inherit; } |