MediaWiki:Print.css: Difference between revisions

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 29: Line 29:
     width: 35%;
     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;
  }
}
}