Greasy Fork

JIRA Cloud

Re-theming script for JIRA Cloud

目前为 2022-03-08 提交的版本。查看 最新版本

// ==UserScript==
// @name         JIRA Cloud
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Re-theming script for JIRA Cloud
// @author       You
// @match        https://*.atlassian.net/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=atlassian.net
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    var css = document.createElement('style');
    css.type = 'text/css';
    css.name = "custom-css";
    css.innerHTML = `

html, html body#jira {
    background-color: #eee;
}
body .cWzlMc, body .css-zvta6n, body .jsSCtF,
body .cSnBhI, body .kCUjSv, body .kZKcTI {
    background-color: #eee;
}

body .izWGlW {
    background-color: #fff;
}

body .dgbPQn {
    background-color: #fff;
    margin: 24px 12px 32px 24px;
    border-radius: 4px;
    border: solid 1px #ccc;
}

body .bzpsgq {
    overflow: visible;
    width: calc(100% - 720px);
}

body .kfVduZ {
    width: auto;
    overflow: visible;
}

body .ihzd {
    display: none;
}

body .yjkY {
    min-width: 0;
}

body .dgMUBn {
    display: inline-block;
    position: absolute;
}

body .bzpsgq {
    padding-left: 0;
}

body .kZKcTI {
    float: right;
    margin: 0;
    padding: 0;
}

body .klZhqF {
    padding: 0;
}

body .kZKcTI > div > div > div {
    margin: 0;
}

body .kZKcTI button .css-1ncnk3i,
body .kZKcTI button .css-1ncnk3i > svg {
    width: 16px;
    height: 16px;
}

body .hlFJLM {
    max-width: 20ex;
}

`;
    document.getElementsByTagName('head')[0].appendChild(css);

})();