User:PajamaFrix/cologneblue.js

// '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(' #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} '); $('head').append(' #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: 10.8px;overflow:visible;width:auto;text-decoration:none;font-family:Tahoma }#firstHeading .mw-list-item {font-size: 12px;margin: 15px 15px 0 0;display: inline-block;list-style: none;}#toplinks ul:last-child{width: auto;list-style-type: none;}#toplinks #variantlinks {bottom: 0px;}li#pt-notifications-alert a, li#pt-notifications-notice a {display: inline-block !important;overflow: hidden;vertical-align: middle;}.oo-ui-popupWidget-popup {border-color: rgb(137, 196, 255) rgb(25, 49, 97) rgb(27, 74, 120) rgb(37, 102, 166);background-color: rgb(67, 131, 194);-webkit-border-radius: 6px;margin-top: -1px;padding: 3px;border-width: 1px 1px 2px 2px;}.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button, .oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover {border-color: #DDDDDD #999999 #999999 #DDDDDD;background-color: #CCCCCC;}.mw-echo-ui-notificationBadgeButtonPopupWidget-popup > .oo-ui-popupWidget-popup > .oo-ui-popupWidget-head > .oo-ui-labelElement-label {color: rgb(255, 255, 254);} '); // 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')    );