MediaWiki:Common.css: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 967: Line 967:
}
}


/* =========================================
/* PRINT: show only page title + agent infobox */
  PRINTABLE VIEW — AGENT SNAPSHOT ONLY
  Shows: Page title + agent infobox
  Hides: Everything else
  ========================================= */


/* Apply only to printable view */
@media print {
body.printable {
  margin: 2cm;
}


/* -----------------------------------------
  /* Hide everything inside the article content */
  HIDE ALL MAIN PAGE CONTENT
  #mw-content-text > * {
  ----------------------------------------- */
    display: none !important;
body.printable #mw-content-text > * {
  }
  display: none !important;
}


/* -----------------------------------------
  /* Keep the page title */
  PAGE TITLE
  #firstHeading {
  ----------------------------------------- */
    display: block !important;
body.printable #firstHeading {
   }
  display: block !important;
   font-size: 26pt;
  font-weight: bold;
  margin-bottom: 1em;
  border-bottom: 2px solid #000;
  padding-bottom: 0.3em;
}


/* -----------------------------------------
  /* Keep the agent infobox (you confirmed this class) */
  AGENT INFOBOX
  table.ic-infobox,
  ----------------------------------------- */
  table.infobox.ic-infobox {
body.printable table.ic-infobox {
    display: table !important;
  display: table !important;
    float: right !important;
  float: right;
    width: 35% !important;
  width: 35% !important;
    margin-left: 1.5em !important;
  margin-left: 1.5em;
    margin-bottom: 1em !important;
  margin-bottom: 1em;
   }
   border: 1px solid #ccc;
}


/* Ensure infobox images scale correctly */
  table.ic-infobox img {
body.printable table.ic-infobox img {
    max-width: 100% !important;
  max-width: 100%;
    height: auto !important;
  height: auto;
  }
}


/* -----------------------------------------
  /* Optional: remove obvious UI */
  REMOVE MEDIAWIKI UI / CHROME
  #mw-navigation,
  ----------------------------------------- */
  .mw-footer,
body.printable #mw-navigation,
  .mw-editsection,
body.printable .mw-footer,
  .toc,
body.printable .mw-editsection,
  .mw-indicators {
body.printable .toc,
    display: none !important;
body.printable .mw-indicators,
  }
body.printable .mw-page-info {
  display: none !important;
}
}