Commit ffb760fa authored by Dries's avatar Dries
Browse files

- Patch #810176 by bleen18: improved accessibility of search results -- Google/Yahoo style.

parent 27d299ce
...@@ -46,14 +46,16 @@ ...@@ -46,14 +46,16 @@
* @see template_preprocess_search_result() * @see template_preprocess_search_result()
*/ */
?> ?>
<dt class="title"> <li>
<a href="<?php print $url; ?>"><?php print $title; ?></a> <h3 class="title">
</dt> <a href="<?php print $url; ?>"><?php print $title; ?></a>
<dd> </h3>
<?php if ($snippet) : ?> <div class="search-info-wrap">
<p class="search-snippet"><?php print $snippet; ?></p> <?php if ($snippet) : ?>
<?php endif; ?> <p class="search-snippet"><?php print $snippet; ?></p>
<?php if ($info) : ?> <?php endif; ?>
<p class="search-info"><?php print $info; ?></p> <?php if ($info) : ?>
<?php endif; ?> <p class="search-info"><?php print $info; ?></p>
</dd> <?php endif; ?>
</div>
</li>
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
?> ?>
<?php if ($search_results) : ?> <?php if ($search_results) : ?>
<h2><?php print t('Search results');?></h2> <h2><?php print t('Search results');?></h2>
<dl class="search-results <?php print $type; ?>-results"> <ol class="search-results <?php print $type; ?>-results">
<?php print $search_results; ?> <?php print $search_results; ?>
</dl> </ol>
<?php print $pager; ?> <?php print $pager; ?>
<?php else : ?> <?php else : ?>
<h2><?php print t('Your search yielded no results');?></h2> <h2><?php print t('Your search yielded no results');?></h2>
......
...@@ -9,3 +9,6 @@ ...@@ -9,3 +9,6 @@
float: right; float: right;
clear: right; clear: right;
} }
.search-results .search-info-wrap {
padding-right: 1em; /* LTR */
}
\ No newline at end of file
...@@ -7,15 +7,21 @@ ...@@ -7,15 +7,21 @@
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
} }
.search-results {
list-style: none;
}
.search-results p { .search-results p {
margin-top: 0; margin-top: 0;
} }
.search-results dt { .search-results .title {
font-size: 1.1em; font-size: 1.2em;
} }
.search-results dd { .search-results li {
margin-bottom: 1em; margin-bottom: 1em;
} }
.search-results .search-info-wrap {
padding-left: 1em; /* LTR */
}
.search-results .search-info { .search-results .search-info {
font-size: 0.85em; font-size: 0.85em;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment