@limetech/lime-elements 36.2.0 → 36.3.0-next.10
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/dist/cjs/limel-badge.cjs.entry.js +1 -1
- package/dist/cjs/limel-banner.cjs.entry.js +1 -1
- package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-button.cjs.entry.js +1 -2
- package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +2 -2
- package/dist/cjs/limel-circular-progress_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
- 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-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 +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +12 -2
- package/dist/cjs/limel-form.cjs.entry.js +1 -1
- package/dist/cjs/limel-header.cjs.entry.js +2 -2
- package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
- package/dist/cjs/limel-input-field.cjs.entry.js +1 -1
- package/dist/cjs/limel-list_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-menu-list.cjs.entry.js +1 -1
- package/dist/cjs/limel-popover_4.cjs.entry.js +1 -1
- package/dist/cjs/limel-select.cjs.entry.js +1 -1
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +1 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/limel-spinner.cjs.entry.js +1 -1
- package/dist/cjs/limel-split-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-switch.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +1 -1
- package/dist/collection/components/badge/badge.css +5 -1
- package/dist/collection/components/banner/banner.css +5 -1
- package/dist/collection/components/button/button.css +33 -26
- package/dist/collection/components/button/button.js +4 -5
- package/dist/collection/components/button-group/button-group.css +18 -11
- package/dist/collection/components/checkbox/checkbox.css +20 -9
- package/dist/collection/components/chip-set/chip-set.css +35 -13
- package/dist/collection/components/chip-set/chip-set.js +1 -1
- package/dist/collection/components/circular-progress/circular-progress.css +5 -1
- package/dist/collection/components/code-editor/code-editor.css +93 -67
- package/dist/collection/components/collapsible-section/collapsible-section.css +6 -1
- package/dist/collection/components/color-picker/color-picker-palette.css +7 -504
- package/dist/collection/components/color-picker/color-picker.css +6 -2
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +29 -18
- package/dist/collection/components/dialog/dialog.css +10 -2
- package/dist/collection/components/dock/dock-button/dock-button.css +8 -5
- package/dist/collection/components/dock/dock.css +6 -2
- package/dist/collection/components/form/form.css +21 -5
- package/dist/collection/components/header/header.css +2 -2
- package/dist/collection/components/header/header.js +8 -2
- package/dist/collection/components/icon-button/icon-button.css +5 -2
- package/dist/collection/components/info-tile/info-tile.css +16 -7
- package/dist/collection/components/input-field/input-field.css +30 -11
- package/dist/collection/components/linear-progress/linear-progress.css +5 -1
- package/dist/collection/components/list/list.css +942 -47
- package/dist/collection/components/menu-list/menu-list.css +1010 -47
- package/dist/collection/components/menu-surface/menu-surface.css +1 -0
- package/dist/collection/components/popover/popover.css +1 -1
- package/dist/collection/components/popover-surface/popover-surface.css +1 -1
- package/dist/collection/components/select/select.css +17 -3
- package/dist/collection/components/shortcut/shortcut.css +6 -3
- package/dist/collection/components/slider/slider.css +11 -3
- package/dist/collection/components/snackbar/snackbar.css +10 -5
- package/dist/collection/components/spinner/spinner.css +5 -1
- package/dist/collection/components/split-button/split-button.css +5 -1
- package/dist/collection/components/switch/switch.css +51 -2
- package/dist/collection/components/tab-bar/tab-bar.css +14 -2
- package/dist/collection/components/table/table.css +73 -32
- package/dist/collection/style/_theme-color-variables.scss +5 -1
- package/dist/collection/style/color-palette-extended-light-mode-only.css +1 -1
- package/dist/collection/style/color-palette-extended.css +173 -3
- 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/colors.scss +11 -13
- package/dist/collection/style/internal/shared_input-select-picker.scss +20 -0
- package/dist/collection/style/internal/z-index.scss +0 -2
- package/dist/collection/style/mixins.scss +84 -20
- package/dist/collection/style/shadows.scss +117 -27
- package/dist/esm/limel-badge.entry.js +1 -1
- package/dist/esm/limel-banner.entry.js +1 -1
- package/dist/esm/limel-button-group.entry.js +1 -1
- package/dist/esm/limel-button.entry.js +1 -2
- package/dist/esm/limel-checkbox.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js +2 -2
- package/dist/esm/limel-circular-progress_2.entry.js +2 -2
- package/dist/esm/limel-code-editor.entry.js +1 -1
- package/dist/esm/limel-collapsible-section.entry.js +1 -1
- 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-dialog.entry.js +1 -1
- package/dist/esm/limel-dock-button.entry.js +1 -1
- package/dist/esm/limel-dock.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +12 -2
- package/dist/esm/limel-form.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +2 -2
- package/dist/esm/limel-icon-button.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js +1 -1
- package/dist/esm/limel-input-field.entry.js +1 -1
- package/dist/esm/limel-list_2.entry.js +2 -2
- package/dist/esm/limel-menu-list.entry.js +1 -1
- package/dist/esm/limel-popover_4.entry.js +1 -1
- package/dist/esm/limel-select.entry.js +1 -1
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +1 -1
- package/dist/esm/limel-snackbar.entry.js +1 -1
- package/dist/esm/limel-spinner.entry.js +1 -1
- package/dist/esm/limel-split-button.entry.js +1 -1
- package/dist/esm/limel-switch.entry.js +1 -1
- package/dist/esm/limel-tab-bar.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +1 -1
- package/dist/lime-elements/lime-elements.css +15 -19
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-004aad18.entry.js +1 -0
- package/dist/lime-elements/p-029360c8.entry.js +1 -0
- package/dist/lime-elements/{p-21058db5.entry.js → p-05d88196.entry.js} +2 -2
- package/dist/lime-elements/{p-9984b31c.entry.js → p-0bf916a0.entry.js} +1 -1
- package/dist/lime-elements/p-15c3ec8e.entry.js +1 -0
- package/dist/lime-elements/p-2f2ea041.entry.js +1 -0
- package/dist/lime-elements/{p-6534e16a.entry.js → p-405207fa.entry.js} +1 -1
- package/dist/lime-elements/p-52e18d94.entry.js +1 -0
- package/dist/lime-elements/p-5393213b.entry.js +1 -0
- package/dist/lime-elements/p-5409b92f.entry.js +1 -0
- package/dist/lime-elements/{p-768b7cbb.entry.js → p-61b3352f.entry.js} +1 -1
- package/dist/lime-elements/{p-e7bb664f.entry.js → p-6784c5c3.entry.js} +1 -1
- package/dist/lime-elements/p-81df4a1f.entry.js +1 -0
- package/dist/lime-elements/{p-600464a9.entry.js → p-91604294.entry.js} +1 -1
- package/dist/lime-elements/{p-059e0a64.entry.js → p-934456bc.entry.js} +1 -1
- package/dist/lime-elements/p-93ad8b90.entry.js +1 -0
- package/dist/lime-elements/{p-5f13035a.entry.js → p-95cefb5f.entry.js} +1 -1
- package/dist/lime-elements/p-95fd48d0.entry.js +82 -0
- package/dist/lime-elements/{p-e1ab52f4.entry.js → p-9ec08ebc.entry.js} +1 -1
- package/dist/lime-elements/{p-5bd9b025.entry.js → p-a0c78744.entry.js} +3 -3
- package/dist/lime-elements/{p-16eb9071.entry.js → p-a8d38277.entry.js} +1 -1
- package/dist/lime-elements/{p-8ab597a8.entry.js → p-b079fc71.entry.js} +1 -1
- package/dist/lime-elements/p-bf3d6097.entry.js +1 -0
- package/dist/lime-elements/p-c234a991.entry.js +37 -0
- package/dist/lime-elements/{p-5f29f099.entry.js → p-c4a89055.entry.js} +2 -2
- package/dist/lime-elements/p-c6e913a4.entry.js +82 -0
- package/dist/lime-elements/p-cc9f89a9.entry.js +1 -0
- package/dist/lime-elements/{p-15ca0d70.entry.js → p-d379f4d6.entry.js} +1 -1
- package/dist/lime-elements/{p-8fb83e83.entry.js → p-e5213a54.entry.js} +4 -4
- package/dist/lime-elements/p-e6a11b73.entry.js +1 -0
- package/dist/lime-elements/p-eed2a202.entry.js +73 -0
- package/dist/lime-elements/p-ff340a70.entry.js +126 -0
- package/dist/lime-elements/style/_theme-color-variables.scss +5 -1
- package/dist/lime-elements/style/color-palette-extended-light-mode-only.css +1 -1
- package/dist/lime-elements/style/color-palette-extended.css +173 -3
- 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/colors.scss +11 -13
- package/dist/lime-elements/style/internal/shared_input-select-picker.scss +20 -0
- package/dist/lime-elements/style/internal/z-index.scss +0 -2
- package/dist/lime-elements/style/mixins.scss +84 -20
- package/dist/lime-elements/style/shadows.scss +117 -27
- package/dist/types/components/button/button.d.ts +4 -6
- package/dist/types/components/header/header.d.ts +7 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +11 -11
- package/dist/lime-elements/p-12a7453b.entry.js +0 -73
- package/dist/lime-elements/p-15c2eb16.entry.js +0 -1
- package/dist/lime-elements/p-37fe095f.entry.js +0 -1
- package/dist/lime-elements/p-4eda8b67.entry.js +0 -82
- package/dist/lime-elements/p-4fc38050.entry.js +0 -1
- package/dist/lime-elements/p-5ce60a32.entry.js +0 -126
- package/dist/lime-elements/p-6a4a5ddd.entry.js +0 -1
- package/dist/lime-elements/p-738aedc1.entry.js +0 -1
- package/dist/lime-elements/p-8a5a6ac9.entry.js +0 -1
- package/dist/lime-elements/p-c90fc327.entry.js +0 -82
- package/dist/lime-elements/p-d8e5a9ee.entry.js +0 -1
- package/dist/lime-elements/p-dc030055.entry.js +0 -1
- package/dist/lime-elements/p-de161bb5.entry.js +0 -1
- package/dist/lime-elements/p-e4bca82b.entry.js +0 -1
- package/dist/lime-elements/p-e6f84d68.entry.js +0 -1
- package/dist/lime-elements/p-e88f7922.entry.js +0 -1
- package/dist/lime-elements/p-fa0d0733.entry.js +0 -37
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
--lime-text-secondary-on-background-color,
|
|
50
50
|
rgba(var(--contrast-1700), 0.54)
|
|
51
51
|
);
|
|
52
|
+
--mdc-theme-error: var(
|
|
53
|
+
--lime-error-background-color,
|
|
54
|
+
rgb(var(--color-red-dark))
|
|
55
|
+
);
|
|
52
56
|
--lime-error-text-color: rgb(var(--color-red-darker));
|
|
53
57
|
--mdc-theme-surface: var(
|
|
54
58
|
--lime-surface-background-color,
|
|
@@ -56,7 +60,7 @@
|
|
|
56
60
|
);
|
|
57
61
|
--mdc-theme-on-surface: var(
|
|
58
62
|
--lime-on-surface-color,
|
|
59
|
-
var(--
|
|
63
|
+
rgb(var(--contrast-1500))
|
|
60
64
|
);
|
|
61
65
|
}
|
|
62
66
|
|
|
@@ -2587,6 +2591,7 @@
|
|
|
2587
2591
|
}
|
|
2588
2592
|
|
|
2589
2593
|
.mdc-text-field__icon {
|
|
2594
|
+
color: rgb(var(--contrast-900));
|
|
2590
2595
|
flex-shrink: 0;
|
|
2591
2596
|
}
|
|
2592
2597
|
|
|
@@ -2664,6 +2669,7 @@
|
|
|
2664
2669
|
}
|
|
2665
2670
|
|
|
2666
2671
|
.mdc-text-field__icon {
|
|
2672
|
+
color: rgb(var(--contrast-900));
|
|
2667
2673
|
width: 1.5rem;
|
|
2668
2674
|
height: 1.5rem;
|
|
2669
2675
|
}
|
|
@@ -2673,19 +2679,23 @@
|
|
|
2673
2679
|
}
|
|
2674
2680
|
|
|
2675
2681
|
.mdc-chip {
|
|
2676
|
-
transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;
|
|
2682
|
+
transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;
|
|
2683
|
+
color: var(--mdc-theme-on-surface);
|
|
2684
|
+
background-color: var(--lime-elevated-surface-background-color);
|
|
2677
2685
|
box-shadow: var(--button-shadow-normal);
|
|
2678
2686
|
max-width: 100%;
|
|
2679
2687
|
min-width: 2rem;
|
|
2680
2688
|
padding: 0 0.0625rem;
|
|
2681
2689
|
display: inline-grid;
|
|
2682
2690
|
grid-auto-flow: column;
|
|
2683
|
-
background-color: rgb(var(--contrast-100));
|
|
2684
2691
|
}
|
|
2685
2692
|
.mdc-chip:hover {
|
|
2693
|
+
color: var(--mdc-theme-on-surface);
|
|
2694
|
+
background-color: var(--lime-elevated-surface-background-color);
|
|
2686
2695
|
box-shadow: var(--button-shadow-hovered);
|
|
2687
2696
|
}
|
|
2688
2697
|
.mdc-chip:active {
|
|
2698
|
+
background-color: var(--mdc-theme-surface);
|
|
2689
2699
|
box-shadow: var(--button-shadow-inset-pressed);
|
|
2690
2700
|
transform: translate3d(0, 0.05rem, 0);
|
|
2691
2701
|
}
|
|
@@ -2710,15 +2720,17 @@
|
|
|
2710
2720
|
border-radius: 3.75rem;
|
|
2711
2721
|
box-shadow: var(--shadow-depth-8-focused);
|
|
2712
2722
|
}
|
|
2713
|
-
.mdc-chip:hover {
|
|
2714
|
-
background-color: rgb(var(--contrast-100));
|
|
2715
|
-
}
|
|
2716
2723
|
.mdc-chip.mdc-chip--selected {
|
|
2724
|
+
color: var(--mdc-theme-primary) !important;
|
|
2725
|
+
background-color: var(--mdc-theme-surface) !important;
|
|
2717
2726
|
box-shadow: var(--button-shadow-inset);
|
|
2718
2727
|
}
|
|
2719
2728
|
.mdc-chip.mdc-chip--selected:active {
|
|
2720
2729
|
box-shadow: var(--button-shadow-inset-pressed);
|
|
2721
2730
|
}
|
|
2731
|
+
.mdc-chip.mdc-chip--selected .mdc-chip__icon--leading {
|
|
2732
|
+
color: var(--mdc-theme-primary) !important;
|
|
2733
|
+
}
|
|
2722
2734
|
|
|
2723
2735
|
.mdc-chip.mdc-chip--selected .mdc-chip__checkmark,
|
|
2724
2736
|
.mdc-chip__checkmark {
|
|
@@ -2781,7 +2793,8 @@ limel-icon.mdc-chip__icon.mdc-chip__icon--leading {
|
|
|
2781
2793
|
}
|
|
2782
2794
|
|
|
2783
2795
|
.mdc-chip__icon.mdc-chip__icon--trailing {
|
|
2784
|
-
transition: background-color 0.2s ease;
|
|
2796
|
+
transition: background-color 0.2s ease, color 0.2s ease;
|
|
2797
|
+
color: var(--mdc-theme-on-surface);
|
|
2785
2798
|
margin-left: 0;
|
|
2786
2799
|
margin-right: 0.3125rem;
|
|
2787
2800
|
width: 1.375rem;
|
|
@@ -2811,6 +2824,9 @@ limel-icon.mdc-chip__icon.mdc-chip__icon--leading {
|
|
|
2811
2824
|
flex-grow: 1;
|
|
2812
2825
|
flex-shrink: 0;
|
|
2813
2826
|
}
|
|
2827
|
+
.mdc-text-field .mdc-text-field__input::placeholder {
|
|
2828
|
+
color: rgb(var(--contrast-900)) !important;
|
|
2829
|
+
}
|
|
2814
2830
|
.mdc-text-field .mdc-text-field__input.hidden {
|
|
2815
2831
|
transition: all 0s;
|
|
2816
2832
|
opacity: 0;
|
|
@@ -2853,13 +2869,13 @@ limel-icon.mdc-chip__icon.mdc-chip__icon--leading {
|
|
|
2853
2869
|
}
|
|
2854
2870
|
|
|
2855
2871
|
.clear-all-button {
|
|
2856
|
-
transition:
|
|
2857
|
-
|
|
2872
|
+
transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;
|
|
2873
|
+
color: var(--mdc-theme-on-surface);
|
|
2874
|
+
background-color: rgb(var(--contrast-900));
|
|
2858
2875
|
cursor: pointer;
|
|
2859
2876
|
height: 1.25rem;
|
|
2860
2877
|
width: 1.25rem;
|
|
2861
2878
|
border-radius: 50%;
|
|
2862
|
-
background-color: #babac0;
|
|
2863
2879
|
background-repeat: no-repeat;
|
|
2864
2880
|
background-position: center;
|
|
2865
2881
|
background-size: 0.75rem;
|
|
@@ -2870,15 +2886,14 @@ limel-icon.mdc-chip__icon.mdc-chip__icon--leading {
|
|
|
2870
2886
|
opacity: 0;
|
|
2871
2887
|
}
|
|
2872
2888
|
.clear-all-button:hover {
|
|
2889
|
+
color: var(--mdc-theme-on-surface);
|
|
2890
|
+
background-color: rgb(var(--contrast-1100));
|
|
2873
2891
|
box-shadow: var(--button-shadow-hovered);
|
|
2874
2892
|
}
|
|
2875
2893
|
.clear-all-button:active {
|
|
2876
2894
|
box-shadow: var(--button-shadow-pressed);
|
|
2877
2895
|
transform: translate3d(0, 0.08rem, 0);
|
|
2878
2896
|
}
|
|
2879
|
-
.clear-all-button:hover {
|
|
2880
|
-
background-color: #757580;
|
|
2881
|
-
}
|
|
2882
2897
|
.clear-all-button:focus {
|
|
2883
2898
|
outline: none;
|
|
2884
2899
|
}
|
|
@@ -2919,6 +2934,7 @@ limel-icon.mdc-chip__icon.mdc-chip__icon--leading {
|
|
|
2919
2934
|
.delimiter {
|
|
2920
2935
|
opacity: 0.5;
|
|
2921
2936
|
padding: 0 0.125rem;
|
|
2937
|
+
color: var(--mdc-theme-on-surface);
|
|
2922
2938
|
}
|
|
2923
2939
|
|
|
2924
2940
|
:host(.is-file-picker.shows-dropzone[readonly]) .mdc-text-field:not(.has-chips) .mdc-notched-outline:before, :host(.is-file-picker.shows-dropzone[readonly]) .mdc-text-field:not(.has-chips) .mdc-notched-outline:after {
|
|
@@ -2976,6 +2992,12 @@ limel-icon.mdc-chip__icon.mdc-chip__icon--leading {
|
|
|
2976
2992
|
flex-basis: 100%;
|
|
2977
2993
|
}
|
|
2978
2994
|
|
|
2995
|
+
.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,
|
|
2996
|
+
.mdc-text-field:not(.mdc-text-field--disabled) + .mdc-text-field-helper-line .mdc-text-field-character-counter,
|
|
2997
|
+
.mdc-text-field:not(.mdc-text-field--disabled) + .mdc-text-field-helper-line .mdc-text-field-helper-text {
|
|
2998
|
+
color: rgba(var(--contrast-1200), 1);
|
|
2999
|
+
}
|
|
3000
|
+
|
|
2979
3001
|
.mdc-text-field-helper-text:before {
|
|
2980
3002
|
height: 0.75rem;
|
|
2981
3003
|
display: inline-block;
|
|
@@ -326,7 +326,7 @@ export class ChipSet {
|
|
|
326
326
|
return (h("span", { role: "gridcell" }, h("a", Object.assign({ role: "button", tabindex: this.disabled ? '-1' : '0', class: "mdc-chip__text" }, attributes), chip.text)));
|
|
327
327
|
}
|
|
328
328
|
renderFilterChip(chip) {
|
|
329
|
-
return (h("div", { class: `mdc-chip ${chip.selected ? SELECTED_CHIP_CLASS : ''}`, role: "row", id: `${chip.id}` }, h("span", { class: "mdc-chip__checkmark" }, h("svg", { class: "mdc-chip__checkmark-svg", viewBox: "-2 -3 30 30" }, h("path", { class: "mdc-chip__checkmark-path", fill: "none", stroke: "
|
|
329
|
+
return (h("div", { class: `mdc-chip ${chip.selected ? SELECTED_CHIP_CLASS : ''}`, role: "row", id: `${chip.id}` }, h("span", { class: "mdc-chip__checkmark" }, h("svg", { class: "mdc-chip__checkmark-svg", viewBox: "-2 -3 30 30" }, h("path", { class: "mdc-chip__checkmark-path", fill: "none", stroke: "currentColor", d: "M1.73,12.91 8.1,19.28 22.79,4.59" }))), h("span", { role: "gridcell" }, h("span", { role: "checkbox", tabindex: this.disabled ? '-1' : '0', "aria-checked": "false", class: "mdc-chip__text" }, chip.text)), this.renderBadge(chip)));
|
|
330
330
|
}
|
|
331
331
|
renderInputChip(chip, index) {
|
|
332
332
|
return [
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
--lime-text-secondary-on-background-color,
|
|
50
50
|
rgba(var(--contrast-1700), 0.54)
|
|
51
51
|
);
|
|
52
|
+
--mdc-theme-error: var(
|
|
53
|
+
--lime-error-background-color,
|
|
54
|
+
rgb(var(--color-red-dark))
|
|
55
|
+
);
|
|
52
56
|
--lime-error-text-color: rgb(var(--color-red-darker));
|
|
53
57
|
--mdc-theme-surface: var(
|
|
54
58
|
--lime-surface-background-color,
|
|
@@ -56,7 +60,7 @@
|
|
|
56
60
|
);
|
|
57
61
|
--mdc-theme-on-surface: var(
|
|
58
62
|
--lime-on-surface-color,
|
|
59
|
-
var(--
|
|
63
|
+
rgb(var(--contrast-1500))
|
|
60
64
|
);
|
|
61
65
|
}
|
|
62
66
|
|
|
@@ -457,14 +457,6 @@ span.CodeMirror-selectedtext { background: none; }
|
|
|
457
457
|
:host {
|
|
458
458
|
display: flex;
|
|
459
459
|
font-size: var(--code-editor-font-size, 0.875rem);
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.editor {
|
|
463
|
-
display: flex;
|
|
464
|
-
align-items: stretch;
|
|
465
|
-
width: 100%;
|
|
466
|
-
}
|
|
467
|
-
.editor.is-light-mode {
|
|
468
460
|
--code-editor-neutral-text-color: var(--contrast-1100);
|
|
469
461
|
--code-editor-background-color: var(--contrast-200);
|
|
470
462
|
--code-editor-gutter-background-color: var(--contrast-300);
|
|
@@ -473,111 +465,145 @@ span.CodeMirror-selectedtext { background: none; }
|
|
|
473
465
|
--code-editor-selection-highlight-color: var(--color-cyan-default);
|
|
474
466
|
--code-editor-selection-lowlight-color: var(--contrast-600);
|
|
475
467
|
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
468
|
+
:host .cm-attribute,
|
|
469
|
+
:host .cm-property,
|
|
470
|
+
:host .cm-keyword {
|
|
479
471
|
color: rgb(var(--color-violet-light));
|
|
480
472
|
}
|
|
481
|
-
|
|
473
|
+
:host .cm-operator {
|
|
482
474
|
color: rgb(var(--color-sky-dark));
|
|
483
475
|
}
|
|
484
|
-
|
|
476
|
+
:host .cm-variable {
|
|
485
477
|
color: rgb(var(--color-pink-light));
|
|
486
478
|
}
|
|
487
|
-
|
|
479
|
+
:host .cm-variable-2 {
|
|
488
480
|
color: rgb(var(--contrast-1100));
|
|
489
481
|
}
|
|
490
|
-
|
|
491
|
-
|
|
482
|
+
:host .cm-variable-3,
|
|
483
|
+
:host .cm-type {
|
|
492
484
|
color: rgb(var(--color-amber-darker));
|
|
493
485
|
}
|
|
494
|
-
|
|
495
|
-
|
|
486
|
+
:host .cm-builtin,
|
|
487
|
+
:host .cm-meta {
|
|
496
488
|
color: rgb(var(--color-amber-default));
|
|
497
489
|
}
|
|
498
|
-
|
|
490
|
+
:host .cm-atom {
|
|
499
491
|
color: rgb(var(--color-coral-default));
|
|
500
492
|
}
|
|
501
|
-
|
|
502
|
-
|
|
493
|
+
:host .cm-tag,
|
|
494
|
+
:host .cm-number {
|
|
503
495
|
color: rgb(var(--color-magenta-default));
|
|
504
496
|
}
|
|
505
|
-
|
|
497
|
+
:host .cm-def {
|
|
506
498
|
color: rgb(var(--color-sky-default));
|
|
507
499
|
}
|
|
508
|
-
|
|
500
|
+
:host .cm-string {
|
|
509
501
|
color: rgb(var(--color-green-dark));
|
|
510
502
|
}
|
|
511
|
-
|
|
503
|
+
:host .cm-string-2 {
|
|
512
504
|
color: rgb(var(--color-pink-default));
|
|
513
505
|
}
|
|
514
|
-
|
|
506
|
+
:host .cm-qualifier {
|
|
515
507
|
color: rgb(var(--color-grass-default));
|
|
516
508
|
}
|
|
517
|
-
|
|
509
|
+
:host .cm-error {
|
|
518
510
|
color: rgb(var(--color-white));
|
|
519
511
|
background-color: rgb(var(--color-red-default));
|
|
520
512
|
}
|
|
521
|
-
|
|
513
|
+
:host .cm-comment {
|
|
522
514
|
color: rgba(var(--code-editor-neutral-text-color), 0.7);
|
|
523
515
|
}
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
516
|
+
|
|
517
|
+
@media (prefers-color-scheme: dark) {
|
|
518
|
+
:root:not([data-theme=force-light]) :host {
|
|
519
|
+
--code-editor-neutral-text-color: var(--contrast-1600);
|
|
520
|
+
--code-editor-line-number-text-color: var(--contrast-800);
|
|
521
|
+
--code-editor-cursor-color: var(--color-amber-default);
|
|
522
|
+
--code-editor-selection-highlight-color: var(--color-cyan-light);
|
|
523
|
+
--code-editor-selection-lowlight-color: var(--contrast-100);
|
|
524
|
+
}
|
|
525
|
+
:root:not([data-theme=force-light]) :host .cm-attribute,
|
|
526
|
+
:root:not([data-theme=force-light]) :host .cm-property,
|
|
527
|
+
:root:not([data-theme=force-light]) :host .cm-keyword {
|
|
528
|
+
color: rgb(var(--color-purple-lighter));
|
|
529
|
+
}
|
|
530
|
+
:root:not([data-theme=force-light]) :host .cm-operator {
|
|
531
|
+
color: rgb(var(--color-sky-lighter));
|
|
532
|
+
}
|
|
533
|
+
:root:not([data-theme=force-light]) :host .cm-variable-3,
|
|
534
|
+
:root:not([data-theme=force-light]) :host .cm-type {
|
|
535
|
+
color: rgb(var(--color-yellow-light));
|
|
536
|
+
}
|
|
537
|
+
:root:not([data-theme=force-light]) :host .cm-atom {
|
|
538
|
+
color: rgb(var(--color-coral-light));
|
|
539
|
+
}
|
|
540
|
+
:root:not([data-theme=force-light]) :host .cm-tag,
|
|
541
|
+
:root:not([data-theme=force-light]) :host .cm-number {
|
|
542
|
+
color: rgb(var(--color-magenta-light));
|
|
543
|
+
}
|
|
544
|
+
:root:not([data-theme=force-light]) :host .cm-def {
|
|
545
|
+
color: rgb(var(--color-sky-light));
|
|
546
|
+
}
|
|
547
|
+
:root:not([data-theme=force-light]) :host .cm-string {
|
|
548
|
+
color: rgb(var(--color-lime-light));
|
|
549
|
+
}
|
|
550
|
+
:root:not([data-theme=force-light]) :host .cm-string-2 {
|
|
551
|
+
color: rgb(var(--color-pink-lighter));
|
|
552
|
+
}
|
|
553
|
+
:root:not([data-theme=force-light]) :host .cm-qualifier {
|
|
554
|
+
color: rgb(var(--color-grass-light));
|
|
555
|
+
}
|
|
556
|
+
:root:not([data-theme=force-light]) :host .cm-comment {
|
|
557
|
+
color: rgba(var(--code-editor-neutral-text-color), 0.4);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
:root[data-theme=force-dark] :host {
|
|
561
|
+
--code-editor-neutral-text-color: var(--contrast-1600);
|
|
562
|
+
--code-editor-line-number-text-color: var(--contrast-800);
|
|
529
563
|
--code-editor-cursor-color: var(--color-amber-default);
|
|
530
564
|
--code-editor-selection-highlight-color: var(--color-cyan-light);
|
|
531
|
-
--code-editor-selection-lowlight-color: var(--contrast-
|
|
565
|
+
--code-editor-selection-lowlight-color: var(--contrast-100);
|
|
532
566
|
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
567
|
+
:root[data-theme=force-dark] :host .cm-attribute,
|
|
568
|
+
:root[data-theme=force-dark] :host .cm-property,
|
|
569
|
+
:root[data-theme=force-dark] :host .cm-keyword {
|
|
536
570
|
color: rgb(var(--color-purple-lighter));
|
|
537
571
|
}
|
|
538
|
-
|
|
572
|
+
:root[data-theme=force-dark] :host .cm-operator {
|
|
539
573
|
color: rgb(var(--color-sky-lighter));
|
|
540
574
|
}
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
}
|
|
544
|
-
.editor.is-dark-mode .cm-variable-2 {
|
|
545
|
-
color: rgb(var(--contrast-300));
|
|
546
|
-
}
|
|
547
|
-
.editor.is-dark-mode .cm-variable-3,
|
|
548
|
-
.editor.is-dark-mode .cm-type {
|
|
575
|
+
:root[data-theme=force-dark] :host .cm-variable-3,
|
|
576
|
+
:root[data-theme=force-dark] :host .cm-type {
|
|
549
577
|
color: rgb(var(--color-yellow-light));
|
|
550
578
|
}
|
|
551
|
-
|
|
552
|
-
.editor.is-dark-mode .cm-meta {
|
|
553
|
-
color: rgb(var(--color-amber-default));
|
|
554
|
-
}
|
|
555
|
-
.editor.is-dark-mode .cm-atom {
|
|
579
|
+
:root[data-theme=force-dark] :host .cm-atom {
|
|
556
580
|
color: rgb(var(--color-coral-light));
|
|
557
581
|
}
|
|
558
|
-
|
|
559
|
-
|
|
582
|
+
:root[data-theme=force-dark] :host .cm-tag,
|
|
583
|
+
:root[data-theme=force-dark] :host .cm-number {
|
|
560
584
|
color: rgb(var(--color-magenta-light));
|
|
561
585
|
}
|
|
562
|
-
|
|
586
|
+
:root[data-theme=force-dark] :host .cm-def {
|
|
563
587
|
color: rgb(var(--color-sky-light));
|
|
564
588
|
}
|
|
565
|
-
|
|
589
|
+
:root[data-theme=force-dark] :host .cm-string {
|
|
566
590
|
color: rgb(var(--color-lime-light));
|
|
567
591
|
}
|
|
568
|
-
|
|
592
|
+
:root[data-theme=force-dark] :host .cm-string-2 {
|
|
569
593
|
color: rgb(var(--color-pink-lighter));
|
|
570
594
|
}
|
|
571
|
-
|
|
595
|
+
:root[data-theme=force-dark] :host .cm-qualifier {
|
|
572
596
|
color: rgb(var(--color-grass-light));
|
|
573
597
|
}
|
|
574
|
-
|
|
575
|
-
color: rgb(var(--color-white));
|
|
576
|
-
background-color: rgb(var(--color-red-default));
|
|
577
|
-
}
|
|
578
|
-
.editor.is-dark-mode .cm-comment {
|
|
598
|
+
:root[data-theme=force-dark] :host .cm-comment {
|
|
579
599
|
color: rgba(var(--code-editor-neutral-text-color), 0.4);
|
|
580
600
|
}
|
|
601
|
+
|
|
602
|
+
.editor {
|
|
603
|
+
display: flex;
|
|
604
|
+
align-items: stretch;
|
|
605
|
+
width: 100%;
|
|
606
|
+
}
|
|
581
607
|
.editor.readonly .CodeMirror-focused .CodeMirror-cursors {
|
|
582
608
|
visibility: visible !important;
|
|
583
609
|
}
|
|
@@ -639,27 +665,27 @@ span.CodeMirror-selectedtext { background: none; }
|
|
|
639
665
|
}
|
|
640
666
|
.cm-s-lime .CodeMirror-foldmarker {
|
|
641
667
|
position: relative;
|
|
642
|
-
transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;
|
|
643
|
-
box-shadow: var(--button-shadow-normal);
|
|
668
|
+
transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;
|
|
644
669
|
color: transparent;
|
|
670
|
+
background-color: var(--lime-elevated-surface-background-color);
|
|
671
|
+
box-shadow: var(--button-shadow-normal);
|
|
645
672
|
text-shadow: none;
|
|
646
673
|
padding: 0 0.5rem;
|
|
647
674
|
border-radius: 1rem;
|
|
648
|
-
background-image: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' xml:space='preserve'><circle cx='16' cy='16' r='2'/><circle cx='26' cy='16' r='2'/><circle cx='6' cy='16' r='2'/></svg>");
|
|
675
|
+
background-image: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' xml:space='preserve'><circle fill='rgba(186,186,192,0.7)' cx='16' cy='16' r='2'/><circle fill='rgba(186,186,192,0.7)' cx='26' cy='16' r='2'/><circle fill='rgba(186,186,192,0.7)' cx='6' cy='16' r='2'/></svg>");
|
|
649
676
|
background-size: contain;
|
|
650
677
|
background-repeat: no-repeat;
|
|
651
678
|
background-position: center;
|
|
652
679
|
}
|
|
653
680
|
.cm-s-lime .CodeMirror-foldmarker:hover {
|
|
681
|
+
color: var(--mdc-theme-on-surface);
|
|
682
|
+
background-color: var(--lime-elevated-surface-background-color);
|
|
654
683
|
box-shadow: var(--button-shadow-hovered);
|
|
655
684
|
}
|
|
656
685
|
.cm-s-lime .CodeMirror-foldmarker:active {
|
|
657
686
|
box-shadow: var(--button-shadow-pressed);
|
|
658
687
|
transform: translate3d(0, 0.08rem, 0);
|
|
659
688
|
}
|
|
660
|
-
.is-dark-mode .cm-s-lime .CodeMirror-foldmarker {
|
|
661
|
-
background-color: rgb(var(--contrast-1200));
|
|
662
|
-
}
|
|
663
689
|
.cm-s-lime [class^=CodeMirror-foldgutter] {
|
|
664
690
|
color: var(--code-editor-neutral-text-color);
|
|
665
691
|
transition: opacity 0.2s ease;
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
--lime-text-secondary-on-background-color,
|
|
50
50
|
rgba(var(--contrast-1700), 0.54)
|
|
51
51
|
);
|
|
52
|
+
--mdc-theme-error: var(
|
|
53
|
+
--lime-error-background-color,
|
|
54
|
+
rgb(var(--color-red-dark))
|
|
55
|
+
);
|
|
52
56
|
--lime-error-text-color: rgb(var(--color-red-darker));
|
|
53
57
|
--mdc-theme-surface: var(
|
|
54
58
|
--lime-surface-background-color,
|
|
@@ -56,7 +60,7 @@
|
|
|
56
60
|
);
|
|
57
61
|
--mdc-theme-on-surface: var(
|
|
58
62
|
--lime-on-surface-color,
|
|
59
|
-
var(--
|
|
63
|
+
rgb(var(--contrast-1500))
|
|
60
64
|
);
|
|
61
65
|
}
|
|
62
66
|
|
|
@@ -134,6 +138,7 @@ section.open .section__header:hover {
|
|
|
134
138
|
text-transform: inherit;
|
|
135
139
|
/* @alternate */
|
|
136
140
|
text-transform: var(--mdc-typography-headline2-text-transform, inherit);
|
|
141
|
+
color: var(--mdc-theme-on-surface);
|
|
137
142
|
justify-self: flex-start;
|
|
138
143
|
padding-right: 0.75rem;
|
|
139
144
|
user-select: none;
|