From 308bde3cc07c7972fc12c834acdba7c52bcfa187 Mon Sep 17 00:00:00 2001 From: and-rad Date: Wed, 15 Jun 2022 16:57:13 +0200 Subject: [PATCH] Improve side-aligned image positioning (#5876) Co-authored-by: Hugo Locurcio --- _static/css/custom.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_static/css/custom.css b/_static/css/custom.css index d1942a5c4..d0630ab50 100644 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -217,6 +217,12 @@ legend, font-weight: 500; } +/* See for context. */ +.rst-content .align-right, +.rst-content .align-left { + clear: both; +} + .rst-content div.figure p.caption { /* Tweak caption styling to be closer to typical captions */ text-align: center;