aboutsummaryrefslogtreecommitdiff
path: root/doc/docs/.vitepress/theme
diff options
context:
space:
mode:
authorDania Rifki <atomicnumberphi@gmail.com>2026-02-21 21:53:45 +0800
committerLi Jin <dragon-fly@qq.com>2026-02-21 21:58:21 +0800
commit83c3e1ccde72d133524c86b707ed11d75c427304 (patch)
tree817fb1517a0ae2b7c9c3b2cd56a6d4172a67f953 /doc/docs/.vitepress/theme
parent94ced94bfdca63023499637fe540d618533871e4 (diff)
downloadyuescript-83c3e1ccde72d133524c86b707ed11d75c427304.tar.gz
yuescript-83c3e1ccde72d133524c86b707ed11d75c427304.tar.bz2
yuescript-83c3e1ccde72d133524c86b707ed11d75c427304.zip
Add Mascot to documentation
And minor tweaks to documentation structure
Diffstat (limited to 'doc/docs/.vitepress/theme')
-rw-r--r--doc/docs/.vitepress/theme/custom.css30
1 files changed, 25 insertions, 5 deletions
diff --git a/doc/docs/.vitepress/theme/custom.css b/doc/docs/.vitepress/theme/custom.css
index 4050784..a4ae4d3 100644
--- a/doc/docs/.vitepress/theme/custom.css
+++ b/doc/docs/.vitepress/theme/custom.css
@@ -40,16 +40,36 @@
40 --vp-c-text-2: #4a5568; 40 --vp-c-text-2: #4a5568;
41} 41}
42 42
43/* Hero image - enlarge container to fit 450px image without overflow */ 43/* Hero image - adjust container to fit mascot artwork without overflow */
44@media (min-width: 960px) { 44@media (min-width: 960px) {
45 .VPHero .image-container { 45 .VPHero .image-container {
46 width: 450px !important; 46 width: 420px !important;
47 }
48
49 .VPHero .image-src {
50 margin-top: 2.7rem !important;
51 padding-bottom: 2.7rem !important;
52 }
53}
54
55@media (max-width: 960px) {
56 .VPHero .image-src {
57 margin-top: 1rem !important;
58 padding-bottom: 3.2rem !important;
59 }
60}
61
62@media (max-width: 639px) {
63 .VPHero .image-src {
64 margin-top: 3.2rem !important;
65 padding-bottom: 7.4rem !important;
47 } 66 }
48} 67}
49 68
50.VPHero :deep(.image-src) { 69.VPHero .image-src {
51 max-width: 450px; 70 max-width: 420px;
52 max-height: 450px; 71 max-height: 360px;
72 object-fit: contain;
53} 73}
54 74
55/* --- DARK MODE THEME (Midnight Blue) --- */ 75/* --- DARK MODE THEME (Midnight Blue) --- */