MediaWiki:Print.css

From Wikiversity
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* <source lang="css">/* */
/* Do not print:
   1: Message boxes, project boxes, navigation boxes, categories, and disambig links.
   2: Privacy, about, disclaimer, redirect and section edit links.
   3: Show/hide toggles for collapsible elements.
   4: metadata and noprint elements.

   Note: People may want not to see these element for pages printed in any namespaces.
*/
.ambox,
.tmbox,
.dablink,
.catlinks,
.collapsible span.action,
.toc,
.editlink,
.editsection,
.subpages,
#filetoc,
#footer-places,
.metadata, .noprint { display: none; }

/* 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; }

/* Don't expand external links (see http://en.wikibooks.org/w/skins/common/commonPrint.css) */
cite a.external.text:after,
.citation a.external.text:after,
.nourlexpansion a.external.text:after,
.nourlexpansion a.external.autonumber:after {
    display: none !important;
}

/* Hiding some items when printing with Simple and Monobook skins */
.skin-simple div#column-one,
.skin-simple div#f-poweredbyico,
.skin-simple div#f-copyrightico,
.skin-monobook div#column-one,
.skin-monobook div#f-poweredbyico,
.skin-monobook div#f-copyrightico,
{ 
    display: none; 
}

/* wikitable class for skinning normal tables */
table.wikitable { margin: 1em 1em 1em 0em; border: 1px #aaaaaa solid; border-collapse: collapse; }
table.wikitable th, .wikitable td { border:1px #aaaaaa solid; padding: 0.2em; }
table.wikitable th { text-align: center; background: #F2F2F2; font-weight: bold; }
table.wikitable caption { font-weight: bold; }

/* </source> */