|
1 |
| -/* |
2 |
| -
|
3 |
| -github.com style (c) Vasily Polovnyov <[email protected]> |
4 |
| -
|
5 |
| -*/ |
6 |
| - |
7 |
| -.hljs { |
| 1 | +pre code.hljs { |
8 | 2 | display: block;
|
9 | 3 | overflow-x: auto;
|
10 |
| - padding: 0.5em; |
11 |
| - color: #333; |
12 |
| - background: #f8f8f8; |
| 4 | + padding: 1em |
13 | 5 | }
|
14 |
| - |
15 |
| -.hljs-comment, |
16 |
| -.hljs-quote { |
17 |
| - color: #998; |
18 |
| - font-style: italic; |
| 6 | +code.hljs { |
| 7 | + padding: 3px 5px |
19 | 8 | }
|
| 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 |
20 | 15 |
|
| 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, |
21 | 24 | .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 |
26 | 32 | }
|
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, |
29 | 42 | .hljs-literal,
|
| 43 | +.hljs-meta, |
| 44 | +.hljs-number, |
| 45 | +.hljs-operator, |
30 | 46 | .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 |
34 | 52 | }
|
35 |
| - |
| 53 | +.hljs-regexp, |
36 | 54 | .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 |
46 | 58 | }
|
47 |
| - |
48 |
| -.hljs-subst { |
49 |
| - font-weight: normal; |
| 59 | +.hljs-built_in, |
| 60 | +.hljs-symbol { |
| 61 | + /* prettylights-syntax-variable */ |
| 62 | + color: #e36209 |
50 | 63 | }
|
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 |
56 | 69 | }
|
57 |
| - |
58 |
| -.hljs-tag, |
59 | 70 | .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 |
63 | 76 | }
|
64 |
| - |
65 |
| -.hljs-regexp, |
66 |
| -.hljs-link { |
67 |
| - color: #009926; |
| 77 | +.hljs-subst { |
| 78 | + /* prettylights-syntax-storage-modifier-import */ |
| 79 | + color: #24292e |
68 | 80 | }
|
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 |
73 | 85 | }
|
74 |
| - |
75 |
| -.hljs-built_in, |
76 |
| -.hljs-builtin-name { |
77 |
| - color: #0086b3; |
| 86 | +.hljs-bullet { |
| 87 | + /* prettylights-syntax-markup-list */ |
| 88 | + color: #735c0f |
78 | 89 | }
|
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 |
83 | 94 | }
|
84 |
| - |
85 |
| -.hljs-deletion { |
86 |
| - background: #fdd; |
| 95 | +.hljs-strong { |
| 96 | + /* prettylights-syntax-markup-bold */ |
| 97 | + color: #24292e; |
| 98 | + font-weight: bold |
87 | 99 | }
|
88 |
| - |
89 | 100 | .hljs-addition {
|
90 |
| - background: #dfd; |
| 101 | + /* prettylights-syntax-markup-inserted */ |
| 102 | + color: #22863a; |
| 103 | + background-color: #f0fff4 |
91 | 104 | }
|
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 | + |
99 | 118 | }
|
0 commit comments