MediaWiki:Print.css: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
No edit summary  | 
				No edit summary  | 
				||
| Line 1: | Line 1: | ||
/* ===========================  | /* ===========================  | ||
    Softwear — Print stylesheet   |     Softwear — Print stylesheet  | ||
    A5 portrait, minimal margins  |     A5 portrait, minimal margins  | ||
    =========================== */  |     =========================== */  | ||
| Line 14: | Line 14: | ||
}  | }  | ||
/* 2) Print color fidelity   | /* 2) Print color fidelity */  | ||
* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }  | * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }  | ||
| Line 44: | Line 44: | ||
   margin: 0;  |    margin: 0;  | ||
}  | }  | ||
.article-people {  | .article-people {  | ||
   font-size: 22px;  |    font-size: 22px;  | ||
| Line 56: | Line 55: | ||
.article-people a { text-decoration: underline; color: #292828 !important; }  | .article-people a { text-decoration: underline; color: #292828 !important; }  | ||
/* 6) Unified bottom-rule   | /* 6) Unified bottom-rule (cross-browser safe) */  | ||
.article-entry-number,  | .article-entry-number,  | ||
.link-pdf,  | .link-pdf,  | ||
| Line 69: | Line 66: | ||
.article-quote,  | .article-quote,  | ||
.article-mod-line {  | .article-mod-line {  | ||
   padding-bottom: 7px;    | |||
   padding-bottom: 7px;   |   border-bottom: 0.5pt solid #000; /* works in both Chrome & Firefox */  | ||
}  | }  | ||
| Line 127: | Line 105: | ||
.article-type a { text-decoration: none; color: #292828 !important; }  | .article-type a { text-decoration: none; color: #292828 !important; }  | ||
/* 10) Metadata grid   | /* 10) Metadata grid */  | ||
.article-metadata,  | .article-metadata,  | ||
.article-metadata * {  | .article-metadata * {  | ||
| Line 155: | Line 133: | ||
}  | }  | ||
/* 11)   | /* 11) Images */  | ||
.article-metadata + .article-images { margin-top: 0 !important; padding-top: 0 !important; }  | .article-metadata + .article-images { margin-top: 0 !important; padding-top: 0 !important; }  | ||
.article-images {  | .article-images {  | ||
   margin: 0 !important;  |    margin: 0 !important;  | ||
| Line 164: | Line 141: | ||
.article-images .image-container {  | .article-images .image-container {  | ||
   display: inline-flex;  |    display: inline-flex;  | ||
   flex-direction: column;   |    flex-direction: column;  | ||
   align-items: flex-start;   |    align-items: flex-start;  | ||
   margin: 0 !important;  |    margin: 0 !important;  | ||
   padding: 0 !important;  |    padding: 0 !important;  | ||
| Line 192: | Line 169: | ||
.caption-image1:empty { display: none; }  | .caption-image1:empty { display: none; }  | ||
/* 12) Labels & bodies   | /* 12) Labels & bodies */  | ||
.article-label-description,  | .article-label-description,  | ||
.article-label-reflection,  | .article-label-reflection,  | ||
| Line 199: | Line 176: | ||
.article-label-modification-date {  | .article-label-modification-date {  | ||
   text-transform: uppercase;  |    text-transform: uppercase;  | ||
   margin: 10px 0 0 0 !important;   |    margin: 10px 0 0 0 !important;  | ||
   padding: 0 !important;  |    padding: 0 !important;  | ||
   text-indent: 35px;  |    text-indent: 35px;  | ||
| Line 205: | Line 182: | ||
   font-size: 14px;  |    font-size: 14px;  | ||
   letter-spacing: 0.5px;  |    letter-spacing: 0.5px;  | ||
   break-after: avoid; page-break-after: avoid;   |    break-after: avoid; page-break-after: avoid;  | ||
}  | }  | ||
.article-metadata + .article-label-description,  | .article-metadata + .article-label-description,  | ||
.article-images + .article-label-description,  | .article-images + .article-label-description,  | ||
| Line 218: | Line 192: | ||
   margin-top: 10px !important;  |    margin-top: 10px !important;  | ||
}  | }  | ||
.article-description,  | .article-description,  | ||
.article-reflection,  | .article-reflection,  | ||
| Line 232: | Line 204: | ||
   padding-top: 0 !important;  |    padding-top: 0 !important;  | ||
}  | }  | ||
.article-label-description + .article-description,  | .article-label-description + .article-description,  | ||
.article-label-reflection + .article-reflection,  | .article-label-reflection + .article-reflection,  | ||
| Line 242: | Line 212: | ||
}  | }  | ||
/* 13) Quote   | /* 13) Quote */  | ||
.article-quote {  | .article-quote {  | ||
   font-size: 26px;  |    font-size: 26px;  | ||
| Line 250: | Line 220: | ||
}  | }  | ||
/* 14)   | /* 14) Mod line */  | ||
.article-mod-line {  | .article-mod-line {  | ||
   white-space: nowrap;  |    white-space: nowrap;  | ||
| Line 264: | Line 234: | ||
.article-modification-date { font-size: 15px; letter-spacing: 0.5px; }  | .article-modification-date { font-size: 15px; letter-spacing: 0.5px; }  | ||
/* 15)   | /* 15) Vector resets */  | ||
.vector-body p { margin: 0 !important; padding: 0 !important; }  | .vector-body p { margin: 0 !important; padding: 0 !important; }  | ||
/* 16)   | /* 16) Links */  | ||
a[href]:after { content: none !important; }  | a[href]:after { content: none !important; }  | ||
.article-external-reference a {  | .article-external-reference a {  | ||
| Line 279: | Line 249: | ||
}  | }  | ||
/* 17)   | /* 17) Page control */  | ||
#article-content { orphans: 2; widows: 2; }  | #article-content { orphans: 2; widows: 2; }  | ||
/* 18) Prevent bad splits   | /* 18) Prevent bad splits */  | ||
#article-title,  | #article-title,  | ||
.article-title-link,  | .article-title-link,  | ||
.article-metadata,  | .article-metadata,  | ||
.article-images { break-inside: avoid; page-break-inside: avoid; }  | .article-images { break-inside: avoid; page-break-inside: avoid; }  | ||
Revision as of 11:05, 21 August 2025
/* ===========================
   Softwear — Print stylesheet
   A5 portrait, minimal margins
   =========================== */
/* 1) Font face */
@font-face {
  font-family: 'HALColant-TextRegular';
  src: url('/fonts/HALColant-TextRegular.woff2?v=20250820') format('woff2'),
       url('/fonts/HALColant-TextRegular.woff?v=20250820')  format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* 2) Print color fidelity */
* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* 3) Base visibility & typography */
.print-only { display: block !important; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'HALColant-TextRegular', Georgia, "Times New Roman", serif;
  color: #292828 !important;
}
/* 4) Page + container */
@page { size: A5 portrait; margin: 2.5mm; }
.entry-wrapper.print-a5 {
  width: 100%;
  box-sizing: border-box;
  padding: 2.5mm;
}
/* 5) Titles & people */
.article-title {
  font-size: 22px;
  line-height: 24px;
  letter-spacing: 0.8px;
  text-align: center;
  margin: 0;
}
.article-people {
  font-size: 22px;
  line-height: 28px;
  letter-spacing: 0.8px;
  text-align: center;
  text-decoration: underline;
  margin: 0;
  padding-top: 15px;
}
.article-people a { text-decoration: underline; color: #292828 !important; }
/* 6) Unified bottom-rule (cross-browser safe) */
.article-entry-number,
.link-pdf,
.article-type,
.article-metadata,
.article-images,
.article-description,
.article-reflection,
.article-external-reference,
.article-quote,
.article-mod-line {
  padding-bottom: 7px; 
  border-bottom: 0.5pt solid #000; /* works in both Chrome & Firefox */
}
/* 7) Entry number row */
.article-entry-number {
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0;
  margin: 0;
}
/* 8) Centered link row ([PDF⤴] [WEB⤴]) */
.link-pdf {
  text-align: center;
  color: #292828 !important;
  text-decoration: none;
  margin: 4px 0 0 0;
  padding-top: 0;
}
.link-pdf a, .link-pdf p {
  display: inline-block;
  text-decoration: none;
  color: #292828 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* 9) Type line */
.article-type {
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
  padding-top: 7px;
  color: #292828 !important;
}
.article-type a { text-decoration: none; color: #292828 !important; }
/* 10) Metadata grid */
.article-metadata,
.article-metadata * {
  margin: 0 !important;
  border: none;
  background: none;
}
.article-metadata {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2mm;
  padding-top: 11px;
  line-height: 1 !important;
}
.article-metadata-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.article-metadata-value {
  font-size: 15px;
  text-transform: capitalize;
}
.article-metadata-value a {
  color: #292828 !important;
  text-decoration: none;
}
/* 11) Images */
.article-metadata + .article-images { margin-top: 0 !important; padding-top: 0 !important; }
.article-images {
  margin: 0 !important;
  padding-top: 0 !important;
}
.article-images .image-container {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 !important;
  padding: 0 !important;
}
.article-images .image-container img,
.image-container img {
  display: block;
  max-height: 85mm;
  height: auto;
  width: auto;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
  line-height: 0;
}
.caption-image1 {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 9pt;
  color: #555;
  text-align: left;
  width: 100%;
}
.caption-image1:empty { display: none; }
/* 12) Labels & bodies */
.article-label-description,
.article-label-reflection,
.article-label-external-reference,
.article-label-quote,
.article-label-modification-date {
  text-transform: uppercase;
  margin: 10px 0 0 0 !important;
  padding: 0 !important;
  text-indent: 35px;
  line-height: 1;
  font-size: 14px;
  letter-spacing: 0.5px;
  break-after: avoid; page-break-after: avoid;
}
.article-metadata + .article-label-description,
.article-images + .article-label-description,
.article-description + .article-label-reflection,
.article-reflection + .article-label-external-reference,
.article-external-reference + .article-label-quote,
.article-quote + .article-label-modification-date {
  margin-top: 10px !important;
}
.article-description,
.article-reflection,
.article-external-reference,
.article-quote,
.article-mod-line {
  text-indent: 35px;
  line-height: 1.3;
  font-size: 20px;
  letter-spacing: 0.8px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.article-label-description + .article-description,
.article-label-reflection + .article-reflection,
.article-label-external-reference + .article-external-reference,
.article-label-quote + .article-quote,
.article-label-modification-date + .article-modification-date {
  break-before: avoid; page-break-before: avoid;
}
/* 13) Quote */
.article-quote {
  font-size: 26px;
  line-height: 1;
  letter-spacing: 1.2px;
  font-style: italic;
}
/* 14) Mod line */
.article-mod-line {
  white-space: nowrap;
  color: grey;
  line-height: 1;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin: 7px 0 0 0 !important;
  padding-top: 7px !important;
}
.article-mod-line > span { display: inline; margin: 0; padding: 0; }
.article-mod-line > span + span { margin-left: 6px; }
.article-modification-date { font-size: 15px; letter-spacing: 0.5px; }
/* 15) Vector resets */
.vector-body p { margin: 0 !important; padding: 0 !important; }
/* 16) Links */
a[href]:after { content: none !important; }
.article-external-reference a {
  word-break: break-word;
  overflow-wrap: anywhere;
  text-decoration: none;
  color: #292828 !important;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
}
/* 17) Page control */
#article-content { orphans: 2; widows: 2; }
/* 18) Prevent bad splits */
#article-title,
.article-title-link,
.article-metadata,
.article-images { break-inside: avoid; page-break-inside: avoid; }