diff options
| author | Elias Haugsbakk <[email protected]> | 2026-07-01 14:05:14 +0200 |
|---|---|---|
| committer | Elias Haugsbakk <[email protected]> | 2026-07-01 14:05:14 +0200 |
| commit | c4da920843972b6571e978cdc9f9278eb87b7398 (patch) | |
| tree | f972778f7cab4e4b231f5adc7450d590fa6d0fae /clams-server/src/main/resources/public/css/post.css | |
| parent | 5ed99f3c87f0337ffac03dd1e45073fbc7f63b68 (diff) | |
add HTML, CSS and basic routing
Diffstat (limited to 'clams-server/src/main/resources/public/css/post.css')
| -rw-r--r-- | clams-server/src/main/resources/public/css/post.css | 63 |
1 files changed, 63 insertions, 0 deletions
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..0c8391c --- /dev/null +++ b/clams-server/src/main/resources/public/css/post.css @@ -0,0 +1,63 @@ +/* post.css - specific styles for blog posts */ + +.post-header { + display: flex; + justify-content: space-between; + margin-bottom: 40px; + font-size: 0.9rem; + opacity: 0.7; + border-bottom: 1px solid var(--border-color); + padding-bottom: 10px; +} + +.post-content { + line-height: 1.8; + margin-bottom: 80px; +} + +.post-content p { + margin-bottom: 1.5rem; +} + +.post-image { + margin: 40px 0; + text-align: center; +} + +.post-image img { + max-width: 100%; + height: auto; + border: 1px solid var(--border-color); + border-radius: 8px; +} + +.post-image figcaption { + margin-top: 10px; + font-size: 0.85rem; + opacity: 0.7; +} + +.post-nav { + display: flex; + justify-content: space-between; + margin-top: 60px; + padding-top: 30px; + border-top: 1px dashed var(--border-color); +} + +.prev-post, .next-post { + font-size: 1rem; + text-decoration: none; +} + +.prev-post:hover, .next-post:hover { + text-decoration: underline; +} + +@media (max-width: 600px) { + .post-header { + flex-direction: column; + align-items: center; + gap: 10px; + } +} |
