Skip to content

Commit 1403943

Browse files
committed
chore: fix styles on generated typedoc API reference pages
1 parent f724f41 commit 1403943

File tree

1 file changed

+41
-6
lines changed

1 file changed

+41
-6
lines changed

apify-docs-theme/src/theme/custom.css

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,15 @@ html[data-theme='dark'] {
126126

127127
:root {
128128
/* use default system font based on https://devhints.io/css-system-font-stack */
129-
--ifm-font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI',
130-
'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
131-
'Helvetica Neue', sans-serif;
132-
--ifm-heading-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
133-
'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
134-
'Helvetica Neue', sans-serif;
129+
--ifm-font-family-base:
130+
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
131+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
132+
sans-serif;
133+
--ifm-heading-font-family: 'Lota Grotesque', sans-serif;
134+
--tsd-spacing-vertical: 1.2rem !important;
135+
--tsd-spacing-horizontal: 1.6rem !important;
136+
--ifm-list-item-margin: 0.4rem !important;
137+
--ifm-list-left-padding: 3.2rem !important;
135138
--ifm-font-weight-semibold: 600;
136139
--ifm-font-color-base: #242736;
137140

@@ -286,6 +289,38 @@ html[data-theme='dark'] {
286289
--button-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
287290
}
288291

292+
@font-face {
293+
font-family: 'Lota Grotesque';
294+
src:
295+
url('/font/lota.woff2') format('woff2'),
296+
url('/font/lota.woff') format('woff');
297+
font-weight: 600;
298+
}
299+
300+
.apiItemContainer h2 {
301+
font-size: 2.4rem;
302+
}
303+
304+
.apiItemContainer h3 {
305+
font-size: 2rem;
306+
}
307+
308+
.apiItemContainer h4 {
309+
font-size: 1.6rem;
310+
}
311+
312+
.apiItemContainer h5 {
313+
font-size: 1.4rem;
314+
}
315+
316+
.tsd-panel-header .tsd-flag-group {
317+
margin-right: 0.8rem;
318+
}
319+
320+
.tsd-comment {
321+
margin-bottom: var(--tsd-spacing-vertical);
322+
}
323+
289324
.markdown h1,
290325
.markdown h2,
291326
.markdown h3,

0 commit comments

Comments
 (0)