@limetech/lime-elements 37.15.0 → 37.16.0

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-portal_3.cjs.entry.js +34 -16
  4. package/dist/cjs/limel-portal_3.cjs.entry.js.map +1 -1
  5. package/dist/cjs/limel-text-editor.cjs.entry.js +15887 -0
  6. package/dist/cjs/limel-text-editor.cjs.entry.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -0
  9. package/dist/collection/components/text-editor/text-editor.css +669 -0
  10. package/dist/collection/components/text-editor/text-editor.js +82 -0
  11. package/dist/collection/components/text-editor/text-editor.js.map +1 -0
  12. package/dist/collection/components/tooltip/getOwnerElement.js +10 -0
  13. package/dist/collection/components/tooltip/getOwnerElement.js.map +1 -0
  14. package/dist/collection/components/tooltip/tooltip.js +6 -16
  15. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  16. package/dist/collection/components/tooltip/tooltipTimer.js +20 -0
  17. package/dist/collection/components/tooltip/tooltipTimer.js.map +1 -0
  18. package/dist/esm/lime-elements.js +1 -1
  19. package/dist/esm/limel-portal_3.entry.js +34 -16
  20. package/dist/esm/limel-portal_3.entry.js.map +1 -1
  21. package/dist/esm/limel-text-editor.entry.js +15883 -0
  22. package/dist/esm/limel-text-editor.entry.js.map +1 -0
  23. package/dist/esm/loader.js +1 -1
  24. package/dist/lime-elements/lime-elements.esm.js +1 -1
  25. package/dist/lime-elements/lime-elements.esm.js.map +1 -1
  26. package/dist/lime-elements/p-56a13153.entry.js +2 -0
  27. package/dist/lime-elements/p-56a13153.entry.js.map +1 -0
  28. package/dist/lime-elements/p-ae978098.entry.js +2 -0
  29. package/dist/lime-elements/p-ae978098.entry.js.map +1 -0
  30. package/dist/types/components/text-editor/text-editor.d.ts +25 -0
  31. package/dist/types/components/tooltip/getOwnerElement.d.ts +2 -0
  32. package/dist/types/components/tooltip/tooltip.d.ts +1 -2
  33. package/dist/types/components/tooltip/tooltipTimer.d.ts +10 -0
  34. package/dist/types/components.d.ts +65 -0
  35. package/package.json +5 -3
  36. package/dist/lime-elements/p-66c9403f.entry.js +0 -2
  37. package/dist/lime-elements/p-66c9403f.entry.js.map +0 -1
