From 59db328b4bdc07c26a8c9dc6d1c676fb70e5448e Mon Sep 17 00:00:00 2001 From: Michal Vanko Date: Wed, 21 Apr 2021 19:16:24 +0200 Subject: [PATCH] Center the images --- src/routes/blog/[slug].svelte | 25 +++++++++++++------------ static/global.css | 2 +- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/routes/blog/[slug].svelte b/src/routes/blog/[slug].svelte index 2e4254f..ba1de0e 100644 --- a/src/routes/blog/[slug].svelte +++ b/src/routes/blog/[slug].svelte @@ -23,6 +23,18 @@ }) + + {post.title} + + + +

{post.title}

+ +
+ {@html post.body} +
+ + - - - {post.title} - - - -

{post.title}

- -
- {@html post.body} -
- diff --git a/static/global.css b/static/global.css index b3b91ec..5c0d2e3 100644 --- a/static/global.css +++ b/static/global.css @@ -85,11 +85,11 @@ pre { figure { margin: 1em 0.5em; + text-align: center; } figcaption { font-size: 0.7em; - padding: 0 1em; font-style: italic; }