Difference between revisions of "MediaWiki:Print.css"

From 1MinuteSite Wiki
(Pagina sostituita con 'CSS placed here will affect the print output: <pre><nowiki>: #footer { display: none; } </nowiki></pre>: ')
Line 1: Line 1:
/* CSS placed here will affect the print output */
+
<p>/* CSS placed here will affect the print output */ /*</p>
/* <pre><nowiki> */
+
<pre> */
 +
 
 +
 
 +
/* Hiding some items when printing with Simple skin */
 +
.skin-simple div#column-one,
 +
.skin-simple div#f-poweredbyico,
 +
.skin-simple div#f-copyrightico,
 +
.skin-simple .editsection {
 +
    display: none;
 +
}
 +
 +
/* wikitable class for skinning normal tables */
 +
table.wikitable {
 +
    margin: 1em 1em 1em 0;
 +
    border: 1px #aaa solid;
 +
    border-collapse: collapse;
 +
}
 +
.wikitable th, .wikitable td {
 +
    border: 1px #aaa solid;
 +
    padding: 0.2em;
 +
}
 +
.wikitable th {
 +
    text-align: center;
 +
    background: #F2F2F2;
 +
    font-weight: bold;
 +
}
 +
.wikitable caption {
 +
    font-weight: bold;
 +
}
 +
 +
/* On websites with siteSub visible, the margin on the firstHeading is not needed. */
 +
#firstHeading {
 +
    margin: 0px;
 +
}
 +
 +
/* Remove once r76522 is live */
 +
.wikitable, .thumb, img {
 +
page-break-inside: avoid;
 +
}
 +
h2, h3, h4, h5, h6, h7 {
 +
page-break-after: avoid;
 +
}
 +
p {
 +
widows: 3;
 +
orphans: 3;
 +
}
  
 
#footer {
 
#footer {
Line 6: Line 51:
 
}
 
}
  
/* </nowiki></pre> */
+
/* </pre>
 +
<p>*/</p>

Revision as of 15:00, 10 February 2011

<p>/* CSS placed here will affect the print output */ /*</p>
<pre> */


/* Hiding some items when printing with Simple skin */
.skin-simple div#column-one,
.skin-simple div#f-poweredbyico,
.skin-simple div#f-copyrightico,
.skin-simple .editsection { 
    display: none; 
}
 
/* wikitable class for skinning normal tables */
table.wikitable {
    margin: 1em 1em 1em 0;
    border: 1px #aaa solid;
    border-collapse: collapse;
}
.wikitable th, .wikitable td {
    border: 1px #aaa solid;
    padding: 0.2em;
}
.wikitable th {
    text-align: center;
    background: #F2F2F2;
    font-weight: bold;
}
.wikitable caption {
    font-weight: bold;
}
 
/* On websites with siteSub visible, the margin on the firstHeading is not needed. */
#firstHeading {
    margin: 0px;
}
 
/* Remove once r76522 is live */
.wikitable, .thumb, img {
	page-break-inside: avoid;
}
h2, h3, h4, h5, h6, h7 {
	page-break-after: avoid;
}
p {
	widows: 3;
	orphans: 3;
}

#footer {
    display: none;
}

/* </pre>
<p>*/</p>