MediaWiki:Print.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 55: Line 55:
.article-people a { text-decoration: underline; color: #292828 !important; }
.article-people a { text-decoration: underline; color: #292828 !important; }


/* === Hairline rules: Chrome default (0.5px) === */
/* === Hairline rules via pseudo-element (Chrome/Edge) === */
.article-entry-number,
.article-entry-number,
.link-pdf,
.link-pdf,
Line 66: Line 66:
.article-quote,
.article-quote,
.article-mod-line {
.article-mod-line {
   padding-bottom: 7px;
  position: relative;
   border-bottom: 0.5px solid #000;
   padding-bottom: 7px;         /* room for the rule */
  background: none !important;
   border-bottom: none !important;/* clear any old borders */
}
}


/* === Firefox-only override (0.5pt renders razor-thin in print) === */
.article-entry-number::after,
.link-pdf::after,
.article-type::after,
.article-metadata::after,
.article-images::after,
.article-description::after,
.article-reflection::after,
.article-external-reference::after,
.article-quote::after,
.article-mod-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;                  /* device pixel */
  background: #292828;          /* match your ink */
  transform: scaleY(0.5);      /* render as ~0.5px hairline */
  transform-origin: 50% 100%;
}
 
/* === Firefox-only fallback (pseudo hairline can be too thin/missing) === */
@-moz-document url-prefix() {
@-moz-document url-prefix() {
.article-entry-number,
  .article-entry-number::after,
.link-pdf,
  .link-pdf::after,
.article-type,
  .article-type::after,
.article-metadata,
  .article-metadata::after,
.article-images,
  .article-images::after,
.article-description,
  .article-description::after,
.article-reflection,
  .article-reflection::after,
.article-external-reference,
  .article-external-reference::after,
.article-quote,
  .article-quote::after,
.article-mod-line {
  .article-mod-line::after {
     border-bottom: 0.5pt solid #000;
    content: none !important;  /* disable pseudo line in Firefox */
  }
  .article-entry-number,
  .link-pdf,
  .article-type,
  .article-metadata,
  .article-images,
  .article-description,
  .article-reflection,
  .article-external-reference,
  .article-quote,
  .article-mod-line {
     border-bottom: 0.5pt solid #292828; /* crisp, consistent in Firefox print */
   }
   }
}
}
/* optional: no rule on very last block */
#article-content > :last-child::after { content: none !important; }
@-moz-document url-prefix() {
  #article-content > :last-child { border-bottom: 0 !important; }
}


/* 7) Entry number row */
/* 7) Entry number row */

Navigation menu