@limetech/lime-elements 39.0.1 → 39.0.3
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 +14 -0
- package/dist/cjs/{checkbox.template-Bu9mvjbY.js → checkbox.template-VElWkDR9.js} +1 -1
- package/dist/cjs/{index-DYJkh2ZK.js → index-Ddjrlc-6.js} +1 -1
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-3d-hover-effect-glow.cjs.entry.js +1 -1
- package/dist/cjs/limel-action-bar-item_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-action-bar_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
- package/dist/cjs/limel-badge.cjs.entry.js +1 -1
- package/dist/cjs/limel-banner.cjs.entry.js +1 -1
- package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +4 -4
- package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-callout.cjs.entry.js +1 -1
- package/dist/cjs/limel-card.cjs.entry.js +1 -1
- package/dist/cjs/limel-chart.cjs.entry.js +2 -2
- package/dist/cjs/limel-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/limel-chip_2.cjs.entry.js +3 -3
- package/dist/cjs/limel-circular-progress.cjs.entry.js +2 -2
- package/dist/cjs/limel-code-editor.cjs.entry.js +2 -2
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +2 -2
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +1 -1
- package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-config.cjs.entry.js +1 -1
- package/dist/cjs/limel-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-dialog.cjs.entry.js +1 -1
- package/dist/cjs/limel-dock-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-dock.cjs.entry.js +2 -2
- package/dist/cjs/limel-drag-handle.cjs.entry.js +1 -1
- package/dist/cjs/limel-dynamic-label.cjs.entry.js +1 -1
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-file-viewer.cjs.entry.js +2 -2
- package/dist/cjs/limel-file.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-flex-container.cjs.entry.js +1 -1
- package/dist/cjs/limel-form.cjs.entry.js +2 -2
- package/dist/cjs/limel-grid.cjs.entry.js +1 -1
- package/dist/cjs/limel-header.cjs.entry.js +1 -1
- package/dist/cjs/limel-help-content.cjs.entry.js +1 -1
- package/dist/cjs/limel-help.cjs.entry.js +1 -1
- package/dist/cjs/limel-helper-line_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
- package/dist/cjs/limel-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-list-item.cjs.entry.js +2 -2
- package/dist/cjs/limel-markdown.cjs.entry.js +2 -2
- package/dist/cjs/limel-menu-item-meta.cjs.entry.js +1 -1
- package/dist/cjs/limel-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-portal_3.cjs.entry.js +1 -1
- package/dist/cjs/limel-profile-picture.cjs.entry.js +1 -1
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/limel-progress-flow.cjs.entry.js +2 -2
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +2 -2
- package/dist/cjs/limel-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-select.cjs.entry.js +2 -2
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +2 -2
- package/dist/cjs/limel-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/limel-split-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-switch.cjs.entry.js +2 -2
- package/dist/cjs/limel-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +2 -2
- package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{markdown-parser-DnhdKhpI.js → markdown-parser-_1bsy-5h.js} +4 -4
- package/dist/collection/components/button/button.css +34 -33
- package/dist/collection/components/chart/chart.css +120 -376
- package/dist/collection/components/chip/chip.css +68 -69
- package/dist/collection/components/chip-set/chip-set.css +29 -116
- package/dist/collection/components/circular-progress/circular-progress.css +193 -193
- package/dist/collection/components/code-editor/code-editor.css +350 -189
- package/dist/collection/components/collapsible-section/collapsible-section.css +125 -125
- package/dist/collection/components/dock/dock.css +60 -153
- package/dist/collection/components/file-viewer/file-viewer.css +80 -172
- package/dist/collection/components/form/form.css +77 -164
- package/dist/collection/components/input-field/input-field.css +75 -168
- package/dist/collection/components/list/list.css +59 -151
- package/dist/collection/components/markdown/markdown-parser.js +4 -4
- package/dist/collection/components/menu-list/menu-list.css +59 -151
- package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +74 -80
- package/dist/collection/components/progress-flow/progress-flow.css +2 -0
- package/dist/collection/components/radio-button-group/radio-button.css +2 -2
- package/dist/collection/components/select/select.css +39 -132
- package/dist/collection/components/slider/slider.css +391 -403
- package/dist/collection/components/snackbar/snackbar.css +76 -75
- package/dist/collection/components/switch/switch.css +106 -106
- package/dist/collection/components/tab-bar/tab-bar.css +208 -203
- package/dist/collection/components/table/table.css +170 -462
- package/dist/collection/style/color-palette-primary.scss.bak +1 -1
- package/dist/collection/style/color-palette-ui.scss.bak +1 -1
- package/dist/collection/style/internal/fieldset.scss +2 -2
- package/dist/esm/{checkbox.template-CVMlWdZR.js → checkbox.template-BB2t2jwT.js} +1 -1
- package/dist/esm/{index-BudcI_o9.js → index-xvTBZcD2.js} +1 -1
- package/dist/esm/lime-elements.js +2 -2
- package/dist/esm/limel-3d-hover-effect-glow.entry.js +1 -1
- package/dist/esm/limel-action-bar-item_2.entry.js +1 -1
- package/dist/esm/limel-action-bar_2.entry.js +1 -1
- package/dist/esm/limel-ai-avatar.entry.js +1 -1
- package/dist/esm/limel-badge.entry.js +1 -1
- package/dist/esm/limel-banner.entry.js +1 -1
- package/dist/esm/limel-breadcrumbs_7.entry.js +4 -4
- package/dist/esm/limel-button-group.entry.js +1 -1
- package/dist/esm/limel-button.entry.js +2 -2
- package/dist/esm/limel-callout.entry.js +1 -1
- package/dist/esm/limel-card.entry.js +1 -1
- package/dist/esm/limel-chart.entry.js +2 -2
- package/dist/esm/limel-checkbox.entry.js +2 -2
- package/dist/esm/limel-chip_2.entry.js +3 -3
- package/dist/esm/limel-circular-progress.entry.js +2 -2
- package/dist/esm/limel-code-editor.entry.js +2 -2
- package/dist/esm/limel-collapsible-section.entry.js +2 -2
- package/dist/esm/limel-color-picker-palette.entry.js +1 -1
- package/dist/esm/limel-color-picker.entry.js +1 -1
- package/dist/esm/limel-config.entry.js +1 -1
- package/dist/esm/limel-date-picker.entry.js +1 -1
- package/dist/esm/limel-dialog.entry.js +1 -1
- package/dist/esm/limel-dock-button.entry.js +1 -1
- package/dist/esm/limel-dock.entry.js +2 -2
- package/dist/esm/limel-drag-handle.entry.js +1 -1
- package/dist/esm/limel-dynamic-label.entry.js +1 -1
- package/dist/esm/limel-file-dropzone_2.entry.js +1 -1
- package/dist/esm/limel-file-viewer.entry.js +2 -2
- package/dist/esm/limel-file.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
- package/dist/esm/limel-flex-container.entry.js +1 -1
- package/dist/esm/limel-form.entry.js +2 -2
- package/dist/esm/limel-grid.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +1 -1
- package/dist/esm/limel-help-content.entry.js +1 -1
- package/dist/esm/limel-help.entry.js +1 -1
- package/dist/esm/limel-helper-line_2.entry.js +1 -1
- package/dist/esm/limel-icon-button.entry.js +1 -1
- package/dist/esm/limel-icon.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js +1 -1
- package/dist/esm/limel-linear-progress.entry.js +1 -1
- package/dist/esm/limel-list-item.entry.js +2 -2
- package/dist/esm/limel-markdown.entry.js +2 -2
- package/dist/esm/limel-menu-item-meta.entry.js +1 -1
- package/dist/esm/limel-picker.entry.js +1 -1
- package/dist/esm/limel-popover_2.entry.js +1 -1
- package/dist/esm/limel-portal_3.entry.js +1 -1
- package/dist/esm/limel-profile-picture.entry.js +1 -1
- package/dist/esm/limel-progress-flow-item.entry.js +2 -2
- package/dist/esm/limel-progress-flow.entry.js +2 -2
- package/dist/esm/limel-prosemirror-adapter.entry.js +2 -2
- package/dist/esm/limel-radio-button-group.entry.js +1 -1
- package/dist/esm/limel-radio-button.entry.js +2 -2
- package/dist/esm/limel-select.entry.js +2 -2
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +2 -2
- package/dist/esm/limel-snackbar.entry.js +2 -2
- package/dist/esm/limel-split-button.entry.js +1 -1
- package/dist/esm/limel-switch.entry.js +2 -2
- package/dist/esm/limel-tab-bar.entry.js +2 -2
- package/dist/esm/limel-tab-panel.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +2 -2
- package/dist/esm/limel-text-editor.entry.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{markdown-parser-CoBLYNGa.js → markdown-parser-DkmQCwAi.js} +4 -4
- package/dist/lime-elements/lime-elements.css +2 -2
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-f80d0b8b.entry.js → p-00859fac.entry.js} +1 -1
- package/dist/lime-elements/{p-6c51b3bd.entry.js → p-017dd326.entry.js} +1 -1
- package/dist/lime-elements/{p-a91b36d3.entry.js → p-045c6027.entry.js} +1 -1
- package/dist/lime-elements/{p-a0b6339c.entry.js → p-083b24bb.entry.js} +1 -1
- package/dist/lime-elements/{p-0d1c887c.entry.js → p-11f716f5.entry.js} +1 -1
- package/dist/lime-elements/{p-72489a91.entry.js → p-1e5b18cc.entry.js} +1 -1
- package/dist/lime-elements/{p-ce8be001.entry.js → p-23f7956e.entry.js} +1 -1
- package/dist/lime-elements/{p-7a47ecdc.entry.js → p-264f791d.entry.js} +1 -1
- package/dist/lime-elements/{p-690b9cf4.entry.js → p-2a5b259e.entry.js} +1 -1
- package/dist/lime-elements/{p-b857f209.entry.js → p-2c1538f0.entry.js} +1 -1
- package/dist/lime-elements/{p-48eb1ff2.entry.js → p-303d01e5.entry.js} +1 -1
- package/dist/lime-elements/{p-8850374d.entry.js → p-34ef71f2.entry.js} +1 -1
- package/dist/lime-elements/{p-3aa32860.entry.js → p-38fb97fe.entry.js} +1 -1
- package/dist/lime-elements/{p-ed20f52d.entry.js → p-3c933811.entry.js} +1 -1
- package/dist/lime-elements/{p-93c9b561.entry.js → p-4be18a57.entry.js} +1 -1
- package/dist/lime-elements/{p-94c76e12.entry.js → p-4beeec39.entry.js} +1 -1
- package/dist/lime-elements/{p-be4e99b4.entry.js → p-52bb74b9.entry.js} +1 -1
- package/dist/lime-elements/{p-70450a21.entry.js → p-52edfe86.entry.js} +1 -1
- package/dist/lime-elements/{p-846a1d26.entry.js → p-534fdf9b.entry.js} +1 -1
- package/dist/lime-elements/{p-6abc7ed8.entry.js → p-55596d9a.entry.js} +1 -1
- package/dist/lime-elements/{p-69fec8b9.entry.js → p-5d5f0a73.entry.js} +1 -1
- package/dist/lime-elements/{p-8c631f1e.entry.js → p-5ddeb498.entry.js} +1 -1
- package/dist/lime-elements/{p-7f50dd29.entry.js → p-6275668f.entry.js} +1 -1
- package/dist/lime-elements/{p-c127acfd.entry.js → p-6896d5c8.entry.js} +1 -1
- package/dist/lime-elements/{p-903c0e45.entry.js → p-68f49d6f.entry.js} +1 -1
- package/dist/lime-elements/p-693cbb67.entry.js +1 -0
- package/dist/lime-elements/{p-ea6204d1.entry.js → p-6951136b.entry.js} +1 -1
- package/dist/lime-elements/{p-a0ddf68a.entry.js → p-6aebcf60.entry.js} +1 -1
- package/dist/lime-elements/{p-638642a0.entry.js → p-6e3666e5.entry.js} +1 -1
- package/dist/lime-elements/{p-1f78b29b.entry.js → p-7457bc07.entry.js} +1 -1
- package/dist/lime-elements/{p-88519938.entry.js → p-7464e43d.entry.js} +1 -1
- package/dist/lime-elements/p-74fbf987.entry.js +1 -0
- package/dist/lime-elements/{p-ce82000d.entry.js → p-752df4bf.entry.js} +1 -1
- package/dist/lime-elements/p-7c37a99e.entry.js +1 -0
- package/dist/lime-elements/{p-8ba65d1b.entry.js → p-7d5bd4a2.entry.js} +1 -1
- package/dist/lime-elements/{p-df0892cd.entry.js → p-80d35f8f.entry.js} +1 -1
- package/dist/lime-elements/p-880b9683.entry.js +23 -0
- package/dist/lime-elements/{p-e50a1d0b.entry.js → p-88f503eb.entry.js} +1 -1
- package/dist/lime-elements/{p-99a9abf7.entry.js → p-8a2b2fac.entry.js} +1 -1
- package/dist/lime-elements/{p-9c80e222.entry.js → p-8db6b7d9.entry.js} +2 -2
- package/dist/lime-elements/{p-5028a09d.entry.js → p-927622ec.entry.js} +1 -1
- package/dist/lime-elements/{p-5054a30b.entry.js → p-9a8d6440.entry.js} +1 -1
- package/dist/lime-elements/{p-90688692.entry.js → p-9ea564fe.entry.js} +2 -2
- package/dist/lime-elements/{p-d22e07f0.entry.js → p-9ed578ec.entry.js} +1 -1
- package/dist/lime-elements/{p-ngNtOjhe.js → p-BlsZTyGA.js} +1 -1
- package/dist/lime-elements/{p-Db1TI5oK.js → p-Df0HAtSs.js} +1 -1
- package/dist/lime-elements/p-a6fae24d.entry.js +1 -0
- package/dist/lime-elements/{p-ddc25dd2.entry.js → p-abef62d7.entry.js} +1 -1
- package/dist/lime-elements/{p-e33c71b7.entry.js → p-aea52308.entry.js} +1 -1
- package/dist/lime-elements/{p-773a37c0.entry.js → p-bbaf35ce.entry.js} +1 -1
- package/dist/lime-elements/{p-e77059f2.entry.js → p-c118eac0.entry.js} +1 -1
- package/dist/lime-elements/{p-5cddb3df.entry.js → p-c9e934af.entry.js} +1 -1
- package/dist/lime-elements/{p-10900b3f.entry.js → p-cbb7d624.entry.js} +1 -1
- package/dist/lime-elements/p-d1fa6da3.entry.js +67 -0
- package/dist/lime-elements/{p-2b0cfd52.entry.js → p-d2123236.entry.js} +1 -1
- package/dist/lime-elements/p-d424688d.entry.js +1 -0
- package/dist/lime-elements/{p-1c97671b.entry.js → p-d6270e4a.entry.js} +1 -1
- package/dist/lime-elements/p-dd36d57b.entry.js +203 -0
- package/dist/lime-elements/p-e11c9b40.entry.js +1 -0
- package/dist/lime-elements/{p-23ef08cc.entry.js → p-e1656821.entry.js} +2 -2
- package/dist/lime-elements/p-e6d74062.entry.js +1 -0
- package/dist/lime-elements/{p-70ea6855.entry.js → p-ec42a4aa.entry.js} +1 -1
- package/dist/lime-elements/{p-2b1f729d.entry.js → p-f395fbe3.entry.js} +1 -1
- package/dist/lime-elements/{p-170fd367.entry.js → p-fc3209db.entry.js} +1 -1
- package/dist/lime-elements/p-feeae1e4.entry.js +1 -0
- package/dist/lime-elements/{p-BudcI_o9.js → p-xvTBZcD2.js} +1 -1
- package/dist/lime-elements/style/color-palette-primary.scss.bak +1 -1
- package/dist/lime-elements/style/color-palette-ui.scss.bak +1 -1
- package/dist/lime-elements/style/internal/fieldset.scss +2 -2
- package/package.json +1 -1
- package/dist/lime-elements/p-1691e794.entry.js +0 -1
- package/dist/lime-elements/p-1db54640.entry.js +0 -1
- package/dist/lime-elements/p-45304b5c.entry.js +0 -23
- package/dist/lime-elements/p-4ab87bae.entry.js +0 -1
- package/dist/lime-elements/p-7203e289.entry.js +0 -203
- package/dist/lime-elements/p-8408a45f.entry.js +0 -1
- package/dist/lime-elements/p-c18a8a9f.entry.js +0 -1
- package/dist/lime-elements/p-d73c300f.entry.js +0 -1
- package/dist/lime-elements/p-da63420d.entry.js +0 -67
- package/dist/lime-elements/p-de541d0f.entry.js +0 -1
- package/dist/lime-elements/p-e6e65d9d.entry.js +0 -1
|
@@ -1,4 +1,72 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
+
.text {
|
|
3
|
+
transition: padding-left 0.4s ease;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
limel-linear-progress {
|
|
7
|
+
position: absolute;
|
|
8
|
+
z-index: 1;
|
|
9
|
+
margin: auto;
|
|
10
|
+
left: 0.25rem;
|
|
11
|
+
width: 1.25rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host(limel-chip[loading]) .chip:before {
|
|
15
|
+
content: "";
|
|
16
|
+
position: absolute;
|
|
17
|
+
left: 0;
|
|
18
|
+
width: var(--limel-chip-height);
|
|
19
|
+
height: var(--limel-chip-height);
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
scale: 0.9;
|
|
22
|
+
background-color: rgba(var(--contrast-600), 0.8);
|
|
23
|
+
}
|
|
24
|
+
:host(limel-chip[loading]) .chip:not(:has(limel-icon)) .text {
|
|
25
|
+
padding-left: calc(var(--limel-chip-height) + 0.25rem);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
div[role=progressbar] {
|
|
29
|
+
--limel-chip-progressbar-offset: 0.1875rem;
|
|
30
|
+
--limel-chip-progressbar-stripe-color: rgb(var(--contrast-100), 0.3);
|
|
31
|
+
--limel-chip-progressbar-stripe-size: 1.5rem;
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
position: absolute;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: end;
|
|
37
|
+
inset: var(--limel-chip-progressbar-offset);
|
|
38
|
+
max-width: calc(100% - var(--limel-chip-progressbar-offset) * 2);
|
|
39
|
+
border-radius: inherit;
|
|
40
|
+
background-color: var(--chip-progress-color, rgb(var(--contrast-700)));
|
|
41
|
+
width: var(--limel-chip-progress-percentage);
|
|
42
|
+
opacity: 0.8;
|
|
43
|
+
mix-blend-mode: var(--limel-chip-progress-mix-blend-mode);
|
|
44
|
+
}
|
|
45
|
+
div[role=progressbar]:after {
|
|
46
|
+
content: "";
|
|
47
|
+
transform: translate3d(0, 0, 0);
|
|
48
|
+
position: absolute;
|
|
49
|
+
inset: 1px;
|
|
50
|
+
background-image: linear-gradient(-45deg, var(--limel-chip-progressbar-stripe-color) 25%, transparent 25%, transparent 50%, var(--limel-chip-progressbar-stripe-color) 50%, var(--limel-chip-progressbar-stripe-color) 75%, transparent 75%, transparent);
|
|
51
|
+
z-index: 1;
|
|
52
|
+
background-size: var(--limel-chip-progressbar-stripe-size) var(--limel-chip-progressbar-stripe-size);
|
|
53
|
+
animation: move 2.5s linear infinite;
|
|
54
|
+
border-radius: inherit;
|
|
55
|
+
}
|
|
56
|
+
@media (prefers-reduced-motion) {
|
|
57
|
+
div[role=progressbar]:after {
|
|
58
|
+
animation: none;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@keyframes move {
|
|
63
|
+
0% {
|
|
64
|
+
background-position: 0 0;
|
|
65
|
+
}
|
|
66
|
+
100% {
|
|
67
|
+
background-position: calc(var(--limel-chip-progressbar-stripe-size) * -1) calc(var(--limel-chip-progressbar-stripe-size) * -1);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
2
70
|
/**
|
|
3
71
|
* Note! This file is exported to `dist/scss/` in the published
|
|
4
72
|
* node module, for consumer projects to import.
|
|
@@ -336,73 +404,4 @@ limel-menu button[slot=trigger]:focus-visible {
|
|
|
336
404
|
}
|
|
337
405
|
limel-menu[open] button[slot=trigger] {
|
|
338
406
|
box-shadow: var(--button-shadow-inset);
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.text {
|
|
342
|
-
transition: padding-left 0.4s ease;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
limel-linear-progress {
|
|
346
|
-
position: absolute;
|
|
347
|
-
z-index: 1;
|
|
348
|
-
margin: auto;
|
|
349
|
-
left: 0.25rem;
|
|
350
|
-
width: 1.25rem;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
:host(limel-chip[loading]) .chip:before {
|
|
354
|
-
content: "";
|
|
355
|
-
position: absolute;
|
|
356
|
-
left: 0;
|
|
357
|
-
width: var(--limel-chip-height);
|
|
358
|
-
height: var(--limel-chip-height);
|
|
359
|
-
border-radius: 50%;
|
|
360
|
-
scale: 0.9;
|
|
361
|
-
background-color: rgba(var(--contrast-600), 0.8);
|
|
362
|
-
}
|
|
363
|
-
:host(limel-chip[loading]) .chip:not(:has(limel-icon)) .text {
|
|
364
|
-
padding-left: calc(var(--limel-chip-height) + 0.25rem);
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
div[role=progressbar] {
|
|
368
|
-
--limel-chip-progressbar-offset: 0.1875rem;
|
|
369
|
-
--limel-chip-progressbar-stripe-color: rgb(var(--contrast-100), 0.3);
|
|
370
|
-
--limel-chip-progressbar-stripe-size: 1.5rem;
|
|
371
|
-
pointer-events: none;
|
|
372
|
-
position: absolute;
|
|
373
|
-
display: flex;
|
|
374
|
-
align-items: center;
|
|
375
|
-
justify-content: end;
|
|
376
|
-
inset: var(--limel-chip-progressbar-offset);
|
|
377
|
-
max-width: calc(100% - var(--limel-chip-progressbar-offset) * 2);
|
|
378
|
-
border-radius: inherit;
|
|
379
|
-
background-color: var(--chip-progress-color, rgb(var(--contrast-700)));
|
|
380
|
-
width: var(--limel-chip-progress-percentage);
|
|
381
|
-
opacity: 0.8;
|
|
382
|
-
mix-blend-mode: var(--limel-chip-progress-mix-blend-mode);
|
|
383
|
-
}
|
|
384
|
-
div[role=progressbar]:after {
|
|
385
|
-
content: "";
|
|
386
|
-
transform: translate3d(0, 0, 0);
|
|
387
|
-
position: absolute;
|
|
388
|
-
inset: 1px;
|
|
389
|
-
background-image: linear-gradient(-45deg, var(--limel-chip-progressbar-stripe-color) 25%, transparent 25%, transparent 50%, var(--limel-chip-progressbar-stripe-color) 50%, var(--limel-chip-progressbar-stripe-color) 75%, transparent 75%, transparent);
|
|
390
|
-
z-index: 1;
|
|
391
|
-
background-size: var(--limel-chip-progressbar-stripe-size) var(--limel-chip-progressbar-stripe-size);
|
|
392
|
-
animation: move 2.5s linear infinite;
|
|
393
|
-
border-radius: inherit;
|
|
394
|
-
}
|
|
395
|
-
@media (prefers-reduced-motion) {
|
|
396
|
-
div[role=progressbar]:after {
|
|
397
|
-
animation: none;
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
@keyframes move {
|
|
402
|
-
0% {
|
|
403
|
-
background-position: 0 0;
|
|
404
|
-
}
|
|
405
|
-
100% {
|
|
406
|
-
background-position: calc(var(--limel-chip-progressbar-stripe-size) * -1) calc(var(--limel-chip-progressbar-stripe-size) * -1);
|
|
407
|
-
}
|
|
408
407
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* without being explicitly called by outside code.
|
|
7
|
-
*/
|
|
2
|
+
:host(limel-chip-set[readonly]) .mdc-text-field.disabled {
|
|
3
|
+
pointer-events: auto;
|
|
4
|
+
}
|
|
5
|
+
|
|
8
6
|
/**
|
|
9
7
|
* Note! This file is exported to `dist/scss/` in the published
|
|
10
8
|
* node module, for consumer projects to import.
|
|
@@ -92,6 +90,31 @@
|
|
|
92
90
|
* Media query mixins for responsive design based on screen width.
|
|
93
91
|
* Note that these mixins do not detect the device type!
|
|
94
92
|
*/
|
|
93
|
+
:host(limel-chip-set:focus),
|
|
94
|
+
:host(limel-chip-set:focus-visible),
|
|
95
|
+
:host(limel-chip-set:focus-within) {
|
|
96
|
+
--limel-h-l-grid-template-rows-transition-speed: 0.46s;
|
|
97
|
+
--limel-h-l-grid-template-rows: 1fr;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:host(limel-chip-set) {
|
|
101
|
+
--limel-h-l-grid-template-rows-transition-speed: 0.3s;
|
|
102
|
+
--limel-h-l-grid-template-rows: 0fr;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:host(limel-chip-set:focus) limel-helper-line,
|
|
106
|
+
:host(limel-chip-set:focus-visible) limel-helper-line,
|
|
107
|
+
:host(limel-chip-set:focus-within) limel-helper-line,
|
|
108
|
+
:host(limel-chip-set:hover) limel-helper-line {
|
|
109
|
+
will-change: grid-template-rows;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/*
|
|
113
|
+
* This file is imported into every component!
|
|
114
|
+
*
|
|
115
|
+
* Nothing in this file may output any CSS
|
|
116
|
+
* without being explicitly called by outside code.
|
|
117
|
+
*/
|
|
95
118
|
/**
|
|
96
119
|
* @prop --icon-background-color: Background color of the icon. Defaults to transparent.
|
|
97
120
|
* @prop --icon-color: Color of the icon. Defaults to `rgb(var(--contrast-1100))`.
|
|
@@ -1757,114 +1780,4 @@ limel-chip {
|
|
|
1757
1780
|
}
|
|
1758
1781
|
limel-chip.can-be-removed {
|
|
1759
1782
|
box-shadow: var(--shadow-depth-8-error);
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
|
-
:host(limel-chip-set[readonly]) .mdc-text-field.disabled {
|
|
1763
|
-
pointer-events: auto;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
/**
|
|
1767
|
-
* Note! This file is exported to `dist/scss/` in the published
|
|
1768
|
-
* node module, for consumer projects to import.
|
|
1769
|
-
* That means this file cannot import from any file that isn't
|
|
1770
|
-
* also exported, keeping the same relative path.
|
|
1771
|
-
*
|
|
1772
|
-
* Or, just don't import anything, that works too.
|
|
1773
|
-
*/
|
|
1774
|
-
/**
|
|
1775
|
-
* This can be used on a trigger element that opens a dropdown menu or a popover.
|
|
1776
|
-
*/
|
|
1777
|
-
/**
|
|
1778
|
-
* This mixin will mask out the content that is close to
|
|
1779
|
-
* the edges of a scrollable area.
|
|
1780
|
-
* - If the scrollable content has `overflow-y`, use `vertically`
|
|
1781
|
-
* as an argument for `$direction`.
|
|
1782
|
-
- If the scrollable content has `overflow-x`, use `horizontally`
|
|
1783
|
-
* as an argument for `$direction`.
|
|
1784
|
-
*
|
|
1785
|
-
* For the visual effect to work smoothly, we need to make sure that
|
|
1786
|
-
* the size of the fade-out edge effect is the same as the
|
|
1787
|
-
* internal paddings of the scrollable area. Otherwise, content of a
|
|
1788
|
-
* scrollable area that does not have a padding will fade out before
|
|
1789
|
-
* any scrolling has been done.
|
|
1790
|
-
* This is why this mixin already adds paddings, which automatically
|
|
1791
|
-
* default to the size of the fade-out effect.
|
|
1792
|
-
* This size defaults to `1rem`, but to override the size use
|
|
1793
|
-
* `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
|
|
1794
|
-
* when `vertically` argument is set, and use
|
|
1795
|
-
* `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
|
|
1796
|
-
* when `horizontally` argument is set.
|
|
1797
|
-
* Of course you can also programmatically increase and decrease the
|
|
1798
|
-
* size of these variables for each edge, based on the amount of
|
|
1799
|
-
* scrolling that has been done by the user. In this case, make sure
|
|
1800
|
-
* to add a custom padding where the mixin is used, to override
|
|
1801
|
-
* the paddings that are automatically added by the mixin in the
|
|
1802
|
-
* compiled CSS code.
|
|
1803
|
-
*/
|
|
1804
|
-
/**
|
|
1805
|
-
* This mixin will add an animated underline to the bottom of an `a` elements.
|
|
1806
|
-
* Note that you may need to add `all: unset;` –depending on your use case–
|
|
1807
|
-
* before using this mixin.
|
|
1808
|
-
*/
|
|
1809
|
-
/**
|
|
1810
|
-
* This mixin creates a cross-browser font stack.
|
|
1811
|
-
* - `sans-serif` can be used for the UI of the components.
|
|
1812
|
-
* - `monospace` can be used for code.
|
|
1813
|
-
*
|
|
1814
|
-
* ⚠️ If we change the font stacks, we need to update
|
|
1815
|
-
* 1. the consumer documentation in `README.md`, and
|
|
1816
|
-
* 2. the CSS variables of `--kompendium-example-font-family`
|
|
1817
|
-
* in the `<style>` tag of `index.html`.
|
|
1818
|
-
*/
|
|
1819
|
-
/**
|
|
1820
|
-
* This mixin is a hack, using old CSS syntax
|
|
1821
|
-
* to enable you to truncate a piece of text,
|
|
1822
|
-
* after a certain number of lines.
|
|
1823
|
-
*/
|
|
1824
|
-
/**
|
|
1825
|
-
* This mixin will add a chessboard background pattern,
|
|
1826
|
-
* typically used to visualize transparency.
|
|
1827
|
-
*/
|
|
1828
|
-
/**
|
|
1829
|
-
* Make a container resizable by the user.
|
|
1830
|
-
* This is used in the documentations and examples
|
|
1831
|
-
* of some components, to demonstrate how the component
|
|
1832
|
-
* behaves in a resizable container.
|
|
1833
|
-
*/
|
|
1834
|
-
/**
|
|
1835
|
-
* Drag to reorder mixins
|
|
1836
|
-
*/
|
|
1837
|
-
/**
|
|
1838
|
-
* The breakpoints below are used to create responsive designs
|
|
1839
|
-
* in Lime's products. Therefore, they are here to get distributed
|
|
1840
|
-
* to all components in other private repos, which rely on this `mixins`
|
|
1841
|
-
* file, to create consistent styles.
|
|
1842
|
-
*
|
|
1843
|
-
* :::important
|
|
1844
|
-
* In very rare cases you should used media queries!
|
|
1845
|
-
* Nowadays, there are many better ways of achieving responsive design
|
|
1846
|
-
* without media queries. For example, using CSS Grid, Flexbox, and their features.
|
|
1847
|
-
* :::
|
|
1848
|
-
*/
|
|
1849
|
-
/**
|
|
1850
|
-
* Media query mixins for responsive design based on screen width.
|
|
1851
|
-
* Note that these mixins do not detect the device type!
|
|
1852
|
-
*/
|
|
1853
|
-
:host(limel-chip-set:focus),
|
|
1854
|
-
:host(limel-chip-set:focus-visible),
|
|
1855
|
-
:host(limel-chip-set:focus-within) {
|
|
1856
|
-
--limel-h-l-grid-template-rows-transition-speed: 0.46s;
|
|
1857
|
-
--limel-h-l-grid-template-rows: 1fr;
|
|
1858
|
-
}
|
|
1859
|
-
|
|
1860
|
-
:host(limel-chip-set) {
|
|
1861
|
-
--limel-h-l-grid-template-rows-transition-speed: 0.3s;
|
|
1862
|
-
--limel-h-l-grid-template-rows: 0fr;
|
|
1863
|
-
}
|
|
1864
|
-
|
|
1865
|
-
:host(limel-chip-set:focus) limel-helper-line,
|
|
1866
|
-
:host(limel-chip-set:focus-visible) limel-helper-line,
|
|
1867
|
-
:host(limel-chip-set:focus-within) limel-helper-line,
|
|
1868
|
-
:host(limel-chip-set:hover) limel-helper-line {
|
|
1869
|
-
will-change: grid-template-rows;
|
|
1870
1783
|
}
|
|
@@ -1,197 +1,4 @@
|
|
|
1
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
|
-
* Note! This file is exported to `dist/scss/` in the published
|
|
10
|
-
* node module, for consumer projects to import.
|
|
11
|
-
* That means this file cannot import from any file that isn't
|
|
12
|
-
* also exported, keeping the same relative path.
|
|
13
|
-
*
|
|
14
|
-
* Or, just don't import anything, that works too.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* This can be used on a trigger element that opens a dropdown menu or a popover.
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* This mixin will mask out the content that is close to
|
|
21
|
-
* the edges of a scrollable area.
|
|
22
|
-
* - If the scrollable content has `overflow-y`, use `vertically`
|
|
23
|
-
* as an argument for `$direction`.
|
|
24
|
-
- If the scrollable content has `overflow-x`, use `horizontally`
|
|
25
|
-
* as an argument for `$direction`.
|
|
26
|
-
*
|
|
27
|
-
* For the visual effect to work smoothly, we need to make sure that
|
|
28
|
-
* the size of the fade-out edge effect is the same as the
|
|
29
|
-
* internal paddings of the scrollable area. Otherwise, content of a
|
|
30
|
-
* scrollable area that does not have a padding will fade out before
|
|
31
|
-
* any scrolling has been done.
|
|
32
|
-
* This is why this mixin already adds paddings, which automatically
|
|
33
|
-
* default to the size of the fade-out effect.
|
|
34
|
-
* This size defaults to `1rem`, but to override the size use
|
|
35
|
-
* `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
|
|
36
|
-
* when `vertically` argument is set, and use
|
|
37
|
-
* `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
|
|
38
|
-
* when `horizontally` argument is set.
|
|
39
|
-
* Of course you can also programmatically increase and decrease the
|
|
40
|
-
* size of these variables for each edge, based on the amount of
|
|
41
|
-
* scrolling that has been done by the user. In this case, make sure
|
|
42
|
-
* to add a custom padding where the mixin is used, to override
|
|
43
|
-
* the paddings that are automatically added by the mixin in the
|
|
44
|
-
* compiled CSS code.
|
|
45
|
-
*/
|
|
46
|
-
/**
|
|
47
|
-
* This mixin will add an animated underline to the bottom of an `a` elements.
|
|
48
|
-
* Note that you may need to add `all: unset;` –depending on your use case–
|
|
49
|
-
* before using this mixin.
|
|
50
|
-
*/
|
|
51
|
-
/**
|
|
52
|
-
* This mixin creates a cross-browser font stack.
|
|
53
|
-
* - `sans-serif` can be used for the UI of the components.
|
|
54
|
-
* - `monospace` can be used for code.
|
|
55
|
-
*
|
|
56
|
-
* ⚠️ If we change the font stacks, we need to update
|
|
57
|
-
* 1. the consumer documentation in `README.md`, and
|
|
58
|
-
* 2. the CSS variables of `--kompendium-example-font-family`
|
|
59
|
-
* in the `<style>` tag of `index.html`.
|
|
60
|
-
*/
|
|
61
|
-
/**
|
|
62
|
-
* This mixin is a hack, using old CSS syntax
|
|
63
|
-
* to enable you to truncate a piece of text,
|
|
64
|
-
* after a certain number of lines.
|
|
65
|
-
*/
|
|
66
|
-
/**
|
|
67
|
-
* This mixin will add a chessboard background pattern,
|
|
68
|
-
* typically used to visualize transparency.
|
|
69
|
-
*/
|
|
70
|
-
/**
|
|
71
|
-
* Make a container resizable by the user.
|
|
72
|
-
* This is used in the documentations and examples
|
|
73
|
-
* of some components, to demonstrate how the component
|
|
74
|
-
* behaves in a resizable container.
|
|
75
|
-
*/
|
|
76
|
-
/**
|
|
77
|
-
* Drag to reorder mixins
|
|
78
|
-
*/
|
|
79
|
-
/**
|
|
80
|
-
* The breakpoints below are used to create responsive designs
|
|
81
|
-
* in Lime's products. Therefore, they are here to get distributed
|
|
82
|
-
* to all components in other private repos, which rely on this `mixins`
|
|
83
|
-
* file, to create consistent styles.
|
|
84
|
-
*
|
|
85
|
-
* :::important
|
|
86
|
-
* In very rare cases you should used media queries!
|
|
87
|
-
* Nowadays, there are many better ways of achieving responsive design
|
|
88
|
-
* without media queries. For example, using CSS Grid, Flexbox, and their features.
|
|
89
|
-
* :::
|
|
90
|
-
*/
|
|
91
|
-
/**
|
|
92
|
-
* Media query mixins for responsive design based on screen width.
|
|
93
|
-
* Note that these mixins do not detect the device type!
|
|
94
|
-
*/
|
|
95
|
-
/**
|
|
96
|
-
* @prop --circular-progress-size: Determines the visual size of the visualization. This does not override the `size` property if it is specified.
|
|
97
|
-
* @prop --circular-progress-track-color: Determines the color of the circular track. Defaults to `--contrast-400`.
|
|
98
|
-
* @prop --circular-progress-suffix-color: Determines the color of the prefix. Defaults to `--contrast-1000`.
|
|
99
|
-
* @prop --circular-progress-text-color: Determines the color of the value. Defaults to `--contrast-1200`.
|
|
100
|
-
* @prop --circular-progress-prefix-color: Determines the color of the suffix. Defaults to `--contrast-1000`.
|
|
101
|
-
* @prop --circular-progress-fill-color: Determines the color of the progressed section. Defaults to `--lime-primary-color`.
|
|
102
|
-
* @prop --circular-progress-background-color: Determines the background color of the central section. Defaults to `--contrast-100`.
|
|
103
|
-
*/
|
|
104
|
-
:host {
|
|
105
|
-
display: block;
|
|
106
|
-
box-sizing: border-box;
|
|
107
|
-
isolation: isolate;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
:host([size=x-small]) {
|
|
111
|
-
--circular-progress-size: 1.5rem;
|
|
112
|
-
font-weight: bold;
|
|
113
|
-
}
|
|
114
|
-
:host([size=x-small]) .value {
|
|
115
|
-
letter-spacing: -0.0625rem;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
:host([size=small]) {
|
|
119
|
-
--circular-progress-size: 2rem;
|
|
120
|
-
font-weight: bold;
|
|
121
|
-
}
|
|
122
|
-
:host([size=small]) .value {
|
|
123
|
-
letter-spacing: -0.03125rem;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
:host([size=medium]) {
|
|
127
|
-
--circular-progress-size: 3rem;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
:host([size=large]) {
|
|
131
|
-
--circular-progress-size: 4rem;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
:host([size=x-large]) {
|
|
135
|
-
--circular-progress-size: 5rem;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.lime-circular-progress {
|
|
139
|
-
--size: var(--circular-progress-size, 3rem);
|
|
140
|
-
--fill-color: var(
|
|
141
|
-
--circular-progress-fill-color,
|
|
142
|
-
var(--lime-primary-color, var(--limel-theme-primary-color))
|
|
143
|
-
);
|
|
144
|
-
--track-color: var(
|
|
145
|
-
--circular-progress-track-color,
|
|
146
|
-
rgb(var(--contrast-400))
|
|
147
|
-
);
|
|
148
|
-
position: relative;
|
|
149
|
-
display: flex;
|
|
150
|
-
align-items: center;
|
|
151
|
-
justify-content: center;
|
|
152
|
-
width: var(--size);
|
|
153
|
-
height: var(--size);
|
|
154
|
-
border-radius: 50%;
|
|
155
|
-
line-height: normal;
|
|
156
|
-
box-shadow: 0 0 0 0.125rem rgb(var(--contrast-100), 0.7);
|
|
157
|
-
background: conic-gradient(var(--fill-color) 0% var(--percentage), var(--track-color) var(--percentage) 100%);
|
|
158
|
-
}
|
|
159
|
-
.lime-circular-progress:before {
|
|
160
|
-
content: "";
|
|
161
|
-
position: absolute;
|
|
162
|
-
width: calc(var(--size) * 0.75 + 0.25rem);
|
|
163
|
-
height: calc(var(--size) * 0.75 + 0.25rem);
|
|
164
|
-
border-radius: 50%;
|
|
165
|
-
background-color: var(--circular-progress-background-color, rgb(var(--contrast-100)));
|
|
166
|
-
box-shadow: var(--button-shadow-pressed);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.prefix {
|
|
170
|
-
font-size: clamp(0.5rem, var(--size) * 0.16, 2.25rem);
|
|
171
|
-
overflow: hidden;
|
|
172
|
-
white-space: nowrap;
|
|
173
|
-
text-overflow: ellipsis;
|
|
174
|
-
text-align: center;
|
|
175
|
-
color: var(--circular-progress-prefix-color, rgb(var(--contrast-1000)));
|
|
176
|
-
width: 45%;
|
|
177
|
-
top: 20%;
|
|
178
|
-
position: absolute;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.value {
|
|
182
|
-
display: flex;
|
|
183
|
-
font-size: clamp(0.5rem, var(--size) * 0.25, 4rem);
|
|
184
|
-
color: var(--circular-progress-text-color, rgb(var(--contrast-1200)));
|
|
185
|
-
z-index: 1;
|
|
186
|
-
cursor: default;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.suffix {
|
|
190
|
-
font-size: clamp(0.5rem, var(--size) * 0.18, 2.5rem);
|
|
191
|
-
color: var(--circular-progress-suffix-color, rgb(var(--contrast-1000)));
|
|
192
|
-
padding-top: 4%;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
2
|
.displays-percentage-colors[style*="--percentage: 0%"] {
|
|
196
3
|
--circular-progress-fill-color: var(
|
|
197
4
|
--color-percent--0to10
|
|
@@ -800,4 +607,197 @@
|
|
|
800
607
|
|
|
801
608
|
.displays-percentage-colors[style="--percentage: 100%;"] {
|
|
802
609
|
--circular-progress-fill-color: var(--color-percent--100);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/*
|
|
613
|
+
* This file is imported into every component!
|
|
614
|
+
*
|
|
615
|
+
* Nothing in this file may output any CSS
|
|
616
|
+
* without being explicitly called by outside code.
|
|
617
|
+
*/
|
|
618
|
+
/**
|
|
619
|
+
* Note! This file is exported to `dist/scss/` in the published
|
|
620
|
+
* node module, for consumer projects to import.
|
|
621
|
+
* That means this file cannot import from any file that isn't
|
|
622
|
+
* also exported, keeping the same relative path.
|
|
623
|
+
*
|
|
624
|
+
* Or, just don't import anything, that works too.
|
|
625
|
+
*/
|
|
626
|
+
/**
|
|
627
|
+
* This can be used on a trigger element that opens a dropdown menu or a popover.
|
|
628
|
+
*/
|
|
629
|
+
/**
|
|
630
|
+
* This mixin will mask out the content that is close to
|
|
631
|
+
* the edges of a scrollable area.
|
|
632
|
+
* - If the scrollable content has `overflow-y`, use `vertically`
|
|
633
|
+
* as an argument for `$direction`.
|
|
634
|
+
- If the scrollable content has `overflow-x`, use `horizontally`
|
|
635
|
+
* as an argument for `$direction`.
|
|
636
|
+
*
|
|
637
|
+
* For the visual effect to work smoothly, we need to make sure that
|
|
638
|
+
* the size of the fade-out edge effect is the same as the
|
|
639
|
+
* internal paddings of the scrollable area. Otherwise, content of a
|
|
640
|
+
* scrollable area that does not have a padding will fade out before
|
|
641
|
+
* any scrolling has been done.
|
|
642
|
+
* This is why this mixin already adds paddings, which automatically
|
|
643
|
+
* default to the size of the fade-out effect.
|
|
644
|
+
* This size defaults to `1rem`, but to override the size use
|
|
645
|
+
* `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
|
|
646
|
+
* when `vertically` argument is set, and use
|
|
647
|
+
* `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
|
|
648
|
+
* when `horizontally` argument is set.
|
|
649
|
+
* Of course you can also programmatically increase and decrease the
|
|
650
|
+
* size of these variables for each edge, based on the amount of
|
|
651
|
+
* scrolling that has been done by the user. In this case, make sure
|
|
652
|
+
* to add a custom padding where the mixin is used, to override
|
|
653
|
+
* the paddings that are automatically added by the mixin in the
|
|
654
|
+
* compiled CSS code.
|
|
655
|
+
*/
|
|
656
|
+
/**
|
|
657
|
+
* This mixin will add an animated underline to the bottom of an `a` elements.
|
|
658
|
+
* Note that you may need to add `all: unset;` –depending on your use case–
|
|
659
|
+
* before using this mixin.
|
|
660
|
+
*/
|
|
661
|
+
/**
|
|
662
|
+
* This mixin creates a cross-browser font stack.
|
|
663
|
+
* - `sans-serif` can be used for the UI of the components.
|
|
664
|
+
* - `monospace` can be used for code.
|
|
665
|
+
*
|
|
666
|
+
* ⚠️ If we change the font stacks, we need to update
|
|
667
|
+
* 1. the consumer documentation in `README.md`, and
|
|
668
|
+
* 2. the CSS variables of `--kompendium-example-font-family`
|
|
669
|
+
* in the `<style>` tag of `index.html`.
|
|
670
|
+
*/
|
|
671
|
+
/**
|
|
672
|
+
* This mixin is a hack, using old CSS syntax
|
|
673
|
+
* to enable you to truncate a piece of text,
|
|
674
|
+
* after a certain number of lines.
|
|
675
|
+
*/
|
|
676
|
+
/**
|
|
677
|
+
* This mixin will add a chessboard background pattern,
|
|
678
|
+
* typically used to visualize transparency.
|
|
679
|
+
*/
|
|
680
|
+
/**
|
|
681
|
+
* Make a container resizable by the user.
|
|
682
|
+
* This is used in the documentations and examples
|
|
683
|
+
* of some components, to demonstrate how the component
|
|
684
|
+
* behaves in a resizable container.
|
|
685
|
+
*/
|
|
686
|
+
/**
|
|
687
|
+
* Drag to reorder mixins
|
|
688
|
+
*/
|
|
689
|
+
/**
|
|
690
|
+
* The breakpoints below are used to create responsive designs
|
|
691
|
+
* in Lime's products. Therefore, they are here to get distributed
|
|
692
|
+
* to all components in other private repos, which rely on this `mixins`
|
|
693
|
+
* file, to create consistent styles.
|
|
694
|
+
*
|
|
695
|
+
* :::important
|
|
696
|
+
* In very rare cases you should used media queries!
|
|
697
|
+
* Nowadays, there are many better ways of achieving responsive design
|
|
698
|
+
* without media queries. For example, using CSS Grid, Flexbox, and their features.
|
|
699
|
+
* :::
|
|
700
|
+
*/
|
|
701
|
+
/**
|
|
702
|
+
* Media query mixins for responsive design based on screen width.
|
|
703
|
+
* Note that these mixins do not detect the device type!
|
|
704
|
+
*/
|
|
705
|
+
/**
|
|
706
|
+
* @prop --circular-progress-size: Determines the visual size of the visualization. This does not override the `size` property if it is specified.
|
|
707
|
+
* @prop --circular-progress-track-color: Determines the color of the circular track. Defaults to `--contrast-400`.
|
|
708
|
+
* @prop --circular-progress-suffix-color: Determines the color of the prefix. Defaults to `--contrast-1000`.
|
|
709
|
+
* @prop --circular-progress-text-color: Determines the color of the value. Defaults to `--contrast-1200`.
|
|
710
|
+
* @prop --circular-progress-prefix-color: Determines the color of the suffix. Defaults to `--contrast-1000`.
|
|
711
|
+
* @prop --circular-progress-fill-color: Determines the color of the progressed section. Defaults to `--lime-primary-color`.
|
|
712
|
+
* @prop --circular-progress-background-color: Determines the background color of the central section. Defaults to `--contrast-100`.
|
|
713
|
+
*/
|
|
714
|
+
:host {
|
|
715
|
+
display: block;
|
|
716
|
+
box-sizing: border-box;
|
|
717
|
+
isolation: isolate;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
:host([size=x-small]) {
|
|
721
|
+
--circular-progress-size: 1.5rem;
|
|
722
|
+
font-weight: bold;
|
|
723
|
+
}
|
|
724
|
+
:host([size=x-small]) .value {
|
|
725
|
+
letter-spacing: -0.0625rem;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
:host([size=small]) {
|
|
729
|
+
--circular-progress-size: 2rem;
|
|
730
|
+
font-weight: bold;
|
|
731
|
+
}
|
|
732
|
+
:host([size=small]) .value {
|
|
733
|
+
letter-spacing: -0.03125rem;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
:host([size=medium]) {
|
|
737
|
+
--circular-progress-size: 3rem;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
:host([size=large]) {
|
|
741
|
+
--circular-progress-size: 4rem;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
:host([size=x-large]) {
|
|
745
|
+
--circular-progress-size: 5rem;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.lime-circular-progress {
|
|
749
|
+
--size: var(--circular-progress-size, 3rem);
|
|
750
|
+
--fill-color: var(
|
|
751
|
+
--circular-progress-fill-color,
|
|
752
|
+
var(--lime-primary-color, var(--limel-theme-primary-color))
|
|
753
|
+
);
|
|
754
|
+
--track-color: var(
|
|
755
|
+
--circular-progress-track-color,
|
|
756
|
+
rgb(var(--contrast-400))
|
|
757
|
+
);
|
|
758
|
+
position: relative;
|
|
759
|
+
display: flex;
|
|
760
|
+
align-items: center;
|
|
761
|
+
justify-content: center;
|
|
762
|
+
width: var(--size);
|
|
763
|
+
height: var(--size);
|
|
764
|
+
border-radius: 50%;
|
|
765
|
+
line-height: normal;
|
|
766
|
+
box-shadow: 0 0 0 0.125rem rgb(var(--contrast-100), 0.7);
|
|
767
|
+
background: conic-gradient(var(--fill-color) 0% var(--percentage), var(--track-color) var(--percentage) 100%);
|
|
768
|
+
}
|
|
769
|
+
.lime-circular-progress:before {
|
|
770
|
+
content: "";
|
|
771
|
+
position: absolute;
|
|
772
|
+
width: calc(var(--size) * 0.75 + 0.25rem);
|
|
773
|
+
height: calc(var(--size) * 0.75 + 0.25rem);
|
|
774
|
+
border-radius: 50%;
|
|
775
|
+
background-color: var(--circular-progress-background-color, rgb(var(--contrast-100)));
|
|
776
|
+
box-shadow: var(--button-shadow-pressed);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.prefix {
|
|
780
|
+
font-size: clamp(0.5rem, var(--size) * 0.16, 2.25rem);
|
|
781
|
+
overflow: hidden;
|
|
782
|
+
white-space: nowrap;
|
|
783
|
+
text-overflow: ellipsis;
|
|
784
|
+
text-align: center;
|
|
785
|
+
color: var(--circular-progress-prefix-color, rgb(var(--contrast-1000)));
|
|
786
|
+
width: 45%;
|
|
787
|
+
top: 20%;
|
|
788
|
+
position: absolute;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.value {
|
|
792
|
+
display: flex;
|
|
793
|
+
font-size: clamp(0.5rem, var(--size) * 0.25, 4rem);
|
|
794
|
+
color: var(--circular-progress-text-color, rgb(var(--contrast-1200)));
|
|
795
|
+
z-index: 1;
|
|
796
|
+
cursor: default;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.suffix {
|
|
800
|
+
font-size: clamp(0.5rem, var(--size) * 0.18, 2.5rem);
|
|
801
|
+
color: var(--circular-progress-suffix-color, rgb(var(--contrast-1000)));
|
|
802
|
+
padding-top: 4%;
|
|
803
803
|
}
|