MediaWiki:Print.css: Difference between revisions

From ICE List Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 61: Line 61:
@media print {
@media print {


   /* Collapse the article column */
   /* Hide chrome only */
   #content,
   #mw-navigation,
   #bodyContent,
   #mw-panel,
   #mw-content-text,
   #footer,
   .mw-parser-output {
  .printfooter,
     width: auto !important;
  .toc,
    max-width: none !important;
   .mw-editsection {
    margin: 0 !important;
     display: none !important;
    padding: 0 !important;
   }
   }


   /* Let the infobox sit closer to the left */
   /* Title */
  #firstHeading {
    display: block !important;
    margin-bottom: 1cm;
  }
 
  /* Infobox: NOT floated */
   table.ic-infobox,
   table.ic-infobox,
   table.infobox {
   table.infobox {
     float: right;
     float: none !important;
     margin-left: 0.5cm;
     margin: 0 auto !important;  /* centers it */
    width: 60% !important;
   }
   }


}
}

Latest revision as of 01:46, 25 December 2025

@media print {

  /* hide common content blocks */
  .mw-parser-output > p,
  .mw-parser-output > ul,
  .mw-parser-output > ol,
  .mw-parser-output > dl,
  .mw-parser-output > div,
  .mw-parser-output > h2,
  .mw-parser-output > h3,
  .mw-parser-output > h4,
  .mw-parser-output > h5,
  .mw-parser-output > h6,
  .mw-parser-output > table:not(.ic-infobox):not(.infobox),
  .mw-parser-output > figure {
    display: none !important;
  }

  /* show title */
  #firstHeading {
    display: block !important;
  }

  /* show infobox */
  table.ic-infobox,
  table.infobox {
    display: table !important;
    float: right;
    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;
  }

}