/
prism.css
174 lines (143 loc) · 3.47 KB
/
prism.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
:root {
--token-color: #393a34;
--token-background: #f6f8fa;
--token-border: var(--ifm-color-emphasis-300);
--token-color-comment: #999988;
--token-color-doctype: #008000;
--token-color-string: #a31515;
--token-color-operator: #393a34;
--token-color-symbol: #36acaa;
--token-color-number: #098658;
--token-color-keyword: #0000ff;
--token-color-function: #569cd6;
--token-color-function-variable: #000000;
--token-color-important: #e90;
--token-color-class-name: #2b91af;
--token-color-selector: #800000;
--token-color-regexp: #800000;
--token-color-property: #ff0000;
--token-color-builtin: #0000ff;
--token-color-boolean: #0000ff;
--token-color-inserted: #36acaa;
--token-color-deleted: #d73a49;
--token-color-unchanged: #a7a9a8;
--token-color-highlight: rgba(193, 222, 241, 0.2);
}
html[data-theme='dark'] {
--token-color: #f8f8f2;
--token-background: var(--ifm-background-surface-color);
--token-border: #414458;
--token-color-comment: #737373;
--token-color-doctype: #6a9955;
--token-color-string: #6a9955;
--token-color-operator: #d4d4d4;
--token-color-symbol: #b5cea8;
--token-color-number: #b5cea8;
--token-color-keyword: #569cd6;
--token-color-function: #98b6ce;
--token-color-function-variable: #f8f8f2;
--token-color-important: #569cd6;
--token-color-class-name: #4ec9b0;
--token-color-selector: #d7ba7d;
--token-color-regexp: #d7ba7d;
--token-color-property: #ce9178;
--token-color-builtin: #569cd6;
--token-color-boolean: #569cd6;
--token-color-inserted: #50fa7b;
--token-color-deleted: #f55;
--token-color-unchanged: #a6a6a6;
--token-color-highlight: rgba(247, 235, 198, 0.2);
}
div[class*='codeBlockContainer'],
div[class*='codeBlockContainer'] pre {
color: var(--token-color);
background-color: var(--token-background);
--ifm-color-emphasis-300: var(--token-border);
}
.token.comment {
color: var(--token-color-comment);
font-style: italic;
}
.token.prolog,
.token.doctype,
.token.cdata {
color: var(--token-color-doctype);
font-style: italic;
}
.token.namespace {
opacity: 0.7;
}
.token.string,
.token.char {
color: var(--token-color-string);
}
.token.punctuation,
.token.operator {
color: var(--token-color-operator);
}
.token.number {
color: var(--token-color-number);
}
.token.boolean {
color: var(--token-color-boolean);
}
.token.url,
.token.symbol,
.token.variable,
.token.constant {
color: var(--token-color-symbol);
}
.token.inserted {
color: var(--token-color-inserted);
}
.token.atrule,
.token.keyword,
.token.attr-value {
color: var(--token-color-keyword);
}
.token.function {
color: var(--token-color-function);
}
.token.function-variable {
color: var(--token-color-function-variable);
}
.token.deleted {
color: var(--token-color-deleted);
}
.token.unchanged {
color: var(--token-color-unchanged);
}
.token.important {
color: var(--token-color-important);
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.class-name,
.token.maybe-class-name {
color: var(--token-color-class-name);
}
.token.tag,
.token.selector {
color: var(--token-color-selector);
}
.token.builtin {
color: var(--token-color-builtin);
}
.token.regex {
color: var(--token-color-regexp);
}
.token.attr-name,
.token.property,
.token.entity {
color: var(--token-color-property);
}
.line-highlight.line-highlight {
background: var(--token-color-highlight);
box-shadow: inset 5px 0 0 var(--token-color-highlight);
z-index: 0;
}