User:Ais523/mobile.css

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* Allow limiting of which header levels are shown in a TOC;
   <div class="toclimit-3">, for instance, will limit to
   showing ==headings== and ===headings=== but no further
   (as long as there are no =headings= on the page, which
   there shouldn't be according to the MoS).

   These are all separate rules because combining them
   doesn't work well in Firefox. */
.toclimit-2 + .toc-mobile ul ul { display: none; }
.toclimit-3 + .toc-mobile ul ul ul { display: none; }
.toclimit-4 + .toc-mobile ul ul ul ul { display: none; }
.toclimit-5 + .toc-mobile ul ul ul ul ul { display: none; }
.toclimit-6 + .toc-mobile ul ul ul ul ul ul { display: none; }
.toclimit-7 + .toc-mobile ul ul ul ul ul ul ul { display: none; }