4,554
edits
No edit summary  | 
				No edit summary  | 
				||
| Line 338: | Line 338: | ||
@media print {  | @media print {  | ||
  /* one hairline under long bodies without using transform or borders */  | |||
   .article-description,  |    .article-description,  | ||
   .article-reflection,  |    .article-reflection,  | ||
   .article-external-reference,  |    .article-external-reference,  | ||
   .article-quote {  |    .article-quote {  | ||
     padding-bottom: 6px !important;  | |||
    background-image: linear-gradient(#292828, #292828);  | |||
     background-position: left bottom;  | |||
    background-repeat: no-repeat;  | |||
    background-size: 100% 1px; /* 1 device px hairline in Blink/PDF */  | |||
   }  |    }  | ||
}  | |||
/* === Entry page: allow normal page breaks === */  | |||
@media print {  | |||
  /* common MW/Vector wrappers — make sure they don't block pagination */  | |||
  html, body,  | |||
  #show-article-wrapper-entry,  | |||
  #show-article,  | |||
  #article-content,  | |||
  #content, .mw-body, .vector-body, #mw-content-text {  | |||
    display: block !important;         /* kill flex/grid if present */  | |||
    overflow: visible !important;      /* no clipping that blocks breaks */  | |||
    contain: none !important;          /* avoid any print/fragmentation quirks */  | |||
    max-height: none !important;       /* just in case */  | |||
  }  | |||
  /* the chooser shouldn’t affect layout at all while printing */  | |||
  #print-chooser, #print-options { display: none !important; }  | |||
}  | |||
/* kill the label hairline when it comes right after a body that already drew one */  | |||
.article-description + .article-label-reflection::after,  | |||
.article-reflection + .article-label-external-reference::after,  | |||
.article-external-reference + .article-label-quote::after,  | |||
.article-quote + .article-label-modification-date::after {  | |||
  content: none !important;  | |||
}  | }  | ||