User:Nova/cologneblue.js: Difference between revisions

From the Audiovisual Identity Database, the motion graphics museum
Content deleted Content added
imported>Reception123
m Reception123 moved page User:SonicFan91/cologneblue.js to User:Nova/cologneblue.js without leaving a redirect: Automatically moved page while renaming the user "SonicFan91" to "Nova"
Nova (talk | contribs)
Blanked the page
Line 1: Line 1:
// 'Wetpaint' modification for 'Cologne Blue' MediaWiki theme
// intended for use on the CLG wiki
// ----------
// copy and paste all of this into your custom javascript for the 'cologne blue' theme, available under 'user preferences > theme'.
// make sure you also have the custom CSS set or else it might not look right.
// adds extra CSS into the header
$('head').append('<style>#linkcollection{margin-bottom:10px}#p-search{padding:5px;display:inline-block!important;margin-top:5px}#linkcollection,#p-search{visibility:visible}#p-search br,#p-search h3,#searchButton{display:none}#footer form{display:none}#ca-cb-edit{font-size:inherit;padding:0;margin:0;height:1.5em}#ca-cb-edit a{background:#a9ceee url(https://i.imgur.com/feC4z6s.png) repeat-x top left;background-color:#a9ceee;border:solid 1px #979797;color:#333;padding:.3em 1em .3em 1em;margin:0 0 0 .5em;cursor:pointer;font-weight:700;font-size:12px;overflow:visible;width:auto;text-decoration:none;font-family:Tahoma}</style>');

// moves the categories into the article container
document.getElementById('article').appendChild(
document.getElementById('catlinks')
);
// checks for 'Edit source' on a page, if it finds it, then it moves it above the article heading
if (document.contains(document.getElementById('ca-cb-edit'))) {
document.getElementById('firstHeading').prepend(document.getElementById('ca-cb-edit'));
}
// moves the search box from the sidebar to above the article container
document.getElementById('linkcollection').appendChild(
document.getElementById('p-search')
);

// TBD.
document.getElementById('footer-navigation').appendChild(
document.getElementById('titlelinks')
);

Revision as of 00:37, 19 February 2023

Cookies help us deliver our services. By using our services, you agree to our use of cookies.