Skip to content

Commit bc5a925

Browse files
authored
Merge pull request #6 from twang2218/update-highlight
Update styles and dependencies.
2 parents adb1068 + 74d4856 commit bc5a925

File tree

5 files changed

+116
-191
lines changed

5 files changed

+116
-191
lines changed

less/ebook.less

Lines changed: 26 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,76 @@
11
pre, code {
2+
/* From https://github.com/isagalaev/highlight.js/blob/9.8.0/src/styles/tomorrow.css */
3+
24
/* http://jmblog.github.io/color-themes-for-highlightjs */
35

46
/* Tomorrow Comment */
57
.hljs-comment,
6-
.hljs-title {
8+
.hljs-quote {
79
color: #8e908c;
810
}
911

1012
/* Tomorrow Red */
1113
.hljs-variable,
12-
.hljs-attribute,
14+
.hljs-template-variable,
1315
.hljs-tag,
16+
.hljs-name,
17+
.hljs-selector-id,
18+
.hljs-selector-class,
1419
.hljs-regexp,
15-
.hljs-deletion,
16-
.ruby .hljs-constant,
17-
.xml .hljs-tag .hljs-title,
18-
.xml .hljs-pi,
19-
.xml .hljs-doctype,
20-
.html .hljs-doctype,
21-
.css .hljs-id,
22-
.css .hljs-class,
23-
.css .hljs-pseudo {
20+
.hljs-deletion {
2421
color: #c82829;
2522
}
2623

2724
/* Tomorrow Orange */
2825
.hljs-number,
29-
.hljs-preprocessor,
30-
.hljs-pragma,
3126
.hljs-built_in,
27+
.hljs-builtin-name,
3228
.hljs-literal,
29+
.hljs-type,
3330
.hljs-params,
34-
.hljs-constant {
31+
.hljs-meta,
32+
.hljs-link {
3533
color: #f5871f;
3634
}
3735

3836
/* Tomorrow Yellow */
39-
.ruby .hljs-class .hljs-title,
40-
.css .hljs-rules .hljs-attribute {
37+
.hljs-attribute {
4138
color: #eab700;
4239
}
4340

4441
/* Tomorrow Green */
4542
.hljs-string,
46-
.hljs-value,
47-
.hljs-inheritance,
48-
.hljs-header,
49-
.hljs-addition,
50-
.ruby .hljs-symbol,
51-
.xml .hljs-cdata {
43+
.hljs-symbol,
44+
.hljs-bullet,
45+
.hljs-addition {
5246
color: #718c00;
5347
}
5448

55-
/* Tomorrow Aqua */
56-
.css .hljs-hexcolor {
57-
color: #3e999f;
58-
}
59-
6049
/* Tomorrow Blue */
61-
.hljs-function,
62-
.python .hljs-decorator,
63-
.python .hljs-title,
64-
.ruby .hljs-function .hljs-title,
65-
.ruby .hljs-title .hljs-keyword,
66-
.perl .hljs-sub,
67-
.javascript .hljs-title,
68-
.coffeescript .hljs-title {
50+
.hljs-title,
51+
.hljs-section {
6952
color: #4271ae;
7053
}
7154

7255
/* Tomorrow Purple */
7356
.hljs-keyword,
74-
.javascript .hljs-function {
57+
.hljs-selector-tag {
7558
color: #8959a8;
7659
}
7760

7861
.hljs {
7962
display: block;
63+
overflow-x: auto;
8064
background: white;
8165
color: #4d4d4c;
8266
padding: 0.5em;
8367
}
8468

85-
.coffeescript .javascript,
86-
.javascript .xml,
87-
.tex .hljs-formula,
88-
.xml .javascript,
89-
.xml .vbscript,
90-
.xml .css,
91-
.xml .hljs-cdata {
92-
opacity: 0.5;
69+
.hljs-emphasis {
70+
font-style: italic;
71+
}
72+
73+
.hljs-strong {
74+
font-weight: bold;
9375
}
9476
}

less/night.less

Lines changed: 26 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,76 @@
1+
/* From https://github.com/isagalaev/highlight.js/blob/9.8.0/src/styles/tomorrow-night-bright.css */
2+
13
/* Tomorrow Night Bright Theme */
24
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
35
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
46

57
/* Tomorrow Comment */
68
.hljs-comment,
7-
.hljs-title {
9+
.hljs-quote {
810
color: #969896;
911
}
1012

1113
/* Tomorrow Red */
1214
.hljs-variable,
13-
.hljs-attribute,
15+
.hljs-template-variable,
1416
.hljs-tag,
17+
.hljs-name,
18+
.hljs-selector-id,
19+
.hljs-selector-class,
1520
.hljs-regexp,
16-
.hljs-deletion,
17-
.ruby .hljs-constant,
18-
.xml .hljs-tag .hljs-title,
19-
.xml .hljs-pi,
20-
.xml .hljs-doctype,
21-
.html .hljs-doctype,
22-
.css .hljs-id,
23-
.css .hljs-class,
24-
.css .hljs-pseudo {
21+
.hljs-deletion {
2522
color: #d54e53;
2623
}
2724

2825
/* Tomorrow Orange */
2926
.hljs-number,
30-
.hljs-preprocessor,
31-
.hljs-pragma,
3227
.hljs-built_in,
28+
.hljs-builtin-name,
3329
.hljs-literal,
30+
.hljs-type,
3431
.hljs-params,
35-
.hljs-constant {
32+
.hljs-meta,
33+
.hljs-link {
3634
color: #e78c45;
3735
}
3836

3937
/* Tomorrow Yellow */
40-
.ruby .hljs-class .hljs-title,
41-
.css .hljs-rules .hljs-attribute {
38+
.hljs-attribute {
4239
color: #e7c547;
4340
}
4441

4542
/* Tomorrow Green */
4643
.hljs-string,
47-
.hljs-value,
48-
.hljs-inheritance,
49-
.hljs-header,
50-
.hljs-addition,
51-
.ruby .hljs-symbol,
52-
.xml .hljs-cdata {
44+
.hljs-symbol,
45+
.hljs-bullet,
46+
.hljs-addition {
5347
color: #b9ca4a;
5448
}
5549

56-
/* Tomorrow Aqua */
57-
.css .hljs-hexcolor {
58-
color: #70c0b1;
59-
}
60-
6150
/* Tomorrow Blue */
62-
.hljs-function,
63-
.python .hljs-decorator,
64-
.python .hljs-title,
65-
.ruby .hljs-function .hljs-title,
66-
.ruby .hljs-title .hljs-keyword,
67-
.perl .hljs-sub,
68-
.javascript .hljs-title,
69-
.coffeescript .hljs-title {
51+
.hljs-title,
52+
.hljs-section {
7053
color: #7aa6da;
7154
}
7255

7356
/* Tomorrow Purple */
7457
.hljs-keyword,
75-
.javascript .hljs-function {
58+
.hljs-selector-tag {
7659
color: #c397d8;
7760
}
7861

7962
.hljs {
8063
display: block;
64+
overflow-x: auto;
8165
background: black;
8266
color: #eaeaea;
8367
padding: 0.5em;
8468
}
8569

86-
.coffeescript .javascript,
87-
.javascript .xml,
88-
.tex .hljs-formula,
89-
.xml .javascript,
90-
.xml .vbscript,
91-
.xml .css,
92-
.xml .hljs-cdata {
93-
opacity: 0.5;
70+
.hljs-emphasis {
71+
font-style: italic;
72+
}
73+
74+
.hljs-strong {
75+
font-weight: bold;
9476
}

less/sepia.less

Lines changed: 34 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* From https://github.com/isagalaev/highlight.js/blob/9.8.0/src/styles/solarized-light.css */
2+
13
/*
24
35
Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
@@ -6,102 +8,79 @@ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmai
68

79
.hljs {
810
display: block;
11+
overflow-x: auto;
912
padding: 0.5em;
1013
background: #fdf6e3;
1114
color: #657b83;
1215
}
1316

1417
.hljs-comment,
15-
.hljs-template_comment,
16-
.diff .hljs-header,
17-
.hljs-doctype,
18-
.hljs-pi,
19-
.lisp .hljs-string,
20-
.hljs-javadoc {
18+
.hljs-quote {
2119
color: #93a1a1;
2220
}
2321

2422
/* Solarized Green */
2523
.hljs-keyword,
26-
.hljs-winutils,
27-
.method,
28-
.hljs-addition,
29-
.css .hljs-tag,
30-
.hljs-request,
31-
.hljs-status,
32-
.nginx .hljs-title {
24+
.hljs-selector-tag,
25+
.hljs-addition {
3326
color: #859900;
3427
}
3528

3629
/* Solarized Cyan */
3730
.hljs-number,
38-
.hljs-command,
3931
.hljs-string,
40-
.hljs-tag .hljs-value,
41-
.hljs-rules .hljs-value,
42-
.hljs-phpdoc,
43-
.tex .hljs-formula,
44-
.hljs-regexp,
45-
.hljs-hexcolor,
46-
.hljs-link_url {
32+
.hljs-meta .hljs-meta-string,
33+
.hljs-literal,
34+
.hljs-doctag,
35+
.hljs-regexp {
4736
color: #2aa198;
4837
}
4938

5039
/* Solarized Blue */
5140
.hljs-title,
52-
.hljs-localvars,
53-
.hljs-chunk,
54-
.hljs-decorator,
55-
.hljs-built_in,
56-
.hljs-identifier,
57-
.vhdl .hljs-literal,
58-
.hljs-id,
59-
.css .hljs-function {
41+
.hljs-section,
42+
.hljs-name,
43+
.hljs-selector-id,
44+
.hljs-selector-class {
6045
color: #268bd2;
6146
}
6247

6348
/* Solarized Yellow */
6449
.hljs-attribute,
50+
.hljs-attr,
6551
.hljs-variable,
66-
.lisp .hljs-body,
67-
.smalltalk .hljs-number,
68-
.hljs-constant,
52+
.hljs-template-variable,
6953
.hljs-class .hljs-title,
70-
.hljs-parent,
71-
.haskell .hljs-type,
72-
.hljs-link_reference {
54+
.hljs-type {
7355
color: #b58900;
7456
}
7557

7658
/* Solarized Orange */
77-
.hljs-preprocessor,
78-
.hljs-preprocessor .hljs-keyword,
79-
.hljs-pragma,
80-
.hljs-shebang,
8159
.hljs-symbol,
82-
.hljs-symbol .hljs-string,
83-
.diff .hljs-change,
84-
.hljs-special,
85-
.hljs-attr_selector,
60+
.hljs-bullet,
8661
.hljs-subst,
87-
.hljs-cdata,
88-
.clojure .hljs-title,
89-
.css .hljs-pseudo,
90-
.hljs-header {
62+
.hljs-meta,
63+
.hljs-meta .hljs-keyword,
64+
.hljs-selector-attr,
65+
.hljs-selector-pseudo,
66+
.hljs-link {
9167
color: #cb4b16;
9268
}
9369

9470
/* Solarized Red */
95-
.hljs-deletion,
96-
.hljs-important {
71+
.hljs-built_in,
72+
.hljs-deletion {
9773
color: #dc322f;
9874
}
9975

100-
/* Solarized Violet */
101-
.hljs-link_label {
102-
color: #6c71c4;
76+
.hljs-formula {
77+
background: #eee8d5;
78+
}
79+
80+
.hljs-emphasis {
81+
font-style: italic;
10382
}
10483

105-
.tex .hljs-formula {
106-
background: #eee8d5;
107-
}
84+
.hljs-strong {
85+
font-weight: bold;
86+
}

0 commit comments

Comments
 (0)