Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some opinionated layout changes to match other docs #1746

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

CobusT
Copy link
Contributor

@CobusT CobusT commented Oct 11, 2024

Switching between the Framework site and the Plot site, there are a few small layout differences, and it would be nice to make them consistent. Changes in this PR:

  • header height 64px
  • removed the left and right 1rem spacing in the header when the sidebar is open (so the bottom border of the header starts right at the left nav and stretches all the way to the right (at least until the screen becomes very wide)
  • positioned the logo and site name to match Plot
  • increased the left margin in the sidebar and the search field

See videos below.

Desktop

Screen.Recording.2024-10-11.at.4.37.17.PM.mov

Mobile

Screen.Recording.2024-10-11.at.4.44.16.PM.mov

@CobusT CobusT marked this pull request as ready for review October 11, 2024 23:45
@CobusT CobusT requested a review from mbostock October 11, 2024 23:46
Copy link
Member

@mbostock mbostock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appreciate the contribution but I’m going to wait on this a bit to decide how I feel. I don’t think I want to tie us pixel-perfect to the VitePress layout, or that I like the VitePress layout better than ours, and I’m not sure about the effort to make all the sites match exactly.

@CobusT
Copy link
Contributor Author

CobusT commented Oct 12, 2024

Understood. Should I change this to a draft for now?

@CobusT CobusT marked this pull request as draft October 13, 2024 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants