MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus Sokradia
Zur Navigation springen Zur Suche springen
KKeine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
 
(15 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* Das folgende CSS wird für alle Benutzeroberflächen geladen.
/* Changes the background color behind the top half of the logo and at top of each page: */
  Changes the background color behind the top half of the logo and at top of each page:  
*/
#mw-page-base {
#mw-page-base {
   background-color: #FFBF00;
   background-color: #FFBF00;
Zeile 8: Zeile 9:
   background-color: #FFBF00;
   background-color: #FFBF00;
}
}
/* ?-Hilfe ausblenden (verlinkt auf Mediawiki, für Sokradia nicht benutzbar) */
.mw-indicators { display: none; }
.mw-indicator { display: none; }
.mw-helplink { display: none; }


/* Manipulation der Toolbox im SideBar */
/* Allow limiting of which header levels are shown in a TOC;
function ModifySidebar( action, section, name, link ) {
  <div class="toclimit-3">, for instance, will limit to
try {
  showing ==headings== and ===headings=== but no further
switch ( section ) {
  (as long as there are no =headings= on the page, which
case 'languages':
  there shouldn't be according to the MoS).
var target = 'p-lang';
*/
break;
.toclimit-2 .toclevel-1 ul,
case 'toolbox':
.toclimit-3 .toclevel-2 ul,
var target = 'p-tb';
.toclimit-4 .toclevel-3 ul,
break;
.toclimit-5 .toclevel-4 ul,
case 'navigation':
.toclimit-6 .toclevel-5 ul,
var target = 'p-navigation';
.toclimit-7 .toclevel-6 ul {
break;
    display: none;
default:
var target = 'p-' + section;
break;
}
 
if ( action == 'add' ) {
var node = document.getElementById( target )
  .getElementsByTagName( 'div' )[0]
  .getElementsByTagName( 'ul' )[0];
 
var aNode = document.createElement( 'a' );
var liNode = document.createElement( 'li' );
 
aNode.appendChild( document.createTextNode( name ) );
aNode.setAttribute( 'href', link );
liNode.appendChild( aNode );
liNode.className = 'plainlinks';
node.appendChild( liNode );
}
 
if ( action == 'remove' ) {
var list = document.getElementById( target )
  .getElementsByTagName( 'div' )[0]
  .getElementsByTagName( 'ul' )[0];
 
var listelements = list.getElementsByTagName( 'li' );
 
for ( var i = 0; i < listelements.length; i++ ) {
if (
listelements[i].getElementsByTagName( 'a' )[0].innerHTML == name ||
listelements[i].getElementsByTagName( 'a' )[0].href == link
)
{
list.removeChild( listelements[i] );
}
}
}
 
 
} catch( e ) {
// Lass uns einfach ignorieren, was passiert ist
return;
}
}
}
 
/* Tabs entfernen */
function CustomizeModificationsOfSidebar() {
body.page-Sokradia li#ca-talk { display: none !important; }
// fügt [[Special:AllPages|Special:AllPages]] der Toolbox hinzu
/* #ca-talk { display: none !important; }
ModifySidebar( 'add', 'toolbox', 'CategoryTree', 'https://cc-zeitlos.synology.me/mediawiki/index.php/Special:AllPages' );
// Entfernt [[Special:Upload|Special:Upload]] aus der Toolbox
ModifySidebar( 'remove', 'toolbox', 'Upload file', 'https://cc-zeitlos.synology.me/mediawiki/index.php//Special:Upload' );
}
 
jQuery( CustomizeModificationsOfSidebar );

Aktuelle Version vom 5. September 2023, 05:56 Uhr

/* Das folgende CSS wird für alle Benutzeroberflächen geladen.
   Changes the background color behind the top half of the logo and at top of each page: 
 */
#mw-page-base {
  background-color: #FFBF00;
}
/* Changes the background color of the bottom and left of each page, up to behind half of the logo: */
body {
  background-color: #FFBF00;
}
/* ?-Hilfe ausblenden (verlinkt auf Mediawiki, für Sokradia nicht benutzbar) */
.mw-indicators { display: none; }
.mw-indicator { display: none; }
.mw-helplink { display: none; }

/* Allow limiting of which header levels are shown in a TOC;
   <div class="toclimit-3">, for instance, will limit to
   showing ==headings== and ===headings=== but no further
   (as long as there are no =headings= on the page, which
   there shouldn't be according to the MoS).
 */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
    display: none;
}
/* Tabs entfernen */
body.page-Sokradia li#ca-talk { display: none !important; }
/* #ca-talk { display: none !important; }