From: Patrick Canterino <patrick@patrick-canterino.de>
Date: Mon, 31 Jan 2022 18:15:24 +0000 (+0100)
Subject: Moved more styles to CSS file
X-Git-Url: https://git.p6c8.net/pcdenotes.git/commitdiff_plain/53a6ba8267b2e8bf88d601c55e2df429a5230ff0?ds=sidebyside;hp=d464e316dea5f7aa764f1c08e90f202cba2a678c

Moved more styles to CSS file
---

diff --git a/notes/static/style.css b/notes/static/style.css
index 57d9dfc..ae3c9da 100644
--- a/notes/static/style.css
+++ b/notes/static/style.css
@@ -4,17 +4,18 @@ header {
     text-align: center;
 }
 
-header a:link, header a:visited, header a:active, header a:hover {
+header a:link, header a:visited, header a:active, header a:hover,
+footer a:link, footer a:visited, footer a:active, footer a:hover {
     color: #ffffff;
 }
 
-footer {
-    color: #ffffff;
-    background-color: #212529;
+h2 a:link, h2 a:visited, h2 a:active, h2 a:hover {
+    color: #212529;
 }
 
-footer a:link, footer a:visited, footer a:active, footer a:hover {
+footer {
     color: #ffffff;
+    background-color: #212529;
 }
 
 footer ul {
diff --git a/notes/templates/note.html b/notes/templates/note.html
index 9eebd5c..7f384f9 100644
--- a/notes/templates/note.html
+++ b/notes/templates/note.html
@@ -1,6 +1,6 @@
 {% load markdownify %}
 <article class="container mt-5{% if note.is_draft %} text-muted{% endif %}">
-    <h2><a href="{{ note.get_absolute_url }}" class="{% if note.is_draft %}text-muted{% else %}link-dark{% endif %}">{{ note.title }}</a></h2>
+    <h2><a href="{{ note.get_absolute_url }}"{% if note.is_draft %} class="text-muted"{% endif %}>{{ note.title }}</a></h2>
     {% if note.is_draft %}<p class="fw-bold">Status: Draft</p>{% endif %}
     <div class="mt-3">{{ note.content|linebreaksbr|markdownify }}</div>
     <p class="publication-date">Published on {{ note.created_at|date:"Y-m-d, H:i" }}</p>