MediaWiki:Common.css: Difference between revisions

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


/* =========================================
/* ===============================
   PRINTABLE VIEW — AGENT SNAPSHOT ONLY
   Printable version (screen)
   Shows: Page title + agent infobox
   =============================== */
  Hides: Everything else
  ========================================= */


/* Apply only to printable view */
body.mw-printable-view #mw-content-text > * {
body.printable {
  margin: 2cm;
}
 
/* -----------------------------------------
  HIDE ALL MAIN PAGE CONTENT
  ----------------------------------------- */
body.printable #mw-content-text > * {
   display: none !important;
   display: none !important;
}
}


/* -----------------------------------------
/* Re-show the agent infobox */
  PAGE TITLE
body.mw-printable-view #mw-content-text table.ic-infobox {
  ----------------------------------------- */
body.printable #firstHeading {
  display: block !important;
  font-size: 26pt;
  font-weight: bold;
  margin-bottom: 1em;
  border-bottom: 2px solid #000;
  padding-bottom: 0.3em;
}
 
/* -----------------------------------------
  AGENT INFOBOX
  ----------------------------------------- */
body.printable table.ic-infobox {
   display: table !important;
   display: table !important;
   float: right;
   float: right;
   width: 35% !important;
   width: 35% !important;
  margin-left: 1.5em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
}
}


/* Ensure infobox images scale correctly */
/* Ensure the title stays visible */
body.printable table.ic-infobox img {
body.mw-printable-view #firstHeading {
   max-width: 100%;
   display: block !important;
  height: auto;
}
}


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