Trello styles by chapaev.css

show label titles, minifi card elements to one row, card wider, no checklist strike

当前为 2016-01-09 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Trello styles by chapaev.css
// @namespace    https://openuserjs.org/install/vasilychapaev/Trello_styles_by_chapaev.css.user.js
// @version      0.2
// @description  show label titles, minifi card elements to one row, card wider, no checklist strike
// @author       Vasily Chapaev, [email protected]
// @match        https://trello.com/*
// ==/UserScript==

var css = `
/* labels title - show */
.list-card-labels .card-label {
    font-weight: normal;
    font-size: 10px;
    height: 12px !important;
    line-height: 10px !important;
    padding: 0 3px;
    margin: 0 3px 0 0;
    text-shadow: none;
    width: auto;
    max-width: 50px;
}

/* labels + title + icons - one row = mini UI */
.list-card-labels {
    float: left;
    margin: 3px 0;
}
.list-card-title {display: inline;}

/* checklist count - green>gray */
.badge.is-complete {background-color: #EDEFF0;}

/* card - wider */
.window {width: 830px;}
.window-main-col {width: 646px;}

/* card - "edit" link hide */
.card-detail-item-header, .card-detail-item-header-edit {display: none;}

/* checklist - strike remove */
.checklist-item-state-complete .checklist-item-details-text {text-decoration: none;}
}
`;


insertCss(css);


function insertCss( code ) {
    var style = document.createElement('style');
    style.type = 'text/css';

    if (style.styleSheet) {
        // IE
        style.styleSheet.cssText = code;
    } else {
        // Other browsers
        style.innerHTML = code;
    }

    document.getElementsByTagName("head")[0].appendChild( style );
}