From 754dbca64cc94e9e70520e7b9f0fbaabd6c2cd3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 24 May 2021 23:01:25 -0500 Subject: improve dark-theme --- gitolite-cgit/cgit.css | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/gitolite-cgit/cgit.css b/gitolite-cgit/cgit.css index a67abd6..848970f 100644 --- a/gitolite-cgit/cgit.css +++ b/gitolite-cgit/cgit.css @@ -1,5 +1,6 @@ :root { - --background: #333; + --background: #212529; + --bg-strong: #131618; --text: #FFF; --text-hover: #60b0ff; --text-secundary: #333; @@ -383,9 +384,12 @@ padding-top: 1.5em; } table.diffstat { -border-collapse: collapse; -border: solid 1px var(--text); -background-color: var(--background); +border-collapse: unset; +background-color: var(--bg-strong); +text-overflow: ellipsis; +overflow: hidden; +padding: .5rem; +margin: .5rem 0; } table.diffstat th { @@ -453,6 +457,12 @@ padding-top: 0.5em; table.diff { width: 100%; +border-collapse: unset; +background-color: var(--bg-strong); +padding: 0.5rem; +margin: .5rem 0; +text-overflow: ellipsis; +overflow: hidden; } table.diff td { -- cgit v1.2.3