1
Fork 0

Improve alias rendering

This commit is contained in:
Guillaume Gomez 2018-04-26 21:14:10 +02:00
parent cf9209f872
commit e81b59bba8
4 changed files with 16 additions and 6 deletions

View file

@ -1273,7 +1273,7 @@
output += '<tr class="' + type + ' result"><td>' +
'<a href="' + item.href + '">' +
(item.is_alias === true ?
('<span><b>' + item.alias + ' </b></span><span ' +
('<span class="alias"><b>' + item.alias + ' </b></span><span ' +
'class="grey"><i>&nbsp;- see&nbsp;</i></span>') : '') +
item.displayPath + '<span class="' + type + '">' +
name + '</span></a></td><td>' +

View file

@ -1327,7 +1327,3 @@ kbd {
#all-types > p {
margin: 5px 0;
}
.search-results td span.grey {
color: #ccc;
}

View file

@ -382,7 +382,7 @@ kbd {
}
#theme-choices > button:hover, #theme-choices > button:focus {
background-color: #444;
background-color: #4e4e4e;
}
@media (max-width: 700px) {
@ -397,3 +397,10 @@ kbd {
#all-types:hover {
background-color: #606060;
}
.search-results td span.alias {
color: #fff;
}
.search-results td span.grey {
color: #ccc;
}

View file

@ -391,3 +391,10 @@ kbd {
#all-types:hover {
background-color: #f9f9f9;
}
.search-results td span.alias {
color: #000;
}
.search-results td span.grey {
color: #999;
}