MediaWiki:Common.js

/* var newItem = document.createElement("a"); var textnode = document.createTextNode("^^^"); newItem.appendChild(textnode); newItem.href = "#top"; newItem.style.display = "none";

var list = document.getElementById("netbar"); list.insertBefore(newItem, list.childNodes[2]);

var css_full = "*,:before,:after{-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;margin:0!important;padding:0!important;background-color:transparent!important;border:none!important;border-radius:0!important;min-width:0!important;min-height:0!important;position:static!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;letter-spacing:0!important;text-decoration:none!important;width:auto!important;height:auto!important;text-indent:0!important;vertical-align:baseline!important;white-space:normal!important;text-transform:none!important;font-size:medium!important;font-weight:400!important;float:none!important;overflow:visible!important;transform:initial!important;cursor:auto!important;visibility:initial!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important;color:#fff!important;max-width:100%!important;max-height:100%!important;font-family:verdana,sans-serif!important;line-height:1.2!important;align-items:center!important;justify-content:center!important}:focus{outline:none!important}#p-cactions > .menu,#p-Navigation-label,.body{display:block!important}.cc_banner,#netbar,.netbar-left,.netbar-right,#mw-navigation,#pageWrapper > #footer,#simpleSearch,#mw-head span,#mw-head a,.footer-links,.socialSidebar,.netbar-right > .user > a,#p-logo,body > #footer,.ad-main-med-rect-footer > div,#footer-icons,#footer-icons > *,.socialLink > a,#zergnetContainer .zergrow{display:flex!important}#global-wrapper{display:table!important}head,link,meta,style,script,#mw-navigation > h2,#p-cactions-label,.user .user,.netbar-right > .user > a:after,#p-sharing-label > a{display:none!important}.nothing{margin:10px!important;margin-top:10px!important}.with-siderail #bodyContent,.socialSidebar > .facebook{margin-right:10px!important}#mw-head,#mw-head a,#p-sharing-label > span,#mw-panel,.rc-content td > *,.portal:not(#p-socialProfiles){margin-bottom:10px!important}#content,.socialSidebar > .facebook{margin-left:10px!important}.nothing{margin:5px!important}#content p{margin-top:5px!important}.avatar{margin-right:5px!important}.portal > h3,#mw-content-text li,#pageWrapper > #footer li,#content h1,#content h2{margin-bottom:5px!important}.nothing{margin-left:5px!important}body:not(.nothing){margin-top:30px!important}#pageWrapper{margin:0 auto!important}#content,#mw-head,#mw-panel,#pageWrapper > #footer,.footer-links,.ad-main-med-rect-footer{padding:10px!important}.nothing{padding-top:10px!important}.nothing{padding-right:10px!important}.nothing{padding-bottom:10px!important}.portal:not(#p-socialProfiles) > .body{padding-left:10px!important}.cc_banner-wrapper,#netbar a,#mw-head a,#p-sharing-label > span,#simpleSearch,.navbox th,.navbox td,.rc-table th,.rc-table td,.cog:after,#OfficialWiki > img,#lotNbButton,.beFlexItem{padding:5px!important}.nothing{padding-top:5px!important}.nothing{padding-right:5px!important}#content h1,#content h2,.footer-links > ul > li:not(:last-child){padding-bottom:5px!important}.nothing{padding-left:5px!important}.rc-content > tbody > tr:not(:first-child) > td{padding-top:25px!important}#global-wrapper{padding:230px 50px 50px!important}#content{width:calc(100% - 200px)!important}.with-siderail #bodyContent{width:calc(100% - 310px)!important}.lot-nb-button{width:120px!important}#rc-twitter{width:400px!important}.oo-ui-popupWidget-anchored{width:500px!important}.mw-wiki-logo{width:680px!important}html,body,table,iframe,textarea,audio,.cc_banner-wrapper,#netbar,#global-wrapper,#mw-head,#mw-panel,#mw-head a,.beModal,#p-logo,#lotBeWrapper,#atflb *,#btflb *,#netbar > *{width:100%!important}#pageWrapper{max-width:1500px!important}#netbar{height:30px!important}.mw-wiki-logo{height:100px!important}.ad-main-med-rect-footer *{height:250px!important}#rc-twitter,.wikiEditor-ui-text > textarea{height:600px!important}html,body,.cog:after,#OfficialWiki > img,#lotNbButton,.beFlexItem,#netbar > *,#netbar :not(ul):not(.oo-ui-popupWidget-anchored),.beModal,#rc-twitter *{height:100%!important}#content,#mw-head,#mw-panel,#pageWrapper > #footer,#simpleSearch,.mw-wiki-logo,textarea{border:1px solid #FD8311!important}#footer{border-top:1px solid #FD8311!important}.nothing{border-right:1px solid #FD8311!important}.nothing{border-bottom:1px solid #FD8311!important}.nothing{border-left:1px solid #FD8311!important}.navbox th,.navbox td,.rc-table th,.rc-table td{border:1px solid #000!important}.settings > ul a,#lotBeWrapper,.netbar-right > .user > ul a,.oo-ui-popupWidget-anchored{border-top:1px solid #000!important}.netbar-left > li{border-right:1px solid #000!important}.nothing{border-bottom:1px solid #000!important}.netbar-right > li{border-left:1px solid #000!important}.portal:not(#p-socialProfiles) > .body{border-left:1px dashed #fff!important}#content h1,#content h2{border-bottom:1px solid dimgrey!important}.mw-wiki-logo{border-radius:20px!important}#mw-head{border-top-left-radius:20px!important}#content{border-top-right-radius:20px!important}#p-namespaces > ul > li:first-of-type a{border-top-left-radius:10px!important}#mw-head a{box-shadow:0 1px 2.5px 0 rgba(0,0,0,0.35)!important}.cc_banner-wrapper{box-shadow:0 -2.5px 0 0 rgba(0,0,0,0.45)!important}#netbar,#lotBeWrapper{box-shadow:0 2.5px 0 0 rgba(0,0,0,0.55)!important}.settings > ul{box-shadow:2.5px 2.5px 0 0 rgba(0,0,0,0.55)!important}.netbar-right > .user > ul{box-shadow:-2.5px 2.5px 0 0 rgba(0,0,0,0.55)!important}textarea{font-family:'Bitstream Vera Sans Mono',Consolas,monospace!important}.nothing{font-size:0!important}#mw-head a,#p-sharing-label > span{font-size:14px!important}#content h2,#content h2 *{font-size:21px!important}#content h1,#content h1 *{font-size:28px!important}strong,b,h1,h1 *,h2,h2 *,h3,h3 *,#mw-head a{font-weight:700!important}.with-siderail #bodyContent{float:left!important}#content{float:right!important}#mw-navigation,#pageWrapper > #footer{flex-direction:column!important}.nothing{align-items:flex-end!important}.netbar-left{justify-content:flex-start!important}.netbar-right{justify-content:flex-end!important}.nothing{clear:left!important}.nothing{z-index:1!important}.rc-table *,.navbox th:not(.navboxname),.navbox td{vertical-align:middle!important}#mw-head a,.rc-table *,.mid > p{text-align:center!important}#mw-head a,#p-sharing-label > span{text-transform:uppercase!important}a:hover{text-decoration:underline!important}.portal > h3 > a,#mw-head a:hover,#mw-head a:active,#pt-notifications-alert > a:hover,#pt-notifications-alert > a:active,#pt-notifications-message > a:hover,#pt-notifications-message > a:active{text-decoration:none!important}.nothing{overflow:auto!important}#mw-content-text ul{list-style:none!important}#atflb,#atflb *,#siderail,#siderail *,#zergnetContainer,#zergnetContainer *,#btflb,#btflb *,.ad-main-med-rect-footer,.ad-main-med-rect-footer *{pointer-events:none!important}#p-logo,#top{position:absolute!important}.cc_banner-wrapper,#netbar,.beModal,.settings > ul,#lotBeWrapper,.netbar-right > .user > ul,.oo-ui-popupWidget-anchored{position:fixed!important}#netbar,.beModal,#top{top:0!important}.settings > ul,#lotBeWrapper,.netbar-right > .user > ul{top:30px!important}.oo-ui-popupWidget-anchored{top:40px!important}#p-logo{top:95px!important}.netbar-right > .user > ul{right:0!important}.oo-ui-popupWidget-anchored{right:10px!important}.cc_banner-wrapper{bottom:0!important}.cc_banner-wrapper,#netbar,.settings > ul,#lotBeWrapper,#p-logo,#top{left:0!important}#mw-content-text li:before{content:'• '!important}#pt-notifications-alert > a:after{content:' A'!important}#pt-notifications-message > a:after{content:' M'!important}.curse{color:transparent!important}a,a *{color:#FD8311!important}.new{color:#A63232!important}#mw-head a,.portal > h3 > a{color:#fff!important}.resize-sensor:after{color:#333!important}body{background:#000 url(https://robocraft.gamepedia.com/media/robocraft.gamepedia.com/2/2e/Hexagon_back.png) no-repeat center top fixed!important}.mw-wiki-logo{background:rgba(0,0,0,0.70) url(https://robocraft.gamepedia.com/media/robocraft.gamepedia.com/b/bc/Wiki.png) no-repeat center!important}.cc_banner-wrapper,#netbar,.settings > ul,#lotBeWrapper,.netbar-right > .user > ul{background-color:#121212!important}#simpleSearch,.navbox *,.rc-table *,textarea,.oo-ui-popupWidget-anchored,select{background-color:#222!important}#netbar a:hover,.beFlexItem:hover,#OfficialWiki > img:hover,.cog:hover{background-color:rgba(0,0,0,0.30)!important}#mw-head,#mw-panel,#content,#footer{background-color:rgba(0,0,0,0.70)!important}#mw-head a,#p-sharing-label > span{background-color:#FD8311!important}#mw-head a:hover,#p-sharing-label > span:hover{background-color:#FF9533!important}#mw-head a:active,#p-sharing-label > span:active{background-color:#D06D11!important}#mw-navigation :not(.mw-wiki-logo),.external,.mw-echo-notifications-badge{background-image:none!important}.curse{background-repeat:no-repeat!important}#atflb :not(style),#btflb :not(style){display:flex;max-height:90px!important;flex-direction:row-reverse!important;width:100%!important}#content #atflb:not(.nothing),#content #btflb:not(.nothing){min-height:0!important;max-height:90px!important;max-width:100%!important}.slideboxlightshow{height:150px!important;max-height:150px!important;display:flex!important}.slideboxlightshow > *{position:absolute!important}.slideboxlightshow *{text-align:center!important}.footer-links > ul{padding-right:10px!important;padding-left:10px!important}#wpConfirmB,#wpSave{background:#FD8311!important;padding:5px!important}#ca-edit a{background-color:#FF5300!important}.suggestions{position:absolute!important;top:170px!important;left:130px!important}.with-siderail #content #siderail{display:flex!important;flex-direction:column!important;width:300px!important}input[type='submit'],input[type='button'],input[type='reset']{background-color:#FD8311!important}#netbar > a{display:flex!important;text-align:center!important;padding:5px!important;width:initial!important}#netbar > a:hover{background-color:transparent!important}.footer-links a:before,.footer-links a:after{font-family:'footer-icons'!important}.curse{height:150px!important;background-position:center!important}.top{display:flex!important}.cog:after{font-family:'netbar-icons'!important}";

var css_fallback = "#mw-navigation *,#pageWrapper > #footer,#pageWrapper > #footer *{-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;margin:0!important;padding:0!important;background-color:transparent!important;border:none!important;border-radius:0!important;min-width:0!important;min-height:0!important;position:static!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;letter-spacing:0!important;text-decoration:none!important;width:auto!important;height:auto!important;text-indent:0!important;vertical-align:baseline!important;white-space:normal!important;text-transform:none!important;font-size:medium!important;font-weight:400!important;float:none!important;overflow:visible!important;transform:initial!important;cursor:auto!important;visibility:initial!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important;color:#fff!important;max-width:100%!important;max-height:100%!important;font-family:verdana,sans-serif!important;line-height:1.2!important;align-items:center!important;justify-content:center!important;background:none!important;border:none!important}*,:before,:after{-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important;max-width:100%!important;max-height:100%!important}#mw-page-base{display:none!important}#mw-head-base{display:none!important}#p-logo{top:95px!important;position:absolute!important;display:flex!important;width:100%!important;left:0!important}.cc_banner-wrapper{box-shadow:0 -2.5px 0 0 rgba(0,0,0,0.45)!important}#global-wrapper{padding:230px 50px 50px!important;display:table!important;width:100%!important;margin:0!important}#content{width:calc(100% - 200px)!important;margin:0 0 0 10px !important;float:right!important;border:1px solid #FD8311!important;background-color:rgba(0,0,0,0.70)!important}#mw-head{border:1px solid #FD8311!important;background-color:rgba(0,0,0,0.70)!important;margin-bottom:10px!important}#mw-panel{border:1px solid #FD8311!important;background-color:rgba(0,0,0,0.70)!important;margin-bottom:10px!important}body{background:#000 url(https://robocraft.gamepedia.com/media/robocraft.gamepedia.com/2/2e/Hexagon_back.png) no-repeat center top fixed!important}#mw-navigation .mw-wiki-logo{background:rgba(0,0,0,0.70) url(https://robocraft.gamepedia.com/media/robocraft.gamepedia.com/b/bc/Wiki.png) no-repeat center!important;width:680px!important;height:100px!important}#mw-navigation{display:flex!important;flex-direction:column!important}#mw-navigation > h2{display:none!important}#mw-navigation a,#mw-navigation a *{color:#FD8311!important}#mw-navigation .new{color:#A63232!important}#mw-navigation #mw-head a,#mw-navigation .portal > h3 > a{color:#fff!important}#p-Navigation-label{display:block!important}#pageWrapper{max-width:1500px!important;margin:0 auto!important}";

var head = document.head || document.getElementsByTagName("head")[0]; var style = document.createElement("style"); var css = "";

if (document.getElementById("add_theme") === null) {  css = css_fallback; } else {  css = css_full; }

style.type = "text/css"; if (style.styleSheet) { style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }

head.appendChild(style);