MediaWiki:Print.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will affect the print output */
/* CSS placed here will affect the print output */


/* hide on-screen layout and site chrome in print */
/* hide on-screen layout and site chrome in print (generic Ctrl+P case) */
#show-article-wrapper-entry,
#show-article-wrapper-entry,
#show-event-wrapper,
#show-event-wrapper,
Line 8: Line 8:


/* show the print version */
/* show the print version */
.print-only { display: block; }
.print-only { display: block !important; } /* ensure it shows in print */


/* A5 page */
/* A5 page */
Line 50: Line 50:
}
}


/* Only when we deliberately print a single entry */
/* --- INTENTIONAL single-entry print via [print] button --- */
 
/* hide the grid & chrome, but DO NOT hide the popup wrapper that holds .print-only */
body.print-entry-only #list,
body.print-entry-only #list,
body.print-entry-only .list-container,
body.print-entry-only .list-container,
Line 57: Line 59:
body.print-entry-only .sidebar,
body.print-entry-only .sidebar,
body.print-entry-only #show-event-wrapper,
body.print-entry-only #show-event-wrapper,
body.print-entry-only #show-article-wrapper,
body.print-entry-only #show-article-wrapper-entry,
body.print-entry-only .hf-header,
body.print-entry-only .hf-header,
body.print-entry-only .noprint {  
body.print-entry-only .noprint {
   display: none !important;  
   display: none !important;
}
}


/* Show the clean print version for the open entry */
/* show only the clean print version we injected into the popup */
body.print-entry-only .print-only {  
body.print-entry-only .print-only {
   display: block !important;  
   display: block !important;
}
}


/* Ensure the printed entry flows as a normal page */
/* ensure the printed entry flows as a normal page */
body.print-entry-only .entry-wrapper.print-a5 {
body.print-entry-only .entry-wrapper.print-a5 {
   position: static !important;
   position: static !important;

Navigation menu