From 54bd998fbe2966ccfe2322496b73a66e17ff6f88 Mon Sep 17 00:00:00 2001 From: Mikko Ahlroth Date: Sun, 4 Nov 2018 11:33:02 +0200 Subject: [PATCH] Responsive images / figures --- lib/web/frontend/src/style/post-layout.scss | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/web/frontend/src/style/post-layout.scss b/lib/web/frontend/src/style/post-layout.scss index c85aa4d..4e8a20d 100644 --- a/lib/web/frontend/src/style/post-layout.scss +++ b/lib/web/frontend/src/style/post-layout.scss @@ -40,4 +40,19 @@ height: 500px; } } + + figure.thumbnail { + max-width: 100%; + text-align: center; + margin: 20px 0; + padding: 0; + + img { + max-width: 100%; + } + + figcaption { + font-style: italic; + } + } }