-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Bullet lists inside enumerated lists are broken, except Arabic #484
Comments
As a local workaround, I added the following to some custom CSS, based on the fix to #118 .rst-content ol.loweralpha li ul{margin-bottom:0 !important}
.rst-content ol.loweralpha li ul li{list-style:disc !important}
.rst-content ol.upperalpha li ul{margin-bottom:0 !important}
.rst-content ol.upperalpha li ul li{list-style:disc !important} |
The css selector applying the letters should be |
Is that also true of the existing |
Yes, all of the |
Is there any headway in fixing this bug? |
This needs a patch at snide/wyrm@8250cec#comments |
Without child selectors, the `ul li` styles would be applied to `ul li ol li`, which makes numbering disappear. `li`s should always be selected via a child selector. `ul` and `ol` do not need to be.
Unfortunately, I do not see WYRM being updating so we would either have to hack a fix into our theme, fork WYRM or use something different than WYRM (#544) |
Without child selectors, the `ul li` styles would be applied to `ul li ol li`, which makes numbering disappear. `li`s should always be selected via a child selector. `ul` and `ol` do not need to be. Co-authored-by: Eric Wieser <[email protected]>
Issue #118 fixed bullet lists inside enumerated lists when they are using arabic numbers, but the other forms of list numbering have the same issue.
Given:
As noted, the fourth and fifth nested bullet lists get their parent list-style instead of their own list-style.
The bug appears to be that the fix applied in #118 (54a48b1) only applied changes to the
ol.arabic
rules in theme.css, not theol.loweralpha
andol.upperalpha
rules.Also shown in this repro-case, Roman (upper and lower) lists don't get styled, and they also don't suffer the bug.
Rather than trying to match rules by
ol ul li
andul ol li
etc, would it make sense to giveul
a class of their own, and then match that to style theli
contained within? I guess that is a Sphinx issue rather than a theme issue though?The text was updated successfully, but these errors were encountered: