MediaWiki:Print.css
Jump to navigation
Jump to search
Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* CSS placed here will affect the print output */ html, body, #content, #bodyContent, #firstHeading, .ritual h2 { margin-top: 0; } #catlinks { display: none; } .printfooter { display: none; } #footer { display: none; } #totop { display: none; } .noprint { display: none; } .approvedAndLatestMsg { display: none; } /** * Hide all the elements irrelevant for printing */ .noprint, div#jump-to-nav, .mw-jump, div.top, div#column-one, #colophon, .mw-editsection, .mw-editsection-like, .toctoggle, #toc.tochidden, div#f-poweredbyico, div#f-copyrightico, li#about, li#disclaimer, li#mobileview, li#privacy, #footer-places, .mw-hidden-catlinks, tr.mw-metadata-show-hide-extended, span.mw-filepage-other-resolutions, #filetoc, .usermessage, .patrollink, .ns-0 .mw-redirectedfrom, #mw-navigation, #siteNotice { display: none; } .tip { display: none; } @page { size: 8.5in 11in; margin: 0.5in 0.5in 0.5in 0.5in; } div.book { counter-reset: page 1; } div.chapter, div.appendix { page-break-before: right; page-break-after: always; } div.cover { page-break-after: right; } div#siteSub { display: none; } h1 { display: none; } h2 { string-set: header content(); } @page { @top { content: string(header, first); } } @page book:left { @bottom-left { content: counter(page); } } @page book:right { @bottom-right { content: counter(page); } } .book { page: book; } @page { @top { content: normal; } @bottom-left { content: normal; } @bottom-right { content: normal; } } div#toc { page-break-after: right; width: 100%; background: transparent; border: none; } div#toc a::after { content: leader('.') target-counter(attr(href), page); } dd { margin-top: 0px; margin-bottom: 0px; } dl { margin-bottom: 0.5em; } #totop { display: none; } .a-power { page-break-inside: avoid; } h2, h3, h4, h5, h6 { margin-bottom: 0px; padding-bottom: 0px; } .approvedAndLatestMsg { display: none; }