MediaWiki:Print.css

De EduTech Wiki
Révision datée du 30 avril 2021 à 10:47 par Julien.dacosta (discussion | contributions) (Page créée avec « →‎Le CSS placé ici affectera les impressions : .ns--1 .ambox, .ns-0 .ambox, .ns--1 .navbox, .ns-0 .navbox, →‎high specificity because Minerva : .mediawiki.ns--1 .mw-p... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

  • Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
  • Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
  • Internet Explorer / Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
  • Opera : appuyez sur Ctrl + F5.
  1 /* Le CSS placé ici affectera les impressions */
  2 .ns--1 .ambox,
  3 .ns-0 .ambox,
  4 .ns--1 .navbox,
  5 .ns-0 .navbox,
  6 /* high specificity because Minerva */
  7 .mediawiki.ns--1 .mw-parser-output .sidebar,
  8 .mediawiki.ns-0 .mw-parser-output .sidebar,
  9 .ns--1 .sisterproject,
 10 .ns-0 .sisterproject,
 11 .ns--1 .hatnote,
 12 .ns-0 .hatnote,
 13 .ns--1 .dablink,
 14 .ns-0 .dablink,
 15 .ns--1 .metadata,
 16 .ns-0 .metadata,
 17 .sistersitebox,
 18 .editlink,
 19 .navbar,
 20 a.NavToggle,
 21 span.collapseButton,
 22 span.mw-collapsible-toggle,
 23 th .sortkey,
 24 td .sortkey,
 25 #mw-revision-nav,
 26 /* Add formatting to make sure that "external references" from templates
 27    like [[Template:Ref]] do not get URL expansion, not even when printed.
 28    The anchor itself has class "external autonumber" and the url expansion
 29    is inserted when printing (see the common printing style sheet at
 30    http://en.wikipedia.org/w/skins/common/commonPrint.css) using the
 31    ":after" pseudo-element of CSS.
 32 */
 33 .nourlexpansion a.external.text:after,
 34 .nourlexpansion a.external.autonumber:after {
 35 	display: none !important;
 36 }
 37 
 38 /* Uncollapse collapsible things */
 39 div.NavContent,
 40 ul.NavContent,
 41 .mw-parser-output .mw-collapsed .mw-collapsible-content {
 42 	display: block !important;
 43 }
 44 
 45 table.collapsible tr,
 46 .mw-parser-output table.mw-collapsed > * > tr {
 47 	display: table-row !important;
 48 }
 49 
 50 .mw-parser-output ol.mw-collapsed > li,
 51 .mw-parser-output ul.mw-collapsed > li {
 52 	display: list-item !important;
 53 }
 54 
 55 /* On websites with siteSub visible, the margin on the firstHeading is not needed. */
 56 #firstHeading {
 57 	margin: 0;
 58 }
 59 
 60 /* We don't want very long URLs (that are added to the content in print) to widen the canvas */
 61 #content a.external.text:after,
 62 #content a.external.autonumber:after {
 63 	word-wrap: break-word;
 64 }
 65 
 66 /*
 67 - Basic infobox styling
 68 - Remove background colors, they are hard to print
 69 */
 70 .infobox {
 71 	border: solid 1px #aaa;
 72 	background-color: #fff;
 73 	border-spacing: 0;
 74 	border-collapse: collapse;
 75 	width: 180pt !important; /*T174957*/
 76 }
 77 
 78 .infobox > * > tr > td,
 79 .infobox > * > tr > th {
 80 	padding: 2px 5px;
 81 	border-bottom: 1px solid #EAECF0;		
 82 }
 83 
 84 /* Reduce noise for print medium - labels may be links */
 85 .infobox a,
 86 /* reset last border (set above) of infobox */
 87 .infobox > * > tr:last-child > th,
 88 .infobox > * > tr:last-child > td {
 89 	border: 0;
 90 }
 91 
 92 /* References */
 93 .refbegin a,
 94 .references a,
 95 .reference a {
 96 	color: black !important;
 97 }
 98 
 99 .reference a {
100 	border-bottom: 0;
101 }
102 
103 ol.references,
104 div.reflist,
105 div.refbegin,
106 cite * {
107 	/* Override any editor added inline styles that play with font-size */
108 	font-size: inherit !important;
109 }
110 
111 .refbegin li,
112 .references li {
113 	color: #666;
114 	line-height: 14pt;
115 }
116 
117 .printfooter {
118 	clear: both;
119 }