WIP: Fiddling with web presentation.

This commit is contained in:
Sergio Martínez Portela 2022-04-29 10:26:59 +02:00
parent 8bb2c0dbcd
commit 09cfed5fdd
2 changed files with 6 additions and 4 deletions

View File

@ -138,7 +138,7 @@ def render_code_block(element, acc):
def render_text(element, acc):
for chunk in element.content.contents:
acc.append("<u>{}</u> ".format(chunk))
acc.append('<span class="text">{}</span> '.format(chunk))
def render_tag(element, acc):
@ -159,6 +159,8 @@ def render_tree(tree, acc):
def render(headline, doc):
# if headline.id != "41b1ee7e-ddbf-41ff-bc79-18258506ebe6":
# return ""
print("\n===========")
dom = headline.as_dom()
print_tree(dom)

View File

@ -4,8 +4,8 @@ body {
}
.node .node {
margin: 1ex;
padding: 0 0.5ex 0.1ex 1ex;
margin: 1ex 0.5ex 1ex 0.5ex;
padding: 0 0 0.1ex 1ex;
box-shadow: 0px 1px 4px 0 rgba(0,0,0,0.3);
border-radius: 4px;
}
@ -36,7 +36,7 @@ li .tag {
}
li .tag::after {
content: ": ";
content: ":: ";
}
.text {