From 8cb05b84790857c817948921959e4c8061fc6acd Mon Sep 17 00:00:00 2001 From: David Stansby Date: Fri, 21 Mar 2025 12:47:42 +0000 Subject: [PATCH] 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 204739b1741b..25bad17c3938 100644 --- a/doc/_static/mpl.css +++ b/doc/_static/mpl.css @@ -208,3 +208,15 @@ div.wide-table table th.stub { .section-toc.toctree-wrapper .toctree-l1>ul{ padding-left: 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 @@