-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Hard to read abc table #1210
Comments
I agree that that scrollbar is pretty awful. I'm just clueless about HTML/JS/graphic design so I don't know how to make it work better :-). If anyone has any ideas, please speak up... |
I'm also clueless about HTML/JS/graphic design, but my best google-fu led me to https://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html as the simplest "how to fix" guide. The code contained there is identical to what appears in this thread readthedocs/sphinx_rtd_theme#117, which is referenced by many projects in commits fixing this same issue. |
Oh great find! We already have some override CSS in |
I gave it a try. I'm not happy with how it looks right now, but I'm not sure how to make it better. The overflow: visible is very ugly as the table hangs past the white background), but it may be more usable even if it's ugly. The wrapping within table cells is a definite improvement. The wrapping of text within table headers is somewhere in between. It also looks awkward but is probably worth it to have a table that isn't so wide and make it easier to actually use (especially if the overflow visible gets removed). I think the best way to avoid the overflow vs scrollbar issue is just to have narrower tables. The text wrapping helps, but because long function references like I tried looking for a way to make these references smaller, but you get into so many tradeoffs I'm quickly getting out of my depth: I thought of other options I can't remember now, but none that seemed like clear winners. |
This page has a code block that expands on hover. The relevant CSS seems to be in its @media (min-width: 768px) {
div.highlighter-rouge:hover {
width: 900px; /* 1.5x of the article width */
}
} |
It's not easy to read the ABC table because of the horizontal scrollbar. I've seen on some project's docs (can't remember which) a wide code-block that expands horizontally when you mouse-over it.
The text was updated successfully, but these errors were encountered: