Difference between revisions of "MediaWiki:Common.css"

From GIMX
Jump to: navigation, search
Line 13: Line 13:
 
     float:none !important;
 
     float:none !important;
 
}
 
}
 +
 +
/* 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).
 +
*/
 +
.toclimit-2 .toclevel-2,
 +
.toclimit-3 .toclevel-3,
 +
.toclimit-4 .toclevel-4,
 +
.toclimit-5 .toclevel-5,
 +
.toclimit-6 .toclevel-6,
 +
.toclimit-7 .toclevel-7 { display: none; }

Revision as of 21:50, 13 November 2017

# Style for bash scripts: pre tags with class "bash"
pre.bash {
 background-color: black;
 color: grey;
 font-family: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
}

.image200px img { width: 200px; }
.image300px img { width: 300px; }
.image400px img { width: 400px; }

.mw-collapsible-toggle {
    float:none !important;
}

/* 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).
 */
.toclimit-2 .toclevel-2,
.toclimit-3 .toclevel-3,
.toclimit-4 .toclevel-4,
.toclimit-5 .toclevel-5,
.toclimit-6 .toclevel-6,
.toclimit-7 .toclevel-7 { display: none; }