From 86bce4a2ae9915fad63c742cb68fcd0a5e64a223 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 9 Jan 2016 14:51:17 +0800 Subject: minor fix to #2335 --- public/css/gogs.css | 17 +++++++++-------- public/less/_repository.less | 20 ++++++++++++-------- 2 files changed, 21 insertions(+), 16 deletions(-) (limited to 'public') diff --git a/public/css/gogs.css b/public/css/gogs.css index fd9359af..0a7daaf0 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -2306,9 +2306,10 @@ footer .container .links > *:first-child { } .repository .diff-box .count { margin-right: 12px; + font-size: 13px; } .repository .diff-box .count .bar { - background-color: #e75316; + background-color: #bd2c00 ; height: 12px; width: 40px; display: inline-block; @@ -2316,7 +2317,7 @@ footer .container .links > *:first-child { vertical-align: text-top; } .repository .diff-box .count .bar .add { - background-color: #77c64a; + background-color: #55a532; height: 12px; } .repository .diff-box .file { @@ -2387,6 +2388,12 @@ footer .container .links > *:first-child { .repository .diff-file-box .code-diff tbody tr.add-code td.halfwidth { width: 50%; } +.repository .diff-file-box .code-diff tbody tr .removed-code { + background-color: #ff9999; +} +.repository .diff-file-box .code-diff tbody tr .added-code { + background-color: #99ff99; +} .repository .diff-file-box.file-content img { max-width: 100%; padding: 5px 5px 0 5px; @@ -2764,12 +2771,6 @@ footer .container .links > *:first-child { #delete-repo-modal .ui.message { width: 100%!important; } -.removed-code { - background-color: #ff9999; -} -.added-code { - background-color: #99ff99; -} .organization { padding-top: 15px; padding-bottom: 80px; diff --git a/public/less/_repository.less b/public/less/_repository.less index 7bb9c8a9..124b2b29 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -641,15 +641,17 @@ .diff-box { .count { margin-right: 12px; + font-size: 13px; + .bar { - background-color: #e75316; + background-color: #bd2c00 ; height: 12px; width: 40px; display: inline-block; margin: 2px 4px 0 4px; vertical-align: text-top; .add { - background-color: #77c64a; + background-color: #55a532; height: 12px; } } @@ -716,6 +718,7 @@ // } // } &.del-code { + // Duplicate here to enforce add code color. td.add-code { background-color: #eaffea !important; border-color: #c1e9c1 !important; @@ -749,6 +752,13 @@ // background-color: #ffffdd !important; // } } + + .removed-code { + background-color: #ff9999; + } + .added-code { + background-color: #99ff99; + } } } } @@ -1218,10 +1228,4 @@ } } -.removed-code { - background-color: #ff9999; -} -.added-code { - background-color: #99ff99; -} -- cgit v1.2.3