From 5b237f6e22cdb6431956d523be1b2d8274600ab0 Mon Sep 17 00:00:00 2001 From: Dania Rifki Date: Thu, 5 Feb 2026 22:27:02 +0800 Subject: Improve docs custom.css' hero image handling --- doc/docs/.vitepress/theme/custom.css | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'doc/docs') diff --git a/doc/docs/.vitepress/theme/custom.css b/doc/docs/.vitepress/theme/custom.css index f7c58dd..71761ed 100644 --- a/doc/docs/.vitepress/theme/custom.css +++ b/doc/docs/.vitepress/theme/custom.css @@ -37,16 +37,15 @@ } /* Hero image - enlarge container to fit 450px image without overflow */ -@media (max-width: 960px) { +@media (min-width: 960px) { .VPHero .image-container { - max-width: 450px !important; - } - - .VPHero :deep(.image-src) { - max-width: 450px; - max-height: 450px; + width: 450px !important; } } +.VPHero :deep(.image-src) { + max-width: 450px; + max-height: 450px; +} /* --- DARK MODE THEME (Midnight Blue) --- */ .dark { -- cgit v1.2.3-55-g6feb