MediaWiki: Common.css: Skillnad mellan sidversioner

Från Eddie Meduza Wiki
Hoppa till: navigering, sök
Ingen redigeringssammanfattning
Ingen redigeringssammanfattning
Rad 25: Rad 25:
}
}
#mw-subcategories { display: none; }
#mw-subcategories { display: none; }
function AppendCategoryTreeToSidebar() {
    try {
        var node = document.getElementById( "p-tb" )
                          .getElementsByTagName('div')[0]
                          .getElementsByTagName('ul')[0];
        var aNode = document.createElement( 'a' );
        var liNode = document.createElement( 'li' );
        aNode.appendChild( document.createTextNode( 'CategoryTree' ) );
        aNode.setAttribute( 'href' , 'http://en.wikipedia.org/wiki/Special:CategoryTree' );
        liNode.appendChild( aNode );
        liNode.className = 'plainlinks';
        node.appendChild( liNode );
    } catch(e) {
        // lets just ignore what's happened
        return;
    }} addOnloadHook( AppendCategoryTreeToSidebar );

Versionen från 12 december 2011 kl. 01.41

/* CSS som skrivs här påverkar alla skal */

/* Pad Google AdSense box in portlet in sidebar */
#p-googleadsense .pBody {
    padding-top: 5px;
    text-align:  center;
}

/* extra buttons for edit dialog (from commons:MediaWiki:Common.css) */
.my-buttons {
	padding: .5em;
}
.my-buttons a {
	color: black;
	background-color: #cde !important;
	font-weight: bold;
	font-size: .9em;
	text-decoration: none;
	border: thin #069 outset;
	padding: 0 .1em .1em;
}
.my-buttons a:hover, .my-buttons a:active {
	background-color: #bcd;
	border-style: inset;
}
#mw-subcategories { display: none; }