Skip to content

Commit

Permalink
Change spacing in search meta data to punctuation
Browse files Browse the repository at this point in the history
Punctuation is more natural, makes sense with CSS switched off
and makes screenreaders add a little pause.
  • Loading branch information
selfthinker committed Apr 19, 2018
1 parent 6d55fda commit b12bcb7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion inc/Ui/Search.php
Expand Up @@ -587,7 +587,7 @@ protected function getFulltextResultsHTML($data, $highlight)
$lastMod = '<span class="lastmod">' . $lang['lastmod'] . '</span> ';
$lastMod .= '<time datetime="' . date_iso8601($mtime) . '" title="'.dformat($mtime).'">' . dformat($mtime, '%f') . '</time>';
if ($cnt !== 0) {
$hits = '<span class="hits">' . $cnt . ' ' . $lang['hits'] . '</span>';
$hits = '<span class="hits">' . $cnt . ' ' . $lang['hits'] . '</span>, ';
if ($num < FT_SNIPPET_NUMBER) { // create snippets for the first number of matches only
$snippet = ft_snippet($id, $highlight);
}
Expand Down
7 changes: 0 additions & 7 deletions lib/tpl/dokuwiki/css/_search.less
Expand Up @@ -108,8 +108,6 @@
.dokuwiki div.search_quickresult {
margin-bottom: 1.4em;

h3 {
}
ul {
padding: 0;

Expand Down Expand Up @@ -139,11 +137,6 @@
/* last modified line */
dd.meta {
margin: 0 0 .2em 0;

.hits {
margin-right: 1em;
}

}

/* search snippet */
Expand Down

0 comments on commit b12bcb7

Please sign in to comment.