-
Notifications
You must be signed in to change notification settings - Fork 212
Add footer #1367
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
Add footer #1367
Conversation
I wonder if it makes sense to move the 'About' and homepage links in the bottom. 'About' because it seems common to put that in the footer, and the homepage because to be frank there's not much on our homepage other than search, which we already show in the top-right. That would also free up some space in the header. |
Is there a reason to not make the footer fullwidth on rustdoc pages? The other page it'd be useful to verify it works on is rustdoc-src pages, since they |
@Nemo157 You'll see in a bit. ;) |
Updated the images and the PR. With this, I think it's now ready for review. |
Ah, so the footer scrolls into view on long rustdoc pages, so that's why it can't be across both the page and sidebar. Still seems a bit weird in that it implies that it's part of the rustdoc output; maybe having some kind of On rustdoc-src pages it doesn't extend all the way left: |
Fixed the position on the source code page and updated "Privacy" to "Privacy policy". |
Another thing I noticed is that the footer on rustdoc pages uses the rustdoc serif font, could it be switched to use docs.rs's main font? |
@pietroalbini Wow, you have good eye. Didn't spot this one at all! |
Updated the links, added icons, removed links from the top navbar, changed the minimum width for the resize handling and updated the screenshots. |
Hmm, looking at the screenshots the icons feels too prominent? I think I prefer the icon-less version. |
So before removing them again, what do you think @rust-lang/docs-rs ? :) |
Removed the icons and updated the screenshots. |
The font in rustdoc pages still seems to be serif. Otherwise that looks great! |
150dbbe
to
cae575e
Compare
@pietroalbini You're absolutely right! I updated the font so it's now sans-serif. :) |
Nice! |
So there were actually two issues:
|
|
Indeed, also I confirmed that this issue only appeared on mobile. |
…er going hover content
Fixed! So I applied @Nemo157's suggestion and added bottom padding on the about pages (which forced me to update the DOM and create a new CSS class to correctly handle it). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Styling all looks good to me now, I don't have much of an opinion on what links are in it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a round of tests, in Firefox/Chrome and in mobile sizes.
All seems fine to me
Fixes #75
As you can see, whatever the size of the page, it's always at the bottom and not in the middle of the screen but if the content if bigger that the height, you have to scroll to the bottom of the page to be able to see the footer.
Little sidenode for the rustdoc pages in mobile mode. In such case, the footer takes the full width and goes under the sidebar in case it's displayed: