MediaWiki:Print.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 315: Line 315:
   margin:0; padding:0;
   margin:0; padding:0;
}
}
/* wrappers: no internal spacing, only add gap if a wrapper actually exists */
.print-sec { margin: 0; padding: 0; }
.print-sec + .print-sec { margin-top: 6mm; } /* tune spacing */
/* make sure the label/content inside a wrapper don’t add surprise margins */
.print-sec > * { margin: 0; padding: 0; }
/* optional: draw your “hairline” only on wrappers that exist */
.print-sec {
  border-bottom: none;
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.5px;
  padding-bottom: 7px; /* room for the hairline; adjust if you like */
}
/* avoid extra gap above the first .print-sec after metadata/images */
.article-metadata + .print-sec,
.article-images + .print-sec { margin-top: 4mm; }
/* hide empty caption if no text sneaks in */
.caption-image1:empty { display: none; }

Navigation menu