Created
May 21, 2015 21:52
-
-
Save nagakputtagunta/47aae98ac8403164c896 to your computer and use it in GitHub Desktop.
Userscript to restyle the Redmine 3.x default theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Redmine 3.x Styler | |
// @namespace created by Naga Puttagunta | |
// @description Redmine 3.x Style Overrides | |
// @match https://*/redmine/* | |
// @match http://*/redmine/* | |
// @version 1.0 | |
// ==/UserScript== | |
function addGlobalStyle(css) { | |
var head, style; | |
head = document.getElementsByTagName('head').item(0); | |
if (!head) { return; } | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} | |
addGlobalStyle('.select2-results__option { padding: 0px ! important; }'); | |
addGlobalStyle('.select2-results>.select2-results__options { max-height: 300px ! important ; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment