mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-25 14:57:31 +00:00
Skeleton placeholder for search suggestion
This commit is contained in:
parent
2257e64671
commit
6f3a161433
|
@ -224,6 +224,21 @@ a.suggestion-link:hover {
|
|||
left: 0;
|
||||
}
|
||||
|
||||
.suggestion-placeholder {
|
||||
.suggestion-title {
|
||||
width: 30%;
|
||||
height: 1.6rem * @content-scaling;
|
||||
}
|
||||
.suggestion-description {
|
||||
width: 70%;
|
||||
height: 1.3rem * @content-scaling;
|
||||
}
|
||||
.suggestion-title,
|
||||
.suggestion-description {
|
||||
background-color: @base-90;
|
||||
}
|
||||
}
|
||||
|
||||
// RTL tweaks
|
||||
.rtl {
|
||||
#site-search {
|
||||
|
|
|
@ -244,7 +244,7 @@ window.WMTypeAhead = function ( appendTo, searchInput ) {
|
|||
* Card displayed if no results could be found
|
||||
* @returns {string}
|
||||
*/
|
||||
function getNoResultsIndicator() {
|
||||
function getNoResultsIndicator( searchString ) {
|
||||
const titlemsg = mw.message('citizen-search-no-results-title').plain(),
|
||||
descmsg = mw.message('citizen-search-no-results-desc').plain();
|
||||
|
||||
|
@ -357,7 +357,7 @@ window.WMTypeAhead = function ( appendTo, searchInput ) {
|
|||
i;
|
||||
|
||||
if (suggestions.length === 0){
|
||||
return getNoResultsIndicator();
|
||||
return getNoResultsIndicator( searchString );
|
||||
}
|
||||
|
||||
for ( i = 0; i < suggestions.length; i++ ) {
|
||||
|
|
Loading…
Reference in a new issue