-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix Furo side bars & improve footer styling #294
Conversation
1. Don't block Furo menus 2. Don't render project name on mobile
We need to also disable it automatically detecting the theme. I'll do that in a dedicated PR
@@ -36,6 +58,7 @@ footer .helpful-container .was-helpful-thank-you { | |||
.helpful-container .helpful-question.no-link { | |||
color: #8B34FC; | |||
cursor: pointer; | |||
text-decoration: none; |
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.
This turns off underlining so that we match the Pytorch theme.
Turns out, even with the above insights, we still need the same CSS rules. Only, we should not be redefining the variable |
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.
#295 resulted in a tweak. But now ready for review :)
/* This value is duplicated from `top-nav-bar.js`. Its definition of the variable is not | ||
* exposed globally. Keep in sync. */ | ||
--qiskit-top-nav-bar-height: 3.5rem; |
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.
display: -webkit-inline-box; | ||
display: -ms-inline-flexbox; |
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.
These should not be necessary. According to https://caniuse.com/?search=inline-flex, inline-flex has been supported by all browsers since 2014.
Agreed, I think the biggest issue is the similarity between the qiskit top menu hamburger icon and the furo left side hamburger, as they are basically the same icon. Is there a way to add a label to the furo one? or replace it with text? Something like "Documentation Contents" would work, and matches how we currently do the mobile view so its less of a big change for users |
Thanks for the suggestions! Tracked by #300. I want to keep that fix as a dedicated PR so that we can properly discuss its design because we can choose from multiple options. This PR is still some progress (that makes follow-up PRs easier). So it's fine to land on its own. |
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.
These changes look good, thanks @Eric-Arellano
🚀
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.
These changes look good, thanks @Eric-Arellano
🚀
Before, the left table of contents and the right page of contents would not render properly on mobile. They would not show the whole content for example. This is because they were not accounting for our top nav bar.
--
This PR also fixes the "Was this page helpful?" question not properly having lines above and below it.
--
Finally, this improves mobile to not show the project name at the top of the page. We don't render it for desktop, and don't want to for mobile.