On Sat, Jul 26, 2025 at 10:07:03PM +0100, Gavin Smith wrote:
> A simple solution would be to avoid outputting the "printindex-index-entry"
> class for index subentries and to put all the needed rules on both
> classes.
It looks good to me. It could also be possible to take that opportunity
to add some subentry somewhere in the index-entry-level-1 if it is only
for subentries, like
index-subentry-level-1
> I read that you could have more "specificity" for a CSS rule by having
> more classes, so an alternative is to output rules like this:
>
> td.index-entry-level-1 { padding-left: 3.5 em }
> td.index-entry-level-1.printindex-index-entry { vertical-align: top;
> padding-left: 2em }
>
> - however, we don't output any other multiple-class rules currently.
Looks complicated to me, and the existing code may not be up to that
construct.
--
Pat