Skip to content

Instantly share code, notes, and snippets.

@protolif
Last active March 12, 2017 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save protolif/0f9bd5daf64307b7696647563d554e46 to your computer and use it in GitHub Desktop.
Save protolif/0f9bd5daf64307b7696647563d554e46 to your computer and use it in GitHub Desktop.
Portal Skin
// ==UserScript==
// @name Portal Skin
// @description Minimalist theme for Netfor SMP
// @version 1.2.1
// @author James Dunn
// @namespace jdunn.netfor.com
// @grant none
// @include https://intranet.netfor.net/*
// @include http://intranet.netfor.net/*
// @updateURL https://gist.githubusercontent.com/protolif/0f9bd5daf64307b7696647563d554e46/raw/portalSkin.meta.js
// @downloadURL https://gist.githubusercontent.com/protolif/0f9bd5daf64307b7696647563d554e46/raw/portalSkin.user.js
// @license MIT License
// ==UserScript==
// @name Portal Skin
// @description Minimalist theme for Netfor SMP
// @version 1.2.1
// @author James Dunn
// @namespace jdunn.netfor.com
// @grant none
// @include https://intranet.netfor.net/*
// @include http://intranet.netfor.net/*
// @updateURL https://gist.githubusercontent.com/protolif/0f9bd5daf64307b7696647563d554e46/raw/portalSkin.meta.js
// @downloadURL https://gist.githubusercontent.com/protolif/0f9bd5daf64307b7696647563d554e46/raw/portalSkin.user.js
// @license MIT License
(function() {var css = "body{font-family:Arial, sans-serif !important;font-size:80% !important}.Ticket_table th,span.formlabel{font-weight:400 !important;text-align:right !important;padding-right:5px !important}td.TicketSpacer,td.ToggleSpacer{border:none !important;height:10px !important;padding:0 !important;margin:0 !important;background:transparent !important}.toolbar{border-bottom:none !important;margin-bottom:10px !important}button{font-size:1em !important;padding:0.1em 0.5em !important;margin-left:0.5em !important;border-color:#d8531e !important;background-image:linear-gradient(to bottom, #d8531e 0%, #f79c31 100%) !important;font-weight:normal !important;border-radius:7px !important}button:hover{border-color:#e2602c !important;background-image:linear-gradient(to bottom, #e2602c 0%, #f8a649 100%) !important}button.attention{border-color:#820024 !important;background-image:linear-gradient(to bottom, #820024 0%, #990000 100%) !important}button.attention:hover{border-color:#99002b !important;background-image:linear-gradient(to bottom, #99002b 0%, #b30000 100%) !important}#headerContainer #otherModules{display:inline-block !important;float:none !important;margin-left:10px !important;margin-top:5px !important}#accountLogin li.displayMessage span,#accountLogin li.displayMessage span em,#accountLogin .accountButton,#accountLogin .accountButton a,#accountLogin .accountButton a span{color:#f0f0f0 !important;background:none !important}#moduleNavigation li.modnavButton a{color:#f0f0f0 !important;background:none !important;border:none !important;font-weight:normal;text-decoration-color:#820024 !important}#moduleNavigation .modnavButtonActive a{font-weight:bold !important;text-decoration:underline #820024 !important}#headerContainer .logo{display:none !important}#moduleNavigation .modnavButton a:hover,#moduleNavigation .modnavButtonActive a:hover{text-decoration:underline white !important}#moduleNavigation a:hover{text-decoration:underline !important}#moduleNavigation li.modnavButton{margin-top:0 !important}#moduleNavigation .home{display:none !important}#subheaderContainer .subheaderTab{border-radius:7px 7px 0px 0px !important}.textTabInstructions{background-color:#d8531e !important}.textAreaInstructions{border-color:#d8531e !important}.attributeCaption{background-color:#d8531e !important}#articleStats .title{background-color:#d8531e !important}#articleStats{border-color:#d8531e !important}#breadcrumbs .delimiter{color:#d8531e !important}#accountLogin .accountButton a:hover{text-decoration:underline !important}#accountLogin li.displayMessage span em::after{content:'.'}#accountLogin li.displayMessage{margin-right:5px}#TaskActions button{font-size:0.86em !important}ul li.textentry input{overflow:visible !important}.Ticket_table th::after,span.formlabel::after{content:':'}.blockToggle div.top{display:none !important}.blockToggle{border:none !important}#SubsetToggleRow{border-top:none !important}#SubsetToggleRow,#TicketInfo{background-color:transparent !important}td.tabtop{border-radius:7px 7px 0px 0px !important}td.tabbottom{border-radius:0px 0px 7px 7px !important}td.tabtop img,td.tabbottom img{display:none !important}td.tabtop,td.tabbottom{font-size:13px !important}.toolbar2{border-bottom:none !important}#CallLog{overflow:hidden}tr.noprint{display:none}tbody ul li.textentry input{margin:0 !important;box-sizing:border-box !important;display:block !important;height:22px !important;font-size:14px !important;color:#555 !important;background-color:#fff !important;background-image:none !important;border:1px solid #ccc !important;border-radius:4px !important;box-shadow:inset 0 1px 1px rgba(0,0,0,.075) !important;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s !important;padding:0 0 0 4px !important}tbody ul li.textentry input:focus{border-color:#66afe9 !important;outline:0 !important;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6) !important}";
if (typeof GM_addStyle != "undefined") {
GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
addStyle(css);
} else {
var node = document.createElement("style");
node.type = "text/css";
node.appendChild(document.createTextNode(css));
var heads = document.getElementsByTagName("head");
if (heads.length > 0) {
heads[0].appendChild(node);
} else {
document.documentElement.appendChild(node);
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment