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 @@
* @see template_preprocess_search_result()
*/
?>
<dt class="title">
<a href="<?php print $url; ?>"><?php print $title; ?></a>
</dt>
<dd>
<?php if ($snippet) : ?>
<p class="search-snippet"><?php print $snippet; ?></p>
<?php endif; ?>
<?php if ($info) : ?>
<p class="search-info"><?php print $info; ?></p>
<?php endif; ?>
</dd>
<li>
<h3 class="title">
<a href="<?php print $url; ?>"><?php print $title; ?></a>
</h3>
<div class="search-info-wrap">
<?php if ($snippet) : ?>
<p class="search-snippet"><?php print $snippet; ?></p>
<?php endif; ?>
<?php if ($info) : ?>
<p class="search-info"><?php print $info; ?></p>
<?php endif; ?>
</div>
</li>
......@@ -23,9 +23,9 @@
?>
<?php if ($search_results) : ?>
<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; ?>
</dl>
</ol>
<?php print $pager; ?>
<?php else : ?>
<h2><?php print t('Your search yielded no results');?></h2>
......
......@@ -9,3 +9,6 @@
float: right;
clear: right;
}
.search-results .search-info-wrap {
padding-right: 1em; /* LTR */
}
\ No newline at end of file
......@@ -7,15 +7,21 @@
margin-top: 0;
margin-bottom: 0;
}
.search-results {
list-style: none;
}
.search-results p {
margin-top: 0;
}
.search-results dt {
font-size: 1.1em;
.search-results .title {
font-size: 1.2em;
}
.search-results dd {
.search-results li {
margin-bottom: 1em;
}
.search-results .search-info-wrap {
padding-left: 1em; /* LTR */
}
.search-results .search-info {
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