aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDania Rifki <atomicnumberphi@gmail.com>2026-02-05 22:27:02 +0800
committerLi Jin <dragon-fly@qq.com>2026-02-06 00:04:23 +0800
commit5b237f6e22cdb6431956d523be1b2d8274600ab0 (patch)
treeede6c078a4a2a0e38a153c326b13df4a873c47dd
parent8e35baeb3a18e6fc6c8ebfa7b0589a3687874c6a (diff)
downloadyuescript-5b237f6e22cdb6431956d523be1b2d8274600ab0.tar.gz
yuescript-5b237f6e22cdb6431956d523be1b2d8274600ab0.tar.bz2
yuescript-5b237f6e22cdb6431956d523be1b2d8274600ab0.zip
Improve docs custom.css' hero image handling
-rw-r--r--doc/docs/.vitepress/theme/custom.css13
1 files changed, 6 insertions, 7 deletions
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 @@
37} 37}
38 38
39/* Hero image - enlarge container to fit 450px image without overflow */ 39/* Hero image - enlarge container to fit 450px image without overflow */
40@media (max-width: 960px) { 40@media (min-width: 960px) {
41 .VPHero .image-container { 41 .VPHero .image-container {
42 max-width: 450px !important; 42 width: 450px !important;
43 }
44
45 .VPHero :deep(.image-src) {
46 max-width: 450px;
47 max-height: 450px;
48 } 43 }
49} 44}
45.VPHero :deep(.image-src) {
46 max-width: 450px;
47 max-height: 450px;
48}
50 49
51/* --- DARK MODE THEME (Midnight Blue) --- */ 50/* --- DARK MODE THEME (Midnight Blue) --- */
52.dark { 51.dark {