Jump to content

MediaWiki:Print.css

From greyhawk
Revision as of 23:04, 22 October 2023 by DM (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will affect the print output */

/* Remove non-essential elements */
@media print {
    .firstHeading { margin-top: 0; padding-top: 0; }
    #toc { display: none; }
    #siteSub { display: none; }
    .printfooter { display: none; }
    #catlinks, .catlinks { display: none; }
    #footer { display: none; }
}

.module {
    column-count: 2;
}

.div-col {
	margin-top: 0.3em;
	column-width: 40em;
}

.div-col-rules {
	column-rule: 1px solid #aaa;
}

/* Reset top margin for lists in div col */
.div-col dl,
.div-col ol,
.div-col ul {
	margin-top: 0;
}

/* Avoid elements breaking between columns
   See also Template:No col break */
.div-col li,
.div-col dd {
	break-inside: avoid-column;
}