aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.js
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2021-01-27 14:33:22 +0000
committers-ol <s-ol@users.noreply.github.com>2021-01-27 14:41:09 +0000
commit52f5c716fb09d0be315338703caf22c6261690ba (patch)
treef98cea42d411c8fd48cca00c093401d797e44495 /src/ui.js
parentnode collapsing (w/o relayouting) (diff)
downloadfedidag-52f5c716fb09d0be315338703caf22c6261690ba.tar.gz
fedidag-52f5c716fb09d0be315338703caf22c6261690ba.zip
actually visually collapse nodes
Diffstat (limited to 'src/ui.js')
-rw-r--r--src/ui.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui.js b/src/ui.js
index 88e5b10..c7f1090 100644
--- a/src/ui.js
+++ b/src/ui.js
@@ -96,6 +96,17 @@ section > main {
section.tombstone > main {
font-family: inherit;
}
+
+section.hidden {
+ display: none;
+}
+
+section.collapsed {
+ width: auto;
+}
+section.collapsed > main {
+ display: none;
+}
`;
const colors = new ColorHash({ lightness: 0.8 });