Improve handling of lists with multiline items.
This commit is contained in:
parent
88029a27d0
commit
58bb7ccc49
@ -626,7 +626,7 @@ def render_connections(headline_id, content, graph):
|
||||
if headline_id not in graph['backlinks']:
|
||||
return
|
||||
|
||||
content.append("<ul><li class='connections'><span class='tag backlink-explanation'>Linked from</span><ul>")
|
||||
content.append("<ul><li class='connections'><span class='tag backlink-explanation'>Linked from</span></li><ul>")
|
||||
for backlink in sorted(graph['backlinks'][headline_id], key=lambda x: graph['nodes'][x]['title']):
|
||||
link = graph["nodes"][backlink]
|
||||
title = link["title"]
|
||||
|
@ -154,12 +154,13 @@ body nav input {
|
||||
--tree-radius : 0.75ex;
|
||||
--tree-line-separation: 0.5rem;
|
||||
--tree-color: #ccc;
|
||||
--tree-border-radius: 10px;
|
||||
--tree-border-radius: 5px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.node .contents ul li {
|
||||
position: relative;
|
||||
padding-left: calc(var(--tree-spacing) * 2);
|
||||
}
|
||||
|
||||
.node .contents ul li::after {
|
||||
@ -181,7 +182,7 @@ body nav input {
|
||||
border-bottom: 2px dashed var(--tree-color);
|
||||
vertical-align: super;
|
||||
margin-right: calc(var(--tree-line-separation) + 0.5ex);
|
||||
margin-left: -2px;
|
||||
margin-left: calc(0px - (var(--tree-line-separation) * 4) - 2px);
|
||||
}
|
||||
|
||||
/* Nested item list */
|
||||
|
Loading…
Reference in New Issue
Block a user