We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you open https://docs.python.org in Chrome on an Android phone, the code samples are in a sans-serif proportional font.
Currently this is the font-family for code tags:
font-family
tt, code, pre { font-family: monospace, sans-serif; font-size: 96.5%; }
monospace not working is a longstanding Android Chrome issue, see https://meta.stackexchange.com/questions/230878/code-blocks-dont-show-up-as-monospace-text-on-the-mobile-website-on-android for details. I think you have to specify fonts by name. If you're going to do this, please set Source Code Pro as the first one, it's the best monospace font in my opinion. Or you could use the font-family used for code samples on the CPython homepage:
monospace
font-family: Consolas,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;
Smartphone:
(Firefox works fine)
The text was updated successfully, but these errors were encountered:
Duplicate of python/devguide#581, see also python/python-docs-theme#55.
Sorry, something went wrong.
This is finally fixed in Chrome Canary (Chrome 96)
Thanks for the update!
Chrome 96 is in beta Oct 21 - Oct 28 and stable in 45 days (Nov 16).
https://www.chromestatus.com/features/schedule
No branches or pull requests
If you open https://docs.python.org in Chrome on an Android phone, the code samples are in a sans-serif proportional font.
Currently this is the
font-family
for code tags:monospace
not working is a longstanding Android Chrome issue, see https://meta.stackexchange.com/questions/230878/code-blocks-dont-show-up-as-monospace-text-on-the-mobile-website-on-android for details. I think you have to specify fonts by name. If you're going to do this, please set Source Code Pro as the first one, it's the best monospace font in my opinion. Or you could use thefont-family
used for code samples on the CPython homepage:Smartphone:
(Firefox works fine)
The text was updated successfully, but these errors were encountered: