@eui/styles 17.0.0-next.20 → 17.0.0-next.21

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.
package/package.json CHANGED
@@ -14,6 +14,6 @@
14
14
  "npm": "Please use yarn instead of NPM to install dependencies"
15
15
  },
16
16
  "license": "EUPL-1.1",
17
- "version": "17.0.0-next.20",
17
+ "version": "17.0.0-next.21",
18
18
  "tag": "next"
19
19
  }
@@ -18,7 +18,7 @@
18
18
  border-radius: $border-radius;
19
19
 
20
20
  &:hover {
21
- background-color: v(eui-base-color-grey-35);
21
+ background-color: v(eui-base-color-grey-50);
22
22
  }
23
23
  }
24
24
  @else {
@@ -41,4 +41,13 @@ html.eui-t-dark {
41
41
  .eui-slide-toggle__handler {
42
42
  background-color: v(_dark-white) !important;
43
43
  }
44
+
45
+ // PRISM
46
+ .token.operator,
47
+ .token.entity,
48
+ .token.url,
49
+ .language-css .token.string,
50
+ .style .token.string {
51
+ background: inherit;
52
+ }
44
53
  }
@@ -1,6 +1,7 @@
1
1
  @import '@eui/styles-base/src/styles/999-showcase-exports/module';
2
2
 
3
3
  @import 'prism-theme';
4
+ @import 'prism-dracula';
4
5
  @import 'component-demo-exports';
5
6
  @import 'docpage-navigation';
6
7
  @import 'specific-typography'; // v15 transfered from shared
@@ -0,0 +1,584 @@
1
+ /* PrismJS 1.14.0
2
+ http://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+abap+actionscript+ada+apacheconf+apl+applescript+c+arff+asciidoc+asm6502+aspnet+autohotkey+autoit+bash+basic+batch+bison+brainfuck+bro+cpp+csharp+arduino+coffeescript+clojure+ruby+csp+css-extras+d+dart+diff+django+docker+eiffel+elixir+elm+markup-templating+erlang+fsharp+flow+fortran+gedcom+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+http+hpkp+hsts+ichigojam+icon+inform7+ini+io+j+java+jolie+json+julia+keyman+kotlin+latex+less+liquid+lisp+livescript+lolcode+lua+makefile+markdown+erb+matlab+mel+mizar+monkey+n4js+nasm+nginx+nim+nix+nsis+objectivec+ocaml+opencl+oz+parigp+parser+pascal+perl+php+php-extras+sql+powershell+processing+prolog+properties+protobuf+pug+puppet+pure+python+q+qore+r+jsx+typescript+renpy+reason+rest+rip+roboconf+crystal+rust+sas+sass+scss+scala+scheme+smalltalk+smarty+plsql+soy+stylus+swift+tcl+textile+twig+tsx+vbnet+velocity+verilog+vhdl+vim+visual-basic+wasm+wiki+xeora+xojo+yaml&plugins=line-numbers+toolbar+show-language */
3
+ /**
4
+ * prism.js default theme for JavaScript, CSS and HTML
5
+ * Based on dabblet (http://dabblet.com)
6
+ * @author Lea Verou
7
+ */
8
+
9
+ /*
10
+ * Dracula Theme for Prism.JS
11
+ *
12
+ * @author Gustavo Costa
13
+ * e-mail: gusbemacbe@gmail.com
14
+ *
15
+ * @contributor Jon Leopard
16
+ * e-mail: jonlprd@gmail.com
17
+ *
18
+ * @license MIT 2016-2020
19
+ */
20
+
21
+ /* Aligned color variables for eUI Dark theme, passing WCAG2.1 AA checks */
22
+ html.eui-t-dark
23
+ {
24
+ --background: #282A36;
25
+ --comment: #8095d9;
26
+ --foreground: #F8F8F2;
27
+ --selection: #44475A;
28
+
29
+ --cyan: #8BE9FD;
30
+ --green: #50FA7B;
31
+ --orange: #FFB86C;
32
+ --pink: #ff8be3;
33
+ --purple: #BD93F9;
34
+ --red: #FF5555;
35
+ --yellow: #F1FA8C;
36
+
37
+ /* Transparency */
38
+
39
+ /** 30% of transparency **/
40
+ --background-30: #282A3633;
41
+ --comment-30: #6272A433;
42
+ --foreground-30: #F8F8F233;
43
+ --selection-30: #44475A33;
44
+
45
+ --cyan-30: #8BE9FD33;
46
+ --green-30: #50FA7B33;
47
+ --orange-30: #FFB86C33;
48
+ --pink-30: #FF79C633;
49
+ --purple-30: #BD93F933;
50
+ --red-30: #FF555533;
51
+ --yellow-30: #F1FA8C33;
52
+
53
+ /** 40% of transparency **/
54
+ --background-40: #282A3666;
55
+ --comment-40: #6272A466;
56
+ --foreground-40: #F8F8F266;
57
+ --selection-40: #44475A66;
58
+
59
+ --cyan-40: #8BE9FD66;
60
+ --green-40: #50FA7B66;
61
+ --orange-40: #FFB86C66;
62
+ --pink-40: #FF79C666;
63
+ --purple-40: #BD93F966;
64
+ --red-40: #FF555566;
65
+ --yellow-40: #F1FA8C66;
66
+
67
+
68
+ pre::-webkit-scrollbar
69
+ {
70
+ width: 14px;
71
+ }
72
+
73
+ pre::-webkit-scrollbar-track
74
+ {
75
+ background-color: var(--comment);
76
+ border-radius: 0px;
77
+ }
78
+
79
+ pre::-webkit-scrollbar-thumb
80
+ {
81
+ background-color: var(--purple);
82
+ border-radius: 0px;
83
+ }
84
+
85
+ /* Selection */
86
+
87
+ pre[class*="language-"]::-moz-selection,
88
+ pre[class*="language-"] ::-moz-selection,
89
+ code[class*="language-"]::-moz-selection,
90
+ code[class*="language-"] ::-moz-selection
91
+ {
92
+ text-shadow: none;
93
+ background-color: var(--selection);
94
+ }
95
+
96
+ pre[class*="language-"]::selection,
97
+ pre[class*="language-"] ::selection,
98
+ code[class*="language-"]::selection,
99
+ code[class*="language-"] ::selection
100
+ {
101
+ text-shadow: none;
102
+ background-color: var(--selection);
103
+ }
104
+
105
+ /* Line numbers */
106
+
107
+ pre.line-numbers
108
+ {
109
+ position: relative;
110
+ padding-left: 3.8em;
111
+ counter-reset: linenumber;
112
+ }
113
+
114
+ pre.line-numbers > code
115
+ {
116
+ position: relative;
117
+ white-space: inherit;
118
+ }
119
+
120
+ .line-numbers .line-numbers-rows
121
+ {
122
+ position: absolute;
123
+ pointer-events: none;
124
+ top: 0;
125
+ font-size: 100%;
126
+ left: -3.8em;
127
+ width: 3em; /* works for line-numbers below 1000 lines */
128
+ letter-spacing: -1px;
129
+ border-right: 1px solid #999;
130
+
131
+ -webkit-user-select: none;
132
+ -moz-user-select: none;
133
+ -ms-user-select: none;
134
+ user-select: none;
135
+ }
136
+
137
+ .line-numbers-rows > span
138
+ {
139
+ pointer-events: none;
140
+ display: block;
141
+ counter-increment: linenumber;
142
+ }
143
+
144
+ .line-numbers-rows > span:before
145
+ {
146
+ content: counter(linenumber);
147
+ color: #999;
148
+ display: block;
149
+ padding-right: 0.8em;
150
+ text-align: right;
151
+ }
152
+
153
+ /* Toolbar for copying */
154
+
155
+ div.code-toolbar
156
+ {
157
+ position: relative;
158
+ }
159
+
160
+ div.code-toolbar > .toolbar
161
+ {
162
+ position: absolute;
163
+ top: 0.3em;
164
+ right: 0.2em;
165
+ transition: opacity 0.3s ease-in-out;
166
+ opacity: 0;
167
+ }
168
+
169
+ div.code-toolbar:hover > .toolbar
170
+ {
171
+ opacity: 1;
172
+ }
173
+
174
+ div.code-toolbar > .toolbar .toolbar-item
175
+ {
176
+ display: inline-block;
177
+ padding-right: 20px;
178
+ }
179
+
180
+ div.code-toolbar > .toolbar a
181
+ {
182
+ cursor: pointer;
183
+ }
184
+
185
+ div.code-toolbar > .toolbar button
186
+ {
187
+ background: none;
188
+ border: 0;
189
+ color: inherit;
190
+ font: inherit;
191
+ line-height: normal;
192
+ overflow: visible;
193
+ padding: 0;
194
+ -webkit-user-select: none; /* for button */
195
+ -moz-user-select: none;
196
+ -ms-user-select: none;
197
+ }
198
+
199
+ div.code-toolbar > .toolbar a,
200
+ div.code-toolbar > .toolbar button,
201
+ div.code-toolbar > .toolbar span
202
+ {
203
+ color: var(--foreground);
204
+ font-size: 0.8em;
205
+ padding: 0.5em;
206
+ background: var(--comment);
207
+ border-radius: 0.5em;
208
+ }
209
+
210
+ div.code-toolbar > .toolbar a:hover,
211
+ div.code-toolbar > .toolbar a:focus,
212
+ div.code-toolbar > .toolbar button:hover,
213
+ div.code-toolbar > .toolbar button:focus,
214
+ div.code-toolbar > .toolbar span:hover,
215
+ div.code-toolbar > .toolbar span:focus
216
+ {
217
+ color: inherit;
218
+ text-decoration: none;
219
+ background-color: var(--green);
220
+ }
221
+
222
+ /* Remove text shadow for printing */
223
+
224
+ @media print
225
+ {
226
+ code[class*="language-"],
227
+ pre[class*="language-"]
228
+ {
229
+ text-shadow: none;
230
+ }
231
+ }
232
+
233
+ code[class*="language-"],
234
+ pre[class*="language-"]
235
+ {
236
+ color: var(--foreground);
237
+ background: var(--background);
238
+ text-shadow: none;
239
+ font-family: PT Mono, Consolas, Monaco, "Andale Mono", "Ubuntu Mono",
240
+ monospace;
241
+ text-align: left;
242
+ white-space: pre;
243
+ word-spacing: normal;
244
+ word-break: normal;
245
+ word-wrap: normal;
246
+ line-height: 1.5;
247
+
248
+ -moz-tab-size: 4;
249
+ -o-tab-size: 4;
250
+ tab-size: 4;
251
+
252
+ -webkit-hyphens: none;
253
+ -moz-hyphens: none;
254
+ -ms-hyphens: none;
255
+ hyphens: none;
256
+ }
257
+
258
+ /* Code blocks */
259
+
260
+ pre[class*="language-"]
261
+ {
262
+ background: var(--background);
263
+ border-radius: 0.5em;
264
+ padding: 1em;
265
+ margin: 0.5em 0;
266
+ overflow: auto;
267
+ height: auto;
268
+ }
269
+
270
+ :not(pre) > code[class*="language-"],
271
+ pre[class*="language-"]
272
+ {
273
+ background: var(--background);
274
+ }
275
+
276
+ /* Inline code */
277
+ :not(pre) > code[class*="language-"]
278
+ {
279
+ padding: 4px 7px;
280
+ border-radius: 0.3em;
281
+ white-space: normal;
282
+ }
283
+
284
+ /* Code box limit */
285
+
286
+ .limit-300
287
+ {
288
+ height: 300px !important;
289
+ }
290
+
291
+ .limit-300
292
+ {
293
+ height: 400px !important;
294
+ }
295
+
296
+ .limit-500
297
+ {
298
+ height: 500px !important;
299
+ }
300
+
301
+ .limit-600
302
+ {
303
+ height: 600px !important;
304
+ }
305
+
306
+ .limit-700
307
+ {
308
+ height: 700px !important;
309
+ }
310
+
311
+ .limit-800
312
+ {
313
+ height: 800px !important;
314
+ }
315
+
316
+ .language-css
317
+ {
318
+ color: var(--purple);
319
+ }
320
+
321
+ .token
322
+ {
323
+ color: var(--pink);
324
+ }
325
+
326
+ .language-css .token
327
+ {
328
+ color: var(--pink);
329
+ }
330
+
331
+ .token.script
332
+ {
333
+ color: var(--foreground);
334
+ }
335
+
336
+ .token.bold
337
+ {
338
+ font-weight: bold;
339
+ }
340
+
341
+ .token.italic
342
+ {
343
+ font-style: italic;
344
+ }
345
+
346
+ .token.atrule, .token.attr-name, .token.attr-value
347
+ {
348
+ color: var(--green);
349
+ }
350
+
351
+ .language-css .token.atrule
352
+ {
353
+ color: var(--purple);
354
+ }
355
+
356
+ .language-html .token.attr-value, .language-markup .token.attr-value
357
+ {
358
+ color: var(--yellow);
359
+ }
360
+
361
+ .token.boolean
362
+ {
363
+ color: var(--purple);
364
+ }
365
+
366
+ .token.builtin, .token.class-name
367
+ {
368
+ color: var(--cyan);
369
+ }
370
+
371
+ .token.comment
372
+ {
373
+ color: var(--comment);
374
+ }
375
+
376
+ .token.constant
377
+ {
378
+ color: var(--purple);
379
+ }
380
+
381
+ .language-javascript .token.constant
382
+ {
383
+ color: var(--orange);
384
+ font-style: italic;
385
+ }
386
+
387
+ .token.entity
388
+ {
389
+ color: var(--pink);
390
+ }
391
+
392
+ .language-css .token.entity
393
+ {
394
+ color: var(--green);
395
+ }
396
+
397
+ .language-html .token.entity.named-entity
398
+ {
399
+ color: var(--purple);
400
+ }
401
+
402
+ .language-html .token.entity:not(.named-entity)
403
+ {
404
+ color: var(--pink);
405
+ }
406
+
407
+ .language-markup .token.entity.named-entity
408
+ {
409
+ color: var(--purple);
410
+ }
411
+
412
+ .language-markup .token.entity:not(.named-entity)
413
+ {
414
+ color: var(--pink);
415
+ }
416
+
417
+ .token.function
418
+ {
419
+ color: var(--green);
420
+ }
421
+
422
+ .language-css .token.function
423
+ {
424
+ color: var(--cyan);
425
+ }
426
+
427
+ .token.important, .token.keyword
428
+ {
429
+ color: var(--pink);
430
+ }
431
+
432
+ .token.prolog
433
+ {
434
+ color: var(--foreground);
435
+ }
436
+
437
+ .token.property
438
+ {
439
+ color: var(--orange);
440
+ }
441
+
442
+ .language-css .token.property
443
+ {
444
+ color: var(--cyan);
445
+ }
446
+
447
+ .token.punctuation
448
+ {
449
+ color: var(--pink);
450
+ }
451
+
452
+ .language-css .token.punctuation
453
+ {
454
+ color: var(--orange);
455
+ }
456
+
457
+ .language-html .token.punctuation, .language-markup .token.punctuation
458
+ {
459
+ color: var(--foreground);
460
+ }
461
+
462
+ .token.selector
463
+ {
464
+ color: var(--pink);
465
+ }
466
+
467
+ .language-css .token.selector
468
+ {
469
+ color: var(--green);
470
+ }
471
+
472
+ .token.regex
473
+ {
474
+ color: var(--red);
475
+ }
476
+
477
+ .language-css .token.rule:not(.atrule)
478
+ {
479
+ color: var(--foreground);
480
+ }
481
+
482
+ .token.string
483
+ {
484
+ color: var(--yellow);
485
+ }
486
+
487
+ .token.tag
488
+ {
489
+ color: var(--pink);
490
+ }
491
+
492
+ .token.url
493
+ {
494
+ color: var(--cyan);
495
+ }
496
+
497
+ .language-css .token.url
498
+ {
499
+ color: var(--orange);
500
+ }
501
+
502
+ .token.variable
503
+ {
504
+ color: var(--comment);
505
+ }
506
+
507
+ .token.number
508
+ {
509
+ color: rgba(189, 147, 249, 1);
510
+ }
511
+
512
+ .token.operator
513
+ {
514
+ color: rgba(139, 233, 253, 1);
515
+ }
516
+
517
+ .token.char
518
+ {
519
+ color: rgba(255, 135, 157, 1);
520
+ }
521
+
522
+ .token.symbol
523
+ {
524
+ color: rgba(255, 184, 108, 1);
525
+ }
526
+
527
+ .token.deleted
528
+ {
529
+ color: #e2777a;
530
+ }
531
+
532
+ .token.namespace
533
+ {
534
+ color: #e2777a;
535
+ }
536
+
537
+ /* Line Highlighter */
538
+
539
+ .highlight-line
540
+ {
541
+ color: inherit;
542
+ display: inline-block;
543
+ text-decoration: none;
544
+
545
+ border-radius: 4px;
546
+ padding: 2px 10px;
547
+ }
548
+
549
+ .highlight-line:empty:before
550
+ {
551
+ content: " ";
552
+ }
553
+
554
+ .highlight-line:not(:last-child)
555
+ {
556
+ min-width: 100%;
557
+ }
558
+
559
+ .highlight-line .highlight-line:not(:last-child)
560
+ {
561
+ min-width: 0;
562
+ }
563
+
564
+ .highlight-line-isdir
565
+ {
566
+ color: var(--foreground);
567
+ background-color: var(--selection-30);
568
+ }
569
+
570
+ .highlight-line-active
571
+ {
572
+ background-color: var(--comment-30);
573
+ }
574
+
575
+ .highlight-line-add
576
+ {
577
+ background-color: var(--green-30);
578
+ }
579
+
580
+ .highlight-line-remove
581
+ {
582
+ background-color: var(--red-30);
583
+ }
584
+ }