summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatherine Peeters <katherine.peeters@leagueh.xyz>2021-11-24 21:31:23 -0800
committerKatherine Peeters <katherine.peeters@leagueh.xyz>2021-11-24 21:31:23 -0800
commit0afa9f88c0dd6d7400d0f7c41c2e5426d94e8083 (patch)
tree8a1bc3197c5bde8dc3f9e9963365bdb0b065ba1f
parentc1070007378fc4a6145e6fc9cf967a1c3d34d00d (diff)
downloadloh-website-0afa9f88c0dd6d7400d0f7c41c2e5426d94e8083.tar.gz
Removed all hardcoded colours from cgit
-rw-r--r--site/cgit.css32
-rw-r--r--site/style.css6
2 files changed, 12 insertions, 26 deletions
diff --git a/site/cgit.css b/site/cgit.css
index 686e34f..fe22dea 100644
--- a/site/cgit.css
+++ b/site/cgit.css
@@ -60,43 +60,33 @@ a.button {
/* Summary */
div#cgit a.branch-deco {
- color: #000;
margin: 0px 0.5em;
padding: 0px 0.25em;
- background-color: #88ff88;
- border: solid 1px #007700;
+ background-color: var(--green);
}
div#cgit a.tag-deco {
- color: #000;
margin: 0px 0.5em;
padding: 0px 0.25em;
- background-color: #ffff88;
- border: solid 1px #777700;
+ background-color: var(--yellow);
}
div#cgit a.tag-annotated-deco {
- color: #000;
margin: 0px 0.5em;
padding: 0px 0.25em;
- background-color: #ffcc88;
- border: solid 1px #777700;
+ background-color: var(--orange);
}
div#cgit a.remote-deco {
- color: #000;
margin: 0px 0.5em;
padding: 0px 0.25em;
- background-color: #ccccff;
- border: solid 1px #000077;
+ background-color: var(--purple);
}
div#cgit a.deco {
- color: #000;
margin: 0px 0.5em;
padding: 0px 0.25em;
- background-color: #ff8888;
- border: solid 1px #770000;
+ background-color: var(--red);
}
/* Diff stuff */
@@ -137,17 +127,12 @@ div#cgit table.diffstat td.graph td.rem {
}
div#cgit div.diffstat-summary {
- color: #888;
padding-top: 0.5em;
}
-div#cgit div.diffstat-summary {
- color: #888;
-}
-
div#cgit table.diff td {
white-space: pre;
- border-radius: 4px;
+ border-radius: 0.5em;
background-color: var(--pre);
}
@@ -158,11 +143,6 @@ div#cgit table.diff {
div#cgit table.diff td div.head {
font-weight: bold;
margin-top: 1em;
- color: #555;
-}
-
-div#cgit table.diff a {
- color: #555;
}
div#cgit table.diff td div.hunk {
diff --git a/site/style.css b/site/style.css
index 3e3b50a..488afe3 100644
--- a/site/style.css
+++ b/site/style.css
@@ -11,7 +11,10 @@ html {
/* Colours by name */
--red: #cc241d;
--green: #98971a;
+ --yellow: #d79921;
--blue: #458588;
+ --purple: #b16286;
+ --orange: #d65d0e;
}
/* Light mode */
@@ -27,7 +30,10 @@ html {
/* Colours by name */
--red: #cc241d;
--green: #98971a;
+ --yellow: #d79921;
--blue: #458588;
+ --purple: #b16286;
+ --orange: #d65d0e;
}
}