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

De médecine.top

 
(23 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 */
  
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.01%;
+
/* Do not print:
  background: white;
+
  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;
 
}
 
}
body,
+
 
*[style] {
+
/* Uncollapse collapsible things */
font-size: 75% !important;
+
.mw-parser-output .mw-collapsed .mw-collapsible-content {
line-height: 1.5
+
display: block !important;
 
}
 
}
h1 { font-size: 3em }
+
 
h2 { font-size: 2em }
+
table.collapsible tr,
h3 { font-size: 1.5em }
+
.mw-parser-output table.mw-collapsed > * > tr {
h4 { font-size: 1.2em }
+
display: table-row !important;
h5 { font-size: 1em }
 
h6 { font-size: 1em }
 
a {
 
text-decoration: none;
 
 
}
 
}
  
/* Article heading and source */
+
.mw-parser-output ol.mw-collapsed > li,
#firstHeading { text-align: center }
+
.mw-parser-output ul.mw-collapsed > li {
#siteSub {
+
display: list-item !important;
display: block;
 
margin: 1em 0 0 0;
 
color: #999;
 
font-size: 1.5em; font-weight: bold;
 
text-align: center
 
 
}
 
}
#contentSub { display: none }
 
  
/* Table of Contents */
+
/* On websites with siteSub visible, the margin on the firstHeading is not needed. */
/* Typically not wrapped in div. Can't do two-columns */
+
#firstHeading {
#toc {
+
margin: 0;
width: 100%;
 
font-size: 125%;
 
/* Gets its own page */
 
background: none;
 
border: none!important;
 
page-break-after: always;
 
page-break-before: always;
 
}
 
#toc .tocnumber {
 
position: absolute;
 
left: 0.5em;
 
width: 4.5em;
 
padding: 0 0.5em 0 0;
 
font-weight: bold;
 
text-align: right
 
}
 
#toc .tocnumber:after { content: " " }
 
#toc .toctext {
 
display: block;
 
margin: 0 0 0 6em
 
}
 
#toc h2 {
 
padding: 0.25em 0;
 
border-bottom: none !important;
 
text-align: center
 
}
 
#toc td { border: none!important }
 
#toc td > ul { margin: 1.5em 0 !important }
 
#toc li {
 
position: relative;
 
padding-right: 4.5em
 
 
}
 
}
#toc ul { list-style-type: none!important }
 
  
/* Article content */
+
/* We don't want very long URLs (that are added to the content in print) to widen the canvas */
#bodyContent h2,
+
#content a.external.text:after,
h3,
 
h4,
 
h5 { clear: left }
 
#bodyContent p {
 
margin: 1em 0;
 
line-height: 1.5
 
}
 
#bodyContent em,
 
#bodyContent i { font-family: georgia, "times new roman", times, serif }
 
#bodyContent ul,
 
#bodyContent ol { margin: 0.75em 1.5em 0.75em 3em }
 
#bodyContent p span,
 
#bodyContent ul span,
 
#bodyContent ol span,
 
tr[style] { font-size: 1em!important }
 
#bodyContent ul { list-style-type: disc }
 
#bodyContent ol { list-style-type: decimal }
 
#bodyContent pre {
 
padding: 0.75em;
 
border: 1px solid #CCC
 
}
 
#bodyContent pre + pre { margin: 0.75em 0 0 0 }
 
#bodyContent a.external.text { border-bottom: 1px solid #CCC }
 
#bodyContent a.external.text:after,
 
 
#content a.external.autonumber:after {
 
#content a.external.autonumber:after {
content: " <" attr(href) ">";
+
word-wrap: break-word;
font-family: consolas, "lucida console", "courier new", courier, monospace, sans-serif;
 
 
}
 
}
  
/* Hide pronounciation icon */
+
/*
#bodyContent a[title^=Listen] { 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*/
 +
}
  
