MediaWiki:Print.css: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
@media print {
@media print {


   /* Hide everything */
   /* Hide article sections, not the whole page */
   body * {
   #mw-content-text > * {
     display: none !important;
     display: none !important;
   }
   }
Line 9: Line 9:
   #firstHeading {
   #firstHeading {
     display: block !important;
     display: block !important;
    margin-bottom: 0.5em;
   }
   }


   /* Show infobox wherever MW places it */
   /* Show infobox (wherever MW places it) */
   table.ic-infobox,
   table.ic-infobox,
   table.infobox {
   table.infobox {
Line 20: Line 19:
   }
   }


  /* Hide UI + print junk */
  #mw-navigation,
  .mw-footer,
  .printfooter,
  .toc,
  .mw-editsection {
    display: none !important;
  }
}
}