From 6ed0ff4fd66ce9582b1a91eb09367aa00295618a Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Mon, 10 Oct 2022 14:52:24 +0200 Subject: [PATCH] docs: add more styling to figures --- .../src/components/Figure/styles.module.css | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/website/src/components/Figure/styles.module.css b/website/src/components/Figure/styles.module.css index e77d557c1f..d064b22dec 100644 --- a/website/src/components/Figure/styles.module.css +++ b/website/src/components/Figure/styles.module.css @@ -1,5 +1,18 @@ /* Figures (with captions) */ -figcaption { - text-align: center; +figure { + box-shadow: var(--ifm-global-shadow-lw); + border-radius: var(--ifm-global-radius); + padding: var(--ifm-pre-padding); +} + +figure * + * { + margin-block-start: var(--ifm-pre-padding); +} + +figcaption { + /* background: black; */ + /* text-align: center; */ + font-size: 90%; + padding-inline: var(--ifm-pre-padding); + border-inline-start: 5px solid var(--ifm-color-primary); } -/* End figures (with captions) */