fix: improve .tsd-typography styles to better match GitHub
#7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Document pages (project documents, READMEs) rendered through this theme diverge significantly from GitHub's actual markdown styling.
Headings lack top margin and bottom borders, making them less functional as section breaks. Headings also have a bottom padding that pushes them closer to the text above them than the text they refer to.
Additionally: lists use square bullets instead of discs, prose is noticeably denser due to tighter line-height, inline code has incorrect vertical margin, and long code blocks overflow their containers instead of scrolling.
Changes:
.tsd-panel > h*margin reset to:not(.tsd-typography)so API panels are unaffected while document headings get proper spacing.tsd-typographybase styles matching GitHub's markdown rendering: line-height 1.5, disc bullets with circle/square nesting, 32px list indent, 16px code block padding, overflow: auto on pre, inline code margin fix, semibold font-weight, link underlines on plain links.tsd-panel.tsd-typographyto avoid affecting JSDoc comment prose on API pages): GitHub-accurate sizes, 24px top / 16px bottom margins, border-bottom on h1/h2, and override of TypeDoc's negative-margin panel heading defaults