about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-31 09:19:37 +0000
committerEric Wong <e@80x24.org>2019-10-31 09:20:02 +0000
commitcb80e56b43750083bfaefc8c1fa8598e473113de (patch)
tree7bda5bbb2bbc6f2dee708ab15610f9e0980afe3e
parent4d44a2ca68ba1b88ee5245df7b74492f9e41db6d (diff)
downloadpublic-inbox-cb80e56b43750083bfaefc8c1fa8598e473113de.tar.gz
"#ff0" foreground on a "#fff" background is just too difficult
to distinguish, among other things.  So choose slightly darker
colors when using a (painful) "#fff" background.
-rw-r--r--contrib/css/216light.css24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/css/216light.css b/contrib/css/216light.css
index 9451dc03..559a6b74 100644
--- a/contrib/css/216light.css
+++ b/contrib/css/216light.css
@@ -24,3 +24,27 @@ a:visited { color:#808 }
 *.del {color:#900 }
 *.head { color:#000 }
 *.hunk { color:#960 }
+
+/*
+ * highlight 3.x colors (tested 3.18) for displaying blobs.
+ * This doesn't use most of the colors available, as I find too
+ * many colors overwhelming, so the default is commented out.
+ */
+.hl.num { color:#f30 } /* number */
+.hl.esc { color:#f0f } /* escape character */
+.hl.str { color:#f30 } /* string */
+.hl.ppc { color:#c3c } /* preprocessor */
+.hl.pps { color:#f30 } /* preprocessor string */
+.hl.slc { color:#099 } /* single-line comment */
+.hl.com { color:#099 } /* multi-line comment */
+/* .hl.opt { color:#ccc } */ /* operator */
+/* .hl.ipl { color:#ccc } */ /* interpolation */
+
+/* keyword groups kw[a-z] */
+.hl.kwa { color:#f90 }
+.hl.kwb { color:#060 }
+.hl.kwc { color:#f90 }
+/* .hl.kwd { color:#ccc } */
+
+/* line-number (unused by public-inbox) */
+/* .hl.lin { color:#ccc } */