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

Implement sticky navbar in css #1016

Merged
merged 3 commits into from
May 14, 2019
Merged

Implement sticky navbar in css #1016

merged 3 commits into from
May 14, 2019

Conversation

Bisaloo
Copy link
Contributor

@Bisaloo Bisaloo commented May 10, 2019

See https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Scroll-linked_effects

Not entirely sure I did everything right so feel free to test more before merging (I will do the same on my end).

@jayhesselberth
Copy link
Collaborator

This works for me on Chrome. Can you check a few other browsers?

@Bisaloo
Copy link
Contributor Author

Bisaloo commented May 12, 2019

I worked with Firefox. I can tests on other browsers tomorrow. Feel free to ping me again if I forget again and nothing happens in the next couple of days.

Note to self: looks like the webkit- prefix is still necessary for most safari versions: https://caniuse.com/#feat=css-sticky

@Bisaloo
Copy link
Contributor Author

Bisaloo commented May 13, 2019

Tested on Firefox, Chromium and midori (based on an old webkit version). It looks fine.

@Bisaloo
Copy link
Contributor Author

Bisaloo commented May 13, 2019

Tested on latest safari version as well (12.1) and it works fine with the -webkit- prefix.

@jayhesselberth
Copy link
Collaborator

In general I am in favor of relying less on external libraries for the site. Looks fine to me.

Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

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

Looks good to me. I also checked it with very a short homepage, which I know has been a problem in the past.

@jayhesselberth jayhesselberth merged commit 96e12f8 into r-lib:master May 14, 2019
@Bisaloo Bisaloo deleted the sticky-css branch May 14, 2019 16:48
jeroen added a commit to ropensci-org/rotemplate that referenced this pull request May 15, 2019
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.

3 participants