From 4682c8836f2e6b4e8ae870f2d0c0d6aa4408c70b Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 6 Dec 2018 19:44:31 +0100 Subject: [PATCH] style: add wp-caption styling --- scss/_blog.scss | 12 ++++++++++++ style.css | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/scss/_blog.scss b/scss/_blog.scss index cc37f01..bcecd03 100644 --- a/scss/_blog.scss +++ b/scss/_blog.scss @@ -181,3 +181,15 @@ margin-right:0.5em; } } + +.wp-caption { + img { + max-width: 100%; + height: auto; + } + + &-text { + font-size: 0.9em; + font-style: italic; + } +} diff --git a/style.css b/style.css index a111db1..a538920 100644 --- a/style.css +++ b/style.css @@ -1471,3 +1471,11 @@ a.list-group-item:hover { justify-content: space-between; } .article-taxonomies .badge:not(:last-child) { margin-right: 0.5em; } + +.wp-caption img { + max-width: 100%; + height: auto; } + +.wp-caption-text { + font-size: 0.9em; + font-style: italic; }