aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.css
diff options
context:
space:
mode:
authorLars Hjemli2007-05-13 22:25:14 +0200
committerLars Hjemli2007-05-13 22:31:11 +0200
commit8a3685bcf2612206fc24a2421acb53dd83aeab85 (patch)
tree4628d87e55e87ead2e097cdacf8b4160cd0fc118 /cgit.css
parentc6cf3a424a0860d69b290254d9b19d35527b2d27 (diff)
downloadcgit-8a3685bcf2612206fc24a2421acb53dd83aeab85.tar.gz
cgit-8a3685bcf2612206fc24a2421acb53dd83aeab85.tar.bz2
cgit-8a3685bcf2612206fc24a2421acb53dd83aeab85.zip
Add graphical diffstat to commit view
The diffstat is calculated against the leftmost parent of the commit. This gives nice information for "normal" merges while octopus merges are less than optimal, so the diffstat isn't calculated for those merges. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.css')
-rw-r--r--cgit.css30
1 files changed, 28 insertions, 2 deletions
diff --git a/cgit.css b/cgit.css
index cded981..b736b19 100644
--- a/cgit.css
+++ b/cgit.css
@@ -26,6 +26,13 @@ h3 {
26 font-weight: normal; 26 font-weight: normal;
27} 27}
28 28
29h4 {
30 margin-top: 1.5em;
31 margin-bottom: 0.1em;
32 font-size: 100%;
33 font-weight: bold;
34}
35
29a { 36a {
30 color: blue; 37 color: blue;
31 text-decoration: none; 38 text-decoration: none;
@@ -227,6 +234,12 @@ div.commit-msg {
227table.diffstat { 234table.diffstat {
228 border-collapse: collapse; 235 border-collapse: collapse;
229 margin-top: 1.5em; 236 margin-top: 1.5em;
237 width: 100%;
238 border: solid 1px #aaa;
239}
240
241table.diffstat tr:hover {
242 background-color: #eee;
230} 243}
231 244
232table.diffstat th { 245table.diffstat th {
@@ -238,8 +251,11 @@ table.diffstat th {
238} 251}
239 252
240table.diffstat td { 253table.diffstat td {
241 padding: 0.1em 1em 0.1em 0.1em; 254 padding: 0.2em 0.2em 0.1em 0.1em;
242 font-size: 100%; 255 font-size: 100%;
256 border: none;
257 border-top: solid 1px #aaa;
258 border-bottom: solid 1px #aaa;
243} 259}
244 260
245table.diffstat td span.modechange { 261table.diffstat td span.modechange {
@@ -259,7 +275,17 @@ table.diffstat td.upd a {
259 color: blue; 275 color: blue;
260} 276}
261 277
262table.diffstat td.summary { 278table.diffstat td.graph {
279 width: 75%;
280 vertical-align: center;
281}
282
283table.diffstat td.graph img {
284 border: none;
285 height: 11pt;
286}
287
288div.diffstat-summary {
263 color: #888; 289 color: #888;
264 padding-top: 0.5em; 290 padding-top: 0.5em;
265} 291}