General Docs Improvements #542
Merged
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.
UI/UX Improvements: Typography, Navigation, and Style Enhancements
Summary
This PR improves documentation typography, navigation, and styling. Includes typography refinements, enhanced table styling, a jump-to-top button, smooth scrolling, CSS consolidation, and a hidden sidebar scrollbar.
Changes
Typography refinements (
typography.js)marginBottomfromspacing.2tospacing.3marginTop: spacing.6,marginBottom: spacing.3ol/ul:marginTop/marginBottomfromspacing.5tospacing.6li:marginTop/marginBottomfromspacing.2tospacing.3, addedlineHeight.7marginTop/marginBottomfromspacing.3tospacing.4borderLeftWidth: 0.375rem,borderLeftColor: orange.500/400)orange.50 / 0.3light,zinc.900 / 0.2dark)Table styling enhancements (
typography.js)--tw-prose-th-bg,--tw-prose-td-bg,--tw-prose-th-borders,--tw-prose-td-bordersborderRadius.lg)thead):spacing.4)fontSize.sm)tbody):verticalAlign: 'middle')spacing.4)tfoot):Navigation enhancements (
Layout.jsx)scroll-behavior: smoothfor anchor links and programmatic scrollingCSS consolidation
src/styles/global.csssrc/styles/tailwind.cssusing Tailwind@layerdirectivesglobal.cssimport fromsrc/pages/_app.jsx.custom-details listylinghtml { scroll-behavior: smooth; }Sidebar navigation (
tailwind.css,Layout.jsx)scrollbar-width: none-ms-overflow-style: none::-webkit-scrollbar { display: none }Files changed
typography.js— Typography and table styling refinementssrc/components/Layout.jsx— Jump to top button and scroll detectionsrc/styles/tailwind.css— Smooth scroll, sidebar scrollbar hiding, consolidated stylessrc/pages/_app.jsx— Removedglobal.cssimportsrc/styles/global.css— Deleted (consolidated intotailwind.css)Testing
Impact