diff --git a/docs/index.md b/docs/index.md index cebbbcc0f..dd1fb6f17 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,14 +3,14 @@ An extremely fast Python package and project manager, written in Rust.
-
+
-
+
+
Installing Trio's dependencies with a warm cache.
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 9a77787d1..3205a1877 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -85,6 +85,19 @@ display: inline; /* Show dark images in dark mode */ } +[data-md-color-scheme="astral-light"] .benchmark-image[src$="#only-light"], +[data-md-color-scheme="astral-dark"] .benchmark-image[src$="#only-dark"] { + display: inline; + height: 250px; + width: 500px; + margin-top: -3rem; +} + +.benchmark-caption { + margin-top: -3rem; + text-align: center; +} + /* See: https://github.com/squidfunk/mkdocs-material/issues/175#issuecomment-616694465 */ .md-typeset__table { min-width: 100%;