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

doc: overrides hljs overflow rules for better linking. #206

Merged
merged 1 commit into from Apr 18, 2018

Conversation

samueldr
Copy link
Member

@samueldr samueldr commented Apr 7, 2018

This sets the pre's overflow-x to visible, which is the initial value, which is overridden by the new hljs dependency. Anchor links inside boxes with an overflow or position set cannot account for the top navbar's height in the first 80px of an element, this is a limitation of how CSS works. This could be worked-around using JavaScript (I think), but the previous behaviour did not cause any issues AFAIK.

Before

After clicking on (1)

20180407162018

After

After clicking on (1)

20180407162002

The `overflow-x` rule applied is a good idea, except that it makes it
impossible (without JavaScript) to link to the right location with
anchor links, which are heavily used, especially with callouts.

The `overflow-x` being set to `visible` did not cause any issues
beforehand, AFAIK.
@grahamc
Copy link
Member

grahamc commented Apr 17, 2018

LGTM

@edolstra edolstra merged commit 08da76f into NixOS:master Apr 18, 2018
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.

None yet

3 participants