19,945
edits
(hid the '?' button that appears on some special pages) |
(updated TODO comments, moving some to NOTEs; removed my Vector 2022 "update" to TOClimit which will never work; renamed section containing our homegrown modifications) |
||
| Line 1: | Line 1: | ||
/* CSS brought over from Wikipedia appears first. CSS written for our wiki comes second, under the heading | /* CSS brought over from Wikipedia appears first. CSS written for our wiki comes second, under the heading ONI WIKI CUSTOMIZATIONS. */ | ||
/* Editors: See TODO comments for items needing work. */ | |||
/* WIKIPEDIA CARRY-OVERS */ | /* WIKIPEDIA CARRY-OVERS */ | ||
| Line 46: | Line 48: | ||
/* Avoid FOUC/reflows on collapsed elements. */ | /* Avoid FOUC/reflows on collapsed elements. */ | ||
/* This copies MediaWiki's solution for T42812 to apply to innercollapse/outercollapse (T325115). */ | /* This copies MediaWiki's solution for T42812 to apply to innercollapse/outercollapse (T325115). */ | ||
/* Reference: https://gerrit.wikimedia.org/g/mediawiki/core/+/ecda06cb2aef55b77c4b4d7ecda492d634419ead/resources/src/jquery/jquery.makeCollapsible.styles.less#75 */ | /* Reference: https://gerrit.wikimedia.org/g/mediawiki/core/+/ecda06cb2aef55b77c4b4d7ecda492d634419ead/resources/src/jquery/jquery.makeCollapsible.styles.less#75 */ | ||
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > p, | .client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > p, | ||
| Line 89: | Line 90: | ||
} | } | ||
/* | /* NOTE: Not applicable in Vector 2022 because TOC does not use numbers */ | ||
/* When <div class="nonumtoc"> is used on the table of contents, | /* When <div class="nonumtoc"> is used on the table of contents, | ||
the ToC will display without numbers */ | the ToC will display without numbers */ | ||
| Line 105: | Line 106: | ||
} | } | ||
/* | /* NOTE: Only works in Vector, not Vector 2022 */ | ||
/* Allow limiting of which header levels are shown in a TOC; | /* Allow limiting of which header levels are shown in a TOC; | ||
<div class="toclimit-3">, for instance, will limit to | <div class="toclimit-3">, for instance, will limit to | ||
| Line 118: | Line 119: | ||
.toclimit-6 .toclevel-5 ul, | .toclimit-6 .toclevel-5 ul, | ||
.toclimit-7 .toclevel-6 ul { | .toclimit-7 .toclevel-6 ul { | ||
display: none; | display: none; | ||
} | } | ||
/* | /* ONI WIKI CUSTOMIZATIONS */ | ||
/* Hide the '?' button at top-right of some pages */ | /* Hide the '?' button at top-right of some pages */ | ||