From: Patrick Canterino Date: Sun, 30 Jan 2022 17:47:36 +0000 (+0100) Subject: Moved some styles into a CSS file X-Git-Url: https://git.p6c8.net/pcdenotes.git/commitdiff_plain/f534e3e94d119d6baa2edebfd69e3d1ee055e57b?hp=f93559f60e84bb612bf0a6acd1fbc48c9ddbced5 Moved some styles into a CSS file --- diff --git a/notes/static/style.css b/notes/static/style.css new file mode 100644 index 0000000..57d9dfc --- /dev/null +++ b/notes/static/style.css @@ -0,0 +1,29 @@ +header { + color: #ffffff; + background-color: #0d6efd; + text-align: center; +} + +header a:link, header a:visited, header a:active, header a:hover { + color: #ffffff; +} + +footer { + color: #ffffff; + background-color: #212529; +} + +footer a:link, footer a:visited, footer a:active, footer a:hover { + color: #ffffff; +} + +footer ul { + list-style-type: none; + margin-left: 0; + padding-left: 0; +} + +article .publication-date { + font-style: italic; + font-size: smaller; +} \ No newline at end of file diff --git a/notes/templates/note.html b/notes/templates/note.html index 1bce423..9eebd5c 100644 --- a/notes/templates/note.html +++ b/notes/templates/note.html @@ -3,5 +3,5 @@

{{ note.title }}

{% if note.is_draft %}

Status: Draft

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

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

+

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

\ No newline at end of file diff --git a/notes/templates/note_base.html b/notes/templates/note_base.html index 7392514..b4e2f71 100644 --- a/notes/templates/note_base.html +++ b/notes/templates/note_base.html @@ -1,3 +1,4 @@ +{% load static %} @@ -5,34 +6,35 @@ {% block title %}{% endblock %} + -
-

Notes

+
+

Notes

{% block content %}{% endblock %}
-