MediaWiki:Gadget-VectorSearchNav.js: verschil tussen versies
Uiterlijk
Verwijderde inhoud Toegevoegde inhoud
update 1.02 |
Geen bewerkingssamenvatting |
||
Regel 3: | Regel 3: | ||
// Version: 1.02 |
// Version: 1.02 |
||
// Stats: [[File:Krinkle VectorSearchNav.js]] |
// Stats: [[File:Krinkle VectorSearchNav.js]] |
||
mw.loader.load('http://meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/VectorSearchNav.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400'); |
|||
jQuery(function(){ $j = jQuery; |
|||
// Move bar to the left |
|||
$j("#p-search").prependTo("#mw-panel"); |
|||
$j("#p-search").attr("id", "custom-search"); |
|||
// Make it look better |
|||
$j("#custom-search").attr("class", "portal persistent"); |
|||
$j("#p-navigation").removeClass("first"); |
|||
$j("#simpleSearch").attr("class", "body"); |
|||
$j("#searchInput").css("width", "7em"); |
|||
// Fix up the dropdown menu |
|||
$j("div.vectorMenu ul").css("right", "0"); |
|||
$j("#right-navigation").css("margin-right", "1em"); |
|||
$j("#custom-search").append('<style type="text/css">#simpleSearch label { left: 0.5em !important; } .suggestions { left: 19px !important; } </style>'); |
|||
$j("body > .suggestions").css("left", "19px !important").css("right", "auto !important"); |
|||
}); |
Versie van 20 feb 2011 14:21
// Description: Puts the searchbar in the left column in the Vector-skin.
// Author: [[commons:User:Krinkle]]
// Version: 1.02
// Stats: [[File:Krinkle VectorSearchNav.js]]
mw.loader.load('http://meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/VectorSearchNav.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400');