# HG changeset patch # User domruf # Date 2017-10-25 22:41:45 # Node ID 450a5ee5889ba9c06b3264934ed8239e1bb3523b # Parent 5d544e6b3fe084bc1076f5e606b734dea3a5ce79 less: we should be consistent with diffstat-ish colors With this change, on the changeset page, the 'change counters' for the whole changeset (in the top right corner) use the same colors as the counters for the lines (a little bit below) and the line change highlighting. - move .changed from kallithea.less to kallithea-diff.less - be more generic with selectors in kallithea-diff - remove remaining style from kallithea.less diff --git a/kallithea/public/less/kallithea-diff.less b/kallithea/public/less/kallithea-diff.less --- a/kallithea/public/less/kallithea-diff.less +++ b/kallithea/public/less/kallithea-diff.less @@ -8,12 +8,15 @@ color: @kallithea-theme-main-color; } -/* colors for deleted/changed/added, for per file "diffstat" (rendered as Bootstrap progress-bar) */ -.cs_files .changes .added { +/* colors for deleted/changed/added, both for 3 labels in top right corner with total count, and for per file "diffstat" (rendered as Bootstrap progress-bar) */ +.changes .added { color: inherit; background-color: @add-bg-color; } -.cs_files .changes .deleted { +.changes .changed { + background: @change-bg-color; +} +.changes .deleted { background-color: @delete-bg-color; } /* binary diff --git a/kallithea/public/less/style.less b/kallithea/public/less/style.less --- a/kallithea/public/less/style.less +++ b/kallithea/public/less/style.less @@ -518,20 +518,6 @@ table#changesets tr > td.mid .message a: .changeset-status-under_review { color: #ffc71e; } -.pull-right .changes .added, -.pull-right .changes .changed, -.pull-right .changes .deleted { - color: #444444; -} -.pull-right .changes .added { - background: #CFC; -} -.pull-right .changes .changed { - background: #FEA; -} -.pull-right .changes .deleted { - background: #FAA; -} #repo_size { display: block;