MediaWiki:Print.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 358: Line 358:


@media print {
@media print {
   /* Default: WITH border (when <html> does NOT have .print-no-border) */
   /* WITH border (when <html> does NOT have .print-no-border) */
   html:not(.print-no-border) .print-only .entry-wrapper,
   html:not(.print-no-border) .print-only .entry-wrapper,
   html:not(.print-no-border) .entry-wrapper.print-a4-narrow,
   html:not(.print-no-border) .entry-wrapper.print-a4-narrow,
   html:not(.print-no-border) .entry-wrapper.print-a5 {
   html:not(.print-no-border) .entry-wrapper.print-a5 {
     border: 1px solid #000 !important;
    /* 0.5pt prints more reliably than 1px */
     box-sizing: border-box;
     border: 0.5pt solid #000 !important;
     /* tiny inset so the stroke never clips on some engines */
    /* Redundant hairline so Blink/PDF can't drop it */
    outline: 0.5pt solid #000 !important;           /* does not affect layout */
    box-shadow: inset 0 0 0 0.5pt #000;            /* last-resort fallback */
     box-sizing: border-box !important;
    background-clip: padding-box;
     /* keep your preferred inset; use the value you like */
     padding: 3mm;
     padding: 3mm;
    background-clip: padding-box;
   }
   }


Line 374: Line 378:
   html.print-no-border .entry-wrapper.print-a5 {
   html.print-no-border .entry-wrapper.print-a5 {
     border: 0 !important;
     border: 0 !important;
     /* optional: reduce the inset when no border */
     outline: 0 !important;
     padding: 0 !important;
    box-shadow: none !important;
     padding: 0 !important; /* optional */
   }
   }
}
}

Navigation menu