fix rank layout in search page
This commit is contained in:
8
jquery/databap.js
vendored
8
jquery/databap.js
vendored
@@ -585,8 +585,8 @@ function Databap()
|
||||
else
|
||||
{
|
||||
for(iRankId in asItems) self.appendItem(asItems[iRankId], $Container, false);
|
||||
}
|
||||
self.addSuccessIcon();
|
||||
}
|
||||
},
|
||||
{keywords:searchWords},
|
||||
'json',
|
||||
@@ -614,16 +614,16 @@ function Databap()
|
||||
//Rank (search)
|
||||
if(typeof asItemInfo.rank != 'undefined')
|
||||
{
|
||||
$verHtml.find('#description')
|
||||
$verHtml.find('.glue-right')
|
||||
.append(
|
||||
$('<span>', {style:'float:right;'})
|
||||
$('<span>', {'class':'rank'})
|
||||
.append($('<i>', {'class':'fa fa-inline fa-c-kpi'}))
|
||||
.append(asItemInfo.rank)
|
||||
);
|
||||
}
|
||||
|
||||
//Icon
|
||||
$verHtml.find('.fa').addClass('fa-c-'+asItemInfo.type);
|
||||
$verHtml.find('#type_logo').addClass('fa-c-'+asItemInfo.type);
|
||||
|
||||
//Link
|
||||
var sItemLink = self.getInternalLink(asItemInfo.type, asItemInfo.id_item);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div id="author_box" class="author_box clickable round">
|
||||
<a id="item_link" href="" target="_blank">
|
||||
<i class="fa fa-inline fa-30"></i><span id="description" class="description"></span>
|
||||
<i id="type_logo" class="fa fa-inline fa-30"></i><span id="description" class="description"></span>
|
||||
<span class="glue-right"><span id="author_name"></span> (<span id="author_company"></span>) • <span id="led"></span></span>
|
||||
</a>
|
||||
</div>
|
||||
@@ -335,6 +335,11 @@ a[href^="table"].internal_link span.item {
|
||||
font-size:13px;
|
||||
}
|
||||
|
||||
.author_box span.rank {
|
||||
font-weight: bold;
|
||||
margin-left:10px;
|
||||
}
|
||||
|
||||
.standalone .author_box {
|
||||
margin-top:10px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user