From a9b3d5baeb82705bc688e629ee1b9a01a807bcf1 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 7764b8aae..f60e1aa07 100644 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -209,6 +209,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;