Feature summary (what you would like to be able to do and where):
Add enumeration for the new ToC.
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
A few users on Polish Wikipedia discord asked for this. They asked for enumeration specifically (like in the old ToC).
Benefits (why should this be implemented?):
I think this would make sections more obvious (where each item starts and ends). Currently its more like a wall of text.
Levels would be more obvious as well. Especially after T306562 which changes all of the items to the same color.
Prototype
Example article: https://pl.wikipedia.org/wiki/Jerzy_Skolimowski
Screen:
Stylus export:
(note that you will need to adjust for change in T306562; especially font-size)
@-moz-document domain("pl.wikipedia.org") { #mw-panel-toc ul { /* reset at the start of each level */ counter-reset: tocsection; list-style-type: none; } #mw-panel-toc li::before { counter-increment: tocsection; /* combine values of each level with a period */ content: counters(tocsection, ".") ". "; float: left; font-size: 0.875em; display: block; padding-top: 4px; padding-right: .3em; } /* modify first link (top link) */ /* #mw-panel-toc > ul { counter-reset: tocsection -1; } */ #mw-panel-toc > ul > li:first-of-type::before { display:none; } /* colors */ #mw-panel-toc ul a { color: #0645ad; } /* adjust widths */ .sidebar-toc { /* width: 15.25em; */ width: 19.25em; } .mw-page-container { /* max-width: 94.625em; */ max-width: 98.625em; } }