]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.css
ui-blame: Make each column into a single table cell
[ps-cgit] / cgit.css
index 836f8ae19fe405ca1d23f87fa4963a91db2b0f79..20b7e869cca4c7087e36e3a010039566fc9a5286 100644 (file)
--- a/cgit.css
+++ b/cgit.css
@@ -300,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;
@@ -329,11 +330,26 @@ div#cgit table.ssdiff td.lineno a:hover {
        color: black;
 }
 
-div#cgit table.blame tr:nth-child(even) {
+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 tr:nth-child(odd) {
+div#cgit table.blame div.alt:nth-child(odd) {
        background: white;
 }