MediaWiki:Common.css: Difference between revisions
From FrathWiki
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 69: | Line 69: | ||
} | } | ||
/*Add formatting to make sure that "external references" from [[Template:Ref]] do | |||
not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was | |||
that the HTML code contained a SPAN following the anchor A; this SPAN had the class | |||
"urlexpansion", which was not displayed on screen, but was shown when the medium was | |||
"print". The rules below ensure (a) that there is no extra padding to the right of | |||
the anchor (displayed as "[<number>]"), (b) that there is no "external link arrow" for | |||
the link, and (c) that this SPAN of class "urlexpansion" is never shown. | |||
~~~~ | |||
*/ | |||
.plainlinksneverexpand { | |||
background: none ! important; | |||
padding: 0 ! important; | |||
} | |||
.plainlinksneverexpand .urlexpansion { | |||
display: none ! important; | |||
} | |||
/* Make sure that ext links displayed within "plainlinksneverexpand" don't get | |||
the arrow... | |||
*/ | |||
.plainlinksneverexpand a { | |||
background: none !important; | |||
padding: 0 !important; | |||
} | |||
/* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion" | |||
following the anchor A, the anchor itself now has class "external autonumber" and the | |||
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. We have to switch this off for links due to Template:Ref! | |||
~~~~ | |||
*/ | |||
.plainlinksneverexpand a.external.text:after { | |||
display: none !important; | |||
} | |||
.plainlinksneverexpand a.external.autonumber:after { | |||
display: none !important; | |||
} | |||
/* </pre> */ | /* </pre> */ |
Revision as of 07:28, 12 August 2006
/* <pre> */ body { font-family: Chrysanthi Unicode, Doulos SIL, Gentium, GentiumAlt, Code2000, Thryomanes, TITUS Cyberbit Basic, DejaVu Sans, Bitstream Vera Sans, Bitstream Cyberbit, Arial Unicode MS, Cardo, Free Sans, Junicode, Lucida Sans Unicode, Hiragino Kaku Gothic Pro, Matrix Unicode; font-family /**/:inherit; } .IPA { font-family: Chrysanthi Unicode, Doulos SIL, Gentium, GentiumAlt, Code2000, Thryomanes, TITUS Cyberbit Basic, DejaVu Sans, Bitstream Vera Sans, Bitstream Cyberbit, Arial Unicode MS, Cardo, Free Sans, Junicode, Lucida Sans Unicode, Hiragino Kaku Gothic Pro, Matrix Unicode; font-family /**/:inherit; } .MUFI { font-family: Cardo, Junicode; /*font-family /**/:inherit;*/ } .sans {font-family: sans-serif;} .red {color: red;} .small {font-size:x-small;} .smallcaps {font-variant: small-caps;} .big {font-size: large;} /* .grayout { background-color: #c0c0c0; } */ .bluetable, .graytable { border-collapse: collapse; } .bluetable { border: 1px solid #88a; } .graytable { border: 1px solid #999; } .bluetable td, .bluetable th, .graytable td, .graytable th { padding: 2px; } .bluetable td, .bluetable th { border: 1px solid #88a; } .graytable td, .graytable th { border: 1px solid #999; } .bluetable th { background: #ccf; } .graytable th { background: #d2d2d2; } .bluetable th:first-child, .graytable th:first-child { text-align: right; } table.gridtable { border-width: 1px 1px 1px 1px; border-spacing: 1px; border-style: solid; border-color: gray gray gray gray; border-collapse: collapse; } table.gridtable th { border-width: 1px 1px 1px 1px; padding: 3px 3px 3px 3px; border-style: solid solid solid solid; border-color: gray gray gray gray; background-color: #eee; vertical-align: top } table.gridtable td { border-width: 1px 1px 1px 1px; padding: 3px 3px 3px 3px; border-style: solid solid solid solid; border-color: gray gray gray gray; background-color: white; vertical-align: top } /*Add formatting to make sure that "external references" from [[Template:Ref]] do not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was that the HTML code contained a SPAN following the anchor A; this SPAN had the class "urlexpansion", which was not displayed on screen, but was shown when the medium was "print". The rules below ensure (a) that there is no extra padding to the right of the anchor (displayed as "[<number>]"), (b) that there is no "external link arrow" for the link, and (c) that this SPAN of class "urlexpansion" is never shown. ~~~~ */ .plainlinksneverexpand { background: none ! important; padding: 0 ! important; } .plainlinksneverexpand .urlexpansion { display: none ! important; } /* Make sure that ext links displayed within "plainlinksneverexpand" don't get the arrow... */ .plainlinksneverexpand a { background: none !important; padding: 0 !important; } /* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion" following the anchor A, the anchor itself now has class "external autonumber" and the 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. We have to switch this off for links due to Template:Ref! ~~~~ */ .plainlinksneverexpand a.external.text:after { display: none !important; } .plainlinksneverexpand a.external.autonumber:after { display: none !important; } /* </pre> */