@limetech/lime-elements 37.19.1 → 37.21.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.
- package/CHANGELOG.md +19 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-markdown.cjs.entry.js +3 -1
- package/dist/cjs/limel-markdown.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +16080 -0
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-text-editor.cjs.entry.js +13 -16048
- package/dist/cjs/limel-text-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/markdown/allowed-css-properties.js +2 -0
- package/dist/collection/components/markdown/allowed-css-properties.js.map +1 -1
- package/dist/collection/components/markdown/markdown-parser.js +1 -1
- package/dist/collection/components/markdown/markdown-parser.js.map +1 -1
- package/dist/collection/components/text-editor/prosemirror-adapter.css +699 -0
- package/dist/collection/components/text-editor/prosemirror-adapter.js +122 -0
- package/dist/collection/components/text-editor/prosemirror-adapter.js.map +1 -0
- package/dist/collection/components/text-editor/text-editor.css +0 -699
- package/dist/collection/components/text-editor/text-editor.js +133 -45
- package/dist/collection/components/text-editor/text-editor.js.map +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-markdown.entry.js +3 -1
- package/dist/esm/limel-markdown.entry.js.map +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +16076 -0
- package/dist/esm/limel-prosemirror-adapter.entry.js.map +1 -0
- package/dist/esm/limel-text-editor.entry.js +14 -16049
- package/dist/esm/limel-text-editor.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js.map +1 -1
- package/dist/lime-elements/{p-10edf8b8.entry.js → p-0f45a6cc.entry.js} +2 -2
- package/dist/lime-elements/p-0f45a6cc.entry.js.map +1 -0
- package/dist/lime-elements/p-210c09a6.entry.js +2 -0
- package/dist/lime-elements/p-210c09a6.entry.js.map +1 -0
- package/dist/lime-elements/{p-ad6b52f8.entry.js → p-a8b9ae53.entry.js} +2 -2
- package/dist/lime-elements/{p-ad6b52f8.entry.js.map → p-a8b9ae53.entry.js.map} +1 -1
- package/dist/types/components/text-editor/prosemirror-adapter.d.ts +32 -0
- package/dist/types/components/text-editor/text-editor.d.ts +52 -13
- package/dist/types/components.d.ts +137 -24
- package/package.json +1 -1
- package/dist/lime-elements/p-10edf8b8.entry.js.map +0 -1
|
@@ -0,0 +1,699 @@
|
|
|
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
|
+
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
|
+
li {
|
|
404
|
+
font-size: 0.875rem;
|
|
405
|
+
word-break: break-word;
|
|
406
|
+
hyphens: auto;
|
|
407
|
+
-webkit-hyphens: auto;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
a {
|
|
411
|
+
word-break: break-all;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
p {
|
|
415
|
+
margin-top: 0;
|
|
416
|
+
margin-bottom: 0.5rem;
|
|
417
|
+
}
|
|
418
|
+
p:only-child {
|
|
419
|
+
margin-bottom: 0;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
a {
|
|
423
|
+
transition: color 0.2s ease;
|
|
424
|
+
color: var(--markdown-hyperlink-color, rgb(var(--color-blue-dark)));
|
|
425
|
+
text-decoration: none;
|
|
426
|
+
}
|
|
427
|
+
a:hover {
|
|
428
|
+
color: var(--markdown-hyperlink-color--hovered, rgb(var(--color-blue-default)));
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
hr {
|
|
432
|
+
margin: 1.75rem 0 2rem 0;
|
|
433
|
+
border-width: 0;
|
|
434
|
+
border-top: 1px solid rgb(var(--contrast-500));
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
dl {
|
|
438
|
+
display: grid;
|
|
439
|
+
grid-template-columns: 1fr 2fr;
|
|
440
|
+
grid-template-rows: 1fr;
|
|
441
|
+
margin-bottom: 2rem;
|
|
442
|
+
border: 1px solid rgb(var(--contrast-400));
|
|
443
|
+
border-radius: 0.375rem;
|
|
444
|
+
background-color: rgb(var(--contrast-200));
|
|
445
|
+
}
|
|
446
|
+
dl dt,
|
|
447
|
+
dl dd {
|
|
448
|
+
padding: 0.375rem 0.5rem;
|
|
449
|
+
font-size: 0.875rem;
|
|
450
|
+
margin: 0;
|
|
451
|
+
}
|
|
452
|
+
dl dt:nth-of-type(even),
|
|
453
|
+
dl dd:nth-of-type(even) {
|
|
454
|
+
background-color: rgb(var(--contrast-300));
|
|
455
|
+
}
|
|
456
|
+
dl dt:first-child {
|
|
457
|
+
border-top-left-radius: 0.375rem;
|
|
458
|
+
}
|
|
459
|
+
dl dt:last-child {
|
|
460
|
+
border-bottom-left-radius: 0.375rem;
|
|
461
|
+
}
|
|
462
|
+
dl dd:first-child {
|
|
463
|
+
border-top-right-radius: 0.375rem;
|
|
464
|
+
}
|
|
465
|
+
dl dd:last-child {
|
|
466
|
+
border-bottom-right-radius: 0.375rem;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
h1 {
|
|
470
|
+
font-size: 1.5rem;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
h2 {
|
|
474
|
+
font-size: 1.25rem;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
h3 {
|
|
478
|
+
font-size: 1.125rem;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
h4 {
|
|
482
|
+
font-size: 1rem;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
h5 {
|
|
486
|
+
font-size: 0.875rem;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
h6 {
|
|
490
|
+
font-size: 0.75rem;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
h1,
|
|
494
|
+
h2 {
|
|
495
|
+
margin-top: 0.5rem;
|
|
496
|
+
margin-bottom: 0.5rem;
|
|
497
|
+
letter-spacing: -0.03125rem;
|
|
498
|
+
font-weight: 500;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
h3,
|
|
502
|
+
h4 {
|
|
503
|
+
margin-top: 0.75rem;
|
|
504
|
+
margin-bottom: 0.25rem;
|
|
505
|
+
font-weight: 600;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
h5,
|
|
509
|
+
h6 {
|
|
510
|
+
margin-top: 0.5rem;
|
|
511
|
+
margin-bottom: 0.125rem;
|
|
512
|
+
font-weight: 600;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
h1,
|
|
516
|
+
h2,
|
|
517
|
+
h3,
|
|
518
|
+
h4,
|
|
519
|
+
h5,
|
|
520
|
+
h6 {
|
|
521
|
+
word-break: break-word;
|
|
522
|
+
hyphens: auto;
|
|
523
|
+
-webkit-hyphens: auto;
|
|
524
|
+
}
|
|
525
|
+
:not([contenteditable=true]) h1,
|
|
526
|
+
:not([contenteditable=true]) h2,
|
|
527
|
+
:not([contenteditable=true]) h3,
|
|
528
|
+
:not([contenteditable=true]) h4,
|
|
529
|
+
:not([contenteditable=true]) h5,
|
|
530
|
+
:not([contenteditable=true]) h6 {
|
|
531
|
+
text-wrap: balance;
|
|
532
|
+
}
|
|
533
|
+
[contenteditable=true] h1,
|
|
534
|
+
[contenteditable=true] h2,
|
|
535
|
+
[contenteditable=true] h3,
|
|
536
|
+
[contenteditable=true] h4,
|
|
537
|
+
[contenteditable=true] h5,
|
|
538
|
+
[contenteditable=true] h6 {
|
|
539
|
+
text-wrap: initial;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
ul {
|
|
543
|
+
list-style: none;
|
|
544
|
+
}
|
|
545
|
+
ul li {
|
|
546
|
+
position: relative;
|
|
547
|
+
margin-left: 0.75rem;
|
|
548
|
+
}
|
|
549
|
+
ul li:before {
|
|
550
|
+
content: "";
|
|
551
|
+
position: absolute;
|
|
552
|
+
left: -0.5rem;
|
|
553
|
+
top: 0.5rem;
|
|
554
|
+
width: 0.25rem;
|
|
555
|
+
height: 0.25rem;
|
|
556
|
+
border-radius: 50%;
|
|
557
|
+
background-color: rgb(var(--contrast-700));
|
|
558
|
+
display: block;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
ol {
|
|
562
|
+
margin-top: 0.25rem;
|
|
563
|
+
padding-left: 1rem;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
ul {
|
|
567
|
+
margin-top: 0.25rem;
|
|
568
|
+
padding-left: 0;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
ul ul,
|
|
572
|
+
ul ol,
|
|
573
|
+
ol ol,
|
|
574
|
+
ol ul {
|
|
575
|
+
margin-left: 0;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
li {
|
|
579
|
+
margin-bottom: 0.25rem;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Note! This file is exported to `dist/scss/` in the published
|
|
584
|
+
* node module, for consumer projects to import.
|
|
585
|
+
* That means this file cannot import from any file that isn't
|
|
586
|
+
* also exported, keeping the same relative path.
|
|
587
|
+
*
|
|
588
|
+
* Or, just don't import anything, that works too.
|
|
589
|
+
*/
|
|
590
|
+
/**
|
|
591
|
+
* This can be used on a trigger element that opens a dropdown menu or a popover.
|
|
592
|
+
*/
|
|
593
|
+
/**
|
|
594
|
+
* This mixin will mask out the content that is close to
|
|
595
|
+
* the edges of a scrollable area.
|
|
596
|
+
* - If the scrollable content has `overflow-y`, use `vertically`
|
|
597
|
+
* as an argument for `$direction`.
|
|
598
|
+
- If the scrollable content has `overflow-x`, use `horizontally`
|
|
599
|
+
* as an argument for `$direction`.
|
|
600
|
+
*
|
|
601
|
+
* For the visual effect to work smoothly, we need to make sure that
|
|
602
|
+
* the size of the fade-out edge effect is the same as the
|
|
603
|
+
* internal paddings of the scrollable area. Otherwise, content of a
|
|
604
|
+
* scrollable area that does not have a padding will fade out before
|
|
605
|
+
* any scrolling has been done.
|
|
606
|
+
* This is why this mixin already adds paddings, which automatically
|
|
607
|
+
* default to the size of the fade-out effect.
|
|
608
|
+
* This size defaults to `1rem`, but to override the size use
|
|
609
|
+
* `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
|
|
610
|
+
* when `vertically` argument is set, and use
|
|
611
|
+
* `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
|
|
612
|
+
* when `horizontally` argument is set.
|
|
613
|
+
* Of course you can also programmatically increase and decrease the
|
|
614
|
+
* size of these variables for each edge, based on the amount of
|
|
615
|
+
* scrolling that has been done by the user. In this case, make sure
|
|
616
|
+
* to add a custom padding where the mixin is used, to override
|
|
617
|
+
* the paddings that are automatically added by the mixin in the
|
|
618
|
+
* compiled CSS code.
|
|
619
|
+
*/
|
|
620
|
+
/**
|
|
621
|
+
* This mixin will add an animated underline to the bottom of an `a` elements.
|
|
622
|
+
* Note that you may need to add `all: unset;` –depending on your use case–
|
|
623
|
+
* before using this mixin.
|
|
624
|
+
*/
|
|
625
|
+
/**
|
|
626
|
+
* This mixin creates a cross-browser font stack.
|
|
627
|
+
* - `sans-serif` can be used for the UI of the components.
|
|
628
|
+
* - `monospace` can be used for code.
|
|
629
|
+
*
|
|
630
|
+
* ⚠️ If we change the font stacks, we need to update
|
|
631
|
+
* 1. the consumer documentation in `README.md`, and
|
|
632
|
+
* 2. the CSS variables of `--kompendium-example-font-family`
|
|
633
|
+
* in the `<style>` tag of `index.html`.
|
|
634
|
+
*/
|
|
635
|
+
/*
|
|
636
|
+
* This file is imported into every component!
|
|
637
|
+
*
|
|
638
|
+
* Nothing in this file may output any CSS
|
|
639
|
+
* without being explicitly called by outside code.
|
|
640
|
+
*/
|
|
641
|
+
code {
|
|
642
|
+
font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
|
643
|
+
font-size: 0.8125rem;
|
|
644
|
+
letter-spacing: -0.0125rem;
|
|
645
|
+
color: rgb(var(--contrast-1300));
|
|
646
|
+
-moz-tab-size: 4;
|
|
647
|
+
-o-tab-size: 4;
|
|
648
|
+
tab-size: 4;
|
|
649
|
+
-webkit-hyphens: none;
|
|
650
|
+
-moz-hyphens: none;
|
|
651
|
+
-ms-hyphens: none;
|
|
652
|
+
hyphens: none;
|
|
653
|
+
display: inline-block;
|
|
654
|
+
border-radius: 0.25rem;
|
|
655
|
+
padding: 0.03125rem 0.25rem;
|
|
656
|
+
background-color: rgb(var(--contrast-600));
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
pre > code {
|
|
660
|
+
display: block;
|
|
661
|
+
margin: 0.5rem 0;
|
|
662
|
+
padding: 0.5rem 0.75rem;
|
|
663
|
+
overflow: auto;
|
|
664
|
+
white-space: pre-wrap;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
:host(limel-markdown:not(.no-table-styles)) table {
|
|
668
|
+
table-layout: auto;
|
|
669
|
+
min-width: 100%;
|
|
670
|
+
border-collapse: collapse;
|
|
671
|
+
border-spacing: 0;
|
|
672
|
+
background: transparent;
|
|
673
|
+
margin: 0.75rem 0;
|
|
674
|
+
border: 1px solid rgb(var(--contrast-400));
|
|
675
|
+
}
|
|
676
|
+
:host(limel-markdown:not(.no-table-styles)) th,
|
|
677
|
+
:host(limel-markdown:not(.no-table-styles)) td {
|
|
678
|
+
text-align: left;
|
|
679
|
+
vertical-align: top;
|
|
680
|
+
transition: background-color 0.2s ease;
|
|
681
|
+
font-size: 0.875rem;
|
|
682
|
+
}
|
|
683
|
+
:host(limel-markdown:not(.no-table-styles)) td {
|
|
684
|
+
padding: 0.5rem 0.375rem 0.75rem 0.375rem;
|
|
685
|
+
}
|
|
686
|
+
:host(limel-markdown:not(.no-table-styles)) tr th {
|
|
687
|
+
background-color: rgb(var(--contrast-400));
|
|
688
|
+
padding: 0.25rem 0.375rem;
|
|
689
|
+
font-weight: normal;
|
|
690
|
+
}
|
|
691
|
+
:host(limel-markdown:not(.no-table-styles)) tr th:only-child {
|
|
692
|
+
text-align: center;
|
|
693
|
+
}
|
|
694
|
+
:host(limel-markdown:not(.no-table-styles)) tbody tr:nth-child(odd) td {
|
|
695
|
+
background-color: rgb(var(--contrast-200));
|
|
696
|
+
}
|
|
697
|
+
:host(limel-markdown:not(.no-table-styles)) tbody tr:hover td {
|
|
698
|
+
background-color: rgb(var(--contrast-300));
|
|
699
|
+
}
|