Skip to content

Commit f0e1bd9

Browse files
authored
increase content width on widescreen setups (#20)
1 parent 497388f commit f0e1bd9

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

docs/.vitepress/theme/custom.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,46 @@
1313
--sap-blue-11: #00144A;
1414
}
1515

16+
/* Increase maximum width of content area */
17+
/* Default: do not override for ~1920px and below. Wide-screen overrides are applied via media queries. */
18+
19+
/* 2560px and wider screens */
20+
@media (min-width: 2400px) {
21+
:root {
22+
/* Allow a wider overall layout without stretching lines too far */
23+
--vp-layout-max-width: 1920px;
24+
}
25+
.VPDoc:not(.has-sidebar) .container {
26+
/* Main content container */
27+
max-width: 1580px !important;
28+
}
29+
.VPDoc:not(.has-sidebar) .content {
30+
/* Article text column */
31+
max-width: 1220px !important;
32+
}
33+
.VPDoc.has-aside .content-container {
34+
/* Content area when aside (TOC) is present */
35+
max-width: 1100px !important;
36+
}
37+
}
38+
39+
/* 3440px (ultrawide) and wider screens */
40+
@media (min-width: 3300px) {
41+
:root {
42+
/* Slightly larger than the 2560 setting, but still comfortable for reading */
43+
--vp-layout-max-width: 2100px;
44+
}
45+
.VPDoc:not(.has-sidebar) .container {
46+
max-width: 1680px !important;
47+
}
48+
.VPDoc:not(.has-sidebar) .content {
49+
max-width: 1320px !important;
50+
}
51+
.VPDoc.has-aside .content-container {
52+
max-width: 1280px !important;
53+
}
54+
}
55+
1656
/* Feature highlighting for the Enforce card */
1757
.VPFeatures .container {
1858
display: flex !important;

0 commit comments

Comments
 (0)