MediaWiki:Print.css: Difference between revisions

From ICE List Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
@media print {
@media print {
  /* Hide MediaWiki chrome */
   #mw-navigation,
   #mw-navigation,
   #mw-head,
   #mw-head,
   #mw-panel,
   #mw-panel,
   #footer,
   #footer,
  #catlinks,
   .mw-editsection,
   .mw-editsection,
  .mw-editsection-like,
  .mw-indicators,
   .toc,
   .toc,
   .printfooter {
   .printfooter,
  #siteNotice {
     display: none !important;
     display: none !important;
  }
  /* Ensure content is visible */
  #mw-content-text {
    display: block !important;
  }
  /* Infobox prints normally */
  .infobox,
  .ic-infobox {
    float: right;
    width: 260px;
    margin: 0 0 1em 1em;
    page-break-inside: avoid;
  }
  /* Avoid page breaks inside key blocks */
  h1, h2, h3,
  table,
  figure {
    page-break-inside: avoid;
   }
   }
}
}

Revision as of 01:40, 25 December 2025

@media print {
  #mw-navigation,
  #mw-head,
  #mw-panel,
  #footer,
  .mw-editsection,
  .toc,
  .printfooter,
  #siteNotice {
    display: none !important;
  }
}