]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.css
ui-blame: Make each column into a single table cell
[ps-cgit] / cgit.css
index a4331f8afc04d717c642697629b7450c811778ea..20b7e869cca4c7087e36e3a010039566fc9a5286 100644 (file)
--- a/cgit.css
+++ b/cgit.css
@@ -134,14 +134,34 @@ div#cgit table.list tr.logheader {
        background: #eee;
 }
 
+div#cgit table.list tr:nth-child(even) {
+       background: #f7f7f7;
+}
+
+div#cgit table.list tr:nth-child(odd) {
+       background: white;
+}
+
 div#cgit table.list tr:hover {
        background: #eee;
 }
 
+div#cgit table.list tr.nohover {
+       background: white;
+}
+
 div#cgit table.list tr.nohover:hover {
        background: white;
 }
 
+div#cgit table.list tr.nohover-highlight:hover:nth-child(even) {
+       background: #f7f7f7;
+}
+
+div#cgit table.list tr.nohover-highlight:hover:nth-child(odd) {
+       background: white;
+}
+
 div#cgit table.list th {
        font-weight: bold;
        /* color: #888;
@@ -280,6 +300,7 @@ div#cgit table.blob {
        border-top: solid 1px black;
 }
 
+div#cgit table.blob td.hashes,
 div#cgit table.blob td.lines {
        margin: 0; padding: 0 0 0 0.5em;
        vertical-align: top;
@@ -309,6 +330,29 @@ div#cgit table.ssdiff td.lineno a:hover {
        color: black;
 }
 
+div#cgit table.blame td.hashes,
+div#cgit table.blame td.lines,
+div#cgit table.blame td.linenumbers {
+       padding: 0;
+}
+
+div#cgit table.blame td.hashes div.alt,
+div#cgit table.blame td.lines div.alt {
+       padding: 0 0.5em 0 0.5em;
+}
+
+div#cgit table.blame td.linenumbers div.alt {
+       padding: 0 0.5em 0 0;
+}
+
+div#cgit table.blame div.alt:nth-child(even) {
+       background: #eee;
+}
+
+div#cgit table.blame div.alt:nth-child(odd) {
+       background: white;
+}
+
 div#cgit table.bin-blob {
        margin-top: 0.5em;
        border: solid 1px black;