4,554
edits
No edit summary  | 
				No edit summary  | 
				||
| Line 358: | Line 358: | ||
@media print {  | @media print {  | ||
   /*   |    /* 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:   |     /* 0.5pt prints more reliably than 1px */  | ||
     box-sizing: border-box;  |      border: 0.5pt solid #000 !important;  | ||
     /*   |     /* 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;  | ||
   }  |    }  | ||
| 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;  | ||
     outline: 0 !important;  | |||
     padding: 0 !important;  |     box-shadow: none !important;  | ||
     padding: 0 !important; /* optional */  | |||
   }  |    }  | ||
}  | }  | ||