Skip to content

Commit 82b48b5

Browse files
authored
Update highlight.js download instructions and resources. (#4081)
1 parent 414953e commit 82b48b5

File tree

3 files changed

+751
-722
lines changed

3 files changed

+751
-722
lines changed

lib/resources/github.css

Lines changed: 94 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,118 @@
1-
/*
2-
3-
github.com style (c) Vasily Polovnyov <[email protected]>
4-
5-
*/
6-
7-
.hljs {
1+
pre code.hljs {
82
display: block;
93
overflow-x: auto;
10-
padding: 0.5em;
11-
color: #333;
12-
background: #f8f8f8;
4+
padding: 1em
135
}
14-
15-
.hljs-comment,
16-
.hljs-quote {
17-
color: #998;
18-
font-style: italic;
6+
code.hljs {
7+
padding: 3px 5px
198
}
9+
/*!
10+
Theme: GitHub
11+
Description: Light theme as seen on github.com
12+
Author: github.com
13+
Maintainer: @Hirse
14+
Updated: 2021-05-15
2015
16+
Outdated base version: https://github.com/primer/github-syntax-light
17+
Current colors taken from GitHub's CSS
18+
*/
19+
.hljs {
20+
color: #24292e;
21+
background: #ffffff
22+
}
23+
.hljs-doctag,
2124
.hljs-keyword,
22-
.hljs-selector-tag,
23-
.hljs-subst {
24-
color: #333;
25-
font-weight: bold;
25+
.hljs-meta .hljs-keyword,
26+
.hljs-template-tag,
27+
.hljs-template-variable,
28+
.hljs-type,
29+
.hljs-variable.language_ {
30+
/* prettylights-syntax-keyword */
31+
color: #d73a49
2632
}
27-
28-
.hljs-number,
33+
.hljs-title,
34+
.hljs-title.class_,
35+
.hljs-title.class_.inherited__,
36+
.hljs-title.function_ {
37+
/* prettylights-syntax-entity */
38+
color: #6f42c1
39+
}
40+
.hljs-attr,
41+
.hljs-attribute,
2942
.hljs-literal,
43+
.hljs-meta,
44+
.hljs-number,
45+
.hljs-operator,
3046
.hljs-variable,
31-
.hljs-template-variable,
32-
.hljs-tag .hljs-attr {
33-
color: #008080;
47+
.hljs-selector-attr,
48+
.hljs-selector-class,
49+
.hljs-selector-id {
50+
/* prettylights-syntax-constant */
51+
color: #005cc5
3452
}
35-
53+
.hljs-regexp,
3654
.hljs-string,
37-
.hljs-doctag {
38-
color: #d14;
39-
}
40-
41-
.hljs-title,
42-
.hljs-section,
43-
.hljs-selector-id {
44-
color: #900;
45-
font-weight: bold;
55+
.hljs-meta .hljs-string {
56+
/* prettylights-syntax-string */
57+
color: #032f62
4658
}
47-
48-
.hljs-subst {
49-
font-weight: normal;
59+
.hljs-built_in,
60+
.hljs-symbol {
61+
/* prettylights-syntax-variable */
62+
color: #e36209
5063
}
51-
52-
.hljs-type,
53-
.hljs-class .hljs-title {
54-
color: #458;
55-
font-weight: bold;
64+
.hljs-comment,
65+
.hljs-code,
66+
.hljs-formula {
67+
/* prettylights-syntax-comment */
68+
color: #6a737d
5669
}
57-
58-
.hljs-tag,
5970
.hljs-name,
60-
.hljs-attribute {
61-
color: #000080;
62-
font-weight: normal;
71+
.hljs-quote,
72+
.hljs-selector-tag,
73+
.hljs-selector-pseudo {
74+
/* prettylights-syntax-entity-tag */
75+
color: #22863a
6376
}
64-
65-
.hljs-regexp,
66-
.hljs-link {
67-
color: #009926;
77+
.hljs-subst {
78+
/* prettylights-syntax-storage-modifier-import */
79+
color: #24292e
6880
}
69-
70-
.hljs-symbol,
71-
.hljs-bullet {
72-
color: #990073;
81+
.hljs-section {
82+
/* prettylights-syntax-markup-heading */
83+
color: #005cc5;
84+
font-weight: bold
7385
}
74-
75-
.hljs-built_in,
76-
.hljs-builtin-name {
77-
color: #0086b3;
86+
.hljs-bullet {
87+
/* prettylights-syntax-markup-list */
88+
color: #735c0f
7889
}
79-
80-
.hljs-meta {
81-
color: #999;
82-
font-weight: bold;
90+
.hljs-emphasis {
91+
/* prettylights-syntax-markup-italic */
92+
color: #24292e;
93+
font-style: italic
8394
}
84-
85-
.hljs-deletion {
86-
background: #fdd;
95+
.hljs-strong {
96+
/* prettylights-syntax-markup-bold */
97+
color: #24292e;
98+
font-weight: bold
8799
}
88-
89100
.hljs-addition {
90-
background: #dfd;
101+
/* prettylights-syntax-markup-inserted */
102+
color: #22863a;
103+
background-color: #f0fff4
91104
}
92-
93-
.hljs-emphasis {
94-
font-style: italic;
95-
}
96-
97-
.hljs-strong {
98-
font-weight: bold;
105+
.hljs-deletion {
106+
/* prettylights-syntax-markup-deleted */
107+
color: #b31d28;
108+
background-color: #ffeef0
109+
}
110+
.hljs-char.escape_,
111+
.hljs-link,
112+
.hljs-params,
113+
.hljs-property,
114+
.hljs-punctuation,
115+
.hljs-tag {
116+
/* purposely ignored */
117+
99118
}

0 commit comments

Comments
 (0)