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

Update styles to support collapsible nav #9095

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Update styles to support collapsible nav #9095

merged 1 commit into from
Nov 15, 2024

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Nov 13, 2024

In preparation for adding collapsible sections, cleans up the CSS styling we apply to the nav.

The differences here are very subtle without collapsible sections enabled. Note these screenshots show an increase in the secondary nav font size (table of contents) which I subsequently fixed.

Before

Screenshot 2024-11-13 at 12 45 49 PM

After

Screenshot 2024-11-13 at 12 45 29 PM

However, with collapsible sections you can see the bugs we're addressing

Before

Screenshot 2024-11-13 at 12 48 19 PM

After

Screenshot 2024-11-13 at 12 47 30 PM

@zanieb zanieb added the internal A refactor or improvement that is not user-facing label Nov 13, 2024
@zanieb
Copy link
Member Author

zanieb commented Nov 13, 2024

The small screen experience remains unchanged

Screenshot 2024-11-13 at 12 51 54 PM

@zanieb zanieb force-pushed the zb/docs-collapsible branch 2 times, most recently from 71dab2c to 1c65237 Compare November 13, 2024 18:54
display: none;
}
@media screen and (max-width: 1219px) {
@media screen and (min-width: 76.25em) {
Copy link
Member

Choose a reason for hiding this comment

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

Where does this value come from?

Copy link
Member Author

Choose a reason for hiding this comment

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

This value is from the main stylesheet, I figured it'd be best to match it though I think it is equivalent for most purposes?

@zanieb zanieb merged commit 6930e03 into main Nov 15, 2024
53 checks passed
@zanieb zanieb deleted the zb/docs-collapsible branch November 15, 2024 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal A refactor or improvement that is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants