MediaWiki:Print.css : Différence entre versions

De Le Parergon
Sauter à la navigation Sauter à la recherche
 
(16 révisions intermédiaires par le même utilisateur non affichées)
Ligne 4 : Ligne 4 :
 
display: none !important;
 
display: none !important;
 
}
 
}
 
  
 
#p-logo a {
 
#p-logo a {
Ligne 12 : Ligne 11 :
 
.mw-wiki-logo {
 
.mw-wiki-logo {
 
     background-image: url(/resources/assets/logo.png);
 
     background-image: url(/resources/assets/logo.png);
}
 
 
.mw-logo {
 
    display: right !important;
 
 
}
 
}
  
Ligne 24 : Ligne 19 :
 
#footer-info li {
 
#footer-info li {
 
     display: none !important;
 
     display: none !important;
 +
}
 +
 +
.printfooter {
 +
display: none !important;
 
}
 
}
  
Ligne 33 : Ligne 32 :
 
}
 
}
  
.printfooter {
 
display: none !important;
 
}
 
 
 
/* Do not print:
 
  1: When in mainspace: Article message boxes,
 
      navboxes, sister project boxes, disambig links,
 
      and items marked as metadata.
 
  2: section edit links.
 
  3: navbar links.
 
  4: Show/hide toggles for collapsible items.
 
*/
 
.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 */
 
.mw-parser-output .mw-collapsed .mw-collapsible-content {
 
display: block !important;
 
}
 
 
table.collapsible tr,
 
.mw-parser-output table.mw-collapsed > * > tr {
 
display: table-row !important;
 
}
 
 
.mw-parser-output ol.mw-collapsed > li,
 
.mw-parser-output ul.mw-collapsed > li {
 
display: list-item !important;
 
}
 
 
/* On websites with siteSub visible, the margin on the firstHeading is not needed. */
 
#firstHeading {
 
margin: 0;
 
}
 
 
/* We don't want very long URLs (that are added to the content in print) to widen the canvas */
 
#content a.external.text:after,
 
#content a.external.autonumber:after {
 
word-wrap: break-word;
 
}
 
  
/*
 
- Basic infobox styling
 
- 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 */
 
.infobox a,
 
/* reset last border (set above) of infobox */
 
.infobox > * > tr:last-child > th,
 
.infobox > * > tr:last-child > td {
 
border: 0;
 
}
 
  
/* References */
 
.refbegin a,
 
.references a,
 
.reference a {
 
color: black !important;
 
}
 
  
.reference a {
+
html,body,body div,span,object,iframe,h1,h2,h3,h4,h5,h6,a,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,figure,footer,header,hgroup,menu,nav,section,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;color:#222;font-family:"helvetica neue",helvetica,arial,sans-serif;vertical-align:baseline;}h1,h2,h3,h4,h5,h6{font-weight:bold}article,aside,figure,footer,header,hgroup,nav,section{display:block}img,object,embed{max-width:100%}ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}a{margin:0;padding:0;vertical-align:baseline;background:transparent}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted #000;cursor:help}table{font-size:inherit;font:100%;border-collapse:collapse;border-spacing:0}th{font-weight:bold;vertical-align:bottom}td{font-weight:normal;vertical-align:top}td,td img{vertical-align:top}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}.clickable,button,input,select,textarea{display:none}pre{white-space:pre;white-space:pre-wrap;white-space:pre-line;word-wrap:break-word}a:hover,a:active{outline:0}small{font-size:85%}strong,th{font-weight:bold}sub,sup{font-size:75%;line-height:0;position:relative}sup{top:-0.5em}sub{bottom:-0.25em}pre,code,kbd,samp{font-family:consolas,"lucida console","courier new",courier,monospace,sans-serif}.ie7 img{-ms-interpolation-mode:bicubic}.clearfix:before,.clearfix:after{content:"\0020";display:block;height:0;overflow:hidden}.clearfix:after{clear:both}.clearfix{zoom:1}
border-bottom: 0;
+
html {
 +
  font-size: 100%;
 +
  background: white;
 
}
 
}
  
ol.references,
 
div.reflist,
 
div.refbegin,
 
cite * {
 
/* Override any editor added inline styles that play with font-size */
 
font-size: inherit !important;
 
}
 
  
.refbegin li,
+
body,
.references li {
+
*[style] {
color: #666;
+
font-size: 75% !important;
line-height: 14pt;
+
line-height: 1.5
 
}
 
}
 
+
h1 { font-size: 3em }
.printfooter {
+
h2 { font-size: 2em }
clear: both;
+
h3 { font-size: 1.5em }
 +
h4 { font-size: 1.2em }
 +
h5 { font-size: 1em }
 +
h6 { font-size: 1em }
 +
a {
 +
text-decoration: none;
 
}
 
}

Version actuelle datée du 10 janvier 2023 à 16:46

/* Le CSS placé ici affectera les impressions */

.toc {
	display: none !important;
}

#p-logo a {
    display: inline !important;
}

.mw-wiki-logo {
    background-image: url(/resources/assets/logo.png);	
}

.printfooter {
	clear: both;
}

#footer-info li {
     display: none !important;
}

.printfooter {
	display: none !important;
}


/* Évite les lignes solitaires */
.content p {
	orphans: 4;
	widows: 4;
}






html,body,body div,span,object,iframe,h1,h2,h3,h4,h5,h6,a,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,figure,footer,header,hgroup,menu,nav,section,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;color:#222;font-family:"helvetica neue",helvetica,arial,sans-serif;vertical-align:baseline;}h1,h2,h3,h4,h5,h6{font-weight:bold}article,aside,figure,footer,header,hgroup,nav,section{display:block}img,object,embed{max-width:100%}ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}a{margin:0;padding:0;vertical-align:baseline;background:transparent}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted #000;cursor:help}table{font-size:inherit;font:100%;border-collapse:collapse;border-spacing:0}th{font-weight:bold;vertical-align:bottom}td{font-weight:normal;vertical-align:top}td,td img{vertical-align:top}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}.clickable,button,input,select,textarea{display:none}pre{white-space:pre;white-space:pre-wrap;white-space:pre-line;word-wrap:break-word}a:hover,a:active{outline:0}small{font-size:85%}strong,th{font-weight:bold}sub,sup{font-size:75%;line-height:0;position:relative}sup{top:-0.5em}sub{bottom:-0.25em}pre,code,kbd,samp{font-family:consolas,"lucida console","courier new",courier,monospace,sans-serif}.ie7 img{-ms-interpolation-mode:bicubic}.clearfix:before,.clearfix:after{content:"\0020";display:block;height:0;overflow:hidden}.clearfix:after{clear:both}.clearfix{zoom:1}
html {
  font-size: 100%;
  background: white;
}


body,
*[style] {
 font-size: 75% !important;
 line-height: 1.5
}
h1 { font-size: 3em }
h2 { font-size: 2em }
h3 { font-size: 1.5em }
h4 { font-size: 1.2em }
h5 { font-size: 1em }
h6 { font-size: 1em }
a {
text-decoration: none;
}