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

Stop center aligning docs nav on small screen #2740

Conversation

bobaekang
Copy link
Contributor

Description

Please describe what changes you made, and why you feel they are necessary. Make sure to include
code examples, where applicable.

Docs page's nav items contain hierarchical indentation for headings that doesn't work well when text is aligned center on small screen. This PR removes the responsible text-align style to keep the nav items left-aligned on small screen. The changed style also matches the current style on larger screen.

See the following images for comparison:

Before After
image image

The change in this PR should not affect the style for any other part of the website since CSS .nav class is only used for the container element of docs nav items located in the www/content/docs.md file:

<div class="2 col nav">

Corresponding issue:

Testing

Please explain how you tested this change manually, and, if applicable, what new tests you added. If
you're making a change to just the website, you can omit this section.

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (master for website changes, dev for
    source changes)
  • This is either a bugfix, a documentation update, or a new feature that has been explicitly
    approved via an issue
  • I ran the test suite locally (npm run test) and verified that it succeeded

@1cg 1cg merged commit bc0eebf into bigskysoftware:master Jul 18, 2024
pfiadDi pushed a commit to pfiadDi/htmx that referenced this pull request Aug 1, 2024
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