-
Notifications
You must be signed in to change notification settings - Fork 201
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
Improve CSS for API documentation #307
Comments
I only have basic knowledge of CSS, but if someone could suggest what properties need to change I would like to try to fix this. |
Do you have examples of this wonky looking pages? I'm looking at https://sphinx-themes.org/sample-sites/sphinx-book-theme/demo/api.html, and it seems OK to me on mobile. |
The main problem seems to be the lack of spacing between the type and the identifier. I put a simple example and screenshot at executablebooks/meta#286 I see the same problem looking at the C++ examples at: and I have many examples at: |
I added a custom.css with the following contents to fix the problem. Not sure if this is appropriate as a general fix.
|
Thanks for fixing it. |
In executablebooks/meta#286 @rscohn2 noticed that our CSS for API docs looks a bit wonky. @chrisjsewell pointed out that the CSS for this is here:
sphinx-book-theme/src/scss/_page.scss
Lines 232 to 234 in bdcf106
so we should fix up the CSS there so that this type of API docs looks good!
The text was updated successfully, but these errors were encountered: