From b9ed7296f66b53ef2afb63b9c40d32968be0f535 Mon Sep 17 00:00:00 2001
From: Flancian <0@flancia.org>
Date: Mon, 16 Nov 2020 19:45:31 +0100
Subject: [PATCH] Move (mostly) to div-based layout, plus make color scheme
less flat (dark mode only).
---
app/static/css/screen-dark.css | 53 ++++++++++++++++++++++++++---
app/templates/base.html | 2 ++
app/templates/index.html | 2 ++
app/templates/node_rendered.html | 10 +++---
app/templates/nodes.html | 4 ++-
app/templates/subnode_rendered.html | 10 +++---
app/templates/subnodes.html | 5 ++-
7 files changed, 71 insertions(+), 15 deletions(-)
diff --git a/app/static/css/screen-dark.css b/app/static/css/screen-dark.css
index a9f56be..5aa8c92 100644
--- a/app/static/css/screen-dark.css
+++ b/app/static/css/screen-dark.css
@@ -14,17 +14,15 @@
* limitations under the License.
*/
-body { font-family: sans-serif; background: #1f1f1f; color: #bfbfbf}
+body { font-family: sans-serif; background: #101010; color: #bfbfbf}
a, h1, h2 { color: #9fc6e0; }
-h1, h2 { font-family: 'Georgia', serif; margin: 0; }
-h1 { border-bottom: 2px solid #eee; }
+h1, h2 { font-family: serif; margin-top: 0.2em; margin-bottom: 0.2em;}
+/*h1 { border-bottom: 1px solid #cfcfcf; } */
h2 { font-size: 1.2em; }
.page { margin: 2em auto; width: 35em; border: 5px solid #ccc;
padding: 0.8em; background: white; }
.entries { list-style: none; margin: 0; padding: 0; }
-.entries li { margin: 0.8em 1.2em; }
-.entries li h2 { margin-left: -1em; }
.add-entry { font-size: 0.9em; border-bottom: 1px solid #ccc; }
.add-entry dl { font-weight: bold; }
.metanav { text-align: right; font-size: 0.8em; padding: 0.3em;
@@ -42,3 +40,48 @@ h2 { font-size: 1.2em; }
.wikilink:after {
content: "]]"
}
+
+.subnode {
+ font-family: sans-serif;
+ background: #1f1f1f;
+ color: #cfcfcf;
+ padding: 10px;
+ margin-bottom: 10px;
+ border-radius: 10px;
+}
+
+/*.subnode li { margin: 0.8em 1.2em; }*/
+/*.subnode li h2 { margin-left: -1em; }*/
+
+.subnode-header {
+ font-style: italic;
+ text-align: center;
+ margin-bottom: 1em;
+}
+
+.backlinks {
+ display: inline-block;
+ font-family: sans-serif;
+ /*background: #1f1f2f; */
+ background: #161616;
+ color: #cfcfcf;
+ padding: 10px;
+ margin-bottom: 10px;
+ border-radius: 10px;
+}
+
+.backlinks-header {
+ font-style: italic;
+ text-align: center;
+ margin-bottom: 1em;
+}
+
+.listing {
+ display: inline-block;
+ background: #161616;
+ font-family: sans-serif;
+ color: #cfcfcf;
+ padding: 10px;
+ margin-bottom: 10px;
+ border-radius: 10px;
+}
diff --git a/app/templates/base.html b/app/templates/base.html
index a428f7c..3563d50 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -42,6 +42,8 @@