/* Don't show links to main articles */
+
.infobox > * > tr > td,
#bodyContent .rellink { display: none }
+
.infobox > * > tr > th {
 +
padding: 2px 5px;
 +
border-bottom: 1px solid #EAECF0;
 +
}
  
/* Tables */
+
/* Reduce noise for print medium - labels may be links */
#bodyContent table { border-left: 1px solid #CCC }
+
.infobox a,
#bodyContent table .headerSort { background: none }
+
/* reset last border (set above) of infobox */
#bodyContent table .sortheader { display: none }
+
.infobox > * > tr:last-child > th,
#bodyContent table caption {
+
.infobox > * > tr:last-child > td {
padding: 0.5em 0;
+
border: 0;
font-size: 115%; font-weight: bold;
 
border: 1px solid #CCC
 
 
}
 
}
#bodyContent table th,
+
 
#bodyContent table td {
+
/* References */
padding: 0.5em;
+
.refbegin a,
border-bottom: 1px solid #CCC; border-right: 1px solid #CCC;
+
.references a,
text-align: left;
+
.reference a {
vertical-align: top
+
color: black !important;
 
}
 
}
  
/* Footer */
+
.reference a {
.printfooter {
+
border-bottom: 0;
padding: 1.5em 0 0 0;
 
font-size: 95%
 
 
}
 
}
.printfooter a { font-weight: bold }
+
 
/** Show categories?
+
ol.references,
* .catlinks a,
+
div.reflist,
* #catlinks a {
+
div.refbegin,
* font-weight: bold;
+
cite * {
* font-size: 95%;
+
/* Override any editor added inline styles that play with font-size */
* }
+
font-size: inherit !important;
* .catlinks span a,
 
* #catlinks span a {
 
* font-weight: normal;
 
* }
 
*/
 
.catlinks,
 
#catlinks { display: none }
 
#footer {
 
margin: 0!important; padding: 0!important;
 
font-size: 95%;
 
border: 0
 
 
}
 
}
#footer-places,
 
.patrollink { display: none }
 
  
/* Two columns for list of references */
+
.refbegin li,
.reflist {
+
.references li {
padding: 0.75em 0;
+
color: #666;
font-size: 0.75em!important;
+
line-height: 14pt;
-moz-column-count: 2;
 
-moz-column-gap: 10px;
 
-webkit-column-count: 2;
 
-webkit-column-gap: 10px;
 
column-count: 2;
 
column-gap: 10px;
 
 
}
 
}
  
/* Hide all backlinks to article */
+
.printfooter {
.mw-cite-backlink { display: none }
+
clear: both;
.infobox,
 
#mw-navigation { display: none }
 
 
 
/* Galleries */
 
.gallery[style] { max-width: 100%!important }
 
.gallery {
 
margin: 0.375em!important; padding: 0!important;
 
font-size: 1.75em!important
 
}
 
.thumb {
 
font-size: 1.25em!important;
 
outline: 3px solid #EEE
 
 
}
 
}
  
/* Floating thumbs 'fall off page' otherwise */
 
.tright { margin-right: 0.375em!important }
 
.tleft { margin-left: 0.375em!important }
 
  
/* Miscellaneous hacks for Wikipedia */
 
.barbox { font-size: 1.5em!important }
 
thead { display: table-header-group }
 
tfoot { display: table-footer-group }
 
  
/* Remove the up arrow in references */
+
/*  
.references li a[href*="#cite"] { display: none!important }
+
  Adapted from https://github.com/murtaugh/HTML5-Reset
 +
  Formatted using http://procssor.com/
 +
*/
  
/* Stuff to hide */
+
html,
#jump-to-nav,
+
body,
.dablink,
+
body div,
.mw-editsection,
+
span,
.hide-when-compact,
+
object,
.noprint,
+
iframe,
.toctoggle,
+
h1,
.ambox-very_long {
+
h2,
display:none;
+
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
 
}
 
}

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
}