MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus Sokradia
Zur Navigation springen Zur Suche springen
KKeine Bearbeitungszusammenfassung
Markierung: Zurückgesetzt
KKeine Bearbeitungszusammenfassung
 
(23 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; }


** Toolbox erweitern
/* Allow limiting of which header levels are shown in a TOC;
**/
  <div class="toclimit-3">, for instance, will limit to
$( function() {
  showing ==headings== and ===headings=== but no further
    // Sidebar ändern
  (as long as there are no =headings= on the page, which
    function ModifySidebar( action, section, name, link ) {
  there shouldn't be according to the MoS).
        try {
*/
            switch ( section ) {
.toclimit-2 .toclevel-1 ul,
                case 'languages':
.toclimit-3 .toclevel-2 ul,
                    var target = 'p-lang';
.toclimit-4 .toclevel-3 ul,
                    break;
.toclimit-5 .toclevel-4 ul,
                case 'toolbox':
.toclimit-6 .toclevel-5 ul,
                    var target = 'p-tb';
.toclimit-7 .toclevel-6 ul {
                    break;
    display: none;
                case 'navigation':
}
                    var target = 'p-navigation';
/* Tabs entfernen */
                    break;
body.page-Sokradia li#ca-talk { display: none !important; }
                default:
/* #ca-talk { display: none !important; }
                    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 );
            }
 
            else 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 ) {
            // let's just ignore what's happened
            return;
        }
    } ;
 
    function CustomizeSidebar() {
        // Kategoriebaum hinzufügen
        ModifySidebar( 'add', 'toolbox', 'Kategoriebaum',
                      'https://www.perrypedia.de/wiki/Spezial:CategoryTree' );
        // Semantische Suche hinzufügen (ersatzweise für Extension:MultiCategorySearch, die in MW 1.35 nicht läuft)
        ModifySidebar( 'add', 'toolbox', 'Semantische Suche',
                      'https://www.perrypedia.de/wiki/Spezial:Semantische_Suche' );
    } ;
 
    jQuery( CustomizeSidebar );
}) ;

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; }