From 5ac83efd59ab85d0bdf82d5847fe9fe0b11232d9 Mon Sep 17 00:00:00 2001 From: Elias Haugsbakk Date: Wed, 22 Jul 2026 14:14:24 +0200 Subject: update article to post on the backend and blog on the frontend --- .../src/main/resources/public/css/post.css | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 clams-server/src/main/resources/public/css/post.css (limited to 'clams-server/src/main/resources/public/css/post.css') diff --git a/clams-server/src/main/resources/public/css/post.css b/clams-server/src/main/resources/public/css/post.css new file mode 100644 index 0000000..a12af10 --- /dev/null +++ b/clams-server/src/main/resources/public/css/post.css @@ -0,0 +1,63 @@ +.post-header { + display: flex; + justify-content: space-between; + margin-top: 2.8rem; + margin-bottom: 2.5rem; + font-size: 0.9rem; + opacity: 0.7; + border-bottom: 1px solid var(--border-color); + padding-bottom: 0.6rem; +} + +h1 { + text-align: left; +} + +blockquote { + border-left: 4px solid var(--accent-color); + padding-left: 1rem; + margin-left: 0; + font-style: italic; +} + +.post-content { + line-height: 1.8; + font-size: var(--font-size-body); + margin-bottom: 5rem; +} + +.post-content p { + margin-bottom: 1.5rem; + font-size: inherit; +} + +.post-content p:has(img) { + margin: 2.4rem 0; + text-align: center; +} + +.post-content img { + width: 100%; + max-width: 34.4rem; + height: auto; + border: 1px solid var(--border-color); + border-radius: 8px; + display: inline-block; +} + +.post-nav { + display: flex; + justify-content: space-between; + margin-top: 3.8rem; + padding-top: 1.8rem; + border-top: 1px dashed var(--border-color); +} + +@media (max-width: 768px) { + .post-header { + margin-top: 10px; + flex-direction: column; + align-items: center; + gap: 10px; + } +} -- cgit v1.2.3