diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2014-03-22 13:16:46 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2014-03-22 13:16:46 -0400 |
| commit | 18e3e461e7e0202f4ec8f434ec5b39b77a19f24b (patch) | |
| tree | 7beb9063b3eca931b1f9b3daf2c079a8c153c84d | |
| parent | d9d20729e5cd17af0329b0d32bc9cdc868791a99 (diff) | |
| download | cgit-skin-18e3e461e7e0202f4ec8f434ec5b39b77a19f24b.tar.gz | |
Tweaks to tables to handle commit graph
| -rw-r--r-- | cgit.css | 52 |
1 files changed, 31 insertions, 21 deletions
@@ -89,7 +89,7 @@ body { outline: none; } -#cgit .list > tbody > tr > th { +#cgit .list th { background-color: #E6F1F6; border-bottom: 1px solid #C5D5DD; border-top: 1px solid #C5D5DD; @@ -97,59 +97,65 @@ body { color: #3A505B; } -#cgit .list > tbody > tr > td { - padding: 0.1em 1em; - /* border-top: 1px solid #E2EAEE; - border-bottom: 1px solid #E2EAEE; */ +#cgit .list td { + padding: 0 1em; +} + +#cgit .list[summary="repository info"] tr:nth-child(2n+1) > td { + background-color: #F7FBFC; } -#cgit .list > tbody > tr:nth-child(2n+1) > td { +#cgit .list[summary="tree listing"] tr:nth-child(2n+1) > td { background-color: #F7FBFC; } -#cgit .list > tbody > tr > th:first-child, -#cgit .list > tbody > tr > td:first-child { +#cgit .list th:first-child, +#cgit .list td:first-child { border-left: 1px solid #C5D5DD; } -#cgit .list > tbody > tr > th:last-child, -#cgit .list > tbody > tr > td:last-child { +#cgit .list th:last-child, +#cgit .list td:last-child { border-right: 1px solid #C5D5DD; } -#cgit .list > tbody > tr.nohover + tr:not(.nohover) > td { +#cgit .list[summary="repository info"] tr.nohover + tr:not(.nohover) > td { border-top: 1px solid #C5D5DD; } -#cgit .list > tbody > tr:hover > td { +#cgit .list tr:hover > td { background-color: #FCFCE2; } -#cgit .list > tbody > tr:not(.nohover) + tr.nohover { +#cgit .list[summary="repository info"] tr:not(.nohover) + tr.nohover { border-top: 1px solid #C5D5DD; } -#cgit .list > tbody > tr.nohover:last-of-type { - border-top: none !important; -} - -#cgit .list > tbody > tr:last-of-type { +#cgit .list[summary="repository info"] tr:last-of-type { border-bottom: 1px solid #C5D5DD; } -#cgit .list > tbody > tr.nohover { +#cgit .list[summary="repository info"] tr.nohover { border-bottom: none; } -#cgit .list > tbody > tr.nohover:last-of-type > td { +#cgit .list[summary="repository info"] tr:last-of-type > td { border-top: 1px solid #C5D5DD; } -#cgit .list > tbody > tr.nohover > td { +#cgit .list[summary="repository info"] tr.nohover > td { background: transparent; border: none; } +#cgit .list tr:last-child { + border-bottom: 1px solid #C5D5DD; +} + +#cgit .list .commitgraph { + white-space: nowrap; + font-family: "Source Code Pro"; +} #cgit .cgit-panel { float: right @@ -253,6 +259,10 @@ body { background: white; } +#cgit .tabs a:first-child { + margin: 0 0.2em 0 0; +} + #cgit .tabs .active { border-bottom: 4px solid white !important; border-left: 1px solid #eee; |
