aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-05-25 10:57:45 -0500
committerJesús <heckyel@hyperbola.info>2021-05-25 10:57:45 -0500
commitb5ac48ee333697f394c636de4820875460812621 (patch)
treeef4f47d4e0ec2ee0c01148f7515ffca38a34f36a
parent754dbca64cc94e9e70520e7b9f0fbaabd6c2cd3d (diff)
downloadgitolite-cgit-docker-b5ac48ee333697f394c636de4820875460812621.tar.lz
gitolite-cgit-docker-b5ac48ee333697f394c636de4820875460812621.tar.xz
gitolite-cgit-docker-b5ac48ee333697f394c636de4820875460812621.zip
Add scrool and improve theme
-rw-r--r--gitolite-cgit/cgit.css41
1 files changed, 32 insertions, 9 deletions
diff --git a/gitolite-cgit/cgit.css b/gitolite-cgit/cgit.css
index 848970f..e42c793 100644
--- a/gitolite-cgit/cgit.css
+++ b/gitolite-cgit/cgit.css
@@ -1,8 +1,12 @@
:root {
--background: #212529;
--bg-strong: #131618;
+ --brand-color: #0062cc;
+ --brand-lg-color: #3395ff;
+ --add-color: #00e676;
+ --cscroll: #0062cc;
+ --bscrooll: #9E9E9E;
--text: #FFF;
- --text-hover: #60b0ff;
--text-secundary: #333;
--h1: #FFF;
--h2: #FFF;
@@ -12,6 +16,22 @@
--h6: #FFF;
}
+* {
+ scrollbar-width: thin;
+ scrollbar-color: var(--cscroll) var(--bscrooll);
+}
+*::-webkit-scrollbar {
+ width: 12px;
+}
+*::-webkit-scrollbar-track {
+ background: var(--bscrooll);
+}
+*::-webkit-scrollbar-thumb {
+ background-color: var(--cscroll);
+ border-radius: 20px;
+ border: 3px solid var(--bscrooll);
+}
+
body, table, form {
padding: 0em;
margin: 0em;
@@ -26,7 +46,7 @@ padding: 7px;
}
a {
-color: #60b0ff;
+color: var(--brand-lg-color);
text-decoration: none;
}
@@ -80,7 +100,7 @@ padding-left: 10px;
}
table.tabs {
-border-bottom: solid 3px #60b0ff;
+border-bottom: solid 3px var(--brand-color);
border-collapse: collapse;
margin-top: 2em;
margin-bottom: 0px;
@@ -100,7 +120,7 @@ font-size: 110%;
table.tabs td a.active {
color: var(--text);
-background-color: #60b0ff;
+background-color: var(--brand-color);
}
table.tabs td.form {
@@ -122,13 +142,13 @@ div.path {
margin: 0px;
padding: 5px 2em 2px 2em;
color: var(--text);
-background-color: #266584;
+background-color: var(--bg-strong);
}
div.content {
margin: 0px;
padding: 2em;
-border-bottom: solid 3px #60b0ff;
+border-bottom: solid 3px var(--brand-color);
}
@@ -208,7 +228,7 @@ color: var(--text);
}
table.list td a:hover {
-color: var(--text-hover);
+color: var(--brand-lg-color);
}
img {
@@ -277,8 +297,10 @@ width: 10em;
}
table.blob {
+display: block;
margin-top: 0.5em;
border-top: solid 1px var(--text);
+overflow-x: auto;
}
table.blob td.lines {
@@ -416,7 +438,7 @@ color: red;
}
table.diffstat td.add a {
-color: green;
+color: var(--add-color);
}
table.diffstat td.del a {
@@ -456,13 +478,14 @@ padding-top: 0.5em;
}
table.diff {
+display: block;
width: 100%;
border-collapse: unset;
background-color: var(--bg-strong);
padding: 0.5rem;
margin: .5rem 0;
text-overflow: ellipsis;
-overflow: hidden;
+overflow-x: auto;
}
table.diff td {