MediaWiki:Print.css: Difference between revisions

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


   /* Hide everything by default */
   /* Hide everything */
   #mw-content-text > * {
   body * {
     display: none !important;
     display: none !important;
   }
   }


   /* Keep the page title */
   /* Show title */
   #firstHeading {
   #firstHeading {
     display: block !important;
     display: block !important;
Line 12: Line 12:
   }
   }


   /* Keep the agent infobox */
   /* Show infobox wherever MW places it */
   #mw-content-text table.ic-infobox {
   table.ic-infobox,
  table.infobox {
     display: table !important;
     display: table !important;
     float: right !important;
     float: right !important;
     width: 35% !important;
     width: 35% !important;
    margin: 0 0 1em 1em !important;
   }
   }


  /* Kill UI / noise */
  #mw-navigation,
  .mw-footer,
  #footer,
  .toc,
  .mw-editsection,
  #siteNotice,
  .printfooter {
    display: none !important;
  }
}
}