]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.css
cgit.css: try to make diffs look a little bit nicer
[ps-cgit] / cgit.css
index fe0ba50a55e637f90fa291c525a3275e32368fc9..53c93f2d41b296503193fee9dd2e0bea4cc69466 100644 (file)
--- a/cgit.css
+++ b/cgit.css
@@ -189,6 +189,11 @@ td.filesize {
        font-family: monospace;
 }
 
+td.links {
+       font-size: 80%;
+       padding-left: 2em;
+}
+
 td.filemode {
        font-family: monospace;
 }
@@ -236,10 +241,11 @@ table.diffstat {
        margin-top: 1.5em;
        width: 100%;
        border: solid 1px #aaa;
+       background-color: #eee;
 }
 
 table.diffstat tr:hover {
-       background-color: #eee;
+       background-color: #ccc;
 }
 
 table.diffstat th {
@@ -254,8 +260,6 @@ table.diffstat td {
        padding: 0.2em 0.2em 0.1em 0.1em;
        font-size: 100%;
        border: none;
-       border-top: solid 1px #aaa;
-       border-bottom: solid 1px #aaa;
 }
 
 table.diffstat td span.modechange {
@@ -282,7 +286,7 @@ table.diffstat td.graph {
 
 table.diffstat td.graph img {
        border: none;
-       height: 11pt;
+       height: 8pt;
 }
 
 div.diffstat-summary {
@@ -290,19 +294,18 @@ div.diffstat-summary {
        padding-top: 0.5em;
 }
 
-table.diff th {
-       padding: 1em 0em 0.1em 0.1em;
-       text-align: left;
-}
-
 table.diff td {
-       border: solid 1px black;
        font-family: monospace;
        white-space: pre;
 }
 
+table.diff td div.head {
+       font-weight: bold;
+       padding-top: 1em;
+}
+
 table.diff td div.hunk {
-       background: #ccc;
+       color: #009;
 }
 
 table.diff td div.add {