Difference between revisions of "MediaWiki:Common.css"

From KIproBatt Wiki
(parser function don't work here. Use BeforePageDisplay Hook for now)
(test @media print)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
 +
/* Show only when printing */
 +
@media screen, projection, handheld {
 +
  .printonly { display: none !important; }
 +
}
 +
@media print {
 +
  /* Show elements meant to be displayed when printed, use fallbacks when needed. */
 +
  div.expand-print, div.printonly { display: block !important; }
 +
  span.expand-print, span.printonly { display: inline !important; }
 +
  table.collapsible tr, div.collapsible > div.body { display: block !important; }
 +
  table.collapsible tr { display: table-row !important; }
 +
}

Revision as of 10:07, 9 March 2021

/* CSS placed here will be applied to all skins */
/* Show only when printing */
@media screen, projection, handheld {
  .printonly { display: none !important; }
}
@media print {
  /* Show elements meant to be displayed when printed, use fallbacks when needed. */
  div.expand-print, div.printonly { display: block !important; }
  span.expand-print, span.printonly { display: inline !important; }
  table.collapsible tr, div.collapsible > div.body { display: block !important; }
  table.collapsible tr { display: table-row !important; }
}