Jump to content

MediaWiki:Common.css: Difference between revisions

updated TODO comments, moving some to NOTEs; removed my Vector 2022 "update" to TOClimit which will never work; renamed section containing our homegrown modifications
(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 CUSTOM ONI WIKI ADDITIONS. */
/* 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). */
/* TODO: Use :is() selector at some reasonable future when support is good for Most Clients */
/* 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:
}
}


/* TODO: Correct/replace for use in Vector 2022 */
/* 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:
}
}


/* TODO: Correct/replace for use in Vector 2022 */
/* 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;
}
/* Above, but for Vector 2022 */
.toclimit-2 .sidebar-toc-level-1 ul,
.toclimit-3 .sidebar-toc-level-2 ul,
.toclimit-4 .sidebar-toc-level-3 ul,
.toclimit-5 .sidebar-toc-level-4 ul,
.toclimit-6 .sidebar-toc-level-5 ul,
.toclimit-7 .sidebar-toc-level-6 ul {
     display: none;
     display: none;
}
}


/* CUSTOM ONI WIKI ADDITIONS */
/* ONI WIKI CUSTOMIZATIONS */


/* Hide the '?' button at top-right of some pages */
/* Hide the '?' button at top-right of some pages */