jmapio / jmapio/jmapio.github.io
Offset the content by the navigation bar height also for direct links
Open
Nobody has claimed this yet.
- Dominant language
- Liquid
- Stars
- 11
- Forks
- 29
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 7
Description
When linking directly to a section of the spec like this, the title is covered by the navigation bar. There are two ways to offset the content correctly:
- CSS: Use a positive padding with a negative margin on all headings.
- JS: Recognize when the page is loaded with an anchor and call the scroll animation with this anchor.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with spec-mail.html and inspect the navigation bar, heading styles, and direct-anchor behavior. Choose the CSS or JS approach described in the issue, then verify that loading #introduction leaves the section title visible below the navigation bar.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100