Différences entre versions de « MediaWiki:Print.css »

De médecine.top

 
(25 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
 
/* Le CSS placé ici affectera les impressions */
 
/* Le CSS placé ici affectera les impressions */
  
/* réserver un contenu à l'impression (annule le display:none de MediaWiki:Common.css) */
+
 
/* utilisé pour les entrées de ref group */
+
 
.printcssonly {
+
/* Do not print:
display: inline;
+
  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 .dablink,
 +
.ns-0 .dablink,
 +
.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;
 
}
 
}
div.printcssonly,
+
 
p.printcssonly {
+
/* Uncollapse collapsible things */
display: block;
+
.mw-parser-output .mw-collapsed .mw-collapsible-content {
 +
display: block !important;
 
}
 
}
table.printcssonly {
+
 
display: table;
+
table.collapsible tr,
 +
.mw-parser-output table.mw-collapsed > * > tr {
 +
display: table-row !important;
 
}
 
}
  
/* Ne pas imprimer les informations d'homonymie qui ne servent qu'à la navigation */
+
.mw-parser-output ol.mw-collapsed > li,
.homonymie {
+
.mw-parser-output ul.mw-collapsed > li {
display: none;
+
display: list-item !important;
 
}
 
}
  
/* Ne pas imprimer les bandeaux qui encombrent */
+
/* On websites with siteSub visible, the margin on the firstHeading is not needed. */
.bandeau,
+
#firstHeading {
.bandeau-article,
+
margin: 0;
div.bandeau-section {
 
display: none;
 
 
}
 
}
  
/* Ne pas imprimer les portails qui servent à la navigation */
+
/* We don't want very long URLs (that are added to the content in print) to widen the canvas */
.bandeau-portail {
+
#content a.external.text:after,
display: none;
+
#content a.external.autonumber:after {
 +
word-wrap: break-word;
 
}
 
}
.navigation-only {
+
 
display: none;
+
/*
 +
- 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*/
 
}
 
}
  
/* Ne pas afficher "Un article de Wikipédia, l'encyclopédie libre" */
+
.infobox > * > tr > td,
/* C'est horrible et l'origine est déjà indiquée en bas */
+
.infobox > * > tr > th {
#siteSub {
+
padding: 2px 5px;
display: none;
+
border-bottom: 1px solid #EAECF0;
 
}
 
}
  
/* Ne pas imprimer les icones de titres en haut à droite */
+
/* Reduce noise for print medium - labels may be links */
.mw-indicator {
+
.infobox a,
display: none !important;
+
/* reset last border (set above) of infobox */
 +
.infobox > * > tr:last-child > th,
 +
.infobox > * > tr:last-child > td {
 +
border: 0;
 
}
 
}
  
/* Dérouler les boîtes déroulantes */
+
/* References */
.NavContent {
+
.refbegin a,
display: block !important;
+
.references a,
 +
.reference a {
 +
color: black !important;
 
}
 
}
  
/* Ne pas imprimer le lien pour enrouler/dérouler */
+
.reference a {
.NavToggle {
+
border-bottom: 0;
display: none !important;
 
 
}
 
}
  
/* Ne pas imprimer la liste des catégories de l'article */
+
ol.references,
.catlinks {
+
div.reflist,
display: none;
+
div.refbegin,
 +
cite * {
 +
/* Override any editor added inline styles that play with font-size */
 +
font-size: inherit !important;
 
}
 
}
  
/* Ne pas imprimer de ligne noire au-dessus du pied de page */
+
.refbegin li,
#footer {
+
.references li {
border: none;
+
color: #666;
 +
line-height: 14pt;
 
}
 
}
  
/* Ajouter un espace avant les informations de pied de page */
 
 
.printfooter {
 
.printfooter {
margin-top: 3.5em;
+
clear: both;
 
}
 
}
  
/* Ne pas afficher les puces dans le pied de page */
+
 
