From 2db8f1d7da619891e2fbfb76d04b734b583440ab Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Sat, 22 Mar 2014 14:14:55 -0400 Subject: More table tweaks --- cgit.css | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/cgit.css b/cgit.css index 310a5f1..6a25acf 100644 --- a/cgit.css +++ b/cgit.css @@ -126,12 +126,8 @@ body { padding: 0 1em; } -#cgit .list[summary="repository info"] tr:nth-child(2n+1) > td { - background-color: #F7FBFC; -} - -#cgit .list[summary="tree listing"] tr:nth-child(2n+1) > td { - background-color: #F7FBFC; +#cgit .list tr:last-child td { + border-bottom: 1px solid #C5D5DD; } #cgit .list th:first-child, @@ -144,37 +140,38 @@ body { border-right: 1px solid #C5D5DD; } -#cgit .list[summary="repository info"] tr.nohover + tr:not(.nohover) > td { - border-top: 1px solid #C5D5DD; +#cgit .list tr:hover > td { + background-color: #FCFCE2 !important; } -#cgit .list tr:hover > td { - background-color: #FCFCE2; +#cgit .list .nohover:hover > td { + background-color: transparent !important; } -#cgit .list[summary="repository info"] tr:not(.nohover) + tr.nohover { - border-top: 1px solid #C5D5DD; +#cgit .list .nohover > td { + background-color: transparent !important; } -#cgit .list[summary="repository info"] tr:last-of-type { - border-bottom: 1px solid #C5D5DD; +#cgit .list[summary="repository info"] tr:nth-child(2n+1) > td { + background-color: #F7FBFC; } -#cgit .list[summary="repository info"] tr.nohover { - border-bottom: none; +#cgit .list[summary="tree listing"] tr:nth-child(2n+1) > td { + background-color: #F7FBFC; } -#cgit .list[summary="repository info"] tr:last-of-type > td { - border-top: 1px solid #C5D5DD; +#cgit .list[summary="repository info"] tr:not(.nohover) + .nohover { + border-top: 1px solid #C5D5DD !important; } -#cgit .list[summary="repository info"] tr.nohover > td { +#cgit .list[summary="repository info"] .nohover > td { background: transparent; - border: none; + border-left: none; + border-right: none; } -#cgit .list tr:last-child { - border-bottom: 1px solid #C5D5DD; +#cgit .list[summary="repository info"] tr:last-of-type > td { + border: none; } #cgit .list .commitgraph { -- cgit v1.2.3-70-g09d2