From 427c6212e9c0371fbc7e8b090ee8275983799c8f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 3 Oct 2026 10:31:03 +0300 Subject: feat(cgit.css): Prettier repository listing --- cgit.css | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'cgit.css') diff --git a/cgit.css b/cgit.css index 03440cd..e4ce962 100644 --- a/cgit.css +++ b/cgit.css @@ -1318,3 +1318,39 @@ table + div#readme, #summary-info + table[summary="tree listing"] { div#cgit table[summary="repository info"] td:nth-child(3) { white-space: nowrap; } + +div#cgit table[summary="repository list"] { + border-spacing: 0 0.4em; +} + +div#cgit table[summary="repository list"] th:first-child { + border-bottom-left-radius: 6px; +} +div#cgit table[summary="repository list"] th:last-child { + border-bottom-right-radius: 6px; +} +div#cgit table[summary="repository list"] tr.nohover-highlight td { + background-color: initial; + padding-top: 1em; + border: none; + border-bottom: 1px solid #63a6e9; +} + +div#cgit table[summary="repository list"] tr:not(.nohover-highlight) td { + padding-top: 0.3em; + padding-bottom: 0.3em; + border: 1px solid #474747; +} + +div#cgit table[summary="repository list"] tr:not(.nohover-highlight) td:first-child { + border-top-left-radius: 1em; +} +div#cgit table[summary="repository list"] tr:not(.nohover-highlight) td:not(:first-child) { + border-left: none; +} +div#cgit table[summary="repository list"] tr:not(.nohover-highlight) td:last-child { + border-bottom-right-radius: 1em; +} +div#cgit table[summary="repository list"] tr:not(.nohover-highlight) td:not(:last-child) { + border-right: none; +} -- cgit v1.3.1-23-gd82d