From 09cfed5fdd2b330849340f9fb8d1ad84eeabf981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Fri, 29 Apr 2022 10:26:59 +0200 Subject: [PATCH] WIP: Fiddling with web presentation. --- _scripts/generate.py | 4 +++- static/style.css | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/_scripts/generate.py b/_scripts/generate.py index 0425b41..731ed29 100644 --- a/_scripts/generate.py +++ b/_scripts/generate.py @@ -138,7 +138,7 @@ def render_code_block(element, acc): def render_text(element, acc): for chunk in element.content.contents: - acc.append("{} ".format(chunk)) + acc.append('{} '.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) diff --git a/static/style.css b/static/style.css index 36b8b14..9d6d1a0 100644 --- a/static/style.css +++ b/static/style.css @@ -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 {