aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--cgit.css6
1 files changed, 5 insertions, 1 deletions
diff --git a/cgit.css b/cgit.css
index 6ee0781..8d9d040 100644
--- a/cgit.css
+++ b/cgit.css
@@ -911,6 +911,8 @@ div#cgit table.ssdiff td.space div {
/***** Start of fork additions *****/
:root {
+ color-scheme: light dark;
+
--td-padding-y: 0.3em;
--th-padding-y: calc(2 * var(--td-padding-y));
@@ -948,6 +950,8 @@ div#cgit table.ssdiff td.space div {
--dk-light-teal: #7ee5c3; /* Hue: 160 */
--dk-light-blue: #7ebae5; /* Hue: 205 */
--dk-light-purple: #7e86e5; /* Hue: 235 */
+
+ --lt-gray: #eee;
}
div#cgit {
@@ -991,7 +995,7 @@ div#summary img {
div#summary pre {
overflow: auto;
padding: 1rem;
- background-color: var(--dk-light-black);
+ background-color: light-dark(var(--lt-gray), var(--dk-light-black));
}
@media(prefers-color-scheme: dark) {