Skip to content

Commit 811f293

Browse files
committed
Switch to highlight.js "xcode" theme
1 parent fa1e64d commit 811f293

File tree

1 file changed

+51
-56
lines changed

1 file changed

+51
-56
lines changed

css/highlight.css

+51-56
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,56 @@
1-
.highlight .hll { background-color: #ffffcc }
1+
/*
2+
Adapted from the highlight.js "Xcode" theme
3+
<https://highlightjs.org/static/demo/#Xcode>
4+
with minor color tweaks and class names changed to match our HTML
5+
*/
6+
27
.highlight .c { color: #408080; font-style: italic } /* Comment */
38
.highlight .err { border: 1px solid #FF0000 } /* Error */
4-
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
9+
.highlight .k { color: #aa0d91; } /* Keyword */
510
.highlight .o { color: #666666 } /* Operator */
6-
.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
7-
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */
8-
.highlight .c1 { color: black; font-style: italic } /* Comment.Single */
9-
.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
11+
.highlight .cm { color: #007400; font-style: italic } /* Comment.Multiline */
12+
.highlight .cp { color: #007400 } /* Comment.Preproc */
13+
.highlight .c1 { color: #007400; font-style: italic } /* Comment.Single */
14+
.highlight .cs { color: #007400; font-style: italic } /* Comment.Special */
1015
.highlight .gd { color: #A00000 } /* Generic.Deleted */
11-
.highlight .ge { font-style: italic } /* Generic.Emph */
12-
.highlight .gr { color: #FF0000 } /* Generic.Error */
13-
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
1416
.highlight .gi { color: #00A000 } /* Generic.Inserted */
15-
.highlight .go { color: #808080 } /* Generic.Output */
16-
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
17-
.highlight .gs { font-weight: bold } /* Generic.Strong */
18-
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
19-
.highlight .gt { color: #0040D0 } /* Generic.Traceback */
20-
.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
21-
.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
22-
.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
23-
.highlight .kp { color: #008000 } /* Keyword.Pseudo */
24-
.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
25-
.highlight .kt { color: #B00040 } /* Keyword.Type */
26-
.highlight .m { color: #666666 } /* Literal.Number */
27-
.highlight .s { color: #BA2121 } /* Literal.String */
28-
.highlight .na { color: #7D9029 } /* Name.Attribute */
29-
.highlight .nb { color: #008000 } /* Name.Builtin */
30-
.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
31-
.highlight .no { color: #880000 } /* Name.Constant */
32-
.highlight .nd { color: #AA22FF } /* Name.Decorator */
33-
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
34-
.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
35-
.highlight .nf { color: #0000FF } /* Name.Function */
36-
.highlight .nl { color: #A0A000 } /* Name.Label */
37-
.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
38-
.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
39-
.highlight .nv { color: #19177C } /* Name.Variable */
40-
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
41-
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
42-
.highlight .mf { color: #666666 } /* Literal.Number.Float */
43-
.highlight .mh { color: #666666 } /* Literal.Number.Hex */
44-
.highlight .mi { color: #666666 } /* Literal.Number.Integer */
45-
.highlight .mo { color: #666666 } /* Literal.Number.Oct */
46-
.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
47-
.highlight .sc { color: #BA2121 } /* Literal.String.Char */
48-
.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
49-
.highlight .s2 { color: #BA2121 } /* Literal.String.Double */
50-
.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
51-
.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
52-
.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
53-
.highlight .sx { color: #008000 } /* Literal.String.Other */
54-
.highlight .sr { color: #BB6688 } /* Literal.String.Regex */
55-
.highlight .s1 { color: #BA2121 } /* Literal.String.Single */
56-
.highlight .ss { color: #19177C } /* Literal.String.Symbol */
57-
.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
58-
.highlight .vc { color: #19177C } /* Name.Variable.Class */
59-
.highlight .vg { color: #19177C } /* Name.Variable.Global */
60-
.highlight .vi { color: #19177C } /* Name.Variable.Instance */
61-
.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
17+
.highlight .kc { color: #aa0d91; } /* Keyword.Constant */
18+
.highlight .kd { color: #aa0d91; } /* Keyword.Declaration */
19+
.highlight .kn { color: #aa0d91; } /* Keyword.Namespace */
20+
.highlight .kp { color: #aa0d91 } /* Keyword.Pseudo */
21+
.highlight .kr { color: #aa0d91; } /* Keyword.Reserved */
22+
.highlight .kt { color: #5c2699 } /* Keyword.Type */
23+
.highlight .m { color: #1c00cf } /* Literal.Number */
24+
.highlight .s { color: #160effbd } /* Literal.String */
25+
.highlight .na { color: #836c28 } /* Name.Attribute */
26+
.highlight .nb { color: #5c2699 } /* Name.Builtin */
27+
.highlight .nc { color: #5c2699; } /* Name.Class */
28+
.highlight .no { color: #aa0d91 } /* Name.Constant */
29+
.highlight .nd { color: #aa0d91 } /* Name.Decorator */
30+
.highlight .ni { color: #aa0d91; } /* Name.Entity */
31+
.highlight .ne { color: #aa0d91; } /* Name.Exception */
32+
.highlight .nf { color: #aa0d91 } /* Name.Function */
33+
.highlight .nl { color: #aa0d91 } /* Name.Label */
34+
.highlight .nn { color: #aa0d91; } /* Name.Namespace */
35+
.highlight .nt { color: #aa0d91; } /* Name.Tag */
36+
.highlight .nv { color: #aa0d91 } /* Name.Variable */
37+
.highlight .mf { color: #1c00cf } /* Literal.Number.Float */
38+
.highlight .mh { color: #1c00cf } /* Literal.Number.Hex */
39+
.highlight .mi { color: #1c00cf } /* Literal.Number.Integer */
40+
.highlight .mo { color: #1c00cf } /* Literal.Number.Oct */
41+
.highlight .sb { color: #160effbd } /* Literal.String.Backtick */
42+
.highlight .sc { color: #160effbd } /* Literal.String.Char */
43+
.highlight .sd { color: #160effbd; font-style: italic } /* Literal.String.Doc */
44+
.highlight .s2 { color: #160effbd } /* Literal.String.Double */
45+
.highlight .se { color: #160effbd; font-weight: bold } /* Literal.String.Escape */
46+
.highlight .sh { color: #160effbd } /* Literal.String.Heredoc */
47+
.highlight .si { color: #160effbd; font-weight: bold } /* Literal.String.Interpol */
48+
.highlight .sx { color: #160effbd } /* Literal.String.Other */
49+
.highlight .sr { color: #160effbd } /* Literal.String.Regex */
50+
.highlight .s1 { color: #160effbd } /* Literal.String.Single */
51+
.highlight .ss { color: #1c00cf } /* Literal.String.Symbol */
52+
.highlight .bp { color: #5c2699 } /* Name.Builtin.Pseudo */
53+
.highlight .vc { color: #5c2699 } /* Name.Variable.Class */
54+
.highlight .vg { color: #aa0d91 } /* Name.Variable.Global */
55+
.highlight .vi { color: #aa0d91 } /* Name.Variable.Instance */
56+
.highlight .il { color: #1c00cf } /* Literal.Number.Integer.Long */

0 commit comments

Comments
 (0)