diff --git a/assets/scss/_custom.scss b/assets/scss/_custom.scss index 5189b5da79a..71f61c6ada1 100644 --- a/assets/scss/_custom.scss +++ b/assets/scss/_custom.scss @@ -7,7 +7,7 @@ $announcement-size-adjustment: 8px; } main { - img { + *:not(figure) > img { max-width: 100%; } @@ -698,6 +698,26 @@ body.td-documentation { } } +figure { + > figcaption { + padding-top: 1em; + margin-bottom: 3em; + } +} + +// Clamp size for release logos +figure.release-logo { + > figcaption { + font-size: 1.8em; + } + > img { + max-width: 100%; + max-height: calc(max(40em,min(80vh,70em))); + height: auto; + width: auto; + } +} + // Match Docsy-imposed max width on text body @media (min-width: 1200px) {