From b431a86b9621633514f141d72c989596beb10541 Mon Sep 17 00:00:00 2001 From: jutty Date: Sun, 28 Dec 2025 06:07:37 -0300 Subject: [PATCH] Move all template inline styles to style.css --- static/style.css | 47 ++++++++++++++++++++++++++++++++++++++++++-- templates/base.html | 14 ++++++------- templates/error.html | 4 ++-- templates/index.html | 2 +- templates/node.html | 2 +- templates/tree.html | 16 +++++++-------- 6 files changed, 64 insertions(+), 21 deletions(-) diff --git a/static/style.css b/static/style.css index 97a5840..f5bc07b 100644 --- a/static/style.css +++ b/static/style.css @@ -37,7 +37,7 @@ a { } a:visited { - text-decoration-color: #aaa; + text-decoration-color: #aaa; } div.header-row { @@ -74,6 +74,24 @@ h1.node-title { margin: 10px 0; } +ul.tree-node-text { + display: inline; + padding-left: 0; +} + +li.tree-node-text { + display: inline; +} + +details.tree-node-text { + display: inline; + cursor: pointer; +} + +summary.tree-node-text { + display: inline; +} + footer div { margin: 20px 0; text-align: center; @@ -84,8 +102,33 @@ footer p { margin: 0; } -nav li { +span.detached-connection { + filter: opacity(60%); +} + +nav#main-menu { + text-align: center; +} + +nav#main-menu ul { + display: inline; + padding-left: 0; +} + +nav#main-menu li { margin-right: 10px; + display: inline; +} + +div#error-poem { + text-align: right; + margin-top: 8em; + margin-right: 2em; + font-size: 0.8em; +} + +em#index-node-count { + font-size: 0.8em; } @media (prefers-color-scheme: dark) { diff --git a/templates/base.html b/templates/base.html index 07023de..08eb91b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -18,21 +18,21 @@ {% endblock head %} -