|
|
(3 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | <p>
| + | <p>/* CSS placed here will affect the print output */ /*</p> |
− | <p>/* <syntaxhighlight lang="css"> */</p> | + | <pre> */ |
− | <p> </p>
| + | |
− | <p>/* Do not print:</p> | + | #firstHeading { |
− | <p> 1: When in mainspace: Article message boxes,</p>
| + | margin: 0px; |
− | <p> navboxes, sister project boxes, disambig links,</p>
| + | } |
− | <p> and items marked as metadata.</p>
| + | |
− | <p> 2: Privacy, about, disclaimer, redirect and section edit links.</p>
| + | h2, h3, h4, h5, h6, h7 { |
− | <p> 3: Show/hide toggles for collapsible items.</p>
| + | page-break-after: avoid; |
− | <p> 4: Items marked as noprint.</p>
| + | } |
| + | p { |
| + | widows: 3; |
| + | orphans: 3; |
| + | } |
| + | |
| + | #footer { |
| + | display: none; |
| + | } |
| + | |
| + | /* </pre> |
| <p>*/</p> | | <p>*/</p> |
− | <p>.ns-0 .ambox, </p>
| |
− | <p>.ns-0 .navbox, </p>
| |
− | <p>.ns-0 .infobox.sisterproject, </p>
| |
− | <p>.ns-0 .dablink, </p>
| |
− | <p>.ns-0 .metadata,</p>
| |
− | <p>#filetoc, </p>
| |
− | <p>#footer-places,</p>
| |
− | <p>.editlink,</p>
| |
− | <p>span.collapseButton, a.NavToggle,</p>
| |
− | <p>.noprint {</p>
| |
− | <p> display: none;</p>
| |
− | <p>}</p>
| |
− | <p> </p>
| |
− | <p>/* Add formatting to make sure that "external references" from templates</p>
| |
− | <p> like [[Template:Ref]] do not get URL expansion, not even when printed.</p>
| |
− | <p> The anchor itself has class "external autonumber" and the url expansion</p>
| |
− | <p> is inserted when printing (see the common printing style sheet at</p>
| |
− | <p> http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the</p>
| |
− | <p> ":after" pseudo-element of CSS. Also hide in <cite> elements.</p>
| |
− | <p>*/</p>
| |
− | <p>#content cite a.external.text:after,</p>
| |
− | <p>.nourlexpansion a.external.text:after,</p>
| |
− | <p>.nourlexpansion a.external.autonumber:after {</p>
| |
− | <p> display: none !important;</p>
| |
− | <p>}</p>
| |
− | <p> </p>
| |
− | <p>/* Uncollapse collapsible tables/divs.</p>
| |
− | <p> The proper way to do this for tables is to use display:table-row,</p>
| |
− | <p> but this is not supported by all browsers, so use display:block as fallback.</p>
| |
− | <p>*/</p>
| |
− | <p>table.collapsible tr, div.NavPic, div.NavContent {</p>
| |
− | <p> display: block !important;</p>
| |
− | <p>}</p>
| |
− | <p>table.collapsible tr {</p>
| |
− | <p> display: table-row !important;</p>
| |
− | <p>}</p>
| |
− | <p> </p>
| |
− | <p>/* Hiding some items when printing with Simple skin */</p>
| |
− | <p>.skin-simple div#column-one,</p>
| |
− | <p>.skin-simple div#f-poweredbyico,</p>
| |
− | <p>.skin-simple div#f-copyrightico,</p>
| |
− | <p>.skin-simple .editsection { </p>
| |
− | <p> display: none; </p>
| |
− | <p>}</p>
| |
− | <p> </p>
| |
− | <p>/* wikitable class for skinning normal tables */</p>
| |
− | <p>table.wikitable {</p>
| |
− | <p> margin: 1em 1em 1em 0;</p>
| |
− | <p> border: 1px #aaa solid;</p>
| |
− | <p> border-collapse: collapse;</p>
| |
− | <p>}</p>
| |
− | <p>.wikitable th, .wikitable td {</p>
| |
− | <p> border: 1px #aaa solid;</p>
| |
− | <p> padding: 0.2em;</p>
| |
− | <p>}</p>
| |
− | <p>.wikitable th {</p>
| |
− | <p> text-align: center;</p>
| |
− | <p> background: #F2F2F2;</p>
| |
− | <p> font-weight: bold;</p>
| |
− | <p>}</p>
| |
− | <p>.wikitable caption {</p>
| |
− | <p> font-weight: bold;</p>
| |
− | <p>}</p>
| |
− | <p> </p>
| |
− | <p>/* On websites with siteSub visible, the margin on the firstHeading is not needed. */</p>
| |
− | <p>#firstHeading {</p>
| |
− | <p> margin: 0px;</p>
| |
− | <p>}</p>
| |
− | <p> </p>
| |
− | <p>/* Remove once r76522 is live */</p>
| |
− | <p>.wikitable, .thumb, img {</p>
| |
− | <p><span style="white-space: pre;"> </span>page-break-inside: avoid;</p>
| |
− | <p>}</p>
| |
− | <p>h2, h3, h4, h5, h6, h7 {</p>
| |
− | <p><span style="white-space: pre;"> </span>page-break-after: avoid;</p>
| |
− | <p>}</p>
| |
− | <p>p {</p>
| |
− | <p><span style="white-space: pre;"> </span>widows: 3;</p>
| |
− | <p><span style="white-space: pre;"> </span>orphans: 3;</p>
| |
− | <p>}</p>
| |
− | <p> </p>
| |
− | <p>/* </syntaxhighlight> */</p>
| |
− | </p>
| |