From f03e7473f19531e0fc59feaabeb96cba438d6a9d Mon Sep 17 00:00:00 2001 From: Patrick Canterino Date: Sat, 5 Feb 2022 13:29:06 +0100 Subject: [PATCH 1/1] Moved more styles to CSS file --- notes/static/notes/style.css | 4 ++++ notes/templates/note.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/notes/static/notes/style.css b/notes/static/notes/style.css index c87f018..ac398b1 100644 --- a/notes/static/notes/style.css +++ b/notes/static/notes/style.css @@ -22,6 +22,10 @@ article .publication-date { font-size: smaller; } +article > div { + padding-top: 0.5em; +} + footer { color: #ffffff; background-color: #212529; diff --git a/notes/templates/note.html b/notes/templates/note.html index 0cc6e3d..ddc9c11 100644 --- a/notes/templates/note.html +++ b/notes/templates/note.html @@ -2,6 +2,6 @@

{{ note.title }}

{% if note.is_draft %}

Status: Draft

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

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

\ No newline at end of file -- 2.34.1