adopting kernel.org's css modifications?

Jason A. Donenfeld Jason at zx2c4.com
Thu Feb 20 20:23:56 CET 2014


Looks like kernel.org makes some changes. Do we want to adopt any of
these? Some of them are pretty, like the even/odd background. Others
I'm not sure what they do...


--- cgit.css    2014-02-20 20:07:39.000000000 +0100
+++ cgit-korg.css       2013-02-28 20:16:48.000000000 +0100
@@ -59,6 +59,7 @@
        color: #777;
        border-top: solid 1px #ccc;
        padding-left: 10px;
+       vertical-align: top;
 }

 div#cgit table.tabs {
@@ -124,6 +125,14 @@
        background: white;
 }

+div#cgit table.list tr:nth-child(odd) {
+       background: white;
+}
+
+div#cgit table.list tr:nth-child(even) {
+       background: #f6f6f6;
+}
+
 div#cgit table.list tr.logheader {
        background: #eee;
 }
@@ -132,6 +141,9 @@
        background: #eee;
 }

+div#cgit table.list tr.nohover {
+       background: white;
+}
 div#cgit table.list tr.nohover:hover {
        background: white;
 }
@@ -291,15 +303,13 @@
        padding: 0; margin: 0;
 }

-div#cgit table.blob td.linenumbers a,
-div#cgit table.ssdiff td.lineno a {
+div#cgit table.blob a.no, div#cgit table.ssdiff a.no {
        color: gray;
        text-align: right;
        text-decoration: none;
 }

-div#cgit table.blob td.linenumbers a:hover,
-div#cgit table.ssdiff td.lineno a:hover {
+div#cgit table.blob a.no a:hover {
        color: black;
 }

@@ -540,23 +550,17 @@
        padding-left: 1.5em;
 }

-div#cgit ul.pager {
-       list-style-type: none;
+div#cgit div.pager {
        text-align: center;
        margin: 1em 0em 0em 0em;
-       padding: 0;
 }

-div#cgit ul.pager li {
-       display: inline-block;
-       margin: 0.25em 0.5em;
-}
-
-div#cgit ul.pager a {
+div#cgit div.pager a {
        color: #777;
+       margin: 0em 0.5em;
 }

-div#cgit ul.pager .current {
+div#cgit div.pager .current {
        font-weight: bold;
 }

@@ -802,3 +806,17 @@
 div#cgit table.ssdiff td.space div {
        min-height: 3em;
 }


More information about the CGit mailing list