summaryrefslogtreecommitdiff
path: root/skins/common
diff options
context:
space:
mode:
Diffstat (limited to 'skins/common')
-rw-r--r--skins/common/IE80Fixes.css2
-rw-r--r--skins/common/IEFixes.js5
-rw-r--r--skins/common/ajax.js4
-rw-r--r--skins/common/commonContent.css122
-rw-r--r--skins/common/commonElements.css251
-rw-r--r--skins/common/commonInterface.css64
-rw-r--r--skins/common/commonPrint.css113
-rw-r--r--skins/common/config-cc.css55
-rw-r--r--skins/common/config.css3
-rw-r--r--skins/common/config.js4
-rw-r--r--skins/common/images/add.pngbin3222 -> 555 bytes
-rw-r--r--skins/common/images/cc-0.pngbin1124 -> 1103 bytes
-rw-r--r--skins/common/images/cc-by.pngbin4739 -> 4063 bytes
-rw-r--r--skins/common/images/closewindow19x19.pngbin0 -> 3357 bytes
-rw-r--r--skins/common/images/critical-32.pngbin1914 -> 1892 bytes
-rw-r--r--skins/common/images/sort_both.gifbin1184 -> 0 bytes
-rw-r--r--skins/common/images/sort_down.gifbin464 -> 0 bytes
-rw-r--r--skins/common/images/sort_up.gifbin466 -> 0 bytes
-rw-r--r--skins/common/mwsuggest.js14
-rw-r--r--skins/common/oldshared.css20
-rw-r--r--skins/common/preview.js4
-rw-r--r--skins/common/protect.js26
-rw-r--r--skins/common/shared.css512
-rw-r--r--skins/common/upload.js77
-rw-r--r--skins/common/wikibits.js48
-rw-r--r--skins/common/wikiprintable.css43
-rw-r--r--skins/common/wikistandard.css10
27 files changed, 1017 insertions, 360 deletions
diff --git a/skins/common/IE80Fixes.css b/skins/common/IE80Fixes.css
index b6360f60..6e5cb8a4 100644
--- a/skins/common/IE80Fixes.css
+++ b/skins/common/IE80Fixes.css
@@ -1,5 +1,5 @@
/**
- * Fixes textarea scrolling bug (bug #19334). The bug only occurs when a
+ * Fixes textarea scrolling bug (bug #19334). The bug only occurs when a
* percentage width is given, so instead of width: 100%, use min-width: 100%;
* max-width: 100%. We also need to give a fixed width for the actual width
* property for the hack to work, although the actual value (500px here) ends
diff --git a/skins/common/IEFixes.js b/skins/common/IEFixes.js
index 7f3b9c0f..dd999ed4 100644
--- a/skins/common/IEFixes.js
+++ b/skins/common/IEFixes.js
@@ -63,6 +63,11 @@ window.fixalpha = function( logoId ) {
}
};
+if ( isMSIE55 ) {
+ // ondomready
+ $( fixalpha );
+}
+
// fix ie6 disappering float bug
window.relativeforfloats = function() {
var bc = document.getElementById( 'bodyContent' );
diff --git a/skins/common/ajax.js b/skins/common/ajax.js
index 2a93373f..121f9d12 100644
--- a/skins/common/ajax.js
+++ b/skins/common/ajax.js
@@ -84,9 +84,7 @@ window.sajax_do_call = function(func_name, args, target) {
var i, x, n;
var uri;
var post_data;
- uri = wgServer +
- ( ( wgScript == null ) ? ( wgScriptPath + '/index.php' ) : wgScript ) +
- '?action=ajax';
+ uri = mw.util.wikiScript() + '?action=ajax';
if ( sajax_request_type == 'GET' ) {
if ( uri.indexOf( '?' ) == -1 ) {
uri = uri + '?rs=' + encodeURIComponent( func_name );
diff --git a/skins/common/commonContent.css b/skins/common/commonContent.css
new file mode 100644
index 00000000..61799187
--- /dev/null
+++ b/skins/common/commonContent.css
@@ -0,0 +1,122 @@
+/*
+** MediaWiki style sheet for general styles on complex content
+*/
+
+/* Table of Contents */
+#toc,
+.toc,
+.mw-warning {
+ border: 1px solid #aaa;
+ background-color: #f9f9f9;
+ padding: 5px;
+ font-size: 95%;
+}
+#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 !important;
+ background-color: #f9f9f9;
+ font-size: 94%;
+ text-align: center;
+ overflow: hidden;
+}
+html .thumbimage {
+ border: 1px solid #ccc;
+}
+html .thumbcaption {
+ border: none;
+ text-align: left;
+ line-height: 1.4em;
+ padding: 3px !important;
+ font-size: 94%;
+}
+div.magnify {
+ float: right;
+ border: none !important;
+ background: none !important;
+}
+div.magnify a, div.magnify img {
+ display: block;
+ border: none !important;
+ background: none !important;
+}
+/* @noflip */div.tright {
+ margin: .5em 0 1.3em 1.4em;
+}
+/* @noflip */div.tleft {
+ margin: .5em 1.4em 1.3em 0;
+}
+img.thumbborder {
+ border: 1px solid #dddddd;
+}
+
+/**
+ * Basic styles for the user login and create account forms
+ */
+#userlogin, #userloginForm {
+ border: solid 1px #cccccc;
+ padding: 1.2em;
+ margin: .5em;
+ float: left;
+}
diff --git a/skins/common/commonElements.css b/skins/common/commonElements.css
new file mode 100644
index 00000000..5590bfa1
--- /dev/null
+++ b/skins/common/commonElements.css
@@ -0,0 +1,251 @@
+/*
+** MediaWiki style sheet for general styles on basic content elements
+*/
+
+/* 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;
+ width: auto;
+}
+h1 {
+ font-size: 188%;
+}
+h1 .editsection {
+ font-size: 53%;
+}
+h2 {
+ font-size: 150%;
+}
+h2 .editsection {
+ font-size: 67%;
+}
+h3,
+h4,
+h5,
+h6 {
+ border-bottom: none;
+ font-weight: bold;
+}
+h3 {
+ font-size: 132%;
+}
+h3 .editsection {
+ font-size: 76%;
+ font-weight: normal;
+}
+h4 {
+ font-size: 116%;
+}
+h4 .editsection {
+ font-size: 86%;
+ font-weight: normal; }
+h5 {
+ font-size: 100%;
+}
+h5 .editsection {
+ font-weight: normal;
+}
+h6 {
+ font-size: 80%;
+}
+h6 .editsection {
+ font-size: 125%;
+ font-weight: normal;
+}
+
+/* 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;
+}
+
+q {
+ font-family: Times, "Times New Roman", serif;
+ font-style: italic;
+}
+/* Disabled for now
+blockquote {
+ font-family: Times, "Times New Roman", serif;
+ font-style: italic;
+}*/
+pre, code, tt, kbd, samp {
+ /*
+ * Some browsers will render the monospace text too small, namely Firefox, Chrome and Safari.
+ * Specifying any valid, second value will trigger correct behaviour without forcing a different font.
+ */
+ font-family: monospace, Courier;
+}
+code {
+ background-color: #f9f9f9;
+}
+pre {
+ padding: 1em;
+ border: 1px dashed #2f6fab;
+ color: black;
+ background-color: #f9f9f9;
+}
+
+/* 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;
+}
+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
new file mode 100644
index 00000000..60d6436b
--- /dev/null
+++ b/skins/common/commonInterface.css
@@ -0,0 +1,64 @@
+/*
+** MediaWiki style sheet for common core styles on interfaces
+*/
+
+/* 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: #7d7d7d;
+ width: auto;
+}
+span.subpages {
+ display: block;
+}
+
diff --git a/skins/common/commonPrint.css b/skins/common/commonPrint.css
index 58703a33..4efabee3 100644
--- a/skins/common/commonPrint.css
+++ b/skins/common/commonPrint.css
@@ -1,10 +1,10 @@
-/*
-** MediaWiki Print style sheet for CSS2-capable browsers.
-** Copyright Gabriel Wicke, http://www.aulinx.de/
-**
-** Derived from the plone (http://plone.org/) styles
-** Copyright Alexander Limi
-*/
+/**
+ * MediaWiki Print style sheet for CSS2-capable browsers.
+ * Copyright Gabriel Wicke, http://www.aulinx.de/
+ *
+ * Derived from the plone (http://plone.org/) styles
+ * Copyright Alexander Limi
+ */
/* Thanks to A List Apart (http://alistapart.com/) for useful extras */
a.stub,
@@ -18,12 +18,6 @@ a.new {
background-color: #f9f9f9;
padding: 5px;
}
-.tocindent {
- margin-left: 2em;
-}
-.tocline {
- margin-bottom: 0px;
-}
/* images */
div.floatright {
@@ -105,15 +99,15 @@ table.rimage {
}
body {
- background: White;
- /*font-size: 11pt !important;*/
- color: Black;
+ background: white;
+ color: black;
margin: 0;
padding: 0;
}
.noprint,
div#jump-to-nav,
+.mw-jump,
div.top,
div#column-one,
#colophon,
@@ -125,9 +119,13 @@ div#f-copyrightico,
li#viewcount,
li#about,
li#disclaimer,
+li#mobileview,
li#privacy,
#footer-places,
-#mw-hidden-catlinks {
+.mw-hidden-catlinks,
+tr.mw-metadata-show-hide-extended,
+span.mw-filepage-other-resolutions,
+#filetoc {
/* Hides all the elements irrelevant for printing */
display: none;
}
@@ -138,9 +136,9 @@ ul {
#content {
background: none;
- border: none ! important;
- padding: 0 ! important;
- margin: 0 ! important;
+ border: none !important;
+ padding: 0 !important;
+ margin: 0 !important;
direction: ltr;
}
#footer {
@@ -155,15 +153,11 @@ h1, h2, h3, h4, h5, h6 {
font-weight: bold;
}
-p, .documentDescription {
- margin: 1em 0 ! important;
+p {
+ margin: 1em 0;
line-height: 1.2em;
}
-.tocindent p {
- margin: 0 0 0 0 ! important;
-}
-
pre {
border: 1pt dashed black;
white-space: pre;
@@ -181,7 +175,7 @@ table.listing td {
}
a {
- color: Black !important;
+ color: black !important;
background: none !important;
padding: 0 !important;
}
@@ -192,7 +186,8 @@ a:link, a:visited {
text-decoration: underline;
}
-#content a.external.text:after, #content a.external.autonumber:after {
+#content a.external.text:after,
+#content a.external.autonumber:after {
/* Expand URLs for printing */
content: " (" attr(href) ") ";
}
@@ -215,16 +210,23 @@ a:link, a:visited {
padding: 1em;
margin: 0 !important;
}
+
/* MSIE/Win doesn't understand 'inherit' */
-a, a.external, a.new, a.stub {
- color: black ! important;
- text-decoration: none ! important;
+a,
+a.external,
+a.new,
+a.stub {
+ color: black !important;
+ text-decoration: none !important;
}
/* Continue ... */
-a, a.external, a.new, a.stub {
- color: inherit ! important;
- text-decoration: inherit ! important;
+a,
+a.external,
+a.new,
+a.stub {
+ color: inherit !important;
+ text-decoration: inherit !important;
}
img {
@@ -233,9 +235,13 @@ img {
}
/* math */
-span.texhtml { font-family: serif; }
+span.texhtml {
+ font-family: serif;
+}
-#siteNotice { display: none; }
+#siteNotice {
+ display: none;
+}
/* Galleries (see shared.css for more info) */
li.gallerybox {
@@ -275,9 +281,10 @@ div.gallerytext {
padding: 2px 4px;
word-wrap: break-word;
}
-/*
-** Diff rendering
-*/
+
+/**
+ * Diff rendering
+ */
table.diff {
background: white;
}
@@ -307,31 +314,37 @@ td.diff-context {
text-decoration: underline;
}
-/*
-** Table rendering
-** As on shared.css but with white background.
-*/
-table.wikitable {
+/**
+ * Table rendering
+ * As on shared.css but with white background.
+ */
+table.wikitable,
+table.mw_metadata {
margin: 1em 1em 1em 0;
border: 1px #aaa solid;
background: white;
border-collapse: collapse;
}
-.wikitable th, .wikitable td {
+table.wikitable > tr > th, table.wikitable > tr > td,
+table.wikitable > * > tr > th, table.wikitable > * > tr > td,
+.mw_metadata th, .mw_metadata td {
border: 1px #aaa solid;
padding: 0.2em;
}
-.wikitable th {
+table.wikitable > tr > th,
+table.wikitable > * > tr > th,
+.mw_metadata th {
text-align: center;
background: white;
font-weight: bold;
}
-.wikitable caption {
+table.wikitable > caption,
+.mw_metadata caption {
font-weight: bold;
}
a.sortheader {
- margin: 0px 0.3em;
+ margin: 0 0.3em;
}
/* Some pagination options */
@@ -351,7 +364,8 @@ p {
*/
.catlinks ul {
display: inline;
- margin: 0px;
+ margin: 0;
+ padding: 0;
list-style: none;
list-style-type: none;
list-style-image: none;
@@ -372,4 +386,3 @@ p {
padding-left: .2em;
border-left: none;
}
-
diff --git a/skins/common/config-cc.css b/skins/common/config-cc.css
index c629ad3f..d81218ec 100644
--- a/skins/common/config-cc.css
+++ b/skins/common/config-cc.css
@@ -3,54 +3,55 @@
*/
body {
- margin:0px;
- background:#eee;
- font-family:verdana;
- color:#333;
+ margin: 0;
+ background: #eee;
+ font-family: Verdana;
+ color: #333;
}
#main {
- border:1px solid #D0D0D0;
- background:#fff;
+ border: 1px solid #D0D0D0;
+ background: #fff;
margin: 0.5em;
}
-/* Looks like you have to specify the width of #menu
-or IE5 Mac stretches it all the way across the div, and
-Opera streches it half way. */
+/**
+ * Looks like you have to specify the width of #menu
+ * or IE5 Mac stretches it all the way across the div, and
+ * Opera streches it half way.
+ */
#main #menu {
- border-left:1px dotted #ccc;
- /* border-bottom:1px solid #000;*/
- float:right;
- width:230px;
- background:white;
- margin:0px 0px 10px 10px;
+ border-left: 1px dotted #ccc;
+ float: right;
+ width: 230px;
+ background: white;
+ margin: 0 0 10px 10px;
}
-td, h3, p,h1,pre {
- margin:0px 20px 20px 20px;
- font-size:11px;
- line-height:140%;
+td, h3, p, h1, pre {
+ margin: 0 20px 20px 20px;
+ font-size: 11px;
+ line-height: 140%;
}
.header {
padding-left: 10px;
- padding-top:10px;
+ padding-top: 10px;
}
.nav {
- padding-left:10px;
- padding-bottom:10px;
- font-size:11px;
- margin-bottom:16px;
+ padding-left: 10px;
+ padding-bottom: 10px;
+ font-size: 11px;
+ margin-bottom: 16px;
}
-#menu p {
- font-size:11px;
+#menu p {
+ font-size: 11px;
}
.dent {
- margin-left:64px;
+ margin-left: 64px;
}
diff --git a/skins/common/config.css b/skins/common/config.css
index 434f27d5..aa982d32 100644
--- a/skins/common/config.css
+++ b/skins/common/config.css
@@ -133,9 +133,6 @@
padding: 0 !important;
}
-#config-memcachewrapper {
- display: none;
-}
.config-download-link {
font-size: 1.8em;
margin-left: 2em;
diff --git a/skins/common/config.js b/skins/common/config.js
index e5af7d14..23f7302c 100644
--- a/skins/common/config.js
+++ b/skins/common/config.js
@@ -67,9 +67,9 @@
$( '.enableForOther' ).click( function() {
var $textbox = $( '#' + $(this).attr( 'rel' ) );
if ( $(this).val() == 'other' ) { // FIXME: Ugh, this is ugly
- $textbox.removeAttr( 'readonly' ).closest( '.config-block' ).slideDown( 'fast' );
+ $textbox.removeProp( 'readonly' ).closest( '.config-block' ).slideDown( 'fast' );
} else {
- $textbox.attr( 'readonly', 'readonly' ).closest( '.config-block' ).slideUp( 'fast' );
+ $textbox.prop( 'readonly', true ).closest( '.config-block' ).slideUp( 'fast' );
}
} );
diff --git a/skins/common/images/add.png b/skins/common/images/add.png
index 3418db2c..f82f45db 100644
--- a/skins/common/images/add.png
+++ b/skins/common/images/add.png
Binary files differ
diff --git a/skins/common/images/cc-0.png b/skins/common/images/cc-0.png
index 59f27f30..18eb1773 100644
--- a/skins/common/images/cc-0.png
+++ b/skins/common/images/cc-0.png
Binary files differ
diff --git a/skins/common/images/cc-by.png b/skins/common/images/cc-by.png
index 822491ed..2658ee4d 100644
--- a/skins/common/images/cc-by.png
+++ b/skins/common/images/cc-by.png
Binary files differ
diff --git a/skins/common/images/closewindow19x19.png b/skins/common/images/closewindow19x19.png
new file mode 100644
index 00000000..762fd2a2
--- /dev/null
+++ b/skins/common/images/closewindow19x19.png
Binary files differ
diff --git a/skins/common/images/critical-32.png b/skins/common/images/critical-32.png
index 2bff7511..0b238c22 100644
--- a/skins/common/images/critical-32.png
+++ b/skins/common/images/critical-32.png
Binary files differ
diff --git a/skins/common/images/sort_both.gif b/skins/common/images/sort_both.gif
deleted file mode 100644
index 50ad15a0..00000000
--- a/skins/common/images/sort_both.gif
+++ /dev/null
Binary files differ
diff --git a/skins/common/images/sort_down.gif b/skins/common/images/sort_down.gif
deleted file mode 100644
index d97e8285..00000000
--- a/skins/common/images/sort_down.gif
+++ /dev/null
Binary files differ
diff --git a/skins/common/images/sort_up.gif b/skins/common/images/sort_up.gif
deleted file mode 100644
index 488cf279..00000000
--- a/skins/common/images/sort_up.gif
+++ /dev/null
Binary files differ
diff --git a/skins/common/mwsuggest.js b/skins/common/mwsuggest.js
index 6dbce050..dac59546 100644
--- a/skins/common/mwsuggest.js
+++ b/skins/common/mwsuggest.js
@@ -30,8 +30,8 @@ window.os_mouse_moved = false;
// delay between keypress and suggestion (in ms)
window.os_search_timeout = 250;
// these pairs of inputs/forms will be autoloaded at startup
-window.os_autoload_inputs = new Array('searchInput', 'searchInput2', 'powerSearchText', 'searchText');
-window.os_autoload_forms = new Array('searchform', 'searchform2', 'powersearch', 'search' );
+window.os_autoload_inputs = ['searchInput', 'searchInput2', 'powerSearchText', 'searchText'];
+window.os_autoload_forms = ['searchform', 'searchform2', 'powersearch', 'search'];
// if we stopped the service
window.os_is_stopped = false;
// max lines to show in suggest table
@@ -423,7 +423,7 @@ window.os_setupDatalist = function( r, results ) {
}
s.setAttribute( 'list', r.container );
- r.results = new Array();
+ r.results = [];
r.resultCount = results.length;
r.visible = true;
for ( i = 0; i < results.length; i++ ) {
@@ -436,7 +436,7 @@ window.os_setupDatalist = function( r, results ) {
};
/** Fetch namespaces from checkboxes or hidden fields in the search form,
- if none defined use wgSearchNamespaces global */
+ if none defined use wgSearchNamespaces */
window.os_getNamespaces = function( r ) {
var namespaces = '';
var elements = document.forms[r.searchform].elements;
@@ -455,7 +455,7 @@ window.os_getNamespaces = function( r ) {
}
}
if( namespaces == '' ) {
- namespaces = wgSearchNamespaces.join('|');
+ namespaces = mw.config.get( 'wgSearchNamespaces' ).join('|');
}
return namespaces;
};
@@ -478,7 +478,7 @@ window.os_delayedFetch = function() {
var query = os_timer.query;
os_timer = null;
var path = mw.config.get( 'wgMWSuggestTemplate' ).replace( "{namespaces}", os_getNamespaces( r ) )
- .replace( "{dbname}", wgDBname )
+ .replace( "{dbname}", mw.config.get( 'wgDBname' ) )
.replace( "{searchTerms}", os_encodeQuery( query ) );
// try to get from cache, if not fetch using ajax
@@ -643,7 +643,7 @@ window.os_createResultTable = function( r, results ) {
var c = document.getElementById( r.container );
var width = c.offsetWidth - os_operaWidthFix( c.offsetWidth );
var html = '<table class="os-suggest-results" id="' + r.resultTable + '" style="width: ' + width + 'px;">';
- r.results = new Array();
+ r.results = [];
r.resultCount = results.length;
for( i = 0; i < results.length; i++ ) {
var title = os_decodeValue( results[i] );
diff --git a/skins/common/oldshared.css b/skins/common/oldshared.css
index 4be14f37..84d42c9f 100644
--- a/skins/common/oldshared.css
+++ b/skins/common/oldshared.css
@@ -1,11 +1,12 @@
-/*
+/**
* oldshared.css
* This file contains CSS settings common to Wikistandard, Nostalgia and
* CologneBlue, the old pre-Monobook skins
*/
-/* For clarity, explicitly state some recommendations from <http://www.w3.org/
- TR/CSS21/sample.html> to make sure the editsection links scale right */
+/* For clarity, explicitly state some recommendations from
+ * http://www.w3.org/TR/CSS21/sample.html to make sure the editsection links scale right
+ */
h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
@@ -99,7 +100,8 @@ div.magnify {
border: none !important;
background: none !important;
}
-div.magnify a, div.magnify img {
+div.magnify a,
+div.magnify img {
display: block;
border: none !important;
background: none !important;
@@ -306,7 +308,8 @@ table.mw_metadata {
border: none;
border-collapse: collapse;
}
-table.mw_metadata td, table.mw_metadata th {
+table.mw_metadata td,
+table.mw_metadata th {
border: 1px solid #aaaaaa;
padding-left: 4px;
padding-right: 4px;
@@ -386,7 +389,9 @@ table.multipageimage td {
.TablePager {
border-collapse: collapse;
}
-.TablePager, .TablePager td, .TablePager th {
+.TablePager,
+.TablePager td,
+.TablePager th {
border: 0.15em solid #777777;
padding: 0 0.15em 0 0.15em;
}
@@ -400,7 +405,8 @@ table.multipageimage td {
background-color: #eeeeff;
}
-.imagelist td, .imagelist th {
+.imagelist td,
+.imagelist th {
white-space: nowrap;
}
.imagelist .TablePager_col_links {
diff --git a/skins/common/preview.js b/skins/common/preview.js
index 82b27bc1..9e76ca09 100644
--- a/skins/common/preview.js
+++ b/skins/common/preview.js
@@ -37,8 +37,8 @@
// with the content of the loaded page
var copyContent = page.find( copyElements[i] ).contents();
$(copyElements[i]).empty().append( copyContent );
- var newClasses = page.find( copyElements[i] ).attr('class');
- $(copyElements[i]).attr( 'class', newClasses );
+ var newClasses = page.find( copyElements[i] ).prop('class');
+ $(copyElements[i]).prop( 'class', newClasses );
}
$.each( copyElements, function(k,v) {
diff --git a/skins/common/protect.js b/skins/common/protect.js
index b77c2e06..a23c0cbd 100644
--- a/skins/common/protect.js
+++ b/skins/common/protect.js
@@ -77,16 +77,20 @@ window.ProtectionForm = {
},
/**
- * Is this protection level cascadeable?
- * @param level String
- *
- * @return boolean
- *
+ * Checks if a cerain protection level is cascadeable.
+ * @param level {String}
+ * @return {Boolean}
*/
'isCascadeableLevel': function( level ) {
- for (var k = 0; k < wgCascadeableLevels.length; k++) {
- if ( wgCascadeableLevels[k] == level ) {
- return true;
+ var cascadeLevels, len, i;
+
+ cascadeLevels = mw.config.get( 'wgCascadeableLevels' );
+ // cascadeLevels isn't defined on all pages
+ if ( cascadeLevels ) {
+ for ( i = 0, len = cascadeLevels.length; i < len; i += 1 ) {
+ if ( cascadeLevels[i] === level ) {
+ return true;
+ }
}
}
return false;
@@ -252,7 +256,7 @@ window.ProtectionForm = {
*/
'getLevelSelectors': function() {
var all = document.getElementsByTagName("select");
- var ours = new Array();
+ var ours = [];
for (var i = 0; i < all.length; i++) {
var element = all[i];
if (element.id.match(/^mwProtect-level-/)) {
@@ -281,7 +285,7 @@ window.ProtectionForm = {
*/
'getExpiryInputs': function() {
var all = document.getElementsByTagName("input");
- var ours = new Array();
+ var ours = [];
for (var i = 0; i < all.length; i++) {
var element = all[i];
if (element.name.match(/^mwProtect-expiry-/)) {
@@ -309,7 +313,7 @@ window.ProtectionForm = {
*/
'getExpirySelectors': function() {
var all = document.getElementsByTagName("select");
- var ours = new Array();
+ var ours = [];
for (var i = 0; i < all.length; i++) {
var element = all[i];
if (element.id.match(/^mwProtectExpirySelection-/)) {
diff --git a/skins/common/shared.css b/skins/common/shared.css
index 3612ee0f..824e3687 100644
--- a/skins/common/shared.css
+++ b/skins/common/shared.css
@@ -1,41 +1,86 @@
/**
- * CSS in this file is used by *all* skins (that have any CSS at all). Be
+ * CSS in this file is used by *all* skins (that have any CSS at all). Be
* careful what you put in here, since what looks good in one skin may not in
* another, but don't ignore the poor pre-Monobook users either.
*/
/* GENERAL CLASSES FOR DIRECTIONALITY SUPPORT */
-/* These classes should be used for text depending on the content direction.
-Content stuff like editsection, ul/ol and TOC depend on this. */
- /* @noflip */.mw-content-ltr { direction: ltr; }
-/* @noflip */.mw-content-rtl { direction: rtl; }
+
+/**
+ * These classes should be used for text depending on the content direction.
+ * Content stuff like editsection, ul/ol and TOC depend on this.
+ */
+.mw-content-ltr {
+ /* @noflip */
+ direction: ltr;
+}
+.mw-content-rtl {
+ /* @noflip */
+ direction: rtl;
+}
+
/* Most input fields should be in site direction */
-/* @noflip */.sitedir-ltr textarea, .sitedir-ltr input { direction: ltr; }
-/* @noflip */.sitedir-rtl textarea, .sitedir-rtl input { direction: rtl; }
+.sitedir-ltr textarea,
+.sitedir-ltr input {
+ /* @noflip */
+ direction: ltr;
+}
+.sitedir-rtl textarea,
+.sitedir-rtl input {
+ /* @noflip */
+ direction: rtl;
+}
+
/* Input types that should follow user direction, like buttons */
-input[type="submit"], input[type="button"], input[type="reset"], input[type="file"] { direction: ltr; }
+/* TODO: What about buttons in wikipage content ? */
+input[type="submit"],
+input[type="button"],
+input[type="reset"],
+input[type="file"] {
+ direction: ltr;
+}
+
/* Override default values */
-/* @noflip */textarea[dir="ltr"], input[dir="ltr"] { direction: ltr; }
-/* @noflip */textarea[dir="rtl"], input[dir="rtl"] { direction: rtl; }
+textarea[dir="ltr"],
+input[dir="ltr"] {
+ /* @noflip */
+ direction: ltr;
+}
+textarea[dir="rtl"],
+input[dir="rtl"] {
+ /* @noflip */
+ direction: rtl;
+}
/* Default style for semantic tags */
-abbr, acronym, .explain {
- border-bottom: 1px dotted black;
+abbr,
+acronym,
+.explain {
+ border-bottom: 1px dotted;
cursor: help;
}
/* Colored watchlist and recent changes numbers */
-.mw-plusminus-pos { color: #006400; } /* dark green */
-.mw-plusminus-neg { color: #8b0000; } /* dark red */
-.mw-plusminus-null { color: #aaa; } /* gray */
+.mw-plusminus-pos {
+ color: #006400; /* dark green */
+}
+.mw-plusminus-neg {
+ color: #8b0000; /* dark red */
+}
+.mw-plusminus-null {
+ color: #aaa; /* gray */
+}
-/* Links to redirects appear italicized on [[Special:AllPages]], [[Special:PrefixIndex]],
- [[Special:Watchlist/edit]] and in category listings */
-.allpagesredirect, .redirect-in-category, .watchlistredir {
+/**
+ * Links to redirects appear italicized on [[Special:AllPages]], [[Special:PrefixIndex]],
+ * [[Special:Watchlist/edit]] and in category listings.
+ */
+.allpagesredirect,
+.redirect-in-category,
+.watchlistredir {
font-style: italic;
}
-
/* Comment and username portions of RC entries */
span.comment {
font-style: italic;
@@ -50,15 +95,25 @@ span.changedby {
direction: ltr;
unicode-bidi: embed;
}
-img.tex { vertical-align: middle; }
-span.texhtml { font-family: serif; }
+img.tex {
+ vertical-align: middle;
+}
+span.texhtml {
+ font-family: serif;
+}
-/* add a bit of margin space between the preview and the toolbar */
-/* this replaces the ugly <p><br /></p> we used to insert into the page source */
-#wikiPreview.ontop { margin-bottom: 1em; }
+/**
+ * Add a bit of margin space between the preview and the toolbar.
+ * This replaces the ugly <p><br /></p> we used to insert into the page source
+ */
+#wikiPreview.ontop {
+ margin-bottom: 1em;
+}
/* Stop floats from intruding into edit area in previews */
-#editform, #toolbar, #wpTextbox1 {
+#editform,
+#toolbar,
+#wpTextbox1 {
clear: both;
}
#toolbar img {
@@ -77,8 +132,25 @@ div#mw-js-message {
margin-left: 5px;
}
/* Correct directionality when page dir is different from site/user dir */
-/* @noflip */.mw-content-ltr .editsection, .mw-content-rtl .mw-content-ltr .editsection { float: right; }
-/* @noflip */.mw-content-rtl .editsection, .mw-content-ltr .mw-content-rtl .editsection { float: left; }
+.mw-content-ltr .editsection,
+.mw-content-rtl .mw-content-ltr .editsection {
+ /* @noflip */
+ float: right;
+}
+.mw-content-rtl .editsection,
+.mw-content-ltr .mw-content-rtl .editsection {
+ /* @noflip */
+ float: left;
+}
+
+/**
+ * File description page
+ */
+
+div.mw-filepage-resolutioninfo {
+ font-size: smaller;
+}
+
/**
* File histories
*/
@@ -102,10 +174,21 @@ table.filehistory td.filehistory-selected {
font-weight: bold;
}
-/*
+/**
+ * Add a checkered background image on hover for file
+ * description pages. (bug 26470)
+ */
+.filehistory a img,
+#file img:hover {
+ /* @embed */
+ background: white url(images/Checker-16x16.png) repeat;
+}
+
+/**
* rev_deleted stuff
*/
-li span.deleted, span.history-deleted {
+li span.deleted,
+span.history-deleted {
text-decoration: line-through;
color: #888;
font-style: italic;
@@ -131,17 +214,31 @@ div.patrollink {
/**
* Forms
*/
-td.mw-label { text-align: right; }
-td.mw-input { text-align: left; }
-td.mw-submit { text-align: left; }
+td.mw-label {
+ text-align: right;
+}
+td.mw-input {
+ text-align: left;
+}
+td.mw-submit {
+ text-align: left;
+}
-td.mw-label { vertical-align: top; }
-.prefsection td.mw-label { width: 20%; }
-.prefsection table { width: 100%; }
-td.mw-submit { white-space: nowrap; }
+td.mw-label {
+ vertical-align: top;
+}
+.prefsection td.mw-label {
+ width: 20%;
+}
+.prefsection table {
+ width: 100%;
+}
+td.mw-submit {
+ white-space: nowrap;
+}
table.mw-htmlform-nolabel td.mw-label {
- width: 0 !important;
+ width: 1px;
}
tr.mw-htmlform-vertical-label td.mw-label {
@@ -151,7 +248,8 @@ tr.mw-htmlform-vertical-label td.mw-label {
.mw-htmlform-invalid-input td.mw-input input {
border-color: red;
}
-.mw-htmlform-multiselect-flatlist div.mw-htmlform-multiselect-item {
+
+.mw-htmlform-flatlist div.mw-htmlform-flatlist-item {
display: inline;
margin-right: 1em;
white-space: nowrap;
@@ -164,8 +262,12 @@ input#wpSummary {
/**
* Image captions
*/
-.thumbcaption { text-align: left; }
-.magnify { float: right; }
+.thumbcaption {
+ text-align: left;
+}
+.magnify {
+ float: right;
+}
/**
* Categories
@@ -177,56 +279,61 @@ input#wpSummary {
*/
text-align: left;
}
-#catlinks ul {
- display:inline;
- margin: 0px;
- padding: 0px;
+.catlinks ul {
+ display: inline;
+ margin: 0;
+ padding: 0;
list-style: none;
list-style-type: none;
list-style-image: none;
vertical-align: middle !ie;
}
-#catlinks li {
- display:inline-block;
- line-height: 1.35em;
- padding: 0 .7em;
+.catlinks li {
+ display: inline-block;
+ line-height: 1.25em;
border-left: 1px solid #AAA;
- margin: 0.3em 0;
+ margin: 0.125em 0;
+ padding: 0 0.5em;
zoom: 1;
- display:inline !ie;
+ display: inline !ie;
}
-#catlinks li:first-child {
- padding-left: .4em;
+.catlinks li:first-child {
+ padding-left: 0.25em;
border-left: none;
}
/**
* Hidden categories
*/
-.mw-hidden-cats-hidden { display: none; }
-.catlinks-allhidden { display: none; }
+.mw-hidden-cats-hidden {
+ display: none;
+}
+.catlinks-allhidden {
+ display: none;
+}
/* Convenience links to edit block, delete and protect reasons */
-p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
-p.mw-filedelete-editreasons, p.mw-delete-editreasons,
+p.mw-ipb-conveniencelinks,
+p.mw-protect-editreasons,
+p.mw-filedelete-editreasons,
+p.mw-delete-editreasons,
p.mw-revdel-editreasons {
font-size: 90%;
text-align: right;
}
-/*
+/**
* OpenSearch ajax suggestions
*/
.os-suggest {
overflow: auto;
overflow-x: hidden;
position: absolute;
- top: 0px;
- left: 0px;
- width: 0px;
+ top: 0;
+ left: 0;
+ width: 0;
background-color: white;
- background-color: Window;
border-style: solid;
border-color: #AAAAAA;
border-width: 1px;
@@ -242,12 +349,11 @@ table.os-suggest-results {
width: 100%;
}
-.os-suggest-result, .os-suggest-result-hl {
+.os-suggest-result,
+.os-suggest-result-hl {
white-space: nowrap;
background-color: white;
- background-color: Window;
color: black;
- color: WindowText;
padding: 2px;
}
.os-suggest-result-hl,
@@ -255,12 +361,6 @@ table.os-suggest-results {
background-color: #4C59A6;
color: white;
}
-.os-suggest-result-hl {
- /* System colors are misimplemented in Safari 3.0 and earlier,
- making highlighted text illegible... */
- background-color: Highlight;
- color: HighlightText;
-}
.os-suggest-toggle {
position: relative;
@@ -269,15 +369,18 @@ table.os-suggest-results {
}
.os-suggest-toggle-def {
position: absolute;
- top: 0px;
- left: 0px;
+ top: 0;
+ left: 0;
font-size: 65%;
visibility: hidden;
}
/* Page history styling */
-/* the auto-generated edit comments */
-.autocomment { color: gray; }
+
+/* The auto-generated edit comments */
+.autocomment {
+ color: gray;
+}
#pagehistory .history-user {
margin-left: 0.4em;
margin-right: 0.2em;
@@ -297,16 +400,19 @@ table.os-suggest-results {
float: right;
}
-/** Generic minor/bot/newpage styling */
-.newpage, .minor, .bot {
+/** Generic minor/bot/newpage styling (recent changes) */
+.newpage,
+.minoredit,
+.botedit {
font-weight: bold;
}
-#shared-image-dup, #shared-image-conflict {
+#shared-image-dup,
+#shared-image-conflict {
font-style: italic;
}
-/*
+/**
* Recreating deleted page warning
* Reupload file warning
* Page protection warning
@@ -332,7 +438,8 @@ input.mw-revdelundel-hidden {
visibility: hidden;
}
-td.mw-revdel-checkbox, th.mw-revdel-checkbox {
+td.mw-revdel-checkbox,
+th.mw-revdel-checkbox {
padding-right: 10px;
text-align: center;
}
@@ -340,7 +447,7 @@ td.mw-revdel-checkbox, th.mw-revdel-checkbox {
/* feed links */
a.feedlink {
/* @embed */
- background: url("images/feed-icon.png") center left no-repeat;
+ background: url(images/feed-icon.png) center left no-repeat;
padding-left: 16px;
}
@@ -351,30 +458,36 @@ a.feedlink {
padding: 0 !important;
}
/* External URLs should always be treated as LTR (bug 4330) */
-/* @noflip */ .rtl a.external.free, .rtl a.external.autonumber {
+/* @noflip */ .rtl a.external.free,
+.rtl a.external.autonumber {
direction: ltr;
unicode-bidi: embed;
}
-/* wikitable class for skinning normal tables
- * keep on sync with commonPrint.css
+/**
+ * wikitable class for skinning normal tables
+ * keep in sync with commonPrint.css
*/
table.wikitable {
margin: 1em 1em 1em 0;
- background: #f9f9f9;
+ background-color: #f9f9f9;
border: 1px #aaa solid;
border-collapse: collapse;
color: black;
}
-.wikitable th, .wikitable td {
+table.wikitable > tr > th,
+table.wikitable > tr > td,
+table.wikitable > * > tr > th,
+table.wikitable > * > tr > td {
border: 1px #aaa solid;
padding: 0.2em;
}
-.wikitable th {
- background: #f2f2f2;
+table.wikitable > tr > th,
+table.wikitable > * > tr > th {
+ background-color: #f2f2f2;
text-align: center;
}
-.wikitable caption {
+table.wikitable > caption {
font-weight: bold;
}
@@ -396,7 +509,9 @@ table.collapsed tr.collapsable {
color: red;
font-size: larger;
}
-.errorbox, .warningbox, .successbox {
+.errorbox,
+.warningbox,
+.successbox {
font-size: larger;
border: 2px solid;
padding: .5em 1em;
@@ -416,7 +531,9 @@ table.collapsed tr.collapsable {
border-color: green;
background-color: #dfd;
}
-.errorbox h2, .warningbox h2, .successbox h2 {
+.errorbox h2,
+.warningbox h2,
+.successbox h2 {
font-size: 1em;
font-weight: bold;
display: inline;
@@ -463,17 +580,38 @@ table.collapsed tr.collapsable {
padding: 0.2em;
}
-/*
- Table pager (e.g. Special:ListFiles)
- - remove underlines from the navigation link
- - collapse borders
- - set the borders to outsets (similar to Special:AllMessages)
- - remove line wrapping for all td and th, set background color
- - restore line wrapping for the last two table cells (description and size)
-*/
+/**
+ * Data table style
+ *
+ * Transparent table with suddle borders
+ * and blue row-highlighting.
+ */
+.mw-datatable {
+ border-collapse: collapse;
+}
+.mw-datatable,
+.mw-datatable td,
+.mw-datatable th {
+ border: 1px solid #aaaaaa;
+ padding: 0 0.15em 0 0.15em;
+}
+.mw-datatable th {
+ background-color: #ddddff;
+}
+.mw-datatable td {
+ background-color: #ffffff;
+}
+.mw-datatable tr:hover td {
+ background-color: #eeeeff;
+}
+
+
+/**
+ * TablePager tables generated by the TablePager PHP class
+ * in MediaWiki (e.g. Special:ListFiles).
+ */
.TablePager {
min-width: 80%;
- border-collapse: collapse;
}
.TablePager_nav {
margin: 0 auto;
@@ -485,21 +623,9 @@ table.collapsed tr.collapsable {
.TablePager_nav a {
text-decoration: none;
}
-.TablePager, .TablePager td, .TablePager th {
- border: 1px solid #aaaaaa;
- padding: 0 0.15em 0 0.15em;
-}
-.TablePager th {
- background-color: #eeeeff;
-}
-.TablePager td {
- background-color: #ffffff;
-}
-.TablePager tr:hover td {
- background-color: #eeeeff;
-}
-.imagelist td, .imagelist th {
+.imagelist td,
+.imagelist th {
white-space: nowrap;
}
.imagelist .TablePager_col_links {
@@ -555,7 +681,8 @@ table.mw_metadata {
border-collapse: collapse;
}
-table.mw_metadata td, table.mw_metadata th {
+table.mw_metadata td,
+table.mw_metadata th {
text-align: center;
border: 1px solid #aaaaaa;
padding-left: 5px;
@@ -582,13 +709,13 @@ table.mw_metadata ul.metadata-langlist {
.mw-content-ltr ul,
.mw-content-rtl .mw-content-ltr ul {
/* @noflip */
- margin: 0.3em 0 0 1.5em;
+ margin: 0.3em 0 0 1.6em;
padding: 0;
}
.mw-content-rtl ul,
.mw-content-ltr .mw-content-rtl ul {
/* @noflip */
- margin: 0.3em 1.5em 0 0;
+ margin: 0.3em 1.6em 0 0;
padding: 0;
}
.mw-content-ltr ol,
@@ -603,19 +730,17 @@ table.mw_metadata ul.metadata-langlist {
margin: 0.3em 3.2em 0 0;
padding: 0;
}
-
-/* Correct directionality when page dir is different from site/user dir */
-/* @noflip */.mw-content-ltr ul, .mw-content-rtl .mw-content-ltr ul {
- margin: .3em 0 0 1.5em;
-}
-/* @noflip */.mw-content-rtl ul, .mw-content-ltr .mw-content-rtl ul {
- margin: .3em 1.5em 0 0;
-}
-/* @noflip */.mw-content-ltr ol, .mw-content-rtl .mw-content-ltr ol {
- margin: .3em 0 0 3.2em;
+/* @noflip */
+.mw-content-ltr dd,
+.mw-content-rtl .mw-content-ltr dd {
+ margin-left: 1.6em;
+ margin-right: 0;
}
-/* @noflip */.mw-content-rtl ol, .mw-content-ltr .mw-content-rtl ol {
- margin: .3em 3.2em 0 0;
+/* @noflip */
+.mw-content-rtl dd,
+.mw-content-ltr .mw-content-rtl dd {
+ margin-right: 1.6em;
+ margin-left: 0;
}
/* Galleries */
@@ -628,7 +753,8 @@ li.gallerybox {
display: inline-block;
}
-ul.gallery, li.gallerybox {
+ul.gallery,
+li.gallerybox {
zoom: 1;
*display: inline;
}
@@ -684,6 +810,37 @@ div.gallerytext {
background-repeat: no-repeat;
}
+/* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
+/* Languages like hi or ml require slightly more vertical space to show diacritics properly */
+h1:lang(as),
+h1:lang(bn),
+h1:lang(gu),
+h1:lang(hi),
+h1:lang(kn),
+h1:lang(ml),
+h1:lang(mr),
+h1:lang(or),
+h1:lang(pa),
+h1:lang(sa),
+h1:lang(ta),
+h1:lang(te) {
+ line-height: 1.5em !important;
+}
+h2:lang(as), h3:lang(as), h4:lang(as), h5:lang(as), h6:lang(as),
+h2:lang(bn), h3:lang(bn), h4:lang(bn), h5:lang(bn), h6:lang(bn),
+h2:lang(gu), h3:lang(gu), h4:lang(gu), h5:lang(gu), h6:lang(gu),
+h2:lang(hi), h3:lang(hi), h4:lang(hi), h5:lang(hi), h6:lang(hi),
+h2:lang(kn), h3:lang(kn), h4:lang(kn), h5:lang(kn), h6:lang(kn),
+h2:lang(ml), h3:lang(ml), h4:lang(ml), h5:lang(ml), h6:lang(ml),
+h2:lang(mr), h3:lang(mr), h4:lang(mr), h5:lang(mr), h6:lang(mr),
+h2:lang(or), h3:lang(or), h4:lang(or), h5:lang(or), h6:lang(or),
+h2:lang(pa), h3:lang(pa), h4:lang(pa), h5:lang(pa), h6:lang(pa),
+h2:lang(sa), h3:lang(sa), h4:lang(sa), h5:lang(sa), h6:lang(sa),
+h2:lang(ta), h3:lang(ta), h4:lang(ta), h5:lang(ta), h6:lang(ta),
+h2:lang(te), h3:lang(te), h4:lang(te), h5:lang(te), h6:lang(te) {
+ line-height: 1.2em;
+}
+
/* Localised ordered list numbering for some languages */
ol:lang(bcc) li,
ol:lang(bqi) li,
@@ -716,20 +873,28 @@ ol:lang(or) li {
}
/* Correct directionality when page dir is different from site/user dir */
-/* @noflip */.mw-content-ltr .toc ul, .mw-content-ltr #toc ul,
-.mw-content-rtl .mw-content-ltr .toc ul, .mw-content-rtl .mw-content-ltr #toc ul {
+/* @noflip */ .mw-content-ltr .toc ul,
+.mw-content-ltr #toc ul,
+.mw-content-rtl .mw-content-ltr .toc ul,
+.mw-content-rtl .mw-content-ltr #toc ul {
text-align: left;
}
-/* @noflip */.mw-content-rtl .toc ul, .mw-content-rtl #toc ul,
-.mw-content-ltr .mw-content-rtl .toc ul, .mw-content-ltr .mw-content-rtl #toc ul {
+/* @noflip */ .mw-content-rtl .toc ul,
+.mw-content-rtl #toc ul,
+.mw-content-ltr .mw-content-rtl .toc ul,
+.mw-content-ltr .mw-content-rtl #toc ul {
text-align: right;
}
-/* @noflip */.mw-content-ltr .toc ul ul, .mw-content-ltr #toc ul ul,
-.mw-content-rtl .mw-content-ltr .toc ul ul, .mw-content-rtl .mw-content-ltr #toc ul ul {
+/* @noflip */ .mw-content-ltr .toc ul ul,
+.mw-content-ltr #toc ul ul,
+.mw-content-rtl .mw-content-ltr .toc ul ul,
+.mw-content-rtl .mw-content-ltr #toc ul ul {
margin: 0 0 0 2em;
}
-/* @noflip */.mw-content-rtl .toc ul ul, .mw-content-rtl #toc ul ul,
-.mw-content-ltr .mw-content-rtl .toc ul ul, .mw-content-ltr .mw-content-rtl #toc ul ul {
+/* @noflip */ .mw-content-rtl .toc ul ul,
+.mw-content-rtl #toc ul ul,
+.mw-content-ltr .mw-content-rtl .toc ul ul,
+.mw-content-ltr .mw-content-rtl #toc ul ul {
margin: 0 2em 0 0;
}
@@ -745,7 +910,7 @@ ol:lang(or) li {
display: none;
margin-left: 2px;
margin-bottom: -8px;
- padding: 0px 0px 0px 15px;
+ padding: 0 0 0 15px;
/* @embed */
background-image: url('images/help-question.gif');
background-position: left center;
@@ -793,35 +958,19 @@ ol:lang(or) li {
right: 10px;
background-position: 0% 100%;
}
-/* Table Sorting */
-table.sortable th.headerSort {
- background-image: url(images/sort_both.gif);
- cursor: pointer;
- background-repeat: no-repeat;
- background-position: center right;
- padding-right: 21px;
-}
-table.sortable th.headerSortUp {
- background-image: url(images/sort_up.gif);
-}
-table.sortable th.headerSortDown {
- background-image: url(images/sort_down.gif);
-}
-/* LTR content in RTL layout */
-.ltr {
- /* @noflip */
- direction: ltr;
- unicode-bidi: embed;
-}
-
-#mw-clearyourcache, #mw-sitecsspreview, #mw-sitejspreview, #mw-usercsspreview, #mw-userjspreview {
+#mw-clearyourcache,
+#mw-sitecsspreview,
+#mw-sitejspreview,
+#mw-usercsspreview,
+#mw-userjspreview {
direction: ltr;
unicode-bidi: embed;
}
/* Correct user & content directionality when viewing a diff */
-.diff-currentversion-title, .diff {
+.diff-currentversion-title,
+.diff {
direction: ltr;
unicode-bidi: embed;
}
@@ -833,27 +982,56 @@ table.sortable th.headerSortDown {
direction: ltr;
unicode-bidi: embed;
}
-.diff-otitle, .diff-ntitle, .diff-lineno {
+.diff-otitle,
+.diff-ntitle,
+.diff-lineno {
direction: ltr !important;
unicode-bidi: embed;
}
-#mw-revision-info, #mw-revision-nav {
+#mw-revision-info,
+#mw-revision-info-current,
+#mw-revision-nav {
direction: ltr;
+ display: inline;
}
/* Images */
-/* @noflip */div.tright, div.floatright, table.floatright {
+
+/* @noflip */ div.tright,
+div.floatright,
+table.floatright {
clear: right;
float: right;
}
-/* @noflip */div.tleft, div.floatleft, table.floatleft {
+/* @noflip */ div.tleft,
+div.floatleft,
+table.floatleft {
float: left;
clear: left;
}
-div.floatright, table.floatright, div.floatleft, table.floatleft {
+div.floatright,
+table.floatright,
+div.floatleft,
+table.floatleft {
position: relative;
}
/* bug 12205 */
-#mw-credits a { unicode-bidi: embed; }
+#mw-credits a {
+ unicode-bidi: embed;
+}
+
+/* Accessibility */
+.mw-jump,
+#jump-to-nav {
+ overflow: hidden;
+ height: 0;
+ zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
+}
+
+/* For developpers */
+.xdebug-error {
+ position: absolute;
+ z-index: 99;
+}
diff --git a/skins/common/upload.js b/skins/common/upload.js
index 99917c75..8e08af31 100644
--- a/skins/common/upload.js
+++ b/skins/common/upload.js
@@ -1,3 +1,7 @@
+( function () {
+var ajaxUploadDestCheck = mw.config.get( 'wgAjaxUploadDestCheck' ),
+ fileExtensions = mw.config.get( 'wgFileExtensions' );
+
window.licenseSelectorCheck = function() {
var selector = document.getElementById( "wpLicense" );
var selection = selector.options[selector.selectedIndex].value;
@@ -11,7 +15,7 @@ window.licenseSelectorCheck = function() {
wgUploadLicenseObj.fetchPreview( selection );
};
-window.wgUploadSetup = function() {
+function uploadSetup() {
// Disable URL box if the URL copy upload source type is not selected
var e = document.getElementById( 'wpSourceTypeurl' );
if( e ) {
@@ -34,49 +38,51 @@ window.wgUploadSetup = function() {
}
}
}
-
-
+
// AJAX wpDestFile warnings
- if ( wgAjaxUploadDestCheck ) {
+ if ( ajaxUploadDestCheck ) {
// Insert an event handler that fetches upload warnings when wpDestFile
// has been changed
- document.getElementById( 'wpDestFile' ).onchange = function ( e ) {
+ document.getElementById( 'wpDestFile' ).onchange = function ( e ) {
wgUploadWarningObj.checkNow(this.value);
};
- // Insert a row where the warnings will be displayed just below the
+ // Insert a row where the warnings will be displayed just below the
// wpDestFile row
var optionsTable = document.getElementById( 'mw-htmlform-description' ).tBodies[0];
var row = optionsTable.insertRow( 1 );
var td = document.createElement( 'td' );
td.id = 'wpDestFile-warning';
td.colSpan = 2;
-
+
row.appendChild( td );
}
-
+
var wpLicense = document.getElementById( 'wpLicense' );
- if ( wgAjaxLicensePreview && wpLicense ) {
+ if ( mw.config.get( 'wgAjaxLicensePreview' ) && wpLicense ) {
// License selector check
wpLicense.onchange = licenseSelectorCheck;
-
+
// License selector table row
var wpLicenseRow = wpLicense.parentNode.parentNode;
var wpLicenseTbody = wpLicenseRow.parentNode;
-
+
var row = document.createElement( 'tr' );
var td = document.createElement( 'td' );
row.appendChild( td );
td = document.createElement( 'td' );
td.id = 'mw-license-preview';
row.appendChild( td );
-
+
wpLicenseTbody.insertBefore( row, wpLicenseRow.nextSibling );
}
-
-
+
+
// fillDestFile setup
- for ( var i = 0; i < wgUploadSourceIds.length; i++ )
- document.getElementById( wgUploadSourceIds[i] ).onchange = function (e) {
+ var i,
+ uploadSourceIds = mw.config.get( 'wgUploadSourceIds' ),
+ len = uploadSourceIds.length;
+ for ( i = 0; i < len; i += 1 )
+ document.getElementById( uploadSourceIds[i] ).onchange = function (e) {
fillDestFilename( this.id );
};
};
@@ -90,7 +96,7 @@ window.wgUploadWarningObj = {
'timeoutID': false,
'keypress': function () {
- if ( !wgAjaxUploadDestCheck || !sajax_init_object() ) return;
+ if ( !ajaxUploadDestCheck || !sajax_init_object() ) return;
// Find file to upload
var destFile = document.getElementById('wpDestFile');
@@ -115,7 +121,7 @@ window.wgUploadWarningObj = {
},
'checkNow': function (fname) {
- if ( !wgAjaxUploadDestCheck || !sajax_init_object() ) return;
+ if ( !ajaxUploadDestCheck || !sajax_init_object() ) return;
if ( this.timeoutID ) {
window.clearTimeout( this.timeoutID );
}
@@ -124,7 +130,7 @@ window.wgUploadWarningObj = {
},
'timeout' : function() {
- if ( !wgAjaxUploadDestCheck || !sajax_init_object() ) return;
+ if ( !ajaxUploadDestCheck || !sajax_init_object() ) return;
injectSpinner( document.getElementById( 'wpDestFile' ), 'destcheck' );
// Get variables into local scope so that they will be preserved for the
@@ -150,7 +156,7 @@ window.wgUploadWarningObj = {
var ackElt = document.getElementsByName( 'wpDestFileWarningAck' );
this.setInnerHTML(warningElt, warning);
-
+
// Set a value in the form indicating that the warning is acknowledged and
// doesn't need to be redisplayed post-upload
if ( warning == '' || warning == '&nbsp;' ) {
@@ -169,7 +175,7 @@ window.wgUploadWarningObj = {
};
window.fillDestFilename = function(id) {
- if (!wgUploadAutoFill) {
+ if ( !mw.config.get( 'wgUploadAutoFill' ) ) {
return;
}
if (!document.getElementById) {
@@ -196,14 +202,14 @@ window.fillDestFilename = function(id) {
}
// Clear the filename if it does not have a valid extension.
- // URLs are less likely to have a useful extension, so don't include them in the
+ // URLs are less likely to have a useful extension, so don't include them in the
// extension check.
- if( wgStrictFileExtensions && wgFileExtensions && id != 'wpUploadFileURL' ) {
+ if ( mw.config.get( 'wgStrictFileExtensions' ) && fileExtensions && id !== 'wpUploadFileURL' ) {
var found = false;
- if( fname.lastIndexOf( '.' ) != -1 ) {
+ if ( fname.lastIndexOf( '.' ) !== -1 ) {
var ext = fname.substr( fname.lastIndexOf( '.' ) + 1 );
- for( var i = 0; i < wgFileExtensions.length; i++ ) {
- if( wgFileExtensions[i].toLowerCase() == ext.toLowerCase() ) {
+ for ( var i = 0; i < fileExtensions.length; i += 1 ) {
+ if ( fileExtensions[i].toLowerCase() === ext.toLowerCase() ) {
found = true;
break;
}
@@ -230,7 +236,7 @@ window.fillDestFilename = function(id) {
// Replace spaces by underscores
fname = fname.replace( / /g, '_' );
// Capitalise first letter if needed
- if ( wgCapitalizeUploads ) {
+ if ( mw.config.get( 'wgCapitalizeUploads' ) ) {
fname = fname.charAt( 0 ).toUpperCase().concat( fname.substring( 1, 10000 ) );
}
@@ -254,7 +260,7 @@ window.wgUploadLicenseObj = {
'responseCache' : { '' : '' },
'fetchPreview': function( license ) {
- if( !wgAjaxLicensePreview ) return;
+ if ( !mw.config.get( 'wgAjaxLicensePreview' ) ) return;
for (cached in this.responseCache) {
if (cached == license) {
this.showPreview( this.responseCache[license] );
@@ -262,15 +268,15 @@ window.wgUploadLicenseObj = {
}
}
injectSpinner( document.getElementById( 'wpLicense' ), 'license' );
-
+
var title = document.getElementById('wpDestFile').value;
if ( !title ) title = 'File:Sample.jpg';
-
- var url = wgScriptPath + '/api' + wgScriptExtension
+
+ var url = mw.util.wikiScript( 'api' )
+ '?action=parse&text={{' + encodeURIComponent( license ) + '}}'
- + '&title=' + encodeURIComponent( title )
+ + '&title=' + encodeURIComponent( title )
+ '&prop=text&pst&format=json';
-
+
var req = sajax_init_object();
req.onreadystatechange = function() {
if ( req.readyState == 4 && req.status == 200 )
@@ -284,7 +290,6 @@ window.wgUploadLicenseObj = {
removeSpinner( 'license' );
this.responseCache[license] = result['parse']['text']['*'];
this.showPreview( this.responseCache[license] );
-
},
'showPreview' : function( preview ) {
@@ -295,4 +300,6 @@ window.wgUploadLicenseObj = {
};
-addOnloadHook( wgUploadSetup );
+$( document ).ready( uploadSetup );
+
+}() );
diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js
index 5cb037be..8f47499c 100644
--- a/skins/common/wikibits.js
+++ b/skins/common/wikibits.js
@@ -1,4 +1,7 @@
-// MediaWiki JavaScript support functions
+/**
+ * MediaWiki legacy wikibits
+ */
+(function(){
window.clientPC = navigator.userAgent.toLowerCase(); // Get client info
window.is_gecko = /gecko/.test( clientPC ) &&
@@ -46,9 +49,6 @@ if ( /msie ([0-9]{1,}[\.0-9]{0,})/.exec( clientPC ) != null
ie6_bugs = true;
}
-// Global external objects used by this script.
-/*extern ta, stylepath, skin */
-
// add any onload functions in this hook (please don't hard-code any events in the xhtml source)
window.doneOnloadHook = undefined;
@@ -66,9 +66,8 @@ window.addOnloadHook = function( hookFunct ) {
};
window.importScript = function( page ) {
- // TODO: might want to introduce a utility function to match wfUrlencode() in PHP
- var uri = wgScript + '?title=' +
- encodeURIComponent(page.replace(/ /g,'_')).replace(/%2F/ig,'/').replace(/%3A/ig,':') +
+ var uri = mw.config.get( 'wgScript' ) + '?title=' +
+ mw.util.wikiUrlencode( page ) +
'&action=raw&ctype=text/javascript';
return importScriptURI( uri );
};
@@ -87,7 +86,7 @@ window.importScriptURI = function( url ) {
};
window.importStylesheet = function( page ) {
- return importStylesheetURI( wgScript + '?action=raw&ctype=text/css&title=' + encodeURIComponent( page.replace(/ /g,'_') ) );
+ return importStylesheetURI( mw.config.get( 'wgScript' ) + '?action=raw&ctype=text/css&title=' + mw.util.wikiUrlencode( page ) );
};
window.importStylesheetURI = function( url, media ) {
@@ -116,20 +115,20 @@ window.appendCSS = function( text ) {
};
// Special stylesheet links for Monobook only (see bug 14717)
-if ( typeof stylepath != 'undefined' && skin == 'monobook' ) {
+var skinpath = mw.config.get( 'stylepath' ) + '/' + mw.config.get( 'skin' );
+if ( mw.config.get( 'skin' ) === 'monobook' ) {
if ( opera6_bugs ) {
- importStylesheetURI( stylepath + '/' + skin + '/Opera6Fixes.css' );
+ importStylesheetURI( skinpath + '/Opera6Fixes.css' );
} else if ( opera7_bugs ) {
- importStylesheetURI( stylepath + '/' + skin + '/Opera7Fixes.css' );
+ importStylesheetURI( skinpath + '/Opera7Fixes.css' );
} else if ( opera95_bugs ) {
- importStylesheetURI( stylepath + '/' + skin + '/Opera9Fixes.css' );
+ importStylesheetURI( skinpath + '/Opera9Fixes.css' );
} else if ( ff2_bugs ) {
- importStylesheetURI( stylepath + '/' + skin + '/FF2Fixes.css' );
+ importStylesheetURI( skinpath + '/FF2Fixes.css' );
}
}
-
-if ( 'wgBreakFrames' in window && window.wgBreakFrames ) {
+if ( mw.config.get( 'wgBreakFrames' ) ) {
// Un-trap us from framesets
if ( window.top != window ) {
window.top.location = window.location;
@@ -319,7 +318,7 @@ window.addPortletLink = function( portlet, href, text, id, tooltip, accesskey, n
link.setAttribute( 'title', tooltip );
}
if ( accesskey && tooltip ) {
- updateTooltipAccessKeys( new Array( link ) );
+ updateTooltipAccessKeys( [link] );
}
if ( nextnode && nextnode.parentNode == node ) {
@@ -367,11 +366,6 @@ window.getInnerText = function( el ) {
return str;
};
-/* Dummy for deprecated function */
-window.ta = [];
-window.akeytt = function( doId ) {
-};
-
window.checkboxes = undefined;
window.lastCheckbox = undefined;
@@ -445,7 +439,7 @@ window.checkboxClickHandler = function( e ) {
From http://www.robertnyman.com/2005/11/07/the-ultimate-getelementsbyclassname/
*/
window.getElementsByClassName = function( oElm, strTagName, oClassNames ) {
- var arrReturnElements = new Array();
+ var arrReturnElements = [];
if ( typeof( oElm.getElementsByClassName ) == 'function' ) {
/* Use a native implementation where possible FF3, Saf3.2, Opera 9.5 */
var arrNativeReturn = oElm.getElementsByClassName( oClassNames );
@@ -460,7 +454,7 @@ window.getElementsByClassName = function( oElm, strTagName, oClassNames ) {
return arrReturnElements;
}
var arrElements = ( strTagName == '*' && oElm.all ) ? oElm.all : oElm.getElementsByTagName( strTagName );
- var arrRegExpClassNames = new Array();
+ var arrRegExpClassNames = [];
if( typeof oClassNames == 'object' ) {
for( var i = 0; i < oClassNames.length; i++ ) {
arrRegExpClassNames[arrRegExpClassNames.length] =
@@ -581,7 +575,7 @@ window.jsMsg = function( message, className ) {
window.injectSpinner = function( element, id ) {
var spinner = document.createElement( 'img' );
spinner.id = 'mw-spinner-' + id;
- spinner.src = stylepath + '/common/images/spinner.gif';
+ spinner.src = mw.config.get( 'stylepath' ) + '/common/images/spinner.gif';
spinner.alt = spinner.title = '...';
if( element.nextSibling ) {
element.parentNode.insertBefore( spinner, element.nextSibling );
@@ -666,5 +660,7 @@ window.removeHandler = function( element, remove, handler ) {
hookEvent( 'load', runOnloadHook );
if ( ie6_bugs ) {
- importScriptURI( stylepath + '/common/IEFixes.js' );
-} \ No newline at end of file
+ importScriptURI( mw.config.get( 'stylepath' ) + '/common/IEFixes.js' );
+}
+
+})();
diff --git a/skins/common/wikiprintable.css b/skins/common/wikiprintable.css
index a80c8307..95fcfef3 100644
--- a/skins/common/wikiprintable.css
+++ b/skins/common/wikiprintable.css
@@ -6,41 +6,54 @@ body {
}
/* MSIE/Win doesn't understand 'inherit' */
-a, a.external, a.new, a.stub {
- color: black ! important;
- text-decoration: none ! important;
+a,
+a.external,
+a.new,
+a.stub {
+ color: black !important;
+ text-decoration: none !important;
}
#article {
- margin: 0 ! important;
+ margin: 0 !important;
}
/* Continue ... */
-a, a.external, a.new, a.stub {
- color: inherit ! important;
- text-decoration: inherit ! important;
+a,
+a.external,
+a.new,
+a.stub {
+ color: inherit !important;
+ text-decoration: inherit !important;
}
-/* Hide ugly UI stuff */
-#quickbar, #topbar, #logo, #footer, #siteNotice,
-.editsection, .toctoggle {
+/* Hide UI stuff */
+#quickbar,
+#topbar,
+#logo,
+#footer,
+#siteNotice,
+.editsection,
+.toctoggle {
display: none;
}
/* */
#article {
position: relative;
- margin: inherit ! important;
+ margin: inherit !important;
}
.printfooter {
border-top: solid 1px black;
- display: block ! important;
+ display: block !important;
}
-/* Old stuff, fixme:
+/* Old stuff. @todo FIXME:
a.CBlink { color: #0000AA; text-decoration: none; font-size: 12pt; }
-a.interwiki, a.external { color: #3333BB; text-decoration: none; }
+a.interwiki,
+a.external { color: #3333BB; text-decoration: none; }
h1.pagetitle { padding-bottom: 0; margin-bottom: 0; }
-i.link, u.link { color: #000066; }
+i.link,
+u.link { color: #000066; }
p.subtitle { padding-top: 0; margin-top: 0; }
*/
diff --git a/skins/common/wikistandard.css b/skins/common/wikistandard.css
index 62050922..e47dc42d 100644
--- a/skins/common/wikistandard.css
+++ b/skins/common/wikistandard.css
@@ -39,13 +39,14 @@
}
/* Table of contents */
-.toctoggle, .editsection {
+.toctoggle,
+.editsection {
font-size: smaller;
}
/* ... */
#toolbar {
- padding: 0px;
+ padding: 0;
}
#infobox {
@@ -57,7 +58,8 @@
margin-top: 1px;
}
-a.interwiki, a.external {
+a.interwiki,
+a.external {
color: #3366BB;
}
@@ -75,7 +77,7 @@ a:visited {
}
body {
- margin: 0px;
+ margin: 0;
padding: 4px;
color: black;
}