Skip to content

Instantly share code, notes, and snippets.

@nagakputtagunta
Created May 21, 2015 21:52
Show Gist options
  • Save nagakputtagunta/47aae98ac8403164c896 to your computer and use it in GitHub Desktop.
Save nagakputtagunta/47aae98ac8403164c896 to your computer and use it in GitHub Desktop.
Userscript to restyle the Redmine 3.x default theme
// ==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