66* MIT Licensed
77*/
88
9- @media (prefers-color-scheme : dark ) {
10- html {
11- /* syntax highlight colors from https://raw.githubusercontent.com/jwarby/pygments-css/master/monokai.css */
12- --highlight-pre-bg : #272822 ;
13- --highlight-hll-bg : #272822 ;
14- --highlight-c : #75715e ; /* Comment */
15- --highlight-err : #960050 ; /* Error */
16- --highlight-err-bg : #1e0010 ; /* Error background */
17- --highlight-k : #66d9ef ; /* Keyword */
18- --highlight-l : #ae81ff ; /* Literal */
19- --highlight-n : #f8f8f2 ; /* Name */
20- --highlight-o : #f92672 ; /* Operator */
21- --highlight-p : #f8f8f2 ; /* Punctuation */
22- --highlight-cm : #75715e ; /* Comment.Multiline */
23- --highlight-cp : #75715e ; /* Comment.Preproc */
24- --highlight-c1 : #75715e ; /* Comment.Single */
25- --highlight-cs : #75715e ; /* Comment.Special */
26- --highlight-kc : #66d9ef ; /* Keyword.Constant */
27- --highlight-kd : #66d9ef ; /* Keyword.Declaration */
28- --highlight-kn : #f92672 ; /* Keyword.Namespace */
29- --highlight-kp : #66d9ef ; /* Keyword.Pseudo */
30- --highlight-kr : #66d9ef ; /* Keyword.Reserved */
31- --highlight-kt : #66d9ef ; /* Keyword.Type */
32- --highlight-ld : #e6db74 ; /* Literal.Date */
33- --highlight-m : #ae81ff ; /* Literal.Number */
34- --highlight-s : #e6db74 ; /* Literal.String */
35- --highlight-na : #a6e22e ; /* Name.Attribute */
36- --highlight-nb : #f8f8f2 ; /* Name.Builtin */
37- --highlight-nc : #a6e22e ; /* Name.Class */
38- --highlight-no : #66d9ef ; /* Name.Constant */
39- --highlight-nd : #a6e22e ; /* Name.Decorator */
40- --highlight-ni : #f8f8f2 ; /* Name.Entity */
41- --highlight-ne : #a6e22e ; /* Name.Exception */
42- --highlight-nf : #a6e22e ; /* Name.Function */
43- --highlight-nl : #f8f8f2 ; /* Name.Label */
44- --highlight-nn : #f8f8f2 ; /* Name.Namespace */
45- --highlight-nx : #a6e22e ; /* Name.Other */
46- --highlight-py : #f8f8f2 ; /* Name.Property */
47- --highlight-nt : #f92672 ; /* Name.Tag */
48- --highlight-nv : #f8f8f2 ; /* Name.Variable */
49- --highlight-ow : #f92672 ; /* Operator.Word */
50- --highlight-w : #f8f8f2 ; /* Text.Whitespace */
51- --highlight-mf : #ae81ff ; /* Literal.Number.Float */
52- --highlight-mh : #ae81ff ; /* Literal.Number.Hex */
53- --highlight-mi : #ae81ff ; /* Literal.Number.Integer */
54- --highlight-mo : #ae81ff ; /* Literal.Number.Oct */
55- --highlight-sb : #e6db74 ; /* Literal.String.Backtick */
56- --highlight-sc : #e6db74 ; /* Literal.String.Char */
57- --highlight-sd : #e6db74 ; /* Literal.String.Doc */
58- --highlight-s2 : #e6db74 ; /* Literal.String.Double */
59- --highlight-se : #ae81ff ; /* Literal.String.Escape */
60- --highlight-sh : #e6db74 ; /* Literal.String.Heredoc */
61- --highlight-si : #e6db74 ; /* Literal.String.Interpol */
62- --highlight-sx : #e6db74 ; /* Literal.String.Other */
63- --highlight-sr : #e6db74 ; /* Literal.String.Regex */
64- --highlight-s1 : #e6db74 ; /* Literal.String.Single */
65- --highlight-ss : #e6db74 ; /* Literal.String.Symbol */
66- --highlight-bp : #f8f8f2 ; /* Name.Builtin.Pseudo */
67- --highlight-vc : #f8f8f2 ; /* Name.Variable.Class */
68- --highlight-vg : #f8f8f2 ; /* Name.Variable.Global */
69- --highlight-vi : #f8f8f2 ; /* Name.Variable.Instance */
70- --highlight-il : #ae81ff ; /* Literal.Number.Integer.Long */
9+ @mixin darkSchemeHighlight () {
7110
72- // --highlight-gh: none; /* Generic Heading & Diff Header */
73- --highlight-gu : #75715e ; /* Generic.Subheading & Diff Unified/Comment? */
74- --highlight-gd : #f92672 ; /* Generic.Deleted & Diff Deleted */
11+ /* syntax highlight colors from https://raw.githubusercontent.com/jwarby/pygments-css/master/monokai.css */
12+ --highlight-pre-bg : #272822 ;
13+ --highlight-hll-bg : #272822 ;
14+ --highlight-c : #75715e ; /* Comment */
15+ --highlight-err : #960050 ; /* Error */
16+ --highlight-err-bg : #1e0010 ; /* Error background */
17+ --highlight-k : #66d9ef ; /* Keyword */
18+ --highlight-l : #ae81ff ; /* Literal */
19+ --highlight-n : #f8f8f2 ; /* Name */
20+ --highlight-o : #f92672 ; /* Operator */
21+ --highlight-p : #f8f8f2 ; /* Punctuation */
22+ --highlight-cm : #75715e ; /* Comment.Multiline */
23+ --highlight-cp : #75715e ; /* Comment.Preproc */
24+ --highlight-c1 : #75715e ; /* Comment.Single */
25+ --highlight-cs : #75715e ; /* Comment.Special */
26+ --highlight-kc : #66d9ef ; /* Keyword.Constant */
27+ --highlight-kd : #66d9ef ; /* Keyword.Declaration */
28+ --highlight-kn : #f92672 ; /* Keyword.Namespace */
29+ --highlight-kp : #66d9ef ; /* Keyword.Pseudo */
30+ --highlight-kr : #66d9ef ; /* Keyword.Reserved */
31+ --highlight-kt : #66d9ef ; /* Keyword.Type */
32+ --highlight-ld : #e6db74 ; /* Literal.Date */
33+ --highlight-m : #ae81ff ; /* Literal.Number */
34+ --highlight-s : #e6db74 ; /* Literal.String */
35+ --highlight-na : #a6e22e ; /* Name.Attribute */
36+ --highlight-nb : #f8f8f2 ; /* Name.Builtin */
37+ --highlight-nc : #a6e22e ; /* Name.Class */
38+ --highlight-no : #66d9ef ; /* Name.Constant */
39+ --highlight-nd : #a6e22e ; /* Name.Decorator */
40+ --highlight-ni : #f8f8f2 ; /* Name.Entity */
41+ --highlight-ne : #a6e22e ; /* Name.Exception */
42+ --highlight-nf : #a6e22e ; /* Name.Function */
43+ --highlight-nl : #f8f8f2 ; /* Name.Label */
44+ --highlight-nn : #f8f8f2 ; /* Name.Namespace */
45+ --highlight-nx : #a6e22e ; /* Name.Other */
46+ --highlight-py : #f8f8f2 ; /* Name.Property */
47+ --highlight-nt : #f92672 ; /* Name.Tag */
48+ --highlight-nv : #f8f8f2 ; /* Name.Variable */
49+ --highlight-ow : #f92672 ; /* Operator.Word */
50+ --highlight-w : #f8f8f2 ; /* Text.Whitespace */
51+ --highlight-mf : #ae81ff ; /* Literal.Number.Float */
52+ --highlight-mh : #ae81ff ; /* Literal.Number.Hex */
53+ --highlight-mi : #ae81ff ; /* Literal.Number.Integer */
54+ --highlight-mo : #ae81ff ; /* Literal.Number.Oct */
55+ --highlight-sb : #e6db74 ; /* Literal.String.Backtick */
56+ --highlight-sc : #e6db74 ; /* Literal.String.Char */
57+ --highlight-sd : #e6db74 ; /* Literal.String.Doc */
58+ --highlight-s2 : #e6db74 ; /* Literal.String.Double */
59+ --highlight-se : #ae81ff ; /* Literal.String.Escape */
60+ --highlight-sh : #e6db74 ; /* Literal.String.Heredoc */
61+ --highlight-si : #e6db74 ; /* Literal.String.Interpol */
62+ --highlight-sx : #e6db74 ; /* Literal.String.Other */
63+ --highlight-sr : #e6db74 ; /* Literal.String.Regex */
64+ --highlight-s1 : #e6db74 ; /* Literal.String.Single */
65+ --highlight-ss : #e6db74 ; /* Literal.String.Symbol */
66+ --highlight-bp : #f8f8f2 ; /* Name.Builtin.Pseudo */
67+ --highlight-vc : #f8f8f2 ; /* Name.Variable.Class */
68+ --highlight-vg : #f8f8f2 ; /* Name.Variable.Global */
69+ --highlight-vi : #f8f8f2 ; /* Name.Variable.Instance */
70+ --highlight-il : #ae81ff ; /* Literal.Number.Integer.Long */
7571
76- /* My styles */
77- --highlight-lineno : #6c6c6d ;
78- --highlight-lineno-border : #3c4042 ;
79- }
72+ // --highlight-gh: none; /* Generic Heading & Diff Header */
73+ --highlight-gu : #75715e ; /* Generic.Subheading & Diff Unified/Comment? */
74+ --highlight-gd : #f92672 ; /* Generic.Deleted & Diff Deleted */
75+
76+ /* My styles */
77+ --highlight-lineno : #6c6c6d ;
78+ --highlight-lineno-border : #3c4042 ;
8079
8180 pre {
8281 color : #818c96 ; /* override Bootstrap */
8584 kbd {
8685 background-color : black ;
8786 }
87+ }
8888
89- }
89+ @media (prefers-color-scheme : dark ) {
90+ body :not (.color-scheme-light ) {
91+ @include darkSchemeHighlight ();
92+ }
93+ }
94+
95+ @media not (prefers-color-scheme : dark ) {
96+ body .color-scheme-dark {
97+ @include darkSchemeHighlight ();
98+ }
99+ }
0 commit comments