MediaWiki:Print.css: Difference between revisions

From greek.doctor
No edit summary
No edit summary
 
(86 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will affect the print output */
/* CSS placed here will affect the print output */


/* Infobox template style */
/* Infobox template style */
Line 14: Line 15:
/* @noflip */
/* @noflip */
clear: right;
clear: right;
font-size: 88%;
    font-size: 10pt;
line-height: 1.5em;
line-height: 1.5em;
width: 22em;
width: 22em;
    font-family: sans-serif;
}
}


h1,
h1,
h2,
h3,
h4 {
  font-family: Georgia;
}
h2 {
h2 {
  margin-bottom: 0;
    font-weight: normal;
    border-bottom: 1px solid #a2a9b1;
}
}


p {
h1 {
margin-top: 0;
  line-height: 32.76px;
}
  margin-block-end: 6.3px;
  margin-block-start: 25.2px;
  margin-bottom: 6.3px;
  margin-inline-end: 0px;
  margin-inline-start: 0px;
  margin-left: 0px;
  margin-right: 0px;
  margin-top: 25.2px;
  font-size: 16pt;


.ns--1 .ambox,
.ns-0 .ambox,
.ns--1 .navbox,
.ns-0 .navbox,
/* high specificity because Minerva */
.mediawiki.ns--1 .mw-parser-output .sidebar,
.mediawiki.ns-0 .mw-parser-output .sidebar,
.ns--1 .sisterproject,
.ns-0 .sisterproject,
.ns--1 .hatnote,
.ns-0 .hatnote,
.ns--1 .metadata,
.ns-0 .metadata,
.sistersitebox,
.editlink,
.navbar,
span.mw-collapsible-toggle,
th .sortkey,
td .sortkey,
#mw-revision-nav,
/* Add formatting to make sure that "external references" from templates
  like [[Template:Ref]] do not get URL expansion, not even when printed.
  The anchor itself has class "external autonumber" and the url expansion
  is inserted when printing (see the common printing style sheet at
  http://en.wikipedia.org/w/skins/common/commonPrint.css) using the
  ":after" pseudo-element of CSS.
*/
.nourlexpansion a.external.text:after,
.nourlexpansion a.external.autonumber:after {
display: none !important;
}
}


/* Uncollapse collapsible things */
h2 {
.mw-parser-output .mw-collapsed .mw-collapsible-content {
  font-size: 12pt;
display: block !important;
  margin-block-end: 5.25px;
  margin-block-start: 21px;
  margin-bottom: 5.25px;
  margin-inline-end: 0px;
  margin-inline-start: 0px;
  margin-left: 0px;
  margin-right: 0px;
  margin-top: 21px;
}
}


table.collapsible tr,
h3 {
.mw-parser-output table.mw-collapsed > * > tr {
  margin-block-start: 1em;
display: table-row !important;
  font-size: 11pt;
}
}


.mw-parser-output ol.mw-collapsed > li,
h1, h2, h3, h4, h5, tr td p {
.mw-parser-output ul.mw-collapsed > li {
  font-family: sans-serif !important;
display: list-item !important;
}
}


/* On websites with siteSub visible, the margin on the firstHeading is not needed. */
p {
#firstHeading {
  margin-block-end: 7px;
margin: 0;
  margin-block-start: 7px;
  margin-bottom: 7px;
  margin-inline-end: 0px;
  margin-inline-start: 0px;
  margin-left: 0px;
  margin-right: 0px;
  margin-top: 7px;
  line-height: 1.4;
  font-size: 10pt;
  font-family: serif;
}
}


/* We don't want very long URLs (that are added to the content in print) to widen the canvas */
ol li, ul li, table {
#content a.external.text:after,
  font-size: 10pt;
#content a.external.autonumber:after {
  font-family: serif;
word-wrap: break-word;
}
}


/*
ol, ul {
- Basic infobox styling
  margin: 2px 0 0px 1.5em;
- Remove background colors, they are hard to print
*/
.infobox {
border: solid 1px #aaa;
background-color: #fff;
border-spacing: 0;
border-collapse: collapse;
width: 180pt !important; /*T174957*/
}


.infobox > * > tr > td,
.infobox > * > tr > th {
padding: 2px 5px;
border-bottom: 1px solid #EAECF0;
}
}


/* Reduce noise for print medium - labels may be links */
.firstHeading {
.infobox a,
  font-size: 18pt;
/* reset last border (set above) of infobox */
.infobox > * > tr:last-child > th,
.infobox > * > tr:last-child > td {
border: 0;
}
}


/* References */
.toc, body {
.refbegin a,
    padding: 10px;
.references a,
    color: #202122;
.reference a {
color: black !important;
}
}


