MediaWiki:Common.css: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 967: Line 967:
}
}


/* PRINT: show only page title + agent infobox */
/* ===============================
  Printable version (screen)
  =============================== */


@media print {
body.mw-printable-view #mw-content-text > * {
  display: none !important;
}


  /* Hide everything inside the article content */
/* Re-show the agent infobox */
  #mw-content-text > * {
body.mw-printable-view #mw-content-text table.ic-infobox {
    display: none !important;
  display: table !important;
   }
   float: right;
  width: 35% !important;
}


  /* Keep the page title */
/* Ensure the title stays visible */
  #firstHeading {
body.mw-printable-view #firstHeading {
    display: block !important;
  display: block !important;
  }
}


  /* Keep the agent infobox (you confirmed this class) */
/* Optional: remove leftover UI noise */
  table.ic-infobox,
body.mw-printable-view .toc,
  table.infobox.ic-infobox {
body.mw-printable-view .mw-editsection,
    display: table !important;
body.mw-printable-view #siteNotice {
    float: right !important;
  display: none !important;
    width: 35% !important;
    margin-left: 1.5em !important;
    margin-bottom: 1em !important;
  }
 
  table.ic-infobox img {
    max-width: 100% !important;
    height: auto !important;
  }
 
  /* Optional: remove obvious UI */
  #mw-navigation,
  .mw-footer,
  .mw-editsection,
  .toc,
  .mw-indicators {
    display: none !important;
  }
}
}