Skip to content

Fix position of headings when following links #163

Open

Description

@MattMS

The navbar will overlap the content when following a link such as http://ramdajs.com/#partial-builds

This was mentioned by @davidchambers in ramda/ramda#2025.

Activity

  1. MattMS commented on Dec 27, 2016

    @MattMS
    MemberAuthor

    We cannot use the hack fix from #161 because the HTML is generated from Markdown.

    Using the body {padding-top: @navbar-height;} recommended fix does not seem to work either.

  2. davidchambers commented on Dec 27, 2016

    @davidchambers
    Member

    What I've done in the past is given each heading top padding and negative top margin.

  3. MattMS commented on Dec 30, 2016

    @MattMS
    MemberAuthor

    That seems to work, but replacing the existing top margin and padding changes the layout.
    So margins that would normally collapse together are no longer able to.

    I've got the code written and working so I'll open a PR for further comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions