summaryrefslogtreecommitdiff
path: root/resources/mediawiki.page
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-12-03 13:29:22 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-12-03 13:29:22 +0100
commitca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch)
treeec04cc15b867bc21eedca904cea9af0254531a11 /resources/mediawiki.page
parenta22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff)
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing
Diffstat (limited to 'resources/mediawiki.page')
-rw-r--r--resources/mediawiki.page/images/AJAXCategorySprite.pngbin0 -> 384 bytes
-rw-r--r--resources/mediawiki.page/mediawiki.page.ajaxCategories.css64
-rw-r--r--resources/mediawiki.page/mediawiki.page.ready.js24
-rw-r--r--resources/mediawiki.page/mediawiki.page.startup.js10
4 files changed, 98 insertions, 0 deletions
diff --git a/resources/mediawiki.page/images/AJAXCategorySprite.png b/resources/mediawiki.page/images/AJAXCategorySprite.png
new file mode 100644
index 00000000..d5f9cf48
--- /dev/null
+++ b/resources/mediawiki.page/images/AJAXCategorySprite.png
Binary files differ
diff --git a/resources/mediawiki.page/mediawiki.page.ajaxCategories.css b/resources/mediawiki.page/mediawiki.page.ajaxCategories.css
new file mode 100644
index 00000000..dd991aaf
--- /dev/null
+++ b/resources/mediawiki.page/mediawiki.page.ajaxCategories.css
@@ -0,0 +1,64 @@
+.mw-addcategory-prompt {
+ display: inline;
+}
+
+.mw-addcategory-prompt input {
+ margin-left: 0.5em;
+ margin-right: 0.5em;
+}
+
+.mw-remove-category {
+ padding: 2px 8px;
+ display:inline;
+}
+.mw-removed-category {
+ text-decoration: line-through;
+}
+#catlinks:hover .icon {
+ opacity: 1;
+}
+
+.mw-ajax-addcategory {
+ padding-left: 30px;
+ margin-right: 1em;
+ cursor: pointer;
+}
+#catlinks .icon {
+ cursor: pointer;
+ padding: 1px 8px;
+ margin: 0;
+ background: url('images/AJAXCategorySprite.png') 0 0 no-repeat;
+ opacity: 0.5;
+}
+#catlinks .icon-parent {
+ cursor: pointer;
+}
+#catlinks .icon-parent:hover .icon {
+ background-position-y: -16px;
+}
+#catlinks .no-text {
+}
+#catlinks .icon-close {
+ background-position: 0 0;
+}
+#catlinks .icon-edit {
+ background-position: -16px 0;
+}
+#catlinks .icon-tick {
+ background-position: -32px 0;
+}
+#catlinks .icon-add {
+ background-position: -64px 0;
+}
+#catlinks .icon-close:hover {
+ background-position: 0 -16px;
+}
+#catlinks .icon-edit:hover {
+ background-position: -16px -16px;
+}
+#catlinks .icon-tick:hover {
+ background-position: -32px -16px;
+}
+#catlinks .icon-add:hover {
+ background-position: -64px -16px;
+} \ No newline at end of file
diff --git a/resources/mediawiki.page/mediawiki.page.ready.js b/resources/mediawiki.page/mediawiki.page.ready.js
new file mode 100644
index 00000000..eba5db11
--- /dev/null
+++ b/resources/mediawiki.page/mediawiki.page.ready.js
@@ -0,0 +1,24 @@
+jQuery( document ).ready( function( $ ) {
+
+ /* Emulate placeholder if not supported by browser */
+ if ( !( 'placeholder' in document.createElement( 'input' ) ) ) {
+ $( 'input[placeholder]' ).placeholder();
+ }
+
+ /* Enable makeCollapse */
+ $( '.mw-collapsible' ).makeCollapsible();
+
+ /* Lazy load jquery.tablesorter */
+ if ( $( 'table.sortable' ).length ) {
+ mw.loader.using( 'jquery.tablesorter', function() {
+ $( 'table.sortable' ).tablesorter();
+ });
+ }
+
+ /* Enable CheckboxShiftClick */
+ $( 'input[type=checkbox]:not(.noshiftselect)' ).checkboxShiftClick();
+
+ /* Add accesskey hints to the tooltips */
+ mw.util.updateTooltipAccessKeys();
+
+} );
diff --git a/resources/mediawiki.page/mediawiki.page.startup.js b/resources/mediawiki.page/mediawiki.page.startup.js
new file mode 100644
index 00000000..8af2fad9
--- /dev/null
+++ b/resources/mediawiki.page/mediawiki.page.startup.js
@@ -0,0 +1,10 @@
+( function( $ ) {
+
+ /* Client profile classes for <html> */
+ /* Allows for easy hiding/showing of JS or no-JS-specific UI elements */
+
+ $( 'html' )
+ .addClass('client-js' )
+ .removeClass( 'client-nojs' );
+
+} )( jQuery );