/* Pas de marge supplémentaire */
+
 
#footer li {
+
/*
list-style-type: none;
+
  Adapted from https://github.com/murtaugh/HTML5-Reset
padding-left: 0;
+
  Formatted using http://procssor.com/
 +
*/
 +
 
 +
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 !important;*/
 +
/*  padding: 0 !important;*/
 +
/* border: 0;*/
 +
/* outline: 0;*/
 +
  font-size: 100%;
 +
  color: #222;
 +
  font-family: "helvetica neue", helvetica, arial, sans-serif;
 +
/*  font-weight: normal;*/
 +
/*  vertical-align: baseline;*/
 
}
 
}
#footer ul {
+
h1,
padding-left: 0;
+
h2,
 +
h3,
 +
h4,
 +
h5,
 +
h6 {
 +
  font-family: "helvetica neue", helvetica, arial, sans-serif;
 +
  font-weight: bold!important;
 
}
 
}
 
+
h2 {
/* Pas de bordure dans le sommaire */
+
  border: 1px solid black;
.toc {
+
}
border: none !important;
+
h3,
 +
h4,
 +
h5,
 +
h6 {
 +
  border-bottom: 1px solid black;
 +
}
 +
article,
 +
aside,
 +
figure,
 +
footer,
 +
header,
 +
hgroup,
 +
nav,
 +
section {
 +
  display: block
 
}
 
}
 
+
/* Responsive images and other embedded objects
/* Pas de puces dans le sommaire */
+
  Note: keeping IMG here will cause problems if you're using foreground images as sprites.
.toc li {
+
  If this default setting for images is causing issues, you might want to replace it with a .responsive class instead. */
list-style-type: none;
+
img,
 +
object,
 +
embed {
 +
  max-width: 100%
 
}
 
}
 
/* Marges normales pour les puces */
 
 
ul {
 
ul {
padding-left: 0.8em;
+
/*  list-style: none*/
 
}
 
}
 
+
blockquote,
/* Évite les césures dans le sommaire */
+
q {
.toc {
+
  quotes: none
page-break-inside : avoid; /* Ignoré sur les navigateurs actuels :( (excepté opera) */
+
}
 +
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;
 +
}
 +
/* tables still need cellspacing="0" in the markup */
 +
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; /* CSS2 */
 +
  white-space: pre-wrap; /* CSS 2.1 */
 +
  white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
 +
  word-wrap: break-word; /* IE */
 +
}
 +
/* Accessible focus treatment
 +
    people.opera.com/patrickl/experiments/keyboard/test */
 +
a:hover,
 +
a:active {
 +
  outline: none
 
}
 
}
 
+
small {
/* Évite les lignes solitaires */
+
  font-size: 85%
.content p {
 
orphans: 4;
 
widows: 4;
 
 
}
 
}
 
+
strong,
/* Ne pas sauter de page après un titre */
+
th {
h2, h3, h4, h5 {
+
  font-weight: bold
page-break-after: avoid; /* Ignoré sur la plupart des navigateurs (excepté opera) */
 
 
}
 
}
h2:first-child, h3:first-child, h4:first-child, h5:first-child {
+
/* Make sure sup and sub don't screw with your line-heights
page-break-before: avoid;
+
    gist.github.com/413930 */
 +
sub,
 +
sup {
 +
  font-size: 75%;
 +
  line-height: 0;
 +
  position: relative;
 
}
 
}
 
+
sup {
/* Cacher "Redirigé vers" */
+
  top: -0.5em
#contentSub {
 
display: none;
 
 
}
 
}
 
+
sub {
/* Ne pas imprimer le [archive] après les liens */
+
  bottom: -0.25em
.cachelinks {
 
display: none;
 
 
}
 
}
 
