Skip to content

Commit 60710fb

Browse files
author
Style Sync
committed
Sync CSS from website
1 parent 831a0ea commit 60710fb

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

src/css/custom.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
--ifm-color-primary-lightest: #f1d366;
1616

1717
--ifm-link-color: #307D77;
18+
--docs-header-height: 5rem;
1819
}
1920

2021

@@ -96,4 +97,42 @@
9697

9798
.footer--dark {
9899
--ifm-footer-background-color: #18252D;
100+
}
101+
102+
#docs-header {
103+
height: var(--docs-header-height);
104+
}
105+
106+
.docs-container h2 {
107+
scroll-margin-top: calc(var(--ifm-navbar-height) + .5rem);
108+
}
109+
110+
.docs-container h3 {
111+
--ifm-h3-font-size: 1.5rem;
112+
margin-top: calc(var(--ifm-h3-vertical-rhythm-top)* var(--ifm-leading));
113+
scroll-margin-top: calc(var(--ifm-navbar-height) + .5rem);
114+
}
115+
116+
.docs-toc {
117+
max-height: calc(100vh - var(--ifm-navbar-height) - 2rem);
118+
overflow-y: auto;
119+
position: sticky;
120+
top: calc(var(--ifm-navbar-height) + var(--docs-header-height) + 1rem);
121+
}
122+
123+
.docs-toc ul {
124+
list-style: none;
125+
padding-left: var(--ifm-toc-padding-horizontal);
126+
}
127+
128+
.docs-row {
129+
flex-direction: row-reverse;
130+
}
131+
132+
@media (min-width: 997px) {
133+
134+
.docs-left-col {
135+
max-width: 75% !important;
136+
}
137+
99138
}

0 commit comments

Comments
 (0)