Commit c504407
authored
chore: fix styles on typedoc generated API reference pages (#2148)
Fixes `font-size`-related rendering bugs. Follows
https://crawlee.dev/js/api as the original source of visual style.
|before|after|
|---|---|
|<img width="1460" height="1211" alt="image"
src="https://github.com/user-attachments/assets/48267e7d-c32d-439e-b455-c1c5f4f6a203"
/>| <img width="1460" height="1211" alt="image"
src="https://github.com/user-attachments/assets/7cc9d0fd-f4ff-4b6c-a0ee-ebcd0d1ae027"
/> |
Closes apify/apify-sdk-js#531
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adjusts fonts, heading sizes, and TypeDoc spacing; adds `Lota
Grotesque` font for headings to fix API reference typography.
>
> - **CSS (apify-docs-theme/src/theme/custom.css)**:
> - **Typography**: Set `--ifm-heading-font-family` to `Lota Grotesque`;
added `@font-face` for `Lota Grotesque`.
> - **TypeDoc layout**: Introduced `--tsd-spacing-*` variables; tuned
`.tsd-flag-group` margin and `.tsd-comment` spacing.
> - **Headings**: Added explicit sizes for `.apiItemContainer h2–h5`;
refined Markdown heading size variables.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
1403943. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent f724f41 commit c504407
1 file changed
+38
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
| |||
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
289 | 320 | | |
290 | 321 | | |
291 | 322 | | |
| |||
621 | 652 | | |
622 | 653 | | |
623 | 654 | | |
624 | | - | |
| 655 | + | |
625 | 656 | | |
626 | 657 | | |
627 | 658 | | |
| |||
0 commit comments