+
/* standardize any monospaced elements */
/* Remettre les notes et références sur une seule colonne */
+
pre,
/* Forcer les retour à la ligne pour les URL longues */
+
code,
.references-small {
+
kbd,
column-count: 1 !important;
+
samp {
word-wrap: break-word;
+
  font-family: consolas, "lucida console", "courier new", courier, monospace, sans-serif
 
}
 
}
 
+
/* scale images in IE7 more attractively */
/* pas de cadre ni de limite de hauteur avec [[Modèle:Références_nombreuses]] */
+
.ie7 img {
.reference-cadre {
+
  -ms-interpolation-mode: bicubic
height: auto;
 
border:none;
 
 
}
 
}
 
+
/* let's clear some floats */
 
+
.clearfix:before,
/* Patch pour l'impression des gallery (vérifier si toujours nécessaire) */
+
.clearfix:after {
/* refs [[Wikipédia:Le Bistro/20 février 2011#Alignement des galeries (suite et fin en principe)]] */
+
  content: "\0020";
/* update 2020-04-15 : suppression des styles redondants, pour ne garder que les ajustements locaux */
+
  display: block;
li.gallerybox {
+
  height: 0;
margin: 2px;
+
  overflow: hidden;
 
}
 
}
div.gallerytext{
+
.clearfix:after {
font-size: 89%;
+
  clear: both
 
}
 
}
div.gallerytext > p {
+
.clearfix {
margin: 0;
+
  zoom: 1
 
}
 
}

Version actuelle datée du 22 octobre 2021 à 07:48

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



/* 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 .dablink,
.ns-0 .dablink,
.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 {
	border-bottom: 0;
}

ol.references,
div.reflist,
div.refbegin,
cite * {
	/* Override any editor added inline styles that play with font-size */
	font-size: inherit !important;
}

.refbegin li,
.references li {
	color: #666;
	line-height: 14pt;
}

.printfooter {
	clear: both;
}



/* 
  Adapted from https://github.com/murtaugh/HTML5-Reset 
  Formatted using http://procssor.com/ 
*/

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 !important;*/
/*  padding: 0 !important;*/
/*  border: 0;*/
/*  outline: 0;*/
  font-size: 100%;
  color: #222;
  font-family: "helvetica neue", helvetica, arial, sans-serif;
/*  font-weight: normal;*/
/*  vertical-align: baseline;*/
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "helvetica neue", helvetica, arial, sans-serif;
  font-weight: bold!important;
}
h2 {
  border: 1px solid black;
}
h3,
h4,
h5,
h6 {
  border-bottom: 1px solid black;
}
article,
aside,
figure,
footer,
header,
hgroup,
nav,
section {
  display: block
}
/* Responsive images and other embedded objects
   Note: keeping IMG here will cause problems if you're using foreground images as sprites.
   If this default setting for images is causing issues, you might want to replace it with a .responsive class instead. */
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;
}
/* tables still need cellspacing="0" in the markup */
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; /* CSS2 */
  white-space: pre-wrap; /* CSS 2.1 */
  white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
  word-wrap: break-word; /* IE */
}
/* Accessible focus treatment
    people.opera.com/patrickl/experiments/keyboard/test */
a:hover,
a:active {
  outline: none
}
small {
  font-size: 85%
}
strong,
th {
  font-weight: bold
}
/* Make sure sup and sub don't screw with your line-heights
    gist.github.com/413930 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
}
sup {
  top: -0.5em
}
sub {
  bottom: -0.25em
}
/* standardize any monospaced elements */
pre,
code,
kbd,
samp {
  font-family: consolas, "lucida console", "courier new", courier, monospace, sans-serif
}
/* scale images in IE7 more attractively */
.ie7 img {
  -ms-interpolation-mode: bicubic
}
/* let's clear some floats */
.clearfix:before,
.clearfix:after {
  content: "\0020";
  display: block;
  height: 0;
  overflow: hidden;
}
.clearfix:after {
  clear: both
}
.clearfix {
  zoom: 1
}