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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
|
/* PrismJS 1.16.0
https://prismjs.com/download.html#themes=prism&languages=bash+clojure+latex+lisp+lua+makefile+perl+sql+python+scheme+yaml */
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*
* Edited by Ekaitz Zarraga to make it fit in ElenQ Technology style.
*/
pre.highlight,
code[class*="language-"],
pre[class*="language-"] {
background: none;
font-family: "monospace";
font-size: 0.9em;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
@media print {
code[class*="language-"],
pre[class*="language-"] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
border-radius: 0.3em;
}
:not(pre) > code {
padding: .1em;
border-radius: .3em;
font-size: 0.9em;
white-space: normal;
background-color: var(--background-color);
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: var(--comment);
}
.token.punctuation {
color: var(--punctuation);
}
.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: var(--property);
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: var(--builtin);
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: var(--operator);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: var(--keyword);
}
.token.function,
.token.class-name {
color: var(--function);
}
.token.regex,
.token.important,
.token.variable {
color: var(--variable);
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
/**
* Prism default colorscheme
*/
@media (prefers-color-scheme: light) or (prefers-color-scheme: no-preference) {
:root{
--base: black;
--comment: slategray;
--punctuation: #999;
--property: #905;
--builtin: #690;
--operator: #9a6e3a;
--keyword: #07a;
--function: #DD4A68;
--variable: #e90;
--background-color: #e8e8e8;
}
}
/**
* Dracula Theme originally by Zeno Rocha [@zenorocha]
* https://draculatheme.com/
*
* Ported for PrismJS by Albert Vallverdu [@byverdu]
*
* Strongly edited by Ekaitz Zárraga to fit on the default theme
*/
@media (prefers-color-scheme: dark){
:root{
--base: #f8f8f2;
--comment: #6272a4;
--punctuation: #f8f8f2;
--property: #ff79c6;
--builtin: #50fa7b;
--operator: #f8f8f2;
--keyword: #8be9fd;
--function: #f1fa8c;
--variable: #ffb86c;
--background-color: #565656;
}
}
/* Make editable via JS */
html[data-theme="light"]{
--base: black;
--comment: slategray;
--punctuation: #999;
--property: #905;
--builtin: #690;
--operator: #9a6e3a;
--keyword: #07a;
--function: #DD4A68;
--variable: #e90;
--background-color: #e8e8e8;
}
html[data-theme="dark"]{
--base: #f8f8f2;
--comment: #6272a4;
--punctuation: #f8f8f2;
--property: #ff79c6;
--builtin: #50fa7b;
--operator: #f8f8f2;
--keyword: #8be9fd;
--function: #f1fa8c;
--variable: #ffb86c;
--background-color: #565656;
}
|