Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion website/.vitepress/theme/HeroImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ import { withBase } from 'vitepress'
text-align: center;
}
@media (min-width: 960px) {
/* Fill the image column rather than a fixed width, so it never overflows
into the (possibly long, e.g. Burmese) heading. */
.hero-demo-img {
width: 620px;
width: 100%;
max-width: 560px;
}
}
@media (max-width: 640px) {
Expand Down
12 changes: 12 additions & 0 deletions website/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,18 @@ html[data-theme] {
--vp-home-hero-image-filter: blur(76px);
}

/* Keep the hero demo strictly in its own column so long headings (e.g. Burmese)
never collide with it: cap the text column and cancel VitePress's leftward
image shift. */
@media (min-width: 960px) {
.VPHero.has-image .container .main {
max-width: 500px;
}
.VPHero .image-container {
transform: translateY(-32px);
}
}

/* Native widgets (scrollbars, form controls) follow each theme. */
html[data-theme='dark'],
html[data-theme='nord'],
Expand Down
Loading