From 8e7c5fb32f4ccafee26982abfd3506f545b711c7 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Fri, 10 May 2024 10:20:49 -0500 Subject: Update styling --- _includes/post.njk | 32 +++++++++++++++++++++++++----- css/main.css | 57 +++++++++++++++++++++++++++++++++++++++++------------- index.njk | 26 ++++++++++++++++--------- 3 files changed, 88 insertions(+), 27 deletions(-) diff --git a/_includes/post.njk b/_includes/post.njk index 52dc493..8ddb01b 100644 --- a/_includes/post.njk +++ b/_includes/post.njk @@ -17,11 +17,33 @@ tag: post {{ title }} - - - ߸ - -
+ +
+ mccd +
+

pub   rsa4096 2023-09-22 [SC]

+
+ 2F30 + 1709 + 2782 + FD05 + CCCF + 7964 + 647E + 396D + 1F4E + AE7B +
+

uid              Marc  Coquand  <marc@mccd.space>

+
+
+ mastodon + rss + git +
+
+ +

{{title}}

{{ content | safe }}
diff --git a/css/main.css b/css/main.css index 0227b37..ad8e39a 100644 --- a/css/main.css +++ b/css/main.css @@ -10,7 +10,7 @@ code { font-family: "Noto Sans Mono", monospace; - font-size: 14px; + font-size: 12px; } .date { @@ -34,6 +34,11 @@ code { } } +.intro h2 { + font-size: 14px; + margin-bottom: 0; +} + .link { color: black; } @@ -74,19 +79,20 @@ body { padding: 0; margin: 0; overflow: hidden; - font-family: "Times New Roman", "Liberation Serif", serif; - font-size: 16px; + font-family: sans; + font-size: 12px; font-weight: 400; - line-height: 1.8; + line-height: 1.5; } -h1 { - font-family: "Times New Roman", Serif; +.content h1 { + font-family: sans; font-weight: 700; - font-size: 20px; - margin-top: 3rem; + font-size: 16px; + margin-bottom: 0px; + padding-top: 2rem; line-height: 1.5; - border-bottom: 1px solid; + border-top: 1px solid; display: flex; } @@ -96,11 +102,36 @@ hr { color: #ffff00; } -h2 { - font-family: "Times New Roman", Serif; - font-weight: 500; - font-size: 24px; +.content h2 { + font-family: sans; + font-weight: 700; + font-size: 14px; + line-height: 1.5; + + margin-bottom: 0; +} +.content h3 { + font-family: sans; + font-weight: 700; + font-size: 14px; + line-height: 1.5; + + margin-bottom: 0; +} +.content h4 { + font-family: sans; + font-weight: 700; + font-size: 14px; line-height: 1.5; margin-bottom: 0; } +.content p { + margin-bottom: 4px; + margin-top: 4px; +} + +.content li { + margin-top: 4px; + margin-bottom: 4px +} diff --git a/index.njk b/index.njk index 4f91eb2..de2d1d6 100644 --- a/index.njk +++ b/index.njk @@ -8,12 +8,12 @@ - ߸ + ߸ mccd -
-

mccd ߸

-
+
+ mccd +

pub   rsa4096 2023-09-22 [SC]

2F30 @@ -29,16 +29,24 @@

uid              Marc  Coquand  <marc@mccd.space>

-
+ +
+
+ Date +
+
+ Entry +
+
{% for post in collections.post | reverse %} -
-
-

{{post.date.toLocaleDateString("en-GB").replaceAll("/","-")}}

- {{post.data.title}} +
+
+

{{post.date.toLocaleDateString("en-GB").replaceAll("/","-")}}

+ {{post.data.title}}
{% endfor %} -- cgit v1.2.3