- Patch #810176 by bleen18: improved accessibility of search results -- Google/Yahoo style.
parent
27d299cec4
commit
ffb760fa49
|
@ -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 @@
|
||||||
?>
|
?>
|
||||||
<?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 @@
|
||||||
float: right;
|
float: right;
|
||||||
clear: right;
|
clear: right;
|
||||||
}
|
}
|
||||||
|
.search-results .search-info-wrap {
|
||||||
|
padding-right: 1em; /* LTR */
|
||||||
|
}
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue