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']:
|
if headline_id not in graph['backlinks']:
|
||||||
return
|
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']):
|
for backlink in sorted(graph['backlinks'][headline_id], key=lambda x: graph['nodes'][x]['title']):
|
||||||
link = graph["nodes"][backlink]
|
link = graph["nodes"][backlink]
|
||||||
title = link["title"]
|
title = link["title"]
|
||||||
|
@ -154,12 +154,13 @@ body nav input {
|
|||||||
--tree-radius : 0.75ex;
|
--tree-radius : 0.75ex;
|
||||||
--tree-line-separation: 0.5rem;
|
--tree-line-separation: 0.5rem;
|
||||||
--tree-color: #ccc;
|
--tree-color: #ccc;
|
||||||
--tree-border-radius: 10px;
|
--tree-border-radius: 5px;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.node .contents ul li {
|
.node .contents ul li {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
padding-left: calc(var(--tree-spacing) * 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.node .contents ul li::after {
|
.node .contents ul li::after {
|
||||||
@ -181,7 +182,7 @@ body nav input {
|
|||||||
border-bottom: 2px dashed var(--tree-color);
|
border-bottom: 2px dashed var(--tree-color);
|
||||||
vertical-align: super;
|
vertical-align: super;
|
||||||
margin-right: calc(var(--tree-line-separation) + 0.5ex);
|
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 */
|
/* Nested item list */
|
||||||
|
Loading…
Reference in New Issue
Block a user