Merge "WIP Special:Search dyk messaging and padding tweaks."
This commit is contained in:
commit
2eecedb416
2 changed files with 29 additions and 14 deletions
|
|
@ -75,14 +75,7 @@ class DidYouMeanWidget {
|
|||
$stParams
|
||||
);
|
||||
|
||||
$stParams['search'] = $term;
|
||||
$stParams['runsuggestion'] = 0;
|
||||
$original = $linkRenderer->makeKnownLink(
|
||||
$this->specialSearch->getPageTitle(),
|
||||
$term,
|
||||
[ 'id' => 'mw-search-DYM-original' ],
|
||||
$stParams
|
||||
);
|
||||
$original = $term;
|
||||
|
||||
return $this->specialSearch->msg( 'search-rewritten' )
|
||||
->rawParams( $rewritten, $original )
|
||||
|
|
|
|||
|
|
@ -3,17 +3,34 @@
|
|||
@import 'mediawiki.ui/variables.less';
|
||||
|
||||
/* stylelint-disable selector-class-pattern */
|
||||
.searchresults {
|
||||
margin: 1em 0 1em 0;
|
||||
}
|
||||
#mw-content-text {
|
||||
.searchresults {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.searchresults .mw-search-exists {
|
||||
margin-bottom: 32px;
|
||||
.mw-search-nonefound,
|
||||
.mw-search-exists,
|
||||
.mw-search-createlink,
|
||||
.searchdidyoumean {
|
||||
margin-top: 24px;
|
||||
margin-bottom: 0;
|
||||
float: none;
|
||||
}
|
||||
|
||||
// If more than one message is present at the same time, reduce margin in between
|
||||
.searchdidyoumean + .searchresults .mw-search-createlink,
|
||||
.mw-search-nonefound + .mw-search-createlink {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
// Default top margin for the search result
|
||||
.mw-search-results {
|
||||
margin-top: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
/* needs extra specificity to override `.mw-body p` selector */
|
||||
.mw-body .mw-search-nonefound {
|
||||
margin: 1.5em 0 0.5em 0;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
|
|
@ -21,6 +38,10 @@
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
.mw-search-form-wrapper {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.mw-search-results {
|
||||
margin: 0;
|
||||
|
||||
|
|
@ -221,6 +242,7 @@
|
|||
.searchdidyoumean {
|
||||
font-size: 114%;
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.8em;
|
||||
|
||||
em {
|
||||
font-style: normal;
|
||||
|
|
|
|||
Loading…
Reference in a new issue