Skip to content

Commit 68835d7

Browse files
author
Jakob Stolze
committed
feat: increase max layout width
This improves readability of tables
1 parent f56f38a commit 68835d7

File tree

1 file changed

+50
-29
lines changed

1 file changed

+50
-29
lines changed

.vitepress/theme/custom.css

+50-29
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,54 @@
11
:root {
2-
--vp-c-brand-1: #b5152b;
3-
--vp-button-brand-bg: #b5152b;
4-
--vp-c-brand-2: #b5152b;
5-
/* values below are taken from the old Jekyll installation of the docs */
6-
--vp-font-family-base: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
7-
--vp-font-family-mono: "SFMono-Regular",menlo,consolas,monospace;
2+
--vp-c-brand-1: #b5152b;
3+
--vp-button-brand-bg: #b5152b;
4+
--vp-c-brand-2: #b5152b;
5+
/* values below are taken from the old Jekyll installation of the docs */
6+
--vp-font-family-base: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
7+
--vp-font-family-mono: "SFMono-Regular", menlo, consolas, monospace;
88

9-
--vp-home-hero-name-color: transparent;
10-
--vp-home-hero-name-background: -webkit-linear-gradient(
11-
120deg,
12-
#b5152b 30%,
13-
#f57124
14-
);
9+
--vp-home-hero-name-color: transparent;
10+
--vp-home-hero-name-background: -webkit-linear-gradient(120deg,
11+
#b5152b 30%,
12+
#f57124);
13+
}
14+
15+
.vp-doc h1,
16+
.vp-doc h2,
17+
.vp-doc h3,
18+
.vp-doc h4,
19+
.vp-doc h5,
20+
.vp-doc h6 {
21+
font-weight: 300;
22+
}
23+
24+
:root {
25+
--vp-layout-max-width: 1680px;
26+
}
27+
28+
.content-container {
29+
max-width: 100% !important;
30+
}
31+
32+
/* min-width: 1440px same as original min-width: 960px */
33+
@media (min-width: 1440px) {
34+
.VPSidebar {
35+
padding-left: 32px !important;
36+
width: var(--vp-sidebar-width) !important;
37+
}
38+
.VPContent.has-sidebar {
39+
padding-left: var(--vp-sidebar-width) !important;
40+
padding-right: 0 !important;
41+
}
42+
}
43+
44+
/* Add additional min-width: 1680px */
45+
@media (min-width: 1680px) {
46+
.VPSidebar {
47+
padding-left: calc((100% - (var(--vp-layout-max-width) - 64px)) / 2) !important;
48+
width: calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px) !important;
1549
}
16-
17-
.vp-doc h1, .vp-doc h2, .vp-doc h3, .vp-doc h4, .vp-doc h5, .vp-doc h6 {
18-
font-weight: 300;
50+
.VPContent.has-sidebar {
51+
padding-left: calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width)) !important;
52+
padding-right: calc((100vw - var(--vp-layout-max-width)) / 2) !important;
1953
}
20-
21-
/*
22-
//$body-font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
23-
//$root-font-size: 14px; // Base font-size for rems
24-
//$font-size-8: 28px; //h1
25-
//
26-
//$body-background-color: #fbfcfd;
27-
//$code-background-color: #f7f7f7;
28-
//
29-
//$body-text-color: #5c5c5c;
30-
//$link-color: #d60039;
31-
//$border: 1px solid !default;
32-
//$border-color: #cfcfcf;
33-
*/
54+
}

0 commit comments

Comments
 (0)