Difference between revisions of "MediaWiki:Print.css"

From Dark Prospects Rules
Jump to navigation Jump to search
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
/* CSS placed here will affect the print output */
 
/* CSS placed here will affect the print output */
html, body, content { margin-top: 0; }
+
html, body, #content, #bodyContent, #firstHeading, .ritual h2 { margin-top: 0; }
 
#catlinks { display: none; }
 
#catlinks { display: none; }
#printfooter { display: none; }
+
.printfooter { display: none; }
 
#footer { 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;
 +
        }

Latest revision as of 22:36, 2 April 2019

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