From 53a6ba8267b2e8bf88d601c55e2df429a5230ff0 Mon Sep 17 00:00:00 2001 From: Patrick Canterino Date: Mon, 31 Jan 2022 19:15:24 +0100 Subject: [PATCH 1/1] Moved more styles to CSS file --- notes/static/style.css | 11 ++++++----- notes/templates/note.html | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) 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 %}
-

{{ note.title }}

+

{{ note.title }}

{% if note.is_draft %}

Status: Draft

{% endif %}
{{ note.content|linebreaksbr|markdownify }}

Published on {{ note.created_at|date:"Y-m-d, H:i" }}

-- 2.34.1