summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmaan Bhojwani <me@armaanb.net>2021-04-17 18:55:20 -0400
committerArmaan Bhojwani <me@armaanb.net>2021-04-17 18:57:16 -0400
commit1ce89a949a7373ffcf214539572c33afb9d7b247 (patch)
treeac38fe4166768a585be47642f24c77a808d8433d
parent9e16b930ef25a57a68419e7588faf40c2e241e90 (diff)
downloadstagit-1ce89a949a7373ffcf214539572c33afb9d7b247.tar.gz
Switch to Emacs syntax highlighting
-rw-r--r--resources/style.css22
-rw-r--r--resources/syntax.css372
2 files changed, 78 insertions, 316 deletions
diff --git a/resources/style.css b/resources/style.css
index c90665a..b597cb7 100644
--- a/resources/style.css
+++ b/resources/style.css
@@ -1,8 +1,6 @@
body {
font-size: 0.8rem;
font-family: monospace;
- color: #ebdbb2;
- background-color: #282828;
max-width: 100%;
width: max-content;
}
@@ -34,10 +32,6 @@ article img {
max-width: 100%;
}
-a {
- color: #83a598;
-}
-
table thead td {
font-weight: bold;
}
@@ -56,7 +50,7 @@ table td {
#index tr:hover td,
#log tr:hover td,
#files tr:hover td {
- background-color: #333;
+ background-color: #eee;
}
#index tr td:nth-child(2),
@@ -75,29 +69,29 @@ table td {
}
.desc {
- color: #928374;
+ color: #555;
}
hr {
border: 0;
- border-top: 1px solid #928374;
+ border-top: 1px solid #555;
height: 1px;
}
pre a.h {
- color: #fe8019;
+ color: #555;
}
.A,
span.i,
pre a.i {
- color: #b8bb26;
+ color: #00A000;
}
.D,
span.d,
pre a.d {
- color: #fb4934;
+ color: #A00000;
}
pre a.h:hover,
@@ -113,10 +107,10 @@ pre a.d:hover {
.url td:nth-child(2) span {
padding: 1px 5px;
- border: 1px solid #ebdbb2;
+ border: 1px solid #555;
border-radius: 5px;
}
.url td:nth-child(2) span a {
- color: #ebdbb2;
+ color: #555;
}
diff --git a/resources/syntax.css b/resources/syntax.css
index 45d7ab7..507bfe7 100644
--- a/resources/syntax.css
+++ b/resources/syntax.css
@@ -1,306 +1,74 @@
-.hll {
- background-color: #ffc;
-}
-.chroma {
- background: #282828;
- color: #ebdbb2;
-
-}
-.c {
- color: #928374;
- font-style: italic;
-
-}
-.err {
- color: #ebdbb2;
-
-}
-.esc {
- color: #ebdbb2;
-
-}
-.g {
- color: #ebdbb2;
-
-}
-.k {
- color: #fe8019;
-
-}
-.l {
- color: #ebdbb2;
-
-}
-.n {
- color: #ebdbb2;
-
-}
-.o {
- color: #fe8019;
-
-}
-.x {
- color: #ebdbb2;
-
-}
-.p {
- color: #ebdbb2;
-
-}
-.ch {
- color: #928374;
- font-style: italic;
-
-}
-.cm {
- color: #928374;
- font-style: italic;
-
-}
-.cp {
- color: #8ec07c;
-
-}
-.c1 {
- color: #928374;
- font-style: italic;
-
-}
-.cs {
- color: #928374;
- font-style: italic;
-
-}
-.gd {
- color: #fb4934;
-}
-.ge {
- color: #83a598;
- text-decoration: underline;
-
-}
-.gr {
- color: #ebdbb2;
- font-weight: 700;
- background-color: #fb4934;
-}
-.gh {
- color: #b8bb26;
- font-weight: 700;
-
-}
-.gi {
- color: #b8bb26;
-}
-.go {
- color: #504945;
-
-}
-.gp {
- color: #ebdbb2;
-
-}
-.gs {
- color: #ebdbb2;
-
-}
-.gu {
- color: #fe8019;
-}
-.gt {
- color: #ebdbb2;
- font-weight: 700;
- background-color: #fb4934;
-}
-.kc {
- color: #fe8019;
-
-}
-.kd {
- color: #fe8019;
-
-}
-.kn {
- color: #fe8019;
-
-}
-.kp {
- color: #fe8019;
-
-}
-.kr {
- color: #fe8019;
-
-}
-.kt {
- color: #fabd2f;
-
-}
-.ld {
- color: #ebdbb2;
-
-}
-.m {
- color: #d3869b;
-
-}
-.s {
- color: #b8bb26;
-
-}
-.na {
- color: #b8bb26;
- font-weight: 700;
-
-}
-.nb {
- color: #fabd2f;
-
-}
-.nc {
- color: #ebdbb2;
-
-}
-.no {
- color: #d3869b;
-
-}
-.nd {
- color: #ebdbb2;
-
-}
-.ni {
- color: #fabd2f;
-
-}
-.ne {
- color: #fb4934;
-
-}
-.nf {
- color: #fabd2f;
-
-}
-.nl {
- color: #fb4934;
-
-}
-.nn {
- color: #ebdbb2;
-
-}
-.nx {
- color: #ebdbb2;
-
-}
-.py {
- color: #ebdbb2;
-
-}
-.nt {
- color: #fb4934;
-
-}
-.nv {
- color: #ebdbb2;
-
-}
-.ow {
- color: #fe8019;
-
-}
-.w {
- color: #ebdbb2;
-
-}
-.mb {
- color: #d3869b;
-
-}
-.mf {
- color: #d3869b;
-
-}
-.mh {
- color: #d3869b;
-
-}
-.mi {
- color: #d3869b;
-
-}
-.mo {
- color: #d3869b;
-
-}
-.sb {
- color: #b8bb26;
-
-}
-.sc {
- color: #b8bb26;
-
-}
-.sd {
- color: #b8bb26;
-
-}
-.s2 {
- color: #b8bb26;
-
-}
-.se {
- color: #b8bb26;
-
-}
-.sh {
- color: #b8bb26;
-
-}
-.si {
- color: #b8bb26;
-
-}
-.sx {
- color: #b8bb26;
-
-}
-.sr {
- color: #b8bb26;
-
-}
-.s1 {
- color: #b8bb26;
-
-}
-.ss {
- color: #83a598;
-
-}
-.bp {
- color: #fabd2f;
-
-}
-.vc {
- color: #ebdbb2;
-
-}
-.vg {
- color: #ebdbb2;
-
-}
-.vi {
- color: #ebdbb2;
-
-}
-.il {
- color: #d3869b;
-
-}
-.lnt {
- color: #7c6f64;
-}
+.hll { background-color: #ffffcc }
+.c { color: #008800; font-style: italic } /* Comment */
+.err { border: 1px solid #FF0000 } /* Error */
+.k { color: #AA22FF; font-weight: bold } /* Keyword */
+.o { color: #666666 } /* Operator */
+.ch { color: #008800; font-style: italic } /* Comment.Hashbang */
+.cm { color: #008800; font-style: italic } /* Comment.Multiline */
+.cp { color: #008800 } /* Comment.Preproc */
+.cpf { color: #008800; font-style: italic } /* Comment.PreprocFile */
+.c1 { color: #008800; font-style: italic } /* Comment.Single */
+.cs { color: #008800; font-weight: bold } /* Comment.Special */
+.gd { color: #A00000 } /* Generic.Deleted */
+.ge { font-style: italic } /* Generic.Emph */
+.gr { color: #FF0000 } /* Generic.Error */
+.gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.gi { color: #00A000 } /* Generic.Inserted */
+.go { color: #888888 } /* Generic.Output */
+.gp { color: #000080; font-weight: bold } /* Generic.Prompt */
+.gs { font-weight: bold } /* Generic.Strong */
+.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.gt { color: #0044DD } /* Generic.Traceback */
+.kc { color: #AA22FF; font-weight: bold } /* Keyword.Constant */
+.kd { color: #AA22FF; font-weight: bold } /* Keyword.Declaration */
+.kn { color: #AA22FF; font-weight: bold } /* Keyword.Namespace */
+.kp { color: #AA22FF } /* Keyword.Pseudo */
+.kr { color: #AA22FF; font-weight: bold } /* Keyword.Reserved */
+.kt { color: #00BB00; font-weight: bold } /* Keyword.Type */
+.m { color: #666666 } /* Literal.Number */
+.s { color: #BB4444 } /* Literal.String */
+.na { color: #BB4444 } /* Name.Attribute */
+.nb { color: #AA22FF } /* Name.Builtin */
+.nc { color: #0000FF } /* Name.Class */
+.no { color: #880000 } /* Name.Constant */
+.nd { color: #AA22FF } /* Name.Decorator */
+.ni { color: #999999; font-weight: bold } /* Name.Entity */
+.ne { color: #D2413A; font-weight: bold } /* Name.Exception */
+.nf { color: #00A000 } /* Name.Function */
+.nl { color: #A0A000 } /* Name.Label */
+.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
+.nt { color: #008000; font-weight: bold } /* Name.Tag */
+.nv { color: #B8860B } /* Name.Variable */
+.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
+.w { color: #bbbbbb } /* Text.Whitespace */
+.mb { color: #666666 } /* Literal.Number.Bin */
+.mf { color: #666666 } /* Literal.Number.Float */
+.mh { color: #666666 } /* Literal.Number.Hex */
+.mi { color: #666666 } /* Literal.Number.Integer */
+.mo { color: #666666 } /* Literal.Number.Oct */
+.sa { color: #BB4444 } /* Literal.String.Affix */
+.sb { color: #BB4444 } /* Literal.String.Backtick */
+.sc { color: #BB4444 } /* Literal.String.Char */
+.dl { color: #BB4444 } /* Literal.String.Delimiter */
+.sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */
+.s2 { color: #BB4444 } /* Literal.String.Double */
+.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
+.sh { color: #BB4444 } /* Literal.String.Heredoc */
+.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
+.sx { color: #008000 } /* Literal.String.Other */
+.sr { color: #BB6688 } /* Literal.String.Regex */
+.s1 { color: #BB4444 } /* Literal.String.Single */
+.ss { color: #B8860B } /* Literal.String.Symbol */
+.bp { color: #AA22FF } /* Name.Builtin.Pseudo */
+.fm { color: #00A000 } /* Name.Function.Magic */
+.vc { color: #B8860B } /* Name.Variable.Class */
+.vg { color: #B8860B } /* Name.Variable.Global */
+.vi { color: #B8860B } /* Name.Variable.Instance */
+.vm { color: #B8860B } /* Name.Variable.Magic */
+.il { color: #666666 } /* Literal.Number.Integer.Long */
div.chroma {
width: 100%;
overflow-x: auto;
+ background: #f8f8f8;
+ border: thin solid;
}