MediaWiki:Print.css: Difference between revisions

From iDigBio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
#content a.external.autonumber:after {
#content a.external.autonumber:after {
word-wrap: break-word;
word-wrap: break-word;
}
/* 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/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;
}
}

Revision as of 14:19, 7 June 2016

/* CSS placed here will affect the print output */

/* Uncollapse collapsible tables/divs.
   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 {
    display: table-row !important;
}

table.wikitable{
width:800px !important;
}

/* 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;
}

/* 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/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;
}