MediaWiki:Common.js: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
K
K
Zeile 13: Zeile 13:
 
     ' #content #bodyContent {}' + //1
 
     ' #content #bodyContent {}' + //1
 
     ' #p-personal {}' + //2  
 
     ' #p-personal {}' + //2  
     ' #siteNotice.fixed {display: block; }' + //3
+
     ' #siteNotice.fixed {display: block; top: 16px; }' + //3
 
     ' .glossar2:hover small small {}' + //4
 
     ' .glossar2:hover small small {}' + //4
 
     ' </style>'
 
     ' </style>'
Zeile 24: Zeile 24:
  
 
/*** LAYOUT ***/
 
/*** LAYOUT ***/
//importScript('mediawiki:layout.js');
+
importScript('mediawiki:layout.js');
  
 
/*** GLOSSAR ***/
 
/*** GLOSSAR ***/

Version vom 4. Januar 2012, 17:39 Uhr

for (i in wgUserGroups)
 if (wgUserGroups[i] == 'sysop')
  var sysopRights = true; 

/***********************************
       Stylesheet changes
***********************************/


document.write (
    '<style>' +
    ' #content {}' + //0
    ' #content #bodyContent {}' + //1
    ' #p-personal {}' + //2 
    ' #siteNotice.fixed {display: block; top: 16px; }' + //3
    ' .glossar2:hover small small {}' + //4
    ' </style>'
    );   
var newCSS = document.styleSheets[document.styleSheets.length-1],
  newRules = newCSS.cssRules || newCSS.rules;  // für alle Browser ansprechbar
/***********************************
      IMPORT
***********************************/

/*** LAYOUT ***/
importScript('mediawiki:layout.js');

/*** GLOSSAR ***/
importScript('mediawiki:glossar.js');

/*** NAVIGATION ***/
importScript('mediawiki:navigation.js');

/*** POPUPS ***/
importScript('mediawiki:popup.js');