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

Reduce footer margin only for desktop #106

Merged
merged 1 commit into from
Feb 16, 2023
Merged

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Feb 6, 2023

Fixes #100.

The margin above the footer is currently reduced by 2em.

Desktop

This makes sense for desktop widths (1024+ pixels). With the reduction:

Screenshot image

If it was removed for desktop there's a bigger gap between the "Quick search" box and the copyright line:

Screenshot image

Mobile

But on mobile (< 1024 pixels), it hides the copyright line:

Screenshot image

So let's remove this margin only for desktops:

Screenshot image

Demo build

https://hugovk-python-docs-theme.readthedocs.io/en/fix-footer-demo/

@hugovk
Copy link
Member Author

hugovk commented Feb 13, 2023

Rebased on main to check the RTD deploy preview (#70 / #105)... success! ✅

https://python-docs-theme-previews--106.org.readthedocs.build/en/106/

@@ -522,3 +521,9 @@ dl > dt span ~ em {
overflow-x: auto;
}
}

@media (min-width: 1024px) {
Copy link
Member

Choose a reason for hiding this comment

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

Have you tested this in landscape mode (assuming that's supported)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Here's a narrow landscape mode (iPhone SE):

image

And a wide landscape mode (iPad Air):

image

@hugovk hugovk merged commit b84c913 into python:main Feb 16, 2023
@hugovk hugovk deleted the fix-footer branch February 16, 2023 11:42
@hugovk hugovk mentioned this pull request Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Footer nav and copyright text not visible at low viewport widths in docs
3 participants