Commit 17bebf51 authored by Alexis Brenon's avatar Alexis Brenon
Browse files

馃帹 Improve item rendering

parent 2d1b1cef
...@@ -43,3 +43,12 @@ ul.parameters a.type:before, ul.returns a.type:before { ...@@ -43,3 +43,12 @@ ul.parameters a.type:before, ul.returns a.type:before {
.card.bg-primary a, .card.bg-info a { .card.bg-primary a, .card.bg-info a {
color: #fff; color: #fff;
} }
.item-name {
font-family: monospace;
font-size: 115%;
}
.item-args {
font-style: italic;
font-size: 90%;
}
...@@ -24,8 +24,18 @@ custom_tags={ ...@@ -24,8 +24,18 @@ custom_tags={
} }
custom_display_name_handler = function(item) custom_display_name_handler = function(item)
return item.names_hierarchy[#item.names_hierarchy] .. result = "" ..
(item.type == "function" and item.args or "") "<span class='item-name " .. item.type .. "'>" ..
item.names_hierarchy[#item.names_hierarchy] ..
"</span>"
if item.type == "function" then
result = result .. " (<span class='item-args'>"
if item.args:sub(2, -2):len() > 0 then
result = result .. " " .. item.args:sub(2, -2) .. " "
end
result = result .. "</span>)"
end
return result
end end
local torchUrls = { local torchUrls = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment