-
Notifications
You must be signed in to change notification settings - Fork 213
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
CSS for mobile size layout seems to break logo on readthedocs #142
Comments
Did some more troubleshooting here and discovered that readthedocs inserts some css below which causes the mobile site to draw the logo way too big.
|
Holy moly, you aren't kidding!!! @zxiiro -- Do you have any suggestions for a fix? Or which styling is messing with the theme? The unfortunate thing here is that the RTD CSS comes after the theme's... |
Unfortunately not. I don't spend too much time doing web dev stuff so not too familiar with all this. Edit: RTD injects a few more js files but they aren't needed to reproduce the issue we are seeing here so I decided to not list them. |
@zxiiro -- No worries. I'm not a styles person myself, but I know some folks that are and they're helping me 😉 |
Ok I tracked it down to the specific lines of code from readthedocs' css hopefull this helps you move forward.
The "width: 100%" field inside the img tag is what's causing the logo to get stretched. |
We're using the sphinx bootstrap theme for our readthedocs page and notice that the mobile page seems to break if you provide a small logo.
For example http://docs.opendaylight.org/ and resize the browser to mobile size.
Looks like ReadTheDocs injects some css into the site that's causing the issue. Injecting the following link into your header is enough to reproduce the issue on a local build.
The text was updated successfully, but these errors were encountered: