Skip to content

Commit 69f425d

Browse files
Update documentation layout and enhance CSS for responsive design
1 parent 6eede2d commit 69f425d

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

docs/.vitepress/theme/style.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,36 @@ div[class*="language-"] > span.lang {
832832
}
833833
}
834834

835+
/* Right "On this page" column: theme keeps has-aside when outline is enabled, but
836+
the outline is display:none until .has-outline. Hide the whole column and let
837+
the main column use that space (unless Carbon ads fill the rail). */
838+
@media (min-width: 1280px) {
839+
.docs-layout
840+
.VPDoc.has-aside:has(.VPDocAsideOutline:not(.has-outline)):not(:has(.VPDocAsideCarbonAds))
841+
.aside {
842+
display: none !important;
843+
flex: 0 0 0 !important;
844+
width: 0 !important;
845+
min-width: 0 !important;
846+
max-width: 0 !important;
847+
margin: 0 !important;
848+
padding: 0 !important;
849+
overflow: hidden !important;
850+
}
851+
852+
.docs-layout
853+
.VPDoc.has-aside:has(.VPDocAsideOutline:not(.has-outline)):not(:has(.VPDocAsideCarbonAds))
854+
.content-container {
855+
max-width: 100% !important;
856+
}
857+
858+
.docs-layout
859+
.VPDoc.has-aside:has(.VPDocAsideOutline:not(.has-outline)):not(:has(.VPDocAsideCarbonAds))
860+
.content {
861+
max-width: 100% !important;
862+
}
863+
}
864+
835865
/* ================================================
836866
HERO IMAGE STYLES
837867
================================================ */

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ teams, and automate workflows.
1818
[Get Started](/introduction/home) ·
1919
[Tutorials](/introduction/tutorials/overview)
2020

21-
<CardGroup class="home-feature-cards" columns="2">
21+
<CardGroup class="home-feature-cards" columns="3">
2222
<Card
2323
title="Workspaces"
2424
icon="building-2"

0 commit comments

Comments
 (0)