From: Bartosz Dziewoński Date: Sun, 31 Aug 2014 00:48:07 +0000 (+0200) Subject: Move mediawiki.skinning.* modules from skins/common/ to resources/ X-Git-Tag: 1.31.0-rc.0~14167 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=ebaed675110376aa71f0c3b98760a6bdbfcfefd3;p=lhc%2Fweb%2Fwiklou.git Move mediawiki.skinning.* modules from skins/common/ to resources/ This is a BREAKING CHANGE, as we have used the names of these three files in skins/common/ as a "public API" for skins for a long time. Doing so has been deprecated (but still supported) in 1.23. We must clear them out at some point, and now is as good a time as ever, with the 1.23 LTS release still supporting the old way. Skins may no longer rely on the presence of commonElements.css, commonContent.css and commonInterface.css in skins/common/ and include them in their style modules. The corresponding ResourceLoader modules must be used instead: - skins/common/commonElements.css → 'mediawiki.skinning.elements' module - skins/common/commonContent.css → 'mediawiki.skinning.content' module - skins/common/commonInterface.css → 'mediawiki.skinning.interface' module Follow-up to I3947eaac (where I said I intend to do this) and I56758908. Bug: 69277 Change-Id: Id8456c570ff406822a8befad8f42f528ef5bd3a6 --- diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index c13ea9dd24..2ac3710109 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -355,6 +355,13 @@ changes to languages because of Bugzilla reports. the "headelement" template key are no longer supported. Setting $useHeadElement = false; is no longer supported and will not cause old keys like "headlinks", "skinnameclass", etc. to be defined. +* BREAKING CHANGE: The files commonElements.css, commonContent.css and + commonInterface.css (in skins/common/) have been removed. Skins may no longer + rely on their presence and include them in their style modules. ResourceLoader + modules introduced in MediaWiki 1.23 should be loaded instead: + - skins/common/commonElements.css → 'mediawiki.skinning.elements' module + - skins/common/commonContent.css → 'mediawiki.skinning.content' module + - skins/common/commonInterface.css → 'mediawiki.skinning.interface' module * The deprecated 'SpecialVersionExtensionTypes' hook was removed. * (bug 63891) Add 'X-Robots-Tag: noindex' header in action=render pages. * SpecialPage no longer supports the syntax for invoking wfSpecial*() functions. diff --git a/resources/Resources.php b/resources/Resources.php index eb36ee5341..946f3c9463 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -83,33 +83,27 @@ return array( */ 'mediawiki.skinning.elements' => array( 'styles' => array( - 'commonElements.css' => array( 'media' => 'screen' ), + 'resources/src/mediawiki.skinning/elements.css' => array( 'media' => 'screen' ), ), - 'remoteSkinPath' => 'common', - 'localBasePath' => $GLOBALS['wgStyleDirectory'] . '/common', ), 'mediawiki.skinning.content' => array( 'styles' => array( - 'commonElements.css' => array( 'media' => 'screen' ), - 'commonContent.css' => array( 'media' => 'screen' ), + 'resources/src/mediawiki.skinning/elements.css' => array( 'media' => 'screen' ), + 'resources/src/mediawiki.skinning/content.css' => array( 'media' => 'screen' ), ), - 'remoteSkinPath' => 'common', - 'localBasePath' => $GLOBALS['wgStyleDirectory'] . '/common', ), 'mediawiki.skinning.interface' => array( // Used in the web installer. Test it after modifying this definition! 'styles' => array( - 'commonElements.css' => array( 'media' => 'screen' ), - 'commonContent.css' => array( 'media' => 'screen' ), - 'commonInterface.css' => array( 'media' => 'screen' ), + 'resources/src/mediawiki.skinning/elements.css' => array( 'media' => 'screen' ), + 'resources/src/mediawiki.skinning/content.css' => array( 'media' => 'screen' ), + 'resources/src/mediawiki.skinning/interface.css' => array( 'media' => 'screen' ), ), - 'remoteSkinPath' => 'common', - 'localBasePath' => $GLOBALS['wgStyleDirectory'] . '/common', ), 'mediawiki.skinning.content.parsoid' => array( // Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser - // with the commonInterface.css styles; skinStyles should be used if your + // with the interface.css styles; skinStyles should be used if your // skin over-rides common content styling. 'skinStyles' => array( 'default' => 'resources/src/mediawiki.skinning/content.parsoid.less', diff --git a/resources/src/mediawiki.skinning/content.css b/resources/src/mediawiki.skinning/content.css new file mode 100644 index 0000000000..622afe6888 --- /dev/null +++ b/resources/src/mediawiki.skinning/content.css @@ -0,0 +1,232 @@ +/** + * MediaWiki style sheet for general styles on complex content + * + * Styles for complex things which are a standard part of page content + * (ie: the CSS classing built into the system), like the TOC. + */ + +/* Table of Contents */ +#toc, +.toc, +.mw-warning { + border: 1px solid #aaa; + background-color: #f9f9f9; + padding: 5px; + font-size: 95%; +} + +/** + * We want to display the ToC element with intrinsic width in block mode. The fit-content + * value for width is however not supported by large groups of browsers. + * + * We use display:table. Even though it should only contain other table-* display + * elements, there are no known problems with using this. + * + * Because IE < 8, FF 2 and other older browsers don't support display:table, we fallback to + * using inline-block mode, which features at least intrinsic width, but won't clear preceding + * inline elements. In practice inline elements surrounding the TOC are uncommon enough that + * this is an acceptable sacrifice. + */ +#toc, +.toc { + display: -moz-inline-block; + display: inline-block; + display: table; + + /* IE7 and earlier */ + zoom: 1; + *display: inline; + + padding: 7px; +} + +/* CSS for backwards-compatibility with cached page renders and creative uses in wikitext */ +table#toc, +table.toc { + border-collapse: collapse; +} + +/* Remove additional paddings inside table-cells that are not present in
s */ +table#toc td, +table.toc td { + padding: 0; +} + +#toc h2, +.toc h2 { + display: inline; + border: none; + padding: 0; + font-size: 100%; + font-weight: bold; +} + +#toc #toctitle, +.toc #toctitle, +#toc .toctitle, +.toc .toctitle { + text-align: center; +} + +#toc ul, +.toc ul { + list-style-type: none; + list-style-image: none; + margin-left: 0; + padding: 0; + text-align: left; +} + +#toc ul ul, +.toc ul ul { + margin: 0 0 0 2em; +} + +#toc .toctoggle, +.toc .toctoggle { + font-size: 94%; +} + +.toccolours { + border: 1px solid #aaa; + background-color: #f9f9f9; + padding: 5px; + font-size: 95%; +} + +/* Warning */ +.mw-warning { + margin-left: 50px; + margin-right: 50px; + text-align: center; +} + +/* Images */ +/* @noflip */div.floatright, table.floatright { + margin: 0 0 .5em .5em; + border: 0; +} + +div.floatright p { + font-style: italic; +} + +/* @noflip */div.floatleft, table.floatleft { + margin: 0 .5em .5em 0; + border: 0; +} + +div.floatleft p { + font-style: italic; +} + +/* Thumbnails */ +div.thumb { + margin-bottom: .5em; + width: auto; + background-color: transparent; +} + +div.thumbinner { + border: 1px solid #ccc; + padding: 3px; + background-color: #f9f9f9; + font-size: 94%; + text-align: center; + overflow: hidden; +} + +html .thumbimage { + border: 1px solid #ccc; +} + +html .thumbcaption { + border: none; + line-height: 1.4em; + padding: 3px; + font-size: 94%; + /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */ + text-align: left; +} + +div.magnify { + /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */ + float: right; + margin-left: 3px; +} + +div.magnify a { + display: block; + /* Hide the text… */ + text-indent: 15px; + white-space: nowrap; + overflow: hidden; + /* …and replace it with the image */ + width: 15px; + height: 11px; + /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */ + /* @embed */ + background: url(images/magnify-clip-ltr.png) center center no-repeat; + /* Don't annoy people who copy-paste everything too much */ + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; +} + +/* Temporary WMF deployment hack, to be removed before 1.24 release */ +div.magnify img { + display: none; +} + +img.thumbborder { + border: 1px solid #dddddd; +} + +/* Directionality-specific styles for thumbnails - their positioning depends on content language */ + +/* @noflip */ +.mw-content-ltr .thumbcaption { + text-align: left; +} + +/* @noflip */ +.mw-content-ltr .magnify { + float: right; + margin-left: 3px; + margin-right: 0; +} + +/* @noflip */ +.mw-content-ltr div.magnify a { + /* @embed */ + background-image: url(images/magnify-clip-ltr.png); +} + +/* @noflip */ +.mw-content-rtl .thumbcaption { + text-align: right; +} + +/* @noflip */ +.mw-content-rtl .magnify { + float: left; + margin-left: 0; + margin-right: 3px; +} + +/* @noflip */ +.mw-content-rtl div.magnify a { + /* @embed */ + background-image: url(images/magnify-clip-rtl.png); +} + +/* @noflip */ +div.tright { + margin: .5em 0 1.3em 1.4em; +} + +/* @noflip */ +div.tleft { + margin: .5em 1.4em 1.3em 0; +} diff --git a/resources/src/mediawiki.skinning/elements.css b/resources/src/mediawiki.skinning/elements.css new file mode 100644 index 0000000000..392a2a6622 --- /dev/null +++ b/resources/src/mediawiki.skinning/elements.css @@ -0,0 +1,273 @@ +/** + * MediaWiki style sheet for general styles on basic content elements + * + * Styles for basic elements: links, lists, etc... + * + * This style sheet is used by the Monobook and Vector skins. + */ + +/* Links */ +a { + text-decoration: none; + color: #0645ad; + background: none; +} + +a:visited { + color: #0b0080; +} + +a:active { + color: #faa700; +} + +a:hover, a:focus { + text-decoration: underline; +} + +a.stub { + color: #772233; +} + +a.new, #p-personal a.new { + color: #ba0000; +} + +a.new:visited, #p-personal a.new:visited { + color: #a55858; +} + +/* Interwiki Styling */ +.mw-body a.extiw, +.mw-body a.extiw:active { + color: #36b; +} + +.mw-body a.extiw:visited { + color: #636; +} + +.mw-body a.extiw:active { + color: #b63; +} + +/* External links */ +.mw-body a.external { + color: #36b; +} + +.mw-body a.external:visited { + color: #636; /* bug 3112 */ +} + +.mw-body a.external:active { + color: #b63; +} + +/* Inline Elements */ +img { + border: none; + vertical-align: middle; +} + +hr { + height: 1px; + color: #aaa; + background-color: #aaa; + border: 0; + margin: .2em 0; +} + +/* Structural Elements */ +h1, +h2, +h3, +h4, +h5, +h6 { + color: black; + background: none; + font-weight: normal; + margin: 0; + overflow: hidden; + padding-top: .5em; + padding-bottom: .17em; + border-bottom: 1px solid #aaa; +} + +h1 { + font-size: 188%; +} + +h2 { + font-size: 150%; +} + +h3, +h4, +h5, +h6 { + border-bottom: none; + font-weight: bold; +} + +h3 { + font-size: 132%; +} + +h4 { + font-size: 116%; +} + +h5 { + font-size: 108%; +} + +h6 { + font-size: 100%; +} + +/* Some space under the headers in the content area */ +h1, +h2 { + margin-bottom: .6em; +} + +h3, +h4, +h5 { + margin-bottom: .3em; +} + +p { + margin: .4em 0 .5em 0; + line-height: 1.5em; +} + +p img { + margin: 0; +} + +ul { + line-height: 1.5em; + list-style-type: square; + margin: .3em 0 0 1.6em; + padding: 0; +} + +ol { + line-height: 1.5em; + margin: .3em 0 0 3.2em; + padding: 0; + list-style-image: none; +} + +li { + margin-bottom: .1em; +} + +dt { + font-weight: bold; + margin-bottom: .1em; +} + +dl { + margin-top: .2em; + margin-bottom: .5em; +} + +dd { + line-height: 1.5em; + margin-left: 1.6em; + margin-bottom: .1em; +} + +/* IE 6 and 7 lack support for quotes aroud the element ('::before' and '::after' + pseudoelements, 'quotes' property). Let's italicize it instead (using the star hack). */ +q { + *font-style: italic; +} + +pre, code, tt, kbd, samp, .mw-code { + /* + * Some browsers will render the monospace text too small, namely Firefox, Chrome and Safari. + * Specifying any valid, second value will trigger correct behavior without forcing a different font. + */ + font-family: monospace, Courier; +} + +code { + color: black; + background-color: #f9f9f9; + border: 1px solid #ddd; + border-radius: 2px; + padding: 1px 4px; +} + +pre, .mw-code { + color: black; + background-color: #f9f9f9; + border: 1px solid #ddd; + padding: 1em; +} + +/* Tables */ +table { + font-size: 100%; +} + +/* Forms */ +fieldset { + border: 1px solid #2f6fab; + margin: 1em 0 1em 0; + padding: 0 1em 1em; + line-height: 1.5em; +} + +fieldset.nested { + margin: 0 0 0.5em 0; + padding: 0 0.5em 0.5em; +} + +legend { + padding: .5em; + font-size: 95%; +} + +form { + border: none; + margin: 0; +} + +textarea { + width: 100%; + padding: .1em; + display: block; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +select { + vertical-align: top; +} + +/* Emulate Center */ +.center { + width: 100%; + text-align: center; +} + +*.center * { + margin-left: auto; + margin-right: auto; +} + +/* Small for tables and similar */ +.small { + font-size: 94%; +} + +table.small { + font-size: 100%; +} diff --git a/resources/src/mediawiki.skinning/images/magnify-clip-ltr.png b/resources/src/mediawiki.skinning/images/magnify-clip-ltr.png new file mode 100644 index 0000000000..00a9cee11b Binary files /dev/null and b/resources/src/mediawiki.skinning/images/magnify-clip-ltr.png differ diff --git a/resources/src/mediawiki.skinning/images/magnify-clip-rtl.png b/resources/src/mediawiki.skinning/images/magnify-clip-rtl.png new file mode 100644 index 0000000000..ff85c077d8 Binary files /dev/null and b/resources/src/mediawiki.skinning/images/magnify-clip-rtl.png differ diff --git a/resources/src/mediawiki.skinning/interface.css b/resources/src/mediawiki.skinning/interface.css new file mode 100644 index 0000000000..733fd11d1f --- /dev/null +++ b/resources/src/mediawiki.skinning/interface.css @@ -0,0 +1,71 @@ +/** + * MediaWiki style sheet for common core styles on interfaces + * + * Styles for the Monobook/Vector pattern of laying out common interfaces. + * These ids/classes are not built into the system, + * they are outputted by the actual MonoBook/Vector code by convention. + */ + +/* Categories */ +.catlinks { + border: 1px solid #aaa; + background-color: #f9f9f9; + padding: 5px; + margin-top: 1em; + clear: both; +} + +/* User Message */ +.usermessage { + background-color: #ffce7b; + border: 1px solid #ffa500; + color: black; + font-weight: bold; + margin: 2em 0 1em; + padding: .5em 1em; + vertical-align: middle; +} + +/* Site Notice (includes notices from CentralNotice extension) */ +#siteNotice { + position: relative; + text-align: center; + margin: 0; +} + +#localNotice { + margin-bottom: 0.9em; +} + +/* First h1 */ +.firstHeading, +#firstHeading { + margin-bottom: .1em; + /* These two rules hack around bug 2013 (fix for more limited bug 11325). + * When bug 2013 is fixed properly, they should be removed. */ + line-height: 1.2em; + padding-bottom: 0; +} + +/* Sub-navigation */ +#siteSub { + display: none; +} + +#jump-to-nav { + /* Negate #contentSub's margin and replicate it so that the jump to links don't affect the spacing */ + margin-top: -1.4em; + margin-bottom: 1.4em; +} + +#contentSub, #contentSub2 { + font-size: 84%; + line-height: 1.2em; + margin: 0 0 1.4em 1em; + color: #545454; + width: auto; +} + +span.subpages { + display: block; +} diff --git a/skins/common/commonContent.css b/skins/common/commonContent.css deleted file mode 100644 index 622afe6888..0000000000 --- a/skins/common/commonContent.css +++ /dev/null @@ -1,232 +0,0 @@ -/** - * MediaWiki style sheet for general styles on complex content - * - * Styles for complex things which are a standard part of page content - * (ie: the CSS classing built into the system), like the TOC. - */ - -/* Table of Contents */ -#toc, -.toc, -.mw-warning { - border: 1px solid #aaa; - background-color: #f9f9f9; - padding: 5px; - font-size: 95%; -} - -/** - * We want to display the ToC element with intrinsic width in block mode. The fit-content - * value for width is however not supported by large groups of browsers. - * - * We use display:table. Even though it should only contain other table-* display - * elements, there are no known problems with using this. - * - * Because IE < 8, FF 2 and other older browsers don't support display:table, we fallback to - * using inline-block mode, which features at least intrinsic width, but won't clear preceding - * inline elements. In practice inline elements surrounding the TOC are uncommon enough that - * this is an acceptable sacrifice. - */ -#toc, -.toc { - display: -moz-inline-block; - display: inline-block; - display: table; - - /* IE7 and earlier */ - zoom: 1; - *display: inline; - - padding: 7px; -} - -/* CSS for backwards-compatibility with cached page renders and creative uses in wikitext */ -table#toc, -table.toc { - border-collapse: collapse; -} - -/* Remove additional paddings inside table-cells that are not present in
s */ -table#toc td, -table.toc td { - padding: 0; -} - -#toc h2, -.toc h2 { - display: inline; - border: none; - padding: 0; - font-size: 100%; - font-weight: bold; -} - -#toc #toctitle, -.toc #toctitle, -#toc .toctitle, -.toc .toctitle { - text-align: center; -} - -#toc ul, -.toc ul { - list-style-type: none; - list-style-image: none; - margin-left: 0; - padding: 0; - text-align: left; -} - -#toc ul ul, -.toc ul ul { - margin: 0 0 0 2em; -} - -#toc .toctoggle, -.toc .toctoggle { - font-size: 94%; -} - -.toccolours { - border: 1px solid #aaa; - background-color: #f9f9f9; - padding: 5px; - font-size: 95%; -} - -/* Warning */ -.mw-warning { - margin-left: 50px; - margin-right: 50px; - text-align: center; -} - -/* Images */ -/* @noflip */div.floatright, table.floatright { - margin: 0 0 .5em .5em; - border: 0; -} - -div.floatright p { - font-style: italic; -} - -/* @noflip */div.floatleft, table.floatleft { - margin: 0 .5em .5em 0; - border: 0; -} - -div.floatleft p { - font-style: italic; -} - -/* Thumbnails */ -div.thumb { - margin-bottom: .5em; - width: auto; - background-color: transparent; -} - -div.thumbinner { - border: 1px solid #ccc; - padding: 3px; - background-color: #f9f9f9; - font-size: 94%; - text-align: center; - overflow: hidden; -} - -html .thumbimage { - border: 1px solid #ccc; -} - -html .thumbcaption { - border: none; - line-height: 1.4em; - padding: 3px; - font-size: 94%; - /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */ - text-align: left; -} - -div.magnify { - /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */ - float: right; - margin-left: 3px; -} - -div.magnify a { - display: block; - /* Hide the text… */ - text-indent: 15px; - white-space: nowrap; - overflow: hidden; - /* …and replace it with the image */ - width: 15px; - height: 11px; - /* Default styles when there's no .mw-content-ltr or .mw-content-rtl, overridden below */ - /* @embed */ - background: url(images/magnify-clip-ltr.png) center center no-repeat; - /* Don't annoy people who copy-paste everything too much */ - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; -} - -/* Temporary WMF deployment hack, to be removed before 1.24 release */ -div.magnify img { - display: none; -} - -img.thumbborder { - border: 1px solid #dddddd; -} - -/* Directionality-specific styles for thumbnails - their positioning depends on content language */ - -/* @noflip */ -.mw-content-ltr .thumbcaption { - text-align: left; -} - -/* @noflip */ -.mw-content-ltr .magnify { - float: right; - margin-left: 3px; - margin-right: 0; -} - -/* @noflip */ -.mw-content-ltr div.magnify a { - /* @embed */ - background-image: url(images/magnify-clip-ltr.png); -} - -/* @noflip */ -.mw-content-rtl .thumbcaption { - text-align: right; -} - -/* @noflip */ -.mw-content-rtl .magnify { - float: left; - margin-left: 0; - margin-right: 3px; -} - -/* @noflip */ -.mw-content-rtl div.magnify a { - /* @embed */ - background-image: url(images/magnify-clip-rtl.png); -} - -/* @noflip */ -div.tright { - margin: .5em 0 1.3em 1.4em; -} - -/* @noflip */ -div.tleft { - margin: .5em 1.4em 1.3em 0; -} diff --git a/skins/common/commonElements.css b/skins/common/commonElements.css deleted file mode 100644 index 392a2a6622..0000000000 --- a/skins/common/commonElements.css +++ /dev/null @@ -1,273 +0,0 @@ -/** - * MediaWiki style sheet for general styles on basic content elements - * - * Styles for basic elements: links, lists, etc... - * - * This style sheet is used by the Monobook and Vector skins. - */ - -/* Links */ -a { - text-decoration: none; - color: #0645ad; - background: none; -} - -a:visited { - color: #0b0080; -} - -a:active { - color: #faa700; -} - -a:hover, a:focus { - text-decoration: underline; -} - -a.stub { - color: #772233; -} - -a.new, #p-personal a.new { - color: #ba0000; -} - -a.new:visited, #p-personal a.new:visited { - color: #a55858; -} - -/* Interwiki Styling */ -.mw-body a.extiw, -.mw-body a.extiw:active { - color: #36b; -} - -.mw-body a.extiw:visited { - color: #636; -} - -.mw-body a.extiw:active { - color: #b63; -} - -/* External links */ -.mw-body a.external { - color: #36b; -} - -.mw-body a.external:visited { - color: #636; /* bug 3112 */ -} - -.mw-body a.external:active { - color: #b63; -} - -/* Inline Elements */ -img { - border: none; - vertical-align: middle; -} - -hr { - height: 1px; - color: #aaa; - background-color: #aaa; - border: 0; - margin: .2em 0; -} - -/* Structural Elements */ -h1, -h2, -h3, -h4, -h5, -h6 { - color: black; - background: none; - font-weight: normal; - margin: 0; - overflow: hidden; - padding-top: .5em; - padding-bottom: .17em; - border-bottom: 1px solid #aaa; -} - -h1 { - font-size: 188%; -} - -h2 { - font-size: 150%; -} - -h3, -h4, -h5, -h6 { - border-bottom: none; - font-weight: bold; -} - -h3 { - font-size: 132%; -} - -h4 { - font-size: 116%; -} - -h5 { - font-size: 108%; -} - -h6 { - font-size: 100%; -} - -/* Some space under the headers in the content area */ -h1, -h2 { - margin-bottom: .6em; -} - -h3, -h4, -h5 { - margin-bottom: .3em; -} - -p { - margin: .4em 0 .5em 0; - line-height: 1.5em; -} - -p img { - margin: 0; -} - -ul { - line-height: 1.5em; - list-style-type: square; - margin: .3em 0 0 1.6em; - padding: 0; -} - -ol { - line-height: 1.5em; - margin: .3em 0 0 3.2em; - padding: 0; - list-style-image: none; -} - -li { - margin-bottom: .1em; -} - -dt { - font-weight: bold; - margin-bottom: .1em; -} - -dl { - margin-top: .2em; - margin-bottom: .5em; -} - -dd { - line-height: 1.5em; - margin-left: 1.6em; - margin-bottom: .1em; -} - -/* IE 6 and 7 lack support for quotes aroud the element ('::before' and '::after' - pseudoelements, 'quotes' property). Let's italicize it instead (using the star hack). */ -q { - *font-style: italic; -} - -pre, code, tt, kbd, samp, .mw-code { - /* - * Some browsers will render the monospace text too small, namely Firefox, Chrome and Safari. - * Specifying any valid, second value will trigger correct behavior without forcing a different font. - */ - font-family: monospace, Courier; -} - -code { - color: black; - background-color: #f9f9f9; - border: 1px solid #ddd; - border-radius: 2px; - padding: 1px 4px; -} - -pre, .mw-code { - color: black; - background-color: #f9f9f9; - border: 1px solid #ddd; - padding: 1em; -} - -/* Tables */ -table { - font-size: 100%; -} - -/* Forms */ -fieldset { - border: 1px solid #2f6fab; - margin: 1em 0 1em 0; - padding: 0 1em 1em; - line-height: 1.5em; -} - -fieldset.nested { - margin: 0 0 0.5em 0; - padding: 0 0.5em 0.5em; -} - -legend { - padding: .5em; - font-size: 95%; -} - -form { - border: none; - margin: 0; -} - -textarea { - width: 100%; - padding: .1em; - display: block; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - box-sizing: border-box; -} - -select { - vertical-align: top; -} - -/* Emulate Center */ -.center { - width: 100%; - text-align: center; -} - -*.center * { - margin-left: auto; - margin-right: auto; -} - -/* Small for tables and similar */ -.small { - font-size: 94%; -} - -table.small { - font-size: 100%; -} diff --git a/skins/common/commonInterface.css b/skins/common/commonInterface.css deleted file mode 100644 index 733fd11d1f..0000000000 --- a/skins/common/commonInterface.css +++ /dev/null @@ -1,71 +0,0 @@ -/** - * MediaWiki style sheet for common core styles on interfaces - * - * Styles for the Monobook/Vector pattern of laying out common interfaces. - * These ids/classes are not built into the system, - * they are outputted by the actual MonoBook/Vector code by convention. - */ - -/* Categories */ -.catlinks { - border: 1px solid #aaa; - background-color: #f9f9f9; - padding: 5px; - margin-top: 1em; - clear: both; -} - -/* User Message */ -.usermessage { - background-color: #ffce7b; - border: 1px solid #ffa500; - color: black; - font-weight: bold; - margin: 2em 0 1em; - padding: .5em 1em; - vertical-align: middle; -} - -/* Site Notice (includes notices from CentralNotice extension) */ -#siteNotice { - position: relative; - text-align: center; - margin: 0; -} - -#localNotice { - margin-bottom: 0.9em; -} - -/* First h1 */ -.firstHeading, -#firstHeading { - margin-bottom: .1em; - /* These two rules hack around bug 2013 (fix for more limited bug 11325). - * When bug 2013 is fixed properly, they should be removed. */ - line-height: 1.2em; - padding-bottom: 0; -} - -/* Sub-navigation */ -#siteSub { - display: none; -} - -#jump-to-nav { - /* Negate #contentSub's margin and replicate it so that the jump to links don't affect the spacing */ - margin-top: -1.4em; - margin-bottom: 1.4em; -} - -#contentSub, #contentSub2 { - font-size: 84%; - line-height: 1.2em; - margin: 0 0 1.4em 1em; - color: #545454; - width: auto; -} - -span.subpages { - display: block; -} diff --git a/skins/common/images/magnify-clip-ltr.png b/skins/common/images/magnify-clip-ltr.png deleted file mode 100644 index 00a9cee11b..0000000000 Binary files a/skins/common/images/magnify-clip-ltr.png and /dev/null differ