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

De plantes indicatrices
Sauter à la navigation Sauter à la recherche
(Page créée avec « →‎Le CSS placé ici affectera les impressions : /* Do not print: 1: When in mainspace: Article message boxes, navboxes, sister project boxes, disambig links,... »)
 
 
(27 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
 
/* Le CSS placé ici affectera les impressions */
 
/* Le CSS placé ici affectera les impressions */
/* Do not print:
+
#siteSub,
  1: When in mainspace: Article message boxes,
+
.printfooter,
      navboxes, sister project boxes, disambig links,
+
#catlinks,
      and items marked as metadata.
+
#footer { display: none; }
  2: section edit links.
+
 
  3: navbar links.
+
 
  4: Show/hide toggles for collapsible items.
+
/* custom print styles added by Dominique Weber*/
*/
+
.firstHeading{
.ns-0 .ambox,
+
font-family:arial;
.ns-0 .navbox,
 
.ns-0 .vertical-navbox,
 
.ns-0 .infobox.sisterproject,
 
.ns-0 .hatnote,
 
.ns-0 .dablink,
 
.ns-0 .metadata,
 
.editlink,
 
.navbar,
 
a.NavToggle, span.collapseButton, span.mw-collapsible-toggle,
 
th .sortkey, td .sortkey {
 
    display: none !important;
 
 
}
 
}
+
 
/* Add formatting to make sure that "external references" from templates
+
.wikitable{
  like [[Template:Ref]] do not get URL expansion, not even when printed.
+
font-family:arial;
  The anchor itself has class "external autonumber" and the url expansion
+
font-size:80% !important;
  is inserted when printing (see the common printing style sheet at
 
  http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the
 
  ":after" pseudo-element of CSS. Also hide in <cite> elements.
 
*/
 
#content cite a.external.text:after,
 
.nourlexpansion a.external.text:after,
 
.nourlexpansion a.external.autonumber:after {
 
    display: none !important;
 
 
}
 
}
+
.noprint{
/* Uncollapse collapsible tables/divs.
+
display:none;
  The proper way to do this for tables is to use display:table-row,
 
  but this is not supported by all browsers, so use display:block as fallback.
 
*/
 
table.collapsible tr, div.NavPic, div.NavContent {
 
    display: block !important;
 
 
}
 
}
table.collapsible tr {
+
.onlyinprint{
    display: table-row !important;
+
display:inline;
}
 
 
/* 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;
 
 
}
 
}

Version actuelle datée du 5 mars 2015 à 15:01

/* Le CSS placé ici affectera les impressions */
#siteSub,
.printfooter,
#catlinks,
#footer { display: none; }


/* custom print styles added by Dominique Weber*/
.firstHeading{
font-family:arial;
}

.wikitable{
font-family:arial;
font-size:80% !important;
}
.noprint{
display:none;
}
.onlyinprint{
display:inline;
}