@pb33f/cowboy-components 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,393 @@
1
+
2
+ body {
3
+ -webkit-font-smoothing: antialiased;
4
+ -moz-osx-font-smoothing: grayscale;
5
+ background-color: var(--background-color);
6
+ font-family: var(--font-stack), monospace;
7
+ color: var(--font-color);
8
+ word-spacing: var(--global-font-spacing);
9
+ font-size: var(--font-size);
10
+ --sl-panel-background-color: var(--background-color);
11
+ --sl-input-background-color: var(--background-color);
12
+ --sl-input-border-color: var(--secondary-color);
13
+ padding: 0;
14
+ margin: 0;
15
+ }
16
+
17
+ main {
18
+ padding: var(--global-padding);
19
+ margin: 0 auto;
20
+ }
21
+
22
+ a, a:visited, a:active {
23
+ text-decoration: none;
24
+ color: var(--primary-color);
25
+ font-family: var(--font-stack-bold), monospace;
26
+ font-weight: normal
27
+ }
28
+
29
+ a:hover {
30
+ color: var(--primary-color);
31
+ text-decoration: underline;
32
+ }
33
+
34
+ html {
35
+ scroll-behavior: smooth;
36
+ }
37
+
38
+ body::-webkit-scrollbar {
39
+ width: 8px;
40
+ }
41
+
42
+ body::-webkit-scrollbar-track {
43
+ background-color: black;
44
+ }
45
+
46
+ body::-webkit-scrollbar-thumb {
47
+ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
48
+ background: var(--secondary-color-lowalpha);
49
+ padding: var(--global-padding);
50
+ }
51
+
52
+
53
+ p {
54
+ line-height: var(--global-line-height);
55
+ margin-bottom: 30px;
56
+ font-family: var(--font-stack-paragraph), monospace;
57
+ display: inherit;
58
+ }
59
+
60
+ code, pre {
61
+ font-family: var(--font-stack), monospace;
62
+ border: 1px solid var(--secondary-color-lowalpha);
63
+ color: var(--secondary-color);
64
+ border-radius: 0;
65
+ padding: 0 5px 1px 5px;
66
+ background-color: var(--secondary-color-very-lowalpha);
67
+ vertical-align: top;
68
+ }
69
+
70
+ footer {
71
+ padding: var(--footer-padding);
72
+ width: 100vw;
73
+ font-size: var(--footer-font-size);
74
+ height: var(--footer-height);
75
+ position: fixed;
76
+ bottom: 0;
77
+ background-color: var(--background-color);
78
+ border-top: 1px dashed var(--secondary-color);
79
+ }
80
+
81
+ footer > .generated-timestamp {
82
+ float: right;
83
+ margin-right: var(--global-padding);
84
+ font-weight: normal;
85
+ color: var(--font-color-sub2);
86
+ }
87
+
88
+ hr {
89
+ margin-top: var(--hr-margin);
90
+ border-top: none;
91
+ border-bottom: 1px dashed var(--secondary-color);
92
+ margin-bottom: var(--hr-margin);
93
+ }
94
+
95
+
96
+ h1 {
97
+ font-size: var(--h1-size);
98
+ word-spacing: var(--header-spacing);
99
+ margin-top: var(--header-margin-top);
100
+ padding-top: var(--header-margin-top);
101
+ margin-bottom: var(--header-margin-bottom);
102
+ font-family: var(--font-stack-bold), monospace;
103
+ scroll-margin-top: var(--scroll-margin);
104
+ font-weight: normal;
105
+ }
106
+
107
+ h2 {
108
+ font-size: var(--h2-size);
109
+ border-bottom: 1px dashed var(--hrcolor);
110
+ word-spacing: var(--header-spacing);
111
+ margin-top: var(--subheader-margin-top);
112
+ padding-bottom: var(--subheader-padding-bottom);
113
+ font-family: var(--font-stack-bold), monospace;
114
+ scroll-margin-top: var(--scroll-margin);
115
+ font-weight: normal;
116
+ }
117
+
118
+ h3 {
119
+ margin-top: var(--subheader-margin-top);
120
+ font-size: var(--h3-size);
121
+ border-bottom: 1px dashed var(--hrcolor);
122
+ padding-bottom: var(--subheader-padding-bottom);
123
+ font-family: var(--font-stack-bold), monospace;
124
+ scroll-margin-top: var(--scroll-margin);
125
+ font-weight: normal;
126
+ }
127
+
128
+ h4 {
129
+ margin-top: var(--subheader-margin-top);
130
+ font-size: var(--h4-size);
131
+ border-bottom: 1px dashed var(--hrcolor);
132
+ padding-bottom: var(--subheader-padding-bottom);
133
+ font-family: var(--font-stack-bold), monospace;
134
+ scroll-margin-top: var(--scroll-margin);
135
+ font-weight: normal;
136
+ }
137
+
138
+ p {
139
+ margin-bottom: var(--paragraph-margin);
140
+ }
141
+
142
+ i {
143
+ font-family: var(--font-stack-italic), monospace;
144
+ }
145
+
146
+ em {
147
+ font-family: var(--font-stack-bolditalic), monospace;
148
+ }
149
+
150
+ strong {
151
+ font-family: var(--font-stack-bold), monospace;
152
+ font-weight: normal;
153
+ }
154
+
155
+ ul {
156
+ padding-left: 20px;
157
+ }
158
+
159
+ ul > li {
160
+ font-family: var(--font-stack-paragraph), monospace;
161
+ font-weight: normal;
162
+ list-style-type: none;
163
+ line-height: 1.8em;
164
+ }
165
+
166
+ ul > li code {
167
+ font-family: var(--font-stack), monospace;
168
+ border: 1px solid var(--secondary-color-lowalpha);
169
+ color: var(--secondary-color);
170
+ border-radius: 0;
171
+ padding: 0 5px 1px 5px;
172
+ background-color: var(--secondary-color-very-lowalpha);
173
+ vertical-align: top;
174
+ }
175
+
176
+ ul > li:before {
177
+ color: var(--primary-color);
178
+ font-family: var(--font-stack-bold), monospace;
179
+ margin-right: 10px;
180
+ content: ">"
181
+ }
182
+
183
+ ul > li > ul > li:before {
184
+ color: var(--primary-color);
185
+ font-family: var(--font-stack-bold), monospace;
186
+ margin-right: 10px;
187
+ content: "-"
188
+ }
189
+ ul > li > ul > li> ul > li:before {
190
+ color: var(--primary-color);
191
+ font-family: var(--font-stack-bold), monospace;
192
+ margin-right: 10px;
193
+ content: "*"
194
+ }
195
+
196
+ table > tbody > tr > td > a {
197
+ text-decoration: underline;
198
+ }
199
+
200
+ table > tbody > tr > td > code {
201
+ color: var(--secondary-color);
202
+ font-weight: normal;
203
+ }
204
+
205
+
206
+ .kv-table > table, table.kv-table {
207
+ width: 100%;
208
+ border-spacing: 0;
209
+ }
210
+
211
+ .kv-table > table > thead > tr > th , table.kv-table > thead > tr > th {
212
+ font-family: var(--font-stack), sans-serif;
213
+ background: var(--kv-table-header-background);
214
+ text-align: left;
215
+ padding: 10px;
216
+ color: var(--font-color);
217
+ font-weight: normal;
218
+ border-bottom: 1px dashed var(--kv-table-dividers);
219
+ border-top: 1px dashed var(--kv-table-header-border-top);
220
+ }
221
+
222
+ .kv-table > table > thead > tr > th:first-child, table.kv-table > thead > tr > th:first-child {
223
+ font-family: var(--font-stack-bold), sans-serif;
224
+ background: var(--kv-table-header-background-reversed);
225
+ text-align: right;
226
+ color: var(--primary-color);
227
+ padding-right: 10px;
228
+ }
229
+
230
+ .kv-table > table > thead > tr > th:nth-child(2), table.kv-table > thead > tr > th:nth-child(2) {
231
+ font-family: var(--font-stack-bold), sans-serif;
232
+ }
233
+
234
+ .kv-table > table > tbody > tr > td, table.kv-table > tbody > tr > td {
235
+ font-family: var(--font-stack), sans-serif;
236
+ padding: 10px 0 10px 10px;
237
+ border-bottom: 1px dashed var(--kv-table-dividers);
238
+ }
239
+
240
+ .kv-table > table > tbody > tr > td:first-child > code, table.kv-table > tbody > tr > td:first-child > code {
241
+ color: var(--primary-color);
242
+ font-family: var(--font-stack-bold), sans-serif;
243
+ }
244
+
245
+ .kv-table > table > tbody > tr > td:nth-child(2), table.kv-table > tbody > tr > td:nth-child(2) {
246
+ color: var(--font-color-sub1)
247
+ }
248
+
249
+ .kv-table > table > tbody > tr > td:nth-child(2) > code, table.kv-table > tbody > tr > td:nth-child(2) > code {
250
+ font-family: var(--font-stack), sans-serif;
251
+ border: 1px solid var(--secondary-color-lowalpha);
252
+ color: var(--secondary-color);
253
+ border-radius: 0;
254
+ padding: 0 5px 1px 5px;
255
+ background-color: var(--secondary-color-very-lowalpha);
256
+
257
+ }
258
+
259
+ .kv-table > table > tbody > tr > td:first-child, table.kv-table > tbody > tr > td:first-child {
260
+ width: 180px;
261
+ text-align: right;
262
+ padding-right: 10px;
263
+ border-right: 1px dashed var(--kv-table-dividers);
264
+ }
265
+
266
+ .kv-table > table > tbody > tr > td > a, table.kv-table > tbody > tr > td > a {
267
+ text-decoration: underline;
268
+ }
269
+
270
+ .kv-table > table > tbody > tr > td > code, table.kv-table > tbody > tr > td > code {
271
+ color: var(--secondary-color);
272
+ font-weight: normal;
273
+ }
274
+
275
+ .prop-type-table > table > thead > tr > th, table.prop-type-table > thead > tr > th {
276
+ font-family: var(--font-stack-bold), sans-serif;
277
+ background-color: var(--table-header-background-solid);
278
+ text-align: left;
279
+ padding: 10px;
280
+ color: var(--font-color);
281
+ border-bottom: 1px dashed var(--kv-table-dividers);
282
+ border-top: 1px dashed var(--kv-table-header-border-top);
283
+ font-weight: normal;
284
+ }
285
+
286
+ .prop-type-table > table > thead > tr > th:first-child, table.prop-type-table > thead > tr > th:first-child {
287
+ background: var(--kv-table-header-background-reversed);
288
+ text-align: right;
289
+ color: var(--primary-color);
290
+ padding-right: 10px;
291
+ font-weight: normal;
292
+ }
293
+
294
+ .prop-type-table > table > thead > tr > th:nth-child(2), table.prop-type-table > thead > tr > th:nth-child(2) {
295
+ text-align: center;
296
+ color: var(--font-color);
297
+ background-color: var(--kv-table-header-background-solid);
298
+ font-weight: normal;
299
+ }
300
+
301
+ .prop-type-table > table > thead > tr > th:last-child, table.prop-type-table > thead > tr > th:last-child {
302
+ background: var(--kv-table-header-background);
303
+ }
304
+
305
+ .prop-type-table > table > tbody > tr > td, table.prop-type-table > tbody > tr > td {
306
+ font-family: var(--font-stack-paragraph), monospace;
307
+ color: var(--font-color-sub1);
308
+ padding: 10px 0 10px 10px;
309
+ border-bottom: 1px dashed var(--secondary-color-dimmer);
310
+ }
311
+
312
+ .prop-type-table > table > tbody > tr > td:first-child > code, table.prop-type-table > tbody > tr > td:first-child > code {
313
+ color: var(--primary-color);
314
+ font-family: var(--font-stack-bold), monospace;
315
+ }
316
+
317
+ .prop-type-table > table > tbody > tr > td:nth-child(3) > code, table.prop-type-table > tbody > tr > td:nth-child(3) > code {
318
+ font-family: var(--font-stack), sans-serif;
319
+ border: 1px solid var(--secondary-color-lowalpha);
320
+ color: var(--secondary-color);
321
+ border-radius: 0;
322
+ padding: 0 5px 1px 5px;
323
+ background-color: var(--secondary-color-very-lowalpha);
324
+ }
325
+
326
+ .prop-type-table > table > tbody > tr > td:first-child, table.prop-type-table > tbody > tr > td:first-child {
327
+ width: 120px;
328
+ text-align: right;
329
+ padding-right: 10px;
330
+ border-right: 1px dashed var(--secondary-color-dimmer);
331
+ }
332
+
333
+ .prop-type-table > table > tbody > tr > td:nth-child(2), table.prop-type-table > tbody > tr > td:nth-child(2) {
334
+ width: 10px;
335
+ color: var(--font-color);
336
+ font-family: var(--font-stack-italic), monospace;
337
+ text-align: center;
338
+ padding-right: 10px;
339
+ border-right: 1px dashed var(--secondary-color-dimmer);
340
+ }
341
+
342
+ .prop-type-table > table, table.prop-type-table {
343
+ width: 100%;
344
+ border-spacing: 0;
345
+ }
346
+
347
+ .prop-type-table > table > tbody > tr > td > a, table.prop-type-table > tbody > tr > td > a {
348
+ text-decoration: underline;
349
+ }
350
+
351
+ .prop-type-table > table > tbody > tr > td > code, table.prop-type-table > tbody > tr > td > code {
352
+ color: var(--secondary-color);
353
+ font-size: 1em;
354
+ }
355
+
356
+ .spin {
357
+ display: inline-block;
358
+ position: relative;
359
+ width: 35px;
360
+ height: 25px;
361
+ }
362
+ .spin:after {
363
+ content: " ";
364
+ display: block;
365
+ border-radius: 50%;
366
+ width: 0;
367
+ height: 0;
368
+ margin: 8px;
369
+ box-sizing: border-box;
370
+ border: 10px solid var(--primary-color);
371
+ border-color: var(--primary-color) transparent var(--primary-color) transparent;
372
+ animation: spinner 1.2s infinite;
373
+ }
374
+ .pb33f-loader {
375
+ display: block;
376
+ position: relative;
377
+ width: 100%;
378
+ height: 60px;
379
+ }
380
+
381
+ @keyframes spinner {
382
+ 0% {
383
+ transform: rotate(0);
384
+ animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
385
+ }
386
+ 50% {
387
+ transform: rotate(900deg);
388
+ animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
389
+ }
390
+ 100% {
391
+ transform: rotate(1800deg);
392
+ }
393
+ }
@@ -0,0 +1,192 @@
1
+ @font-face {
2
+ font-family: 'BerkeleyMono-Regular';
3
+ src: url('../fonts/BerkeleyMono-Regular.woff2') format('woff2');
4
+ src: url('../fonts/BerkeleyMono-Regular.woff') format('woff');
5
+ }
6
+
7
+ @font-face {
8
+ font-family: 'BerkeleyMono-Italic';
9
+ src: url('../fonts/BerkeleyMono-Italic.woff2') format('woff2');
10
+ src: url('../fonts/BerkeleyMono-Italic.woff') format('woff');
11
+ }
12
+
13
+ @font-face {
14
+ font-family: 'BerkeleyMono-Bold';
15
+ src: url('../fonts/BerkeleyMono-Bold.woff2') format('woff2');
16
+ src: url('../fonts/BerkeleyMono-Bold.woff') format('woff');
17
+ }
18
+
19
+ @font-face {
20
+ font-family: 'BerkeleyMono-BoldItalic';
21
+ src: url('../fonts/BerkeleyMono-BoldItalic.woff2') format('woff2');
22
+ src: url('../fonts/BerkeleyMono-BoldItalic.woff') format('woff');
23
+ }
24
+
25
+ html {
26
+ --small-view: 1000px;
27
+ --mobile-view: 600px;
28
+
29
+ --global-line-height: 1.7em;
30
+ --global-space: 10px;
31
+ --global-padding: 10px;
32
+ --footer-padding: 5px;
33
+ --global-font-spacing: -3px;
34
+
35
+ --font-stack-bold: BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial, sans-serif;
36
+ --font-stack-italic: BerkeleyMono-Italic, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial, sans-serif;
37
+ --font-stack-bolditalic: BerkeleyMono-BoldItalic, Roboto Mono, Monaco, Menlo,Helvetica Neue,Helvetica,Verdana,Tahoma, Arial, sans-serif;
38
+ --font-stack-paragraph: BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial, sans-serif;
39
+ --font-stack: BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Lucida Console, Liberation Mono,
40
+ DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace,
41
+ serif;
42
+ --font-emoji: Arial, Verdana, serif;
43
+ --font-size: 16px;
44
+
45
+ --paragraph-margin: 40px;
46
+
47
+ --scroll-margin: 60px;
48
+
49
+ --footer-font-size: 12px;
50
+ --footer-height: 15px;
51
+
52
+
53
+ --hr-margin: 40px;
54
+
55
+ --header-spacing: -10px;
56
+ --header-margin-top: 0;
57
+ --header-margin-bottom: 20px;
58
+ --subheader-margin-top: 50px;
59
+ --subheader-margin-bottom: 0;
60
+ --subheader-padding-bottom: 10px;
61
+
62
+ --h1-size: 40px;
63
+ --h2-size: 33px;
64
+ --h3-size: 25px;
65
+ --h4-size: 18px;
66
+
67
+
68
+ --background-color: #0d1117;
69
+ --font-color: #e8e9ed;
70
+ --font-color-sub1: #a7a7a7;
71
+ --font-color-sub2: #787878;
72
+ --font-color-sub3: #585858;
73
+ --secondary-color: #f83aff;
74
+ --secondary-color-dimmer: rgba(248, 58, 255, 0.45);
75
+ --secondary-color-text-shadow: rgba(250, 113, 251, 0.5);
76
+ --secondary-color-text-shadow-outer: rgba(251, 169, 255, 0.06);
77
+ --secondary-color-lowalpha: rgba(248, 58, 255, 0.30);
78
+ --secondary-color-very-lowalpha: rgba(248, 58, 255, 0.05);
79
+ --secondary-color-shadow: rgb(59, 41, 87);
80
+ --secondary-color-shadow-mid: rgb(78, 54, 114);
81
+ --tertiary-color: #a3abba;
82
+
83
+
84
+ --terminal-text: #00FF00FF;
85
+ --terminal-text-shadow: #00FF00;
86
+
87
+ --terminal-yellow: #fddb00;
88
+ --hrcolor: #3d3d3d;
89
+ --code-border: #525252;
90
+ --string-literal: #fd66e5;
91
+ --neon-pink: #E400FB;
92
+ --warn-400: #ff6a00;
93
+ --warn-400-lowalpha: rgba(255, 106, 0, 0.3);
94
+ --warn-300: #ff9900;
95
+ --warn-300-lowalpha: rgba(255, 153, 0, 0.3);
96
+ --warn-200: #ffb700;
97
+ --warn-200-lowalpha: rgba(255, 183, 0, 0.3);
98
+ --warn-color: #ffd500;
99
+ --warn-color-lowalpha: rgba(255, 213, 0, 0.3);
100
+ --ok-400: #f7ff00;
101
+ --ok-400-lowalpha: rgba(230, 255, 0, 0.3);
102
+ --ok-300: #d0ff00;
103
+ --ok-300-lowalpha: rgba(208, 255, 0, 0.3);
104
+ --ok-200: #aaff00;
105
+ --ok-200-lowalpha: rgba(170, 255, 0, 0.3);
106
+ --ok-color: #1aff00;
107
+ --ok-color-lowalpha: rgba(170, 255, 0, 0.3);
108
+
109
+
110
+ --sl-color-primary-50: rgba(234, 246, 255, 0.13);
111
+ --sl-color-primary-100: rgba(211, 240, 251, 0.22);
112
+ --sl-color-primary-200: rgba(189, 224, 250, 0.4);
113
+ --sl-color-primary-300: rgba(156, 210, 250, 0.65);
114
+ --sl-color-primary-400: rgba(131, 203, 250, 0.68);
115
+ --sl-color-primary-500: rgba(123, 209, 253, 0.86);
116
+ --sl-color-primary-600: rgba(98, 196, 255, 1.0);
117
+ --sl-color-primary-700: rgb(81, 189, 251);
118
+ --sl-color-primary-800: rgb(53, 184, 253);
119
+ --sl-color-primary-900: rgb(19, 164, 251);
120
+
121
+ --terminal-background: black;
122
+
123
+
124
+
125
+ --table-header-background-solid: rgba(248, 58, 255, 0.30);
126
+
127
+ --kv-table-header-border-top: none;
128
+ --kv-table-dividers: var(--secondary-color-dimmer);
129
+ --kv-table-header-background-reversed: linear-gradient(-90deg, rgba(248, 58, 255, 0.30) 0%, rgba(13, 17, 23, 0.80) 60%);
130
+ --kv-table-header-background: linear-gradient(90deg, rgba(248, 58, 255, 0.30) 0%, rgba(13, 17, 23, 0.80) 60%);
131
+ --kv-table-header-background-solid: var(--table-header-background-solid);
132
+
133
+ --card-background-color: rgba(35, 35, 35, 0.55);
134
+
135
+
136
+ --primary-color: rgba(98, 196, 255, 1.0);
137
+ --primary-color-text-shadow: rgba(98, 196, 255, 0.5);
138
+
139
+
140
+ --primary-color-lowalpha: rgba(98, 196, 255, 0.6);
141
+ --primary-color-verylowalpha: rgba(98, 196, 255, 0.2);
142
+ --error-color: #ff3c74;
143
+ --error-font-color: #ff246b;
144
+ --error-color-lowalpha: rgba(255, 60, 116, 0.4);
145
+ --error-color-loweralpha: rgba(255, 60, 116, 0.2);
146
+ --error-color-verylowalpha: #0c0000;
147
+ --progress-bar-background: #0a0a0a;
148
+ --progress-bar-fill: #62c4ff;
149
+ --code-bg-color: none;
150
+ --input-style: solid;
151
+ --display-h1-decoration: none;
152
+
153
+
154
+ --bars-and-borders: var(--secondary-color);
155
+ --bars-and-borders-dim: var(--secondary-color-dimmer);
156
+
157
+ --primary-text-shadow: var(--primary-color);
158
+ --secondary-text-shadow: var(--secondary-color);
159
+ }
160
+
161
+ html[theme="light"] {
162
+ --background-color: #fff;
163
+ --font-color: black;
164
+
165
+ --font-color-sub1: #282828;
166
+ --font-color-sub2: #434343;
167
+ --font-color-sub3: #747474;
168
+ --secondary-color: #c201c8;
169
+ --secondary-color-dimmer: rgba(163, 0, 167, 0.45);
170
+ --secondary-color-text-shadow: rgba(250, 113, 251, 0.5);
171
+ --tertiary-color: #4c4c4c;
172
+
173
+ --primary-color: rgb(47, 142, 251);
174
+ --primary-color-text-shadow: none;
175
+
176
+ --terminal-background: #f4f4f4;
177
+ --terminal-text: black;
178
+ --terminal-text-shadow: none;
179
+
180
+ --kv-table-header-border-top: var(--code-border);
181
+ --kv-table-dividers: var(--code-border);
182
+ --kv-table-header-background-reversed: linear-gradient(-90deg, var(--terminal-background) 0%, var(--background-color) 60%);
183
+ --kv-table-header-background: linear-gradient(-90deg, var(--background-color) 0%, var(--terminal-background) 60%);
184
+ --kv-table-header-background-solid: var(--terminal-background);
185
+
186
+
187
+ --bars-and-borders: var(--code-border);
188
+ --bars-and-borders-dim: var(--font-color-sub3);
189
+ --primary-text-shadow: none;
190
+ --secondary-text-shadow: none;
191
+
192
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,129 @@
1
+ import { css } from "lit";
2
+ export default css `
3
+ /**
4
+ * okaidia theme for JavaScript, CSS and HTML
5
+ * Loosely based on Monokai textmate theme by http://www.monokai.nl/
6
+ * @author ocodia
7
+ */
8
+
9
+ code[class*="language-"],
10
+ pre[class*="language-"] {
11
+ color: #f8f8f2;
12
+ background: none;
13
+ text-shadow: 0 1px rgba(0, 0, 0, 0.3);
14
+ font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
15
+ font-size: 1em;
16
+ text-align: left;
17
+ white-space: pre;
18
+ word-spacing: normal;
19
+ word-break: normal;
20
+ word-wrap: normal;
21
+ line-height: 1.5;
22
+
23
+ -moz-tab-size: 4;
24
+ -o-tab-size: 4;
25
+ tab-size: 4;
26
+
27
+ -webkit-hyphens: none;
28
+ -moz-hyphens: none;
29
+ -ms-hyphens: none;
30
+ hyphens: none;
31
+ }
32
+
33
+ /* Code blocks */
34
+
35
+ pre[class*="language-"] {
36
+ padding: 1em;
37
+ margin: .5em 0;
38
+ overflow: auto;
39
+ border-radius: 0.3em;
40
+ }
41
+
42
+ :not(pre) > code[class*="language-"],
43
+ pre[class*="language-"] {
44
+ background: #272822;
45
+ }
46
+
47
+ /* Inline code */
48
+
49
+ :not(pre) > code[class*="language-"] {
50
+ padding: .1em;
51
+ border-radius: .3em;
52
+ white-space: normal;
53
+ }
54
+
55
+ .token.comment,
56
+ .token.prolog,
57
+ .token.doctype,
58
+ .token.cdata {
59
+ color: #8292a2;
60
+ }
61
+
62
+ .token.punctuation {
63
+ color: #f8f8f2;
64
+ }
65
+
66
+ .token.namespace {
67
+ opacity: .7;
68
+ }
69
+
70
+ .token.property,
71
+ .token.tag,
72
+ .token.constant,
73
+ .token.symbol,
74
+ .token.deleted {
75
+ color: #f92672;
76
+ }
77
+
78
+ .token.boolean,
79
+ .token.number {
80
+ color: #ae81ff;
81
+ }
82
+
83
+ .token.selector,
84
+ .token.attr-name,
85
+ .token.string,
86
+ .token.char,
87
+ .token.builtin,
88
+ .token.inserted {
89
+ color: #a6e22e;
90
+ }
91
+
92
+ .token.operator,
93
+ .token.entity,
94
+ .token.url,
95
+ .language-css .token.string,
96
+ .style .token.string,
97
+ .token.variable {
98
+ color: #f8f8f2;
99
+ }
100
+
101
+ .token.atrule,
102
+ .token.attr-value,
103
+ .token.function,
104
+ .token.class-name {
105
+ color: #e6db74;
106
+ }
107
+
108
+ .token.keyword {
109
+ color: #66d9ef;
110
+ }
111
+
112
+ .token.regex,
113
+ .token.important {
114
+ color: #fd971f;
115
+ }
116
+
117
+ .token.important,
118
+ .token.bold {
119
+ font-weight: bold;
120
+ }
121
+
122
+ .token.italic {
123
+ font-style: italic;
124
+ }
125
+
126
+ .token.entity {
127
+ cursor: help;
128
+ }
129
+ `;