@@ -0,0 +1,669 @@
1
+ @charset "UTF-8";
2
+ /*
3
+ * This file is imported into every component!
4
+ *
5
+ * Nothing in this file may output any CSS
6
+ * without being explicitly called by outside code.
7
+ */
8
+ /*
9
+ * This file is imported into every component that uses MDC!
10
+ *
11
+ * Anything in this file that generates CSS output on its own,
12
+ * without being explicitly used, will output that CSS in every
13
+ * single component, increasing the size of the production build.
14
+ * Avoid that unless there's very good reason for it!
15
+ */
16
+ /*
17
+ * This file is imported into every component that uses MDC!
18
+ *
19
+ * Anything in this file that generates CSS output on its own,
20
+ * without being explicitly used, will output that CSS in every
21
+ * single component, increasing the size of the production build.
22
+ * Avoid that unless there's very good reason for it!
23
+ */
24
+ :host {
25
+ --mdc-theme-primary: var(
26
+ --lime-primary-color,
27
+ rgb(var(--color-teal-default))
28
+ );
29
+ --mdc-theme-secondary: var(
30
+ --lime-secondary-color,
31
+ rgb(var(--contrast-1100))
32
+ );
33
+ --mdc-theme-on-primary: var(
34
+ --lime-on-primary-color,
35
+ rgb(var(--contrast-100))
36
+ );
37
+ --mdc-theme-on-secondary: var(
38
+ --lime-on-secondary-color,
39
+ rgb(var(--contrast-100))
40
+ );
41
+ --mdc-theme-text-disabled-on-background: var(
42
+ --lime-text-disabled-on-background-color,
43
+ rgba(var(--contrast-1700), 0.38)
44
+ );
45
+ --mdc-theme-text-primary-on-background: var(
46
+ --lime-text-primary-on-background-color,
47
+ rgba(var(--contrast-1700), 0.87)
48
+ );
49
+ --mdc-theme-text-secondary-on-background: var(
50
+ --lime-text-secondary-on-background-color,
51
+ rgba(var(--contrast-1700), 0.54)
52
+ );
53
+ --mdc-theme-error: var(
54
+ --lime-error-background-color,
55
+ rgb(var(--color-red-dark))
56
+ );
57
+ --lime-error-text-color: rgb(var(--color-red-darker));
58
+ --mdc-theme-surface: var(
59
+ --lime-surface-background-color,
60
+ rgb(var(--contrast-100))
61
+ );
62
+ --mdc-theme-on-surface: var(
63
+ --lime-on-surface-color,
64
+ rgb(var(--contrast-1500))
65
+ );
66
+ }
67
+
68
+ :host(limel-text-editor) {
69
+ isolation: isolate;
70
+ display: block;
71
+ }
72
+
73
+ * {
74
+ box-sizing: border-box;
75
+ }
76
+
77
+ .ProseMirror-menubar-wrapper {
78
+ transition: border 0.2s ease;
79
+ display: grid;
80
+ grid-template-rows: auto 1fr;
81
+ border-radius: 0.25rem;
82
+ border: 1px solid;
83
+ border-color: rgba(var(--contrast-700), 0.65);
84
+ }
85
+ .ProseMirror-menubar-wrapper:hover {
86
+ border-color: rgba(var(--contrast-700), 1);
87
+ }
88
+ .ProseMirror-menubar-wrapper:focus-within {
89
+ border-color: var(--mdc-theme-primary);
90
+ }
91
+
92
+ .ProseMirror-textblock-dropdown {
93
+ min-width: 3em;
94
+ }
95
+
96
+ .ProseMirror-tooltip .ProseMirror-menu {
97
+ width: -webkit-fit-content;
98
+ width: fit-content;
99
+ white-space: pre;
100
+ }
101
+
102
+ .ProseMirror {
103
+ position: relative;
104
+ word-wrap: break-word;
105
+ white-space: pre-wrap;
106
+ white-space: break-spaces;
107
+ -webkit-font-variant-ligatures: none;
108
+ font-variant-ligatures: none;
109
+ font-feature-settings: "liga" 0;
110
+ border-bottom-left-radius: 0.5rem;
111
+ border-bottom-right-radius: 0.5rem;
112
+ padding: 0.5rem 1rem;
113
+ background-color: rgb(var(--contrast-100));
114
+ }
115
+ .ProseMirror [draggable][contenteditable=false] {
116
+ user-select: text;
117
+ }
118
+ .ProseMirror:focus-visible {
119
+ outline: none;
120
+ }
121
+
122
+ .ProseMirror-hideselection {
123
+ caret-color: transparent;
124
+ }
125
+ .ProseMirror-hideselection *::selection {
126
+ background: transparent;
127
+ }
128
+ .ProseMirror-hideselection *::-moz-selection {
129
+ background: transparent;
130
+ }
131
+
132
+ .ProseMirror-selectednode {
133
+ outline: 0.125rem solid rgb(var(--color-sky-light));
134
+ }
135
+
136
+ li.ProseMirror-selectednode {
137
+ outline: none;
138
+ }
139
+ li.ProseMirror-selectednode:after {
140
+ content: "";
141
+ position: absolute;
142
+ left: -2rem;
143
+ right: -0.125rem;
144
+ top: -0.125rem;
145
+ bottom: -0.125rem;
146
+ border: 0.125rem solid rgb(var(--color-sky-light));
147
+ pointer-events: none;
148
+ }
149
+
150
+ img.ProseMirror-separator {
151
+ display: inline !important;
152
+ border: none !important;
153
+ margin: 0 !important;
154
+ }
155
+
156
+ /**
157
+ * Note! This file is exported to `dist/scss/` in the published
158
+ * node module, for consumer projects to import.
159
+ * That means this file cannot import from any file that isn't
160
+ * also exported, keeping the same relative path.
161
+ *
162
+ * Or, just don't import anything, that works too.
163
+ */
164
+ /**
165
+ * This can be used on a trigger element that opens a dropdown menu or a popover.
166
+ */
167
+ /**
168
+ * This mixin will mask out the content that is close to
169
+ * the edges of a scrollable area.
170
+ * - If the scrollable content has `overflow-y`, use `vertically`
171
+ * as an argument for `$direction`.
172
+ - If the scrollable content has `overflow-x`, use `horizontally`
173
+ * as an argument for `$direction`.
174
+ *
175
+ * For the visual effect to work smoothly, we need to make sure that
176
+ * the size of the fade-out edge effect is the same as the
177
+ * internal paddings of the scrollable area. Otherwise, content of a
178
+ * scrollable area that does not have a padding will fade out before
179
+ * any scrolling has been done.
180
+ * This is why this mixin already adds paddings, which automatically
181
+ * default to the size of the fade-out effect.
182
+ * This size defaults to `1rem`, but to override the size use
183
+ * `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
184
+ * when `vertically` argument is set, and use
185
+ * `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
186
+ * when `horizontally` argument is set.
187
+ * Of course you can also programmatically increase and decrease the
188
+ * size of these variables for each edge, based on the amount of
189
+ * scrolling that has been done by the user. In this case, make sure
190
+ * to add a custom padding where the mixin is used, to override
191
+ * the paddings that are automatically added by the mixin in the
192
+ * compiled CSS code.
193
+ */
194
+ /**
195
+ * This mixin will add an animated underline to the bottom of an `a` elements.
196
+ * Note that you may need to add `all: unset;` –depending on your use case–
197
+ * before using this mixin.
198
+ */
199
+ /**
200
+ * This mixin creates a cross-browser font stack.
201
+ * - `sans-serif` can be used for the UI of the components.
202
+ * - `monospace` can be used for code.
203
+ *
204
+ * ⚠️ If we change the font stacks, we need to update
205
+ * 1. the consumer documentation in `README.md`, and
206
+ * 2. the CSS variables of `--kompendium-example-font-family`
207
+ * in the `<style>` tag of `index.html`.
208
+ */
209
+ div#editor .ProseMirror-menubar {
210
+ position: sticky !important;
211
+ z-index: 1;
212
+ top: 0;
213
+ }
214
+ div#editor .ProseMirror-menubar[style*="position: fixed"] {
215
+ box-shadow: 0 0.25rem 0.5rem -0.5rem rgb(var(--color-black), 0.8);
216
+ }
217
+
218
+ .ProseMirror-menubar {
219
+ position: relative;
220
+ z-index: 1;
221
+ display: flex;
222
+ flex-wrap: wrap;
223
+ gap: 0.25rem;
224
+ align-items: center;
225
+ padding: 0.125rem;
226
+ background-color: rgb(var(--contrast-100));
227
+ border-top-left-radius: 0.5rem;
228
+ border-top-right-radius: 0.5rem;
229
+ }
230
+
231
+ .ProseMirror-menuitem {
232
+ position: relative;
233
+ flex-shrink: 0;
234
+ display: flex;
235
+ align-items: center;
236
+ justify-content: center;
237
+ white-space: nowrap;
238
+ line-height: 1;
239
+ min-height: 1.5rem;
240
+ min-width: 1.5rem;
241
+ border-radius: 0.25rem;
242
+ color: rgb(var(--contrast-1100));
243
+ font-size: 0.8125rem;
244
+ }
245
+ .ProseMirror-menuitem:not(:has(.ProseMirror-menu-disabled)) {
246
+ transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;
247
+ cursor: pointer;
248
+ color: var(--mdc-theme-on-surface);
249
+ background-color: transparent;
250
+ }
251
+ .ProseMirror-menuitem:not(:has(.ProseMirror-menu-disabled)):hover {
252
+ color: var(--mdc-theme-on-surface);
253
+ background-color: var(--lime-elevated-surface-background-color);
254
+ box-shadow: var(--button-shadow-hovered);
255
+ }
256
+ .ProseMirror-menuitem:not(:has(.ProseMirror-menu-disabled)):active {
257
+ box-shadow: var(--button-shadow-pressed);
258
+ transform: translate3d(0, 0.08rem, 0);
259
+ }
260
+ .ProseMirror-menuitem:has(.ProseMirror-menu-active) {
261
+ box-shadow: var(--button-shadow-inset);
262
+ color: var(--mdc-theme-primary);
263
+ }
264
+ .ProseMirror-menuitem:has(.ProseMirror-menu-active) svg {
265
+ color: var(--mdc-theme-primary);
266
+ }
267
+ .ProseMirror-menuitem:has(.ProseMirror-menu-dropdown-menu) {
268
+ box-shadow: var(--button-shadow-inset);
269
+ }
270
+ .ProseMirror-menuitem svg {
271
+ fill: currentColor;
272
+ height: 1rem;
273
+ color: rgb(var(--contrast-1100));
274
+ }
275
+
276
+ .ProseMirror-menuseparator {
277
+ border-radius: 1rem;
278
+ background-color: rgb(var(--contrast-600));
279
+ width: 0.125rem;
280
+ height: 1rem;
281
+ }
282
+
283
+ .ProseMirror-menu-dropdown {
284
+ position: relative;
285
+ display: flex;
286
+ align-items: center;
287
+ gap: 0.5rem;
288
+ padding: 0 0.5rem;
289
+ }
290
+ .ProseMirror-menu-dropdown:after {
291
+ content: "";
292
+ border-left: 0.25rem solid transparent;
293
+ border-right: 0.25rem solid transparent;
294
+ border-top: 0.25rem solid currentColor;
295
+ }
296
+
297
+ .ProseMirror-menu-dropdown-menu,
298
+ .ProseMirror-menu-submenu {
299
+ box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
300
+ }
301
+
302
+ .ProseMirror-menu-dropdown-menu {
303
+ position: absolute;
304
+ top: 100%;
305
+ background: rgb(var(--contrast-100));
306
+ border-radius: 0.25rem;
307
+ padding: 0.125rem;
308
+ }
309
+
310
+ .ProseMirror-menu-submenu {
311
+ position: absolute;
312
+ background: rgb(var(--contrast-100));
313
+ border-radius: 0.25rem;
314
+ padding: 0.125rem;
315
+ display: none;
316
+ min-width: 4em;
317
+ left: 100%;
318
+ top: -0.75rem;
319
+ }
320
+
321
+ .ProseMirror-menu-dropdown-item {
322
+ transition: background-color 0.2s ease;
323
+ cursor: pointer;
324
+ border-radius: 0.375rem;
325
+ min-height: 2.5rem;
326
+ display: flex;
327
+ align-items: center;
328
+ width: 100%;
329
+ }
330
+ .ProseMirror-menu-dropdown-item > div {
331
+ padding: 0 1rem;
332
+ width: 100%;
333
+ }
334
+ .ProseMirror-menu-dropdown-item:not(:has(.ProseMirror-menu-disabled)):hover {
335
+ background-color: rgb(var(--contrast-300));
336
+ }
337
+
338
+ .ProseMirror-menu-submenu-wrap {
339
+ position: relative;
340
+ margin-right: -0.25rem;
341
+ }
342
+ .ProseMirror-menu-submenu-wrap:hover .ProseMirror-menu-submenu {
343
+ display: block;
344
+ }
345
+
346
+ .ProseMirror-menu-submenu-label {
347
+ position: relative;
348
+ display: flex;
349
+ align-items: center;
350
+ justify-content: space-between;
351
+ gap: 0.5rem;
352
+ }
353
+ .ProseMirror-menu-submenu-label:after {
354
+ content: "";
355
+ border-top: 0.25rem solid transparent;
356
+ border-bottom: 0.25rem solid transparent;
357
+ border-left: 0.25rem solid currentColor;
358
+ }
359
+
360
+ .ProseMirror-menu-disabled {
361
+ opacity: 0.3;
362
+ cursor: default;
363
+ }
364
+
365
+ .ProseMirror-menu-submenu-wrap-active .ProseMirror-menu-submenu {
366
+ display: block;
367
+ }
368
+
369
+ blockquote {
370
+ position: relative;
371
+ font-weight: 100;
372
+ font-size: 0.875rem;
373
+ max-width: 100%;
374
+ line-height: 1.4;
375
+ margin: 0;
376
+ padding: 0.5rem 1.25rem;
377
+ border-radius: 0.05rem 0.75rem;
378
+ background-color: rgb(var(--contrast-300));
379
+ }
380
+ blockquote:before, blockquote:after {
381
+ position: absolute;
382
+ font-size: 2.75rem;
383
+ opacity: 0.4;
384
+ }
385
+ blockquote:before {
386
+ content: "“";
387
+ left: 0;
388
+ top: -0.75rem;
389
+ }
390
+ blockquote:after {
391
+ content: "”";
392
+ right: 0;
393
+ bottom: -2rem;
394
+ }
395
+
396
+ :host(limel-markdown.truncate-paragraphs) p {
397
+ overflow: hidden;
398
+ white-space: nowrap;
399
+ text-overflow: ellipsis;
400
+ }
401
+
402
+ p,
403
+ a,
404
+ li {
405
+ font-size: 0.875rem;
406
+ }
407
+
408
+ p {
409
+ margin-top: 0;
410
+ margin-bottom: 0.5rem;
411
+ }
412
+ p:only-child {
413
+ margin-bottom: 0;
414
+ }
415
+
416
+ a {
417
+ transition: color 0.2s ease;
418
+ color: var(--markdown-hyperlink-color, rgb(var(--color-blue-dark)));
419
+ text-decoration: none;
420
+ }
421
+ a:hover {
422
+ color: var(--markdown-hyperlink-color--hovered, rgb(var(--color-blue-default)));
423
+ }
424
+
425
+ hr {
426
+ margin: 1.75rem 0 2rem 0;
427
+ border-width: 0;
428
+ border-top: 1px solid rgb(var(--contrast-500));
429
+ }
430
+
431
+ dl {
432
+ display: grid;
433
+ grid-template-columns: 1fr 2fr;
434
+ grid-template-rows: 1fr;
435
+ margin-bottom: 2rem;
436
+ border: 1px solid rgb(var(--contrast-400));
437
+ border-radius: 0.375rem;
438
+ background-color: rgb(var(--contrast-200));
439
+ }
440
+ dl dt,
441
+ dl dd {
442
+ padding: 0.375rem 0.5rem;
443
+ font-size: 0.875rem;
444
+ margin: 0;
445
+ }
446
+ dl dt:nth-of-type(even),
447
+ dl dd:nth-of-type(even) {
448
+ background-color: rgb(var(--contrast-300));
449
+ }
450
+ dl dt:first-child {
451
+ border-top-left-radius: 0.375rem;
452
+ }
453
+ dl dt:last-child {
454
+ border-bottom-left-radius: 0.375rem;
455
+ }
456
+ dl dd:first-child {
457
+ border-top-right-radius: 0.375rem;
458
+ }
459
+ dl dd:last-child {
460
+ border-bottom-right-radius: 0.375rem;
461
+ }
462
+
463
+ /*
464
+ * This file is imported into every component!
465
+ *
466
+ * Nothing in this file may output any CSS
467
+ * without being explicitly called by outside code.
468
+ */
469
+ h1 {
470
+ font-size: 1.875rem;
471
+ line-height: 1.875rem;
472
+ margin-top: 1.5rem;
473
+ margin-bottom: 0.75rem;
474
+ letter-spacing: -0.0625rem;
475
+ }
476
+
477
+ h2 {
478
+ font-size: 1.625rem;
479
+ line-height: 1.625rem;
480
+ margin-top: 1.25rem;
481
+ margin-bottom: 0.75rem;
482
+ }
483
+
484
+ h3 {
485
+ font-size: 1.375rem;
486
+ line-height: 1.375rem;
487
+ margin-top: 1rem;
488
+ margin-bottom: 0.75rem;
489
+ }
490
+
491
+ h4 {
492
+ font-size: 1.25rem;
493
+ line-height: 1.25rem;
494
+ margin-top: 0.75rem;
495
+ margin-bottom: 0.5rem;
496
+ }
497
+
498
+ h5 {
499
+ font-size: 1.125rem;
500
+ line-height: 1.125rem;
501
+ margin-top: 0.75rem;
502
+ margin-bottom: 0.5rem;
503
+ }
504
+
505
+ h6 {
506
+ font-size: 1rem;
507
+ line-height: 1rem;
508
+ margin-top: 0.75rem;
509
+ margin-bottom: 0.5rem;
510
+ }
511
+
512
+ ul {
513
+ list-style: none;
514
+ }
515
+ ul li {
516
+ position: relative;
517
+ margin-left: 0.75rem;
518
+ }
519
+ ul li:before {
520
+ content: "";
521
+ position: absolute;
522
+ left: -0.5rem;
523
+ top: 0.5rem;
524
+ width: 0.25rem;
525
+ height: 0.25rem;
526
+ border-radius: 50%;
527
+ background-color: rgb(var(--contrast-700));
528
+ display: block;
529
+ }
530
+
531
+ ol {
532
+ margin-top: 0.25rem;
533
+ padding-left: 1rem;
534
+ }
535
+
536
+ ul {
537
+ margin-top: 0.25rem;
538
+ padding-left: 0;
539
+ }
540
+
541
+ ul ul,
542
+ ul ol,
543
+ ol ol,
544
+ ol ul {
545
+ margin-left: 0;
546
+ }
547
+
548
+ li {
549
+ margin-bottom: 0.25rem;
550
+ }
551
+
552
+ /**
553
+ * Note! This file is exported to `dist/scss/` in the published
554
+ * node module, for consumer projects to import.
555
+ * That means this file cannot import from any file that isn't
556
+ * also exported, keeping the same relative path.
557
+ *
558
+ * Or, just don't import anything, that works too.
559
+ */
560
+ /**
561
+ * This can be used on a trigger element that opens a dropdown menu or a popover.
562
+ */
563
+ /**
564
+ * This mixin will mask out the content that is close to
565
+ * the edges of a scrollable area.
566
+ * - If the scrollable content has `overflow-y`, use `vertically`
567
+ * as an argument for `$direction`.
568
+ - If the scrollable content has `overflow-x`, use `horizontally`
569
+ * as an argument for `$direction`.
570
+ *
571
+ * For the visual effect to work smoothly, we need to make sure that
572
+ * the size of the fade-out edge effect is the same as the
573
+ * internal paddings of the scrollable area. Otherwise, content of a
574
+ * scrollable area that does not have a padding will fade out before
575
+ * any scrolling has been done.
576
+ * This is why this mixin already adds paddings, which automatically
577
+ * default to the size of the fade-out effect.
578
+ * This size defaults to `1rem`, but to override the size use
579
+ * `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
580
+ * when `vertically` argument is set, and use
581
+ * `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
582
+ * when `horizontally` argument is set.
583
+ * Of course you can also programmatically increase and decrease the
584
+ * size of these variables for each edge, based on the amount of
585
+ * scrolling that has been done by the user. In this case, make sure
586
+ * to add a custom padding where the mixin is used, to override
587
+ * the paddings that are automatically added by the mixin in the
588
+ * compiled CSS code.
589
+ */
590
+ /**
591
+ * This mixin will add an animated underline to the bottom of an `a` elements.
592
+ * Note that you may need to add `all: unset;` –depending on your use case–
593
+ * before using this mixin.
594
+ */
595
+ /**
596
+ * This mixin creates a cross-browser font stack.
597
+ * - `sans-serif` can be used for the UI of the components.
598
+ * - `monospace` can be used for code.
599
+ *
600
+ * ⚠️ If we change the font stacks, we need to update
601
+ * 1. the consumer documentation in `README.md`, and
602
+ * 2. the CSS variables of `--kompendium-example-font-family`
603
+ * in the `<style>` tag of `index.html`.
604
+ */
605
+ /*
606
+ * This file is imported into every component!
607
+ *
608
+ * Nothing in this file may output any CSS
609
+ * without being explicitly called by outside code.
610
+ */
611
+ code {
612
+ font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
613
+ font-size: 0.8125rem;
614
+ letter-spacing: -0.0125rem;
615
+ color: rgb(var(--contrast-1300));
616
+ -moz-tab-size: 4;
617
+ -o-tab-size: 4;
618
+ tab-size: 4;
619
+ -webkit-hyphens: none;
620
+ -moz-hyphens: none;
621
+ -ms-hyphens: none;
622
+ hyphens: none;
623
+ display: inline-block;
624
+ border-radius: 0.25rem;
625
+ padding: 0.03125rem 0.25rem;
626
+ background-color: rgb(var(--contrast-600));
627
+ }
628
+
629
+ pre > code {
630
+ display: block;
631
+ margin: 0.5rem 0;
632
+ padding: 0.5rem 0.75rem;
633
+ overflow: auto;
634
+ white-space: pre-wrap;
635
+ }
636
+
637
+ :host(limel-markdown:not(.no-table-styles)) table {
638
+ table-layout: auto;
639
+ min-width: 100%;
640
+ border-collapse: collapse;
641
+ border-spacing: 0;
642
+ background: transparent;
643
+ margin: 0.75rem 0;
644
+ border: 1px solid rgb(var(--contrast-400));
645
+ }
646
+ :host(limel-markdown:not(.no-table-styles)) th,
647
+ :host(limel-markdown:not(.no-table-styles)) td {
648
+ text-align: left;
649
+ vertical-align: top;
650
+ transition: background-color 0.2s ease;
651
+ font-size: 0.875rem;
652
+ }
653
+ :host(limel-markdown:not(.no-table-styles)) td {
654
+ padding: 0.5rem 0.375rem 0.75rem 0.375rem;
655
+ }
656
+ :host(limel-markdown:not(.no-table-styles)) tr th {
657
+ background-color: rgb(var(--contrast-400));
658
+ padding: 0.25rem 0.375rem;
659
+ font-weight: normal;
660
+ }
661
+ :host(limel-markdown:not(.no-table-styles)) tr th:only-child {
662
+ text-align: center;
663
+ }
664
+ :host(limel-markdown:not(.no-table-styles)) tbody tr:nth-child(odd) td {
665
+ background-color: rgb(var(--contrast-200));
666
+ }
667
+ :host(limel-markdown:not(.no-table-styles)) tbody tr:hover td {
668
+ background-color: rgb(var(--contrast-300));
669
+ }