From 2c0e1504cb3788dcaad8688f2862110feaa8b9f3 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 30 Apr 2025 10:36:32 +0100 Subject: [PATCH] Backport PR #29789: Improve layout of cheatsheets in sidebar --- doc/_static/mpl.css | 12 ++++++++++++ doc/_templates/cheatsheet_sidebar.html | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/_static/mpl.css b/doc/_static/mpl.css index 9049ddbd8334..022c9c9d63e5 100644 --- a/doc/_static/mpl.css +++ b/doc/_static/mpl.css @@ -207,3 +207,15 @@ div.wide-table table th.stub { .section-toc.toctree-wrapper li>ul{ padding-inline-start:0; } + +.sidebar-cheatsheets { + margin-bottom: 3em; +} + +.sidebar-cheatsheets > h3 { + margin-top: 0; +} + +.sidebar-cheatsheets > img { + width: 100%; +} diff --git a/doc/_templates/cheatsheet_sidebar.html b/doc/_templates/cheatsheet_sidebar.html index 3f2b7c4f4db1..2ca6548ddd4d 100644 --- a/doc/_templates/cheatsheet_sidebar.html +++ b/doc/_templates/cheatsheet_sidebar.html @@ -1,6 +1,6 @@