.reference a {
.wikitable > tr > th,.wikitable > * > tr > th {
border-bottom: 0;
    background-color: #eaecf0 !important;
    text-align: center;
    font-family: sans-serif;
}
}


ol.references,
figure[typeof~='mw:File/Thumb'] > a:first-child > *:first-child, figure[typeof~='mw:File/Frame'] > a:first-child > *:first-child, figure[typeof~='mw:File/Thumb'] > span:first-child > *:first-child, figure[typeof~='mw:File/Frame'] > span:first-child > *:first-child {
div.reflist,
    margin: 3px;
div.refbegin,
cite * {
/* Override any editor added inline styles that play with font-size */
font-size: inherit !important;
}
}


.refbegin li,
figure[typeof~='mw:File/Thumb'] > a:first-child > *:first-child:not(.mw-broken-media), figure[typeof~='mw:File/Frame'] > a:first-child > *:first-child:not(.mw-broken-media), figure[typeof~='mw:File/Thumb'] > span:first-child > *:first-child:not(.mw-broken-media), figure[typeof~='mw:File/Frame'] > span:first-child > *:first-child:not(.mw-broken-media) {
.references li {
    border: 1px solid #c8ccd1;
color: #666;
    background: #ffffff;
line-height: 14pt;
}
}


.printfooter {
.mw-body h1, .mw-body-content h1, .mw-body-content h2 {
clear: both;
    margin-bottom: 0.25em;
    padding: 0;
/*    font-family: 'Linux Libertine', 'Georgia', 'Times', serif; */
    line-height: 1.3;
}
}

Latest revision as of 14:26, 9 July 2024

/* CSS placed here will affect the print output */


/* Infobox template style */
.infobox {
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	background-color: #f8f9fa;
	color: black;
	/* @noflip */
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	/* @noflip */
	float: right;
	/* @noflip */
	clear: right;
    font-size: 10pt;
	line-height: 1.5em;
	width: 22em;
    font-family: sans-serif;
}


h1,
h2 {
    font-weight: normal;
    border-bottom: 1px solid #a2a9b1;
}

h1 {
   line-height: 32.76px;
   margin-block-end: 6.3px;
   margin-block-start: 25.2px;
   margin-bottom: 6.3px;
   margin-inline-end: 0px;
   margin-inline-start: 0px;
   margin-left: 0px;
   margin-right: 0px;
   margin-top: 25.2px;
   font-size: 16pt;

}

h2 {
   font-size: 12pt;
   margin-block-end: 5.25px;
   margin-block-start: 21px;
   margin-bottom: 5.25px;
   margin-inline-end: 0px;
   margin-inline-start: 0px;
   margin-left: 0px;
   margin-right: 0px;
   margin-top: 21px;
}

h3 {
   margin-block-start: 1em;
   font-size: 11pt;
}

h1, h2, h3, h4, h5, tr td p {
   font-family: sans-serif !important;
}

p {
   margin-block-end: 7px;
   margin-block-start: 7px;
   margin-bottom: 7px;
   margin-inline-end: 0px;
   margin-inline-start: 0px;
   margin-left: 0px;
   margin-right: 0px;
   margin-top: 7px;
   line-height: 1.4;
   font-size: 10pt; 
   font-family: serif;
}

ol li, ul li, table {
   font-size: 10pt;
   font-family: serif;
}

ol, ul {
   margin: 2px 0 0px 1.5em;

}

.firstHeading {
   font-size: 18pt;
}

.toc, body {
    padding: 10px;
    color: #202122;
}

.wikitable > tr > th,.wikitable > * > tr > th {
    background-color: #eaecf0 !important;
    text-align: center;
    font-family: sans-serif;
}

figure[typeof~='mw:File/Thumb'] > a:first-child > *:first-child, figure[typeof~='mw:File/Frame'] > a:first-child > *:first-child, figure[typeof~='mw:File/Thumb'] > span:first-child > *:first-child, figure[typeof~='mw:File/Frame'] > span:first-child > *:first-child {
    margin: 3px;
}

figure[typeof~='mw:File/Thumb'] > a:first-child > *:first-child:not(.mw-broken-media), figure[typeof~='mw:File/Frame'] > a:first-child > *:first-child:not(.mw-broken-media), figure[typeof~='mw:File/Thumb'] > span:first-child > *:first-child:not(.mw-broken-media), figure[typeof~='mw:File/Frame'] > span:first-child > *:first-child:not(.mw-broken-media) {
    border: 1px solid #c8ccd1;
    background: #ffffff;
}

.mw-body h1, .mw-body-content h1, .mw-body-content h2 {
    margin-bottom: 0.25em;
    padding: 0;
/*    font-family: 'Linux Libertine', 'Georgia', 'Times', serif; */
    line-height: 1.3;
}