MediaWiki:Print.css

From ICE List Wiki
Jump to navigation Jump to search

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.
@media print {

  /* hide common content blocks */
  .mw-parser-output > p,
  .mw-parser-output > ul,
  .mw-parser-output > ol,
  .mw-parser-output > dl,
  .mw-parser-output > div,
  .mw-parser-output > h2,
  .mw-parser-output > h3,
  .mw-parser-output > h4,
  .mw-parser-output > h5,
  .mw-parser-output > h6,
  .mw-parser-output > table:not(.ic-infobox):not(.infobox),
  .mw-parser-output > figure {
    display: none !important;
  }

  /* show title */
  #firstHeading {
    display: block !important;
  }

  /* show infobox */
  table.ic-infobox,
  table.infobox {
    display: table !important;
    float: right;
    width: 35%;
  }
}

@media print {

  /* Kill print footer + metadata */
  .printfooter,
  #footer,
  #catlinks,
  #mw-navigation,
  #mw-head,
  #mw-panel {
    display: none !important;
  }

  /* Remove the “Retrieved from” + edit metadata */
  #mw-content-text + p,
  #mw-content-text ~ p {
    display: none !important;
  }

  /* Fix empty column / spacing */
  #content,
  #bodyContent,
  #mw-content-text {
    margin: 0 !important;
    padding: 0 !important;
  }

}

@media print {

  /* Hide chrome only */
  #mw-navigation,
  #mw-panel,
  #footer,
  .printfooter,
  .toc,
  .mw-editsection {
    display: none !important;
  }

  /* Title */
  #firstHeading {
    display: block !important;
    margin-bottom: 1cm;
  }

  /* Infobox: NOT floated */
  table.ic-infobox,
  table.infobox {
    float: none !important;
    margin: 0 auto !important;   /* centers it */
    width: 60% !important;
  }

}