-
Notifications
You must be signed in to change notification settings - Fork 182
/
highlight.css
112 lines (84 loc) · 2.22 KB
/
highlight.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
Custom theme for highlight.js
Based on "idea.css" and "darcula.css" themes of hljs distributive
*/
.highlightContainer {
&:global(.hljs) {
display: block;
overflow-x: auto;
color: var(--ring-code-color);
}
& :global(.hljs-subst),
& :global(.hljs-title) {
color: var(--ring-code-color);
font-weight: normal;
}
& :global(.hljs-comment),
& :global(.hljs-quote) {
color: var(--ring-code-comment-color);
font-style: italic;
}
& :global(.hljs-meta) {
color: var(--ring-code-meta-color);
}
& :global(.hljs-tag) {
background: var(--ring-code-tag-background-color);
box-shadow: 0 1px var(--ring-code-tag-background-color), 0 -1px var(--ring-code-tag-background-color);
}
& :global(.hljs-section),
& :global(.hljs-literal),
& :global(.hljs-keyword),
& :global(.hljs-type) {
color: var(--ring-code-keyword-color);
font-weight: bold;
}
& :global(.hljs-name),
& :global(.hljs-selector-pseudo),
& :global(.hljs-selector-id),
& :global(.hljs-selector-class) {
color: var(--ring-code-tag-color);
font-weight: var(--ring-code-tag-font-weight);
}
& :global(.hljs-selector-tag) {
color: var(--ring-code-keyword-color);
font-weight: var(--ring-code-tag-font-weight);
}
& :global(.hljs-attr) {
color: var(--ring-code-field-color);
font-weight: bold;
}
& :global(.hljs-tag) > :global(.hljs-attr),
& :global(.hljs-attribute) {
color: var(--ring-code-attribute-color);
font-weight: var(--ring-code-tag-font-weight);
}
& :global(.hljs-number),
& :global(.hljs-regexp),
& :global(.hljs-link) {
color: var(--ring-code-number-color);
font-weight: normal;
}
& :global(.hljs-string) {
color: var(--ring-code-string-color);
font-weight: bold;
}
& :global(.hljs-doctag) {
text-decoration: underline;
}
& :global(.hljs-variable),
& :global(.hljs-template-variable) {
color: var(--ring-code-field-color);
}
& :global(.hljs-addition) {
background: var(--ring-code-addition-color);
}
& :global(.hljs-deletion) {
background: var(--ring-code-deletion-color);
}
& :global(.hljs-emphasis) {
font-style: italic;
}
& :global(.hljs-strong) {
font-weight: bold;
}
}