Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
17mie32
GitHub Repository: 17mie32/17mie32.github.io
Path: blob/main/libs/prism/prism.css
1316 views
1
/* PrismJS 1.22.0
2
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+agda+al+antlr4+apacheconf+apex+apl+applescript+aql+arduino+arff+asciidoc+aspnet+asm6502+autohotkey+autoit+bash+basic+batch+bbcode+birb+bison+bnf+brainfuck+brightscript+bro+bsl+c+csharp+cpp+cil+clojure+cmake+coffeescript+concurnas+csp+crystal+css-extras+cypher+d+dart+dax+dhall+diff+django+dns-zone-file+docker+ebnf+editorconfig+eiffel+ejs+elixir+elm+etlua+erb+erlang+excel-formula+fsharp+factor+firestore-security-rules+flow+fortran+ftl+gml+gcode+gdscript+gedcom+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+hcl+hlsl+http+hpkp+hsts+ichigojam+icon+ignore+inform7+ini+io+j+java+javadoc+javadoclike+javastacktrace+jolie+jq+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+js-templates+julia+keyman+kotlin+latex+latte+less+lilypond+liquid+lisp+livescript+llvm+lolcode+lua+makefile+markdown+markup-templating+matlab+mel+mizar+mongodb+monkey+moonscript+n1ql+n4js+nand2tetris-hdl+naniscript+nasm+neon+nginx+nim+nix+nsis+objectivec+ocaml+opencl+oz+parigp+parser+pascal+pascaligo+pcaxis+peoplecode+perl+php+phpdoc+php-extras+plsql+powerquery+powershell+processing+prolog+promql+properties+protobuf+pug+puppet+pure+purebasic+purescript+python+q+qml+qore+r+racket+jsx+tsx+reason+regex+renpy+rest+rip+roboconf+robotframework+ruby+rust+sas+sass+scss+scala+scheme+shell-session+smali+smalltalk+smarty+sml+solidity+solution-file+soy+sparql+splunk-spl+sqf+sql+stan+iecst+stylus+swift+t4-templating+t4-cs+t4-vb+tap+tcl+tt2+textile+toml+turtle+twig+typescript+typoscript+unrealscript+vala+vbnet+velocity+verilog+vhdl+vim+visual-basic+warpscript+wasm+wiki+xeora+xml-doc+xojo+xquery+yaml+yang+zig */
3
/**
4
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
5
* Based on https://github.com/chriskempson/tomorrow-theme
6
* @author Rose Pritchard
7
*/
8
9
code[class*="language-"],
10
pre[class*="language-"] {
11
color: #ccc;
12
background: none;
13
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
14
font-size: 1em;
15
text-align: left;
16
white-space: pre;
17
word-spacing: normal;
18
word-break: normal;
19
word-wrap: normal;
20
line-height: 1.5;
21
22
-moz-tab-size: 4;
23
-o-tab-size: 4;
24
tab-size: 4;
25
26
-webkit-hyphens: none;
27
-moz-hyphens: none;
28
-ms-hyphens: none;
29
hyphens: none;
30
31
}
32
33
/* Code blocks */
34
pre[class*="language-"] {
35
padding: 1em;
36
margin: .5em 0;
37
overflow: auto;
38
}
39
40
:not(pre) > code[class*="language-"],
41
pre[class*="language-"] {
42
background: #2d2d2d;
43
}
44
45
/* Inline code */
46
:not(pre) > code[class*="language-"] {
47
padding: .1em;
48
border-radius: .3em;
49
white-space: normal;
50
}
51
52
.token.comment,
53
.token.block-comment,
54
.token.prolog,
55
.token.doctype,
56
.token.cdata {
57
color: #999;
58
}
59
60
.token.punctuation {
61
color: #ccc;
62
}
63
64
.token.tag,
65
.token.attr-name,
66
.token.namespace,
67
.token.deleted {
68
color: #e2777a;
69
}
70
71
.token.function-name {
72
color: #6196cc;
73
}
74
75
.token.boolean,
76
.token.number,
77
.token.function {
78
color: #f08d49;
79
}
80
81
.token.property,
82
.token.class-name,
83
.token.constant,
84
.token.symbol {
85
color: #f8c555;
86
}
87
88
.token.selector,
89
.token.important,
90
.token.atrule,
91
.token.keyword,
92
.token.builtin {
93
color: #cc99cd;
94
}
95
96
.token.string,
97
.token.char,
98
.token.attr-value,
99
.token.regex,
100
.token.variable {
101
color: #7ec699;
102
}
103
104
.token.operator,
105
.token.entity,
106
.token.url {
107
color: #67cdcc;
108
}
109
110
.token.important,
111
.token.bold {
112
font-weight: bold;
113
}
114
.token.italic {
115
font-style: italic;
116
}
117
118
.token.entity {
119
cursor: help;
120
}
121
122
.token.inserted {
123
color: green;
124
}
125
126
127
.line-highlight {
128
position: absolute;
129
left: 0;
130
right: 0;
131
padding: inherit 0;
132
margin-top: 1em; /* Same as .prism’s padding-top */
133
134
background: hsla(24, 20%, 50%,.08);
135
background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
136
137
pointer-events: none;
138
139
line-height: inherit;
140
white-space: pre;
141
}
142
143
@media print {
144
.line-highlight {
145
/*
146
* This will prevent browsers from replacing the background color with white.
147
* It's necessary because the element is layered on top of the displayed code.
148
*/
149
-webkit-print-color-adjust: exact;
150
color-adjust: exact;
151
}
152
}
153
154
.line-highlight:before,
155
.line-highlight[data-end]:after {
156
content: attr(data-start);
157
position: absolute;
158
top: .4em;
159
left: .6em;
160
min-width: 1em;
161
padding: 0 .5em;
162
background-color: hsla(24, 20%, 50%,.4);
163
color: hsl(24, 20%, 95%);
164
font: bold 65%/1.5 sans-serif;
165
text-align: center;
166
vertical-align: .3em;
167
border-radius: 999px;
168
text-shadow: none;
169
box-shadow: 0 1px white;
170
}
171
172
.line-highlight[data-end]:after {
173
content: attr(data-end);
174
top: auto;
175
bottom: .4em;
176
}
177
178
.line-numbers .line-highlight:before,
179
.line-numbers .line-highlight:after {
180
content: none;
181
}
182
183
pre[id].linkable-line-numbers span.line-numbers-rows {
184
pointer-events: all;
185
}
186
pre[id].linkable-line-numbers span.line-numbers-rows > span:before {
187
cursor: pointer;
188
}
189
pre[id].linkable-line-numbers span.line-numbers-rows > span:hover:before {
190
background-color: rgba(128, 128, 128, .2);
191
}
192
193
pre[class*="language-"].line-numbers {
194
position: relative;
195
padding-left: 3.8em;
196
counter-reset: linenumber;
197
}
198
199
pre[class*="language-"].line-numbers > code {
200
position: sticky;
201
white-space: inherit;
202
}
203
204
.line-numbers .line-numbers-rows {
205
position: absolute;
206
pointer-events: none;
207
top: 0;
208
font-size: 100%;
209
left: -3.8em;
210
width: 3em; /* works for line-numbers below 1000 lines */
211
letter-spacing: -1px;
212
border-right: 1px solid #999;
213
214
-webkit-user-select: none;
215
-moz-user-select: none;
216
-ms-user-select: none;
217
user-select: none;
218
219
}
220
221
.line-numbers-rows > span {
222
display: block;
223
counter-increment: linenumber;
224
}
225
226
.line-numbers-rows > span:before {
227
content: counter(linenumber);
228
color: #999;
229
display: block;
230
padding-right: 0.8em;
231
text-align: right;
232
height: 100%;
233
}
234
235