@limetech/lime-elements 40.6.2 → 40.7.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 +18 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-file-viewer.cjs.entry.js +71 -30
- package/dist/cjs/limel-markdown.cjs.entry.js +2 -2
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +39 -55
- package/dist/cjs/limel-tab-panel.cjs.entry.js +7 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{markdown-exporter-C-UW43FF.js → markdown-exporter-VtX_2D1d.js} +40 -11
- package/dist/cjs/{markdown-parser-ssDij8_l.js → markdown-parser-BYtTHL4W.js} +11 -3
- package/dist/collection/components/tab-bar/tab-bar.css +213 -450
- package/dist/collection/components/tab-bar/tab-bar.js +62 -55
- package/dist/collection/components/tab-panel/tab-panel.css +9 -0
- package/dist/collection/components/tab-panel/tab-panel.js +27 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-file-viewer.entry.js +71 -30
- package/dist/esm/limel-markdown.entry.js +2 -2
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/limel-tab-bar.entry.js +39 -55
- package/dist/esm/limel-tab-panel.entry.js +7 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{markdown-exporter-DblYRMhY.js → markdown-exporter-tb8ft8Gq.js} +40 -11
- package/dist/esm/{markdown-parser-CAPDx7i8.js → markdown-parser-DFP65EFu.js} +11 -3
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-14a28a08.entry.js +1 -0
- package/dist/lime-elements/p-1740cb87.entry.js +1 -0
- package/dist/lime-elements/{p-22fd1c87.entry.js → p-21ab902a.entry.js} +1 -1
- package/dist/lime-elements/{p-05038bbb.entry.js → p-91a572c8.entry.js} +1 -1
- package/dist/lime-elements/p-Bgn2bikC.js +1 -0
- package/dist/lime-elements/p-C0wwdPYT.js +7 -0
- package/dist/lime-elements/p-aa897903.entry.js +1 -0
- package/dist/types/components/tab-bar/tab-bar.d.ts +17 -12
- package/dist/types/components/tab-panel/tab-panel.d.ts +6 -0
- package/dist/types/components.d.ts +48 -10
- package/package.json +4 -4
- package/dist/lime-elements/p-2e33d2a4.entry.js +0 -1
- package/dist/lime-elements/p-9e084e7c.entry.js +0 -1
- package/dist/lime-elements/p-Bvyt2bmV.js +0 -1
- package/dist/lime-elements/p-I0PrvthC.js +0 -7
- package/dist/lime-elements/p-a550ba18.entry.js +0 -1
|
@@ -1,401 +1,118 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
3
|
+
* Note! This file is forwarded via `src/style/exports.scss`
|
|
4
|
+
* and exposed to consumers through the root `index.scss`.
|
|
4
5
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* in the Software without restriction, including without limitation the rights
|
|
8
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
* furnished to do so, subject to the following conditions:
|
|
6
|
+
* Consumers import it using:
|
|
7
|
+
* `@use '@limetech/lime-elements' as lime-elements;`
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
* THE SOFTWARE.
|
|
9
|
+
* Legacy import paths (`dist/scss/mixins`) are maintained
|
|
10
|
+
* for backward compatibility via copy rules in the Stencil config.
|
|
22
11
|
*/
|
|
23
|
-
.mdc-tab-bar {
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.mdc-tab {
|
|
28
|
-
height: 48px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.mdc-tab--stacked {
|
|
32
|
-
height: 72px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
12
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
41
|
-
* in the Software without restriction, including without limitation the rights
|
|
42
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
43
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
44
|
-
* furnished to do so, subject to the following conditions:
|
|
13
|
+
* Neutralizes the user-agent styles that browsers apply to `<button>` elements
|
|
14
|
+
* (their default background, border, padding, font, etc.), without stripping
|
|
15
|
+
* the useful defaults that `all: unset;` would also remove
|
|
16
|
+
* (such as `display`, `cursor`, and focus behavior).
|
|
45
17
|
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
18
|
+
* Prefer this mixin over `all: unset;` on `<button>` elements, then layer
|
|
19
|
+
* the styling you want on top — often one of the `is-*-clickable` mixins.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* This can be used on a trigger element that opens a dropdown menu or a popover.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* This mixin will mask out the content that is close to
|
|
26
|
+
* the edges of a scrollable area.
|
|
27
|
+
* - If the scrollable content has `overflow-y`, use `vertically`
|
|
28
|
+
* as an argument for `$direction`.
|
|
29
|
+
- If the scrollable content has `overflow-x`, use `horizontally`
|
|
30
|
+
* as an argument for `$direction`.
|
|
31
|
+
*
|
|
32
|
+
* For the visual effect to work smoothly, we need to make sure that
|
|
33
|
+
* the size of the fade-out edge effect is the same as the
|
|
34
|
+
* internal paddings of the scrollable area. Otherwise, content of a
|
|
35
|
+
* scrollable area that does not have a padding will fade out before
|
|
36
|
+
* any scrolling has been done.
|
|
37
|
+
* This is why this mixin already adds paddings, which automatically
|
|
38
|
+
* default to the size of the fade-out effect.
|
|
39
|
+
* This size defaults to `1rem`, but to override the size use
|
|
40
|
+
* `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
|
|
41
|
+
* when `vertically` argument is set, and use
|
|
42
|
+
* `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
|
|
43
|
+
* when `horizontally` argument is set.
|
|
44
|
+
* Of course you can also programmatically increase and decrease the
|
|
45
|
+
* size of these variables for each edge, based on the amount of
|
|
46
|
+
* scrolling that has been done by the user. In this case, make sure
|
|
47
|
+
* to add a custom padding where the mixin is used, to override
|
|
48
|
+
* the paddings that are automatically added by the mixin in the
|
|
49
|
+
* compiled CSS code.
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* This mixin will add an animated underline to the bottom of an `a` elements.
|
|
53
|
+
* Note that you may need to add `all: unset;` –depending on your use case–
|
|
54
|
+
* before using this mixin.
|
|
55
|
+
*/
|
|
56
|
+
/**
|
|
57
|
+
* This mixin creates a cross-browser font stack.
|
|
58
|
+
* - `sans-serif` can be used for the UI of the components.
|
|
59
|
+
* - `monospace` can be used for code.
|
|
48
60
|
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
54
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
55
|
-
* THE SOFTWARE.
|
|
61
|
+
* ⚠️ If we change the font stacks, we need to update
|
|
62
|
+
* 1. the consumer documentation in `README.md`, and
|
|
63
|
+
* 2. the CSS variables of `--kompendium-example-font-family`
|
|
64
|
+
* in the `<style>` tag of `index.html`.
|
|
56
65
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
width: 100%;
|
|
96
|
-
border-top-style: solid;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.mdc-tab-indicator__content--icon {
|
|
100
|
-
align-self: center;
|
|
101
|
-
margin: 0 auto;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.mdc-tab-indicator--active .mdc-tab-indicator__content {
|
|
105
|
-
opacity: 1;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.mdc-tab-indicator .mdc-tab-indicator__content {
|
|
109
|
-
transition: 250ms transform cubic-bezier(0.4, 0, 0.2, 1);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.mdc-tab-indicator--no-transition .mdc-tab-indicator__content {
|
|
113
|
-
transition: none;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.mdc-tab-indicator--fade .mdc-tab-indicator__content {
|
|
117
|
-
transition: 150ms opacity linear;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content {
|
|
121
|
-
transition-delay: 100ms;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.mdc-tab {
|
|
125
|
-
-moz-osx-font-smoothing: grayscale;
|
|
126
|
-
-webkit-font-smoothing: antialiased;
|
|
127
|
-
font-family: Roboto, sans-serif;
|
|
128
|
-
/* @alternate */
|
|
129
|
-
font-family: var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
|
|
130
|
-
font-size: 0.875rem;
|
|
131
|
-
/* @alternate */
|
|
132
|
-
font-size: var(--mdc-typography-button-font-size, 0.875rem);
|
|
133
|
-
line-height: 2.25rem;
|
|
134
|
-
/* @alternate */
|
|
135
|
-
line-height: var(--mdc-typography-button-line-height, 2.25rem);
|
|
136
|
-
font-weight: 500;
|
|
137
|
-
/* @alternate */
|
|
138
|
-
font-weight: var(--mdc-typography-button-font-weight, 500);
|
|
139
|
-
letter-spacing: 0.0892857143em;
|
|
140
|
-
/* @alternate */
|
|
141
|
-
letter-spacing: var(--mdc-typography-button-letter-spacing, 0.0892857143em);
|
|
142
|
-
text-decoration: none;
|
|
143
|
-
/* @alternate */
|
|
144
|
-
text-decoration: var(--mdc-typography-button-text-decoration, none);
|
|
145
|
-
text-transform: uppercase;
|
|
146
|
-
/* @alternate */
|
|
147
|
-
text-transform: var(--mdc-typography-button-text-transform, uppercase);
|
|
148
|
-
}
|
|
149
|
-
.mdc-tab .mdc-tab__text-label {
|
|
150
|
-
color: rgba(0, 0, 0, 0.6);
|
|
151
|
-
}
|
|
152
|
-
.mdc-tab .mdc-tab__icon {
|
|
153
|
-
color: rgba(0, 0, 0, 0.54);
|
|
154
|
-
fill: currentColor;
|
|
155
|
-
}
|
|
156
|
-
.mdc-tab {
|
|
157
|
-
position: relative;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.mdc-tab__content {
|
|
161
|
-
position: relative;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.mdc-tab__icon {
|
|
165
|
-
width: 24px;
|
|
166
|
-
height: 24px;
|
|
167
|
-
font-size: 24px;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.mdc-tab--active .mdc-tab__text-label {
|
|
171
|
-
color: #6200ee;
|
|
172
|
-
/* @alternate */
|
|
173
|
-
color: var(--mdc-theme-primary, #6200ee);
|
|
174
|
-
}
|
|
175
|
-
.mdc-tab--active .mdc-tab__icon {
|
|
176
|
-
color: #6200ee;
|
|
177
|
-
/* @alternate */
|
|
178
|
-
color: var(--mdc-theme-primary, #6200ee);
|
|
179
|
-
fill: currentColor;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.mdc-tab {
|
|
183
|
-
background: none;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.mdc-tab {
|
|
187
|
-
min-width: 90px;
|
|
188
|
-
padding-right: 24px;
|
|
189
|
-
padding-left: 24px;
|
|
190
|
-
display: flex;
|
|
191
|
-
flex: 1 0 auto;
|
|
192
|
-
justify-content: center;
|
|
193
|
-
box-sizing: border-box;
|
|
194
|
-
margin: 0;
|
|
195
|
-
padding-top: 0;
|
|
196
|
-
padding-bottom: 0;
|
|
197
|
-
border: none;
|
|
198
|
-
outline: none;
|
|
199
|
-
text-align: center;
|
|
200
|
-
white-space: nowrap;
|
|
201
|
-
cursor: pointer;
|
|
202
|
-
-webkit-appearance: none;
|
|
203
|
-
z-index: 1;
|
|
204
|
-
}
|
|
205
|
-
.mdc-tab::-moz-focus-inner {
|
|
206
|
-
padding: 0;
|
|
207
|
-
border: 0;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.mdc-tab--min-width {
|
|
211
|
-
flex: 0 1 auto;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.mdc-tab__content {
|
|
215
|
-
display: flex;
|
|
216
|
-
align-items: center;
|
|
217
|
-
justify-content: center;
|
|
218
|
-
height: inherit;
|
|
219
|
-
pointer-events: none;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.mdc-tab__text-label {
|
|
223
|
-
transition: 150ms color linear;
|
|
224
|
-
display: inline-block;
|
|
225
|
-
line-height: 1;
|
|
226
|
-
z-index: 2;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.mdc-tab__icon {
|
|
230
|
-
transition: 150ms color linear;
|
|
231
|
-
z-index: 2;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.mdc-tab--stacked .mdc-tab__content {
|
|
235
|
-
flex-direction: column;
|
|
236
|
-
align-items: center;
|
|
237
|
-
justify-content: center;
|
|
238
|
-
}
|
|
239
|
-
.mdc-tab--stacked .mdc-tab__text-label {
|
|
240
|
-
padding-top: 6px;
|
|
241
|
-
padding-bottom: 4px;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.mdc-tab--active .mdc-tab__text-label,
|
|
245
|
-
.mdc-tab--active .mdc-tab__icon {
|
|
246
|
-
transition-delay: 100ms;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon + .mdc-tab__text-label {
|
|
250
|
-
/* @noflip */ /*rtl:ignore*/
|
|
251
|
-
padding-left: 8px;
|
|
252
|
-
/* @noflip */ /*rtl:ignore*/
|
|
253
|
-
padding-right: 0;
|
|
254
|
-
}
|
|
255
|
-
[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon + .mdc-tab__text-label, .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon + .mdc-tab__text-label[dir=rtl] {
|
|
256
|
-
/*rtl:begin:ignore*/
|
|
257
|
-
/* @noflip */ /*rtl:ignore*/
|
|
258
|
-
padding-left: 0;
|
|
259
|
-
/* @noflip */ /*rtl:ignore*/
|
|
260
|
-
padding-right: 8px;
|
|
261
|
-
/*rtl:end:ignore*/
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
@keyframes mdc-ripple-fg-radius-in {
|
|
265
|
-
from {
|
|
266
|
-
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
267
|
-
transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);
|
|
268
|
-
}
|
|
269
|
-
to {
|
|
270
|
-
transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
@keyframes mdc-ripple-fg-opacity-in {
|
|
274
|
-
from {
|
|
275
|
-
animation-timing-function: linear;
|
|
276
|
-
opacity: 0;
|
|
277
|
-
}
|
|
278
|
-
to {
|
|
279
|
-
opacity: var(--mdc-ripple-fg-opacity, 0);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
@keyframes mdc-ripple-fg-opacity-out {
|
|
283
|
-
from {
|
|
284
|
-
animation-timing-function: linear;
|
|
285
|
-
opacity: var(--mdc-ripple-fg-opacity, 0);
|
|
286
|
-
}
|
|
287
|
-
to {
|
|
288
|
-
opacity: 0;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
.mdc-tab {
|
|
292
|
-
--mdc-ripple-fg-size: 0;
|
|
293
|
-
--mdc-ripple-left: 0;
|
|
294
|
-
--mdc-ripple-top: 0;
|
|
295
|
-
--mdc-ripple-fg-scale: 1;
|
|
296
|
-
--mdc-ripple-fg-translate-end: 0;
|
|
297
|
-
--mdc-ripple-fg-translate-start: 0;
|
|
298
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
299
|
-
}
|
|
300
|
-
.mdc-tab .mdc-tab__ripple::before,
|
|
301
|
-
.mdc-tab .mdc-tab__ripple::after {
|
|
302
|
-
position: absolute;
|
|
303
|
-
border-radius: 50%;
|
|
304
|
-
opacity: 0;
|
|
305
|
-
pointer-events: none;
|
|
306
|
-
content: "";
|
|
307
|
-
}
|
|
308
|
-
.mdc-tab .mdc-tab__ripple::before {
|
|
309
|
-
transition: opacity 15ms linear, background-color 15ms linear;
|
|
310
|
-
z-index: 1;
|
|
311
|
-
/* @alternate */
|
|
312
|
-
z-index: var(--mdc-ripple-z-index, 1);
|
|
313
|
-
}
|
|
314
|
-
.mdc-tab .mdc-tab__ripple::after {
|
|
315
|
-
z-index: 0;
|
|
316
|
-
/* @alternate */
|
|
317
|
-
z-index: var(--mdc-ripple-z-index, 0);
|
|
318
|
-
}
|
|
319
|
-
.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before {
|
|
320
|
-
transform: scale(var(--mdc-ripple-fg-scale, 1));
|
|
321
|
-
}
|
|
322
|
-
.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after {
|
|
323
|
-
top: 0;
|
|
324
|
-
/* @noflip */ /*rtl:ignore*/
|
|
325
|
-
left: 0;
|
|
326
|
-
transform: scale(0);
|
|
327
|
-
transform-origin: center center;
|
|
328
|
-
}
|
|
329
|
-
.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after {
|
|
330
|
-
top: var(--mdc-ripple-top, 0);
|
|
331
|
-
/* @noflip */ /*rtl:ignore*/
|
|
332
|
-
left: var(--mdc-ripple-left, 0);
|
|
333
|
-
}
|
|
334
|
-
.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after {
|
|
335
|
-
animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;
|
|
336
|
-
}
|
|
337
|
-
.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__ripple::after {
|
|
338
|
-
animation: mdc-ripple-fg-opacity-out 150ms;
|
|
339
|
-
transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));
|
|
340
|
-
}
|
|
341
|
-
.mdc-tab .mdc-tab__ripple::before,
|
|
342
|
-
.mdc-tab .mdc-tab__ripple::after {
|
|
343
|
-
top: calc(50% - 100%);
|
|
344
|
-
/* @noflip */ /*rtl:ignore*/
|
|
345
|
-
left: calc(50% - 100%);
|
|
346
|
-
width: 200%;
|
|
347
|
-
height: 200%;
|
|
348
|
-
}
|
|
349
|
-
.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after {
|
|
350
|
-
width: var(--mdc-ripple-fg-size, 100%);
|
|
351
|
-
height: var(--mdc-ripple-fg-size, 100%);
|
|
352
|
-
}
|
|
353
|
-
.mdc-tab .mdc-tab__ripple::before, .mdc-tab .mdc-tab__ripple::after {
|
|
354
|
-
background-color: #6200ee;
|
|
355
|
-
/* @alternate */
|
|
356
|
-
background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));
|
|
357
|
-
}
|
|
358
|
-
.mdc-tab:hover .mdc-tab__ripple::before, .mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before {
|
|
359
|
-
opacity: 0.04;
|
|
360
|
-
/* @alternate */
|
|
361
|
-
opacity: var(--mdc-ripple-hover-opacity, 0.04);
|
|
362
|
-
}
|
|
363
|
-
.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before, .mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before {
|
|
364
|
-
transition-duration: 75ms;
|
|
365
|
-
opacity: 0.12;
|
|
366
|
-
/* @alternate */
|
|
367
|
-
opacity: var(--mdc-ripple-focus-opacity, 0.12);
|
|
368
|
-
}
|
|
369
|
-
.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after {
|
|
370
|
-
transition: opacity 150ms linear;
|
|
371
|
-
}
|
|
372
|
-
.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after {
|
|
373
|
-
transition-duration: 75ms;
|
|
374
|
-
opacity: 0.12;
|
|
375
|
-
/* @alternate */
|
|
376
|
-
opacity: var(--mdc-ripple-press-opacity, 0.12);
|
|
377
|
-
}
|
|
378
|
-
.mdc-tab.mdc-ripple-upgraded {
|
|
379
|
-
--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.mdc-tab__ripple {
|
|
383
|
-
position: absolute;
|
|
384
|
-
top: 0;
|
|
385
|
-
left: 0;
|
|
386
|
-
width: 100%;
|
|
387
|
-
height: 100%;
|
|
388
|
-
overflow: hidden;
|
|
389
|
-
will-change: transform, opacity;
|
|
390
|
-
}
|
|
391
|
-
|
|
66
|
+
/**
|
|
67
|
+
* This mixin is a hack, using old CSS syntax
|
|
68
|
+
* to enable you to truncate a piece of text,
|
|
69
|
+
* after a certain number of lines.
|
|
70
|
+
*/
|
|
71
|
+
/**
|
|
72
|
+
* This mixin will add a chessboard background pattern,
|
|
73
|
+
* typically used to visualize transparency.
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* Make a container resizable by the user.
|
|
77
|
+
* This is used in the documentations and examples
|
|
78
|
+
* of some components, to demonstrate how the component
|
|
79
|
+
* behaves in a resizable container.
|
|
80
|
+
*/
|
|
81
|
+
/**
|
|
82
|
+
* Drag to reorder mixins
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* The breakpoints below are used to create responsive designs
|
|
86
|
+
* in Lime's products. Therefore, they are here to get distributed
|
|
87
|
+
* to all components in other private repos, which rely on this `mixins`
|
|
88
|
+
* file, to create consistent styles.
|
|
89
|
+
*
|
|
90
|
+
* :::important
|
|
91
|
+
* In very rare cases you should used media queries!
|
|
92
|
+
* Nowadays, there are many better ways of achieving responsive design
|
|
93
|
+
* without media queries. For example, using CSS Grid, Flexbox, and their features.
|
|
94
|
+
* :::
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* Media query mixins for responsive design based on screen width.
|
|
98
|
+
* Note that these mixins do not detect the device type!
|
|
99
|
+
*/
|
|
100
|
+
/**
|
|
101
|
+
* @prop --tab-bar-horizontal-tab-max-width: The largest width of a tab in a horizontal tab bar. Defaults to `16rem`, and to no limit for tabs with equal width. Set it to `none` for no limit.
|
|
102
|
+
* @prop --tab-bar-vertical-width: The width of a vertical tab bar. Defaults to `10rem`.
|
|
103
|
+
*/
|
|
392
104
|
:host(limel-tab-bar) {
|
|
393
105
|
--limel-tab-background-color: var(--contrast-300);
|
|
394
106
|
--limel-tab-border-radius: 0.625rem;
|
|
107
|
+
--limel-tab-content-inset: 0.25rem;
|
|
395
108
|
--limel-active-tab-background-color: var(
|
|
396
109
|
--tab-panel-background-color,
|
|
397
110
|
rgb(var(--contrast-100))
|
|
398
111
|
);
|
|
112
|
+
--limel-active-tab-color: var(
|
|
113
|
+
--lime-primary-color,
|
|
114
|
+
var(--limel-theme-primary-color)
|
|
115
|
+
);
|
|
399
116
|
--limel-tab-active-outer-edge-curve-size: 0.75rem;
|
|
400
117
|
--limel-tab-separator-width: 0.125rem;
|
|
401
118
|
--limel-tab-separator-background-color: rgb(var(--contrast-600));
|
|
@@ -411,111 +128,157 @@ limel-scroller {
|
|
|
411
128
|
background-color: rgb(var(--limel-tab-background-color));
|
|
412
129
|
}
|
|
413
130
|
|
|
414
|
-
:host(.has-tabs-with-equal-width)
|
|
131
|
+
:host(.has-tabs-with-equal-width:not([orientation=vertical])) button {
|
|
415
132
|
flex: 1 0 auto;
|
|
133
|
+
max-width: var(--tab-bar-horizontal-tab-max-width, none);
|
|
416
134
|
}
|
|
417
135
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
letter-spacing: normal;
|
|
422
|
-
font-size: var(--limel-theme-default-font-size);
|
|
423
|
-
text-transform: none;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
.mdc-tab-indicator .mdc-tab-indicator__content {
|
|
136
|
+
button {
|
|
137
|
+
appearance: none;
|
|
138
|
+
background: none;
|
|
427
139
|
border: none;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
140
|
+
padding: 0;
|
|
141
|
+
margin: 0;
|
|
142
|
+
font: inherit;
|
|
143
|
+
color: inherit;
|
|
144
|
+
text-align: inherit;
|
|
145
|
+
position: relative;
|
|
146
|
+
display: flex;
|
|
431
147
|
box-sizing: border-box;
|
|
432
|
-
border-radius: var(--limel-tab-border-radius);
|
|
433
|
-
border-style: solid;
|
|
434
|
-
border-color: transparent;
|
|
435
|
-
border-width: 0.25rem;
|
|
436
|
-
opacity: 0.7;
|
|
437
|
-
}
|
|
438
|
-
.mdc-tab__ripple:before, .mdc-tab__ripple:after {
|
|
439
|
-
transition: background-color 0.5s ease;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
.mdc-tab {
|
|
443
148
|
border-radius: 0;
|
|
444
|
-
padding
|
|
445
|
-
padding-left: 1rem;
|
|
149
|
+
padding: var(--limel-tab-content-inset);
|
|
446
150
|
min-width: 2.5rem;
|
|
447
151
|
background-color: transparent;
|
|
448
152
|
flex: 0 0 auto;
|
|
449
153
|
height: 2.5rem;
|
|
154
|
+
outline: none;
|
|
155
|
+
cursor: pointer;
|
|
156
|
+
white-space: nowrap;
|
|
157
|
+
font-size: var(--limel-theme-default-font-size);
|
|
450
158
|
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
display: block;
|
|
454
|
-
background-color: var(--limel-tab-separator-background-color);
|
|
455
|
-
width: var(--limel-tab-separator-width);
|
|
456
|
-
height: 1rem;
|
|
457
|
-
margin: auto;
|
|
458
|
-
position: absolute;
|
|
459
|
-
top: 0;
|
|
460
|
-
bottom: 0;
|
|
461
|
-
border-radius: 1rem;
|
|
462
|
-
right: calc(-1 * var(--limel-tab-separator-width));
|
|
463
|
-
}
|
|
464
|
-
.mdc-tab:not(.mdc-tab--active):last-of-type:after {
|
|
465
|
-
display: none;
|
|
466
|
-
}
|
|
467
|
-
.mdc-tab .mdc-tab__icon {
|
|
159
|
+
button limel-icon {
|
|
160
|
+
transition: color 0.2s ease;
|
|
468
161
|
color: rgb(var(--contrast-800));
|
|
469
162
|
margin-left: -0.25rem;
|
|
163
|
+
flex-shrink: 0;
|
|
164
|
+
}
|
|
165
|
+
button span.text {
|
|
166
|
+
transition: color 0.2s ease;
|
|
167
|
+
line-height: 1.25;
|
|
168
|
+
overflow: hidden;
|
|
169
|
+
text-overflow: ellipsis;
|
|
170
|
+
color: var(--limel-theme-on-surface-color);
|
|
171
|
+
}
|
|
172
|
+
button:hover span.text {
|
|
173
|
+
color: var(--limel-theme-text-primary-on-background-color);
|
|
470
174
|
}
|
|
471
|
-
|
|
175
|
+
button limel-badge {
|
|
472
176
|
margin-right: -0.25rem;
|
|
473
177
|
box-shadow: 0 0 0 1px rgb(var(--contrast-600));
|
|
178
|
+
pointer-events: none;
|
|
179
|
+
flex-shrink: 0;
|
|
474
180
|
}
|
|
475
181
|
|
|
476
|
-
|
|
477
|
-
border-radius: var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0;
|
|
182
|
+
button[aria-selected=true] {
|
|
478
183
|
background-color: var(--limel-active-tab-background-color);
|
|
479
184
|
z-index: 2;
|
|
480
185
|
}
|
|
481
|
-
|
|
186
|
+
button[aria-selected=true]:before, button[aria-selected=true]:after {
|
|
482
187
|
content: "";
|
|
483
188
|
display: block;
|
|
484
189
|
width: var(--limel-tab-active-outer-edge-curve-size);
|
|
485
190
|
height: var(--limel-tab-active-outer-edge-curve-size);
|
|
486
191
|
position: absolute;
|
|
487
|
-
bottom: 0;
|
|
488
192
|
background-color: var(--limel-active-tab-background-color);
|
|
489
193
|
-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E");
|
|
490
194
|
mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E");
|
|
491
195
|
}
|
|
492
|
-
|
|
196
|
+
button[aria-selected=true] limel-icon {
|
|
197
|
+
color: var(--limel-active-tab-color);
|
|
198
|
+
}
|
|
199
|
+
button[aria-selected=true] span.text {
|
|
200
|
+
color: var(--limel-active-tab-color);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
span.content {
|
|
204
|
+
transition: box-shadow 0.2s ease;
|
|
205
|
+
display: flex;
|
|
206
|
+
flex-grow: 1;
|
|
207
|
+
min-width: 0;
|
|
208
|
+
align-items: center;
|
|
209
|
+
justify-content: center;
|
|
210
|
+
gap: 0.375rem;
|
|
211
|
+
padding: 0 0.75rem;
|
|
212
|
+
border-radius: calc(var(--limel-tab-border-radius) - var(--limel-tab-content-inset));
|
|
213
|
+
}
|
|
214
|
+
button:focus-visible span.content {
|
|
215
|
+
transition-duration: 0.3s;
|
|
216
|
+
box-shadow: var(--shadow-depth-8-focused);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:host(limel-tab-bar:not([orientation=vertical])) button {
|
|
220
|
+
max-width: var(--tab-bar-horizontal-tab-max-width, 16rem);
|
|
221
|
+
}
|
|
222
|
+
:host(limel-tab-bar:not([orientation=vertical])) button:not([aria-selected=true]):after {
|
|
223
|
+
content: "";
|
|
224
|
+
display: block;
|
|
225
|
+
background-color: var(--limel-tab-separator-background-color);
|
|
226
|
+
width: var(--limel-tab-separator-width);
|
|
227
|
+
height: 1rem;
|
|
228
|
+
margin: auto;
|
|
229
|
+
position: absolute;
|
|
230
|
+
top: 0;
|
|
231
|
+
bottom: 0;
|
|
232
|
+
border-radius: 1rem;
|
|
233
|
+
right: calc(-1 * var(--limel-tab-separator-width));
|
|
234
|
+
}
|
|
235
|
+
:host(limel-tab-bar:not([orientation=vertical])) button:not([aria-selected=true]):last-of-type:after {
|
|
236
|
+
display: none;
|
|
237
|
+
}
|
|
238
|
+
:host(limel-tab-bar:not([orientation=vertical])) button[aria-selected=true] {
|
|
239
|
+
border-radius: var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0;
|
|
240
|
+
}
|
|
241
|
+
:host(limel-tab-bar:not([orientation=vertical])) button[aria-selected=true]:before, :host(limel-tab-bar:not([orientation=vertical])) button[aria-selected=true]:after {
|
|
242
|
+
bottom: 0;
|
|
243
|
+
}
|
|
244
|
+
:host(limel-tab-bar:not([orientation=vertical])) button[aria-selected=true]:before {
|
|
493
245
|
left: calc(-1 * var(--limel-tab-active-outer-edge-curve-size));
|
|
494
246
|
transform: rotateY(180deg);
|
|
495
247
|
}
|
|
496
|
-
|
|
248
|
+
:host(limel-tab-bar:not([orientation=vertical])) button[aria-selected=true]:after {
|
|
497
249
|
right: calc(-1 * var(--limel-tab-active-outer-edge-curve-size));
|
|
498
250
|
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
251
|
+
|
|
252
|
+
:host(limel-tab-bar[orientation=vertical]) {
|
|
253
|
+
width: var(--tab-bar-vertical-width, 10rem);
|
|
502
254
|
}
|
|
503
|
-
|
|
504
|
-
|
|
255
|
+
:host(limel-tab-bar[orientation=vertical]) div[role=tablist] {
|
|
256
|
+
height: 100%;
|
|
505
257
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
258
|
+
:host(limel-tab-bar[orientation=vertical]) limel-scroller {
|
|
259
|
+
--limel-scroller-content-padding: var(
|
|
260
|
+
--limel-tab-active-outer-edge-curve-size
|
|
261
|
+
)
|
|
262
|
+
0 var(--limel-tab-active-outer-edge-curve-size) 0.25rem;
|
|
263
|
+
height: 100%;
|
|
509
264
|
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
transition: color 0.2s ease;
|
|
513
|
-
padding-left: 0 !important;
|
|
514
|
-
color: var(--limel-theme-on-surface-color);
|
|
265
|
+
:host(limel-tab-bar[orientation=vertical]) button[aria-selected=true] {
|
|
266
|
+
border-radius: var(--limel-tab-border-radius) 0 0 var(--limel-tab-border-radius);
|
|
515
267
|
}
|
|
516
|
-
|
|
517
|
-
|
|
268
|
+
:host(limel-tab-bar[orientation=vertical]) button[aria-selected=true]:before, :host(limel-tab-bar[orientation=vertical]) button[aria-selected=true]:after {
|
|
269
|
+
right: 0;
|
|
270
|
+
}
|
|
271
|
+
:host(limel-tab-bar[orientation=vertical]) button[aria-selected=true]:before {
|
|
272
|
+
bottom: 100%;
|
|
273
|
+
transform: rotateY(180deg);
|
|
274
|
+
}
|
|
275
|
+
:host(limel-tab-bar[orientation=vertical]) button[aria-selected=true]:after {
|
|
276
|
+
top: 100%;
|
|
277
|
+
transform: rotate(180deg);
|
|
278
|
+
}
|
|
279
|
+
:host(limel-tab-bar[orientation=vertical]) span.content {
|
|
280
|
+
justify-content: flex-start;
|
|
518
281
|
}
|
|
519
|
-
|
|
520
|
-
|
|
282
|
+
:host(limel-tab-bar[orientation=vertical]) span.text {
|
|
283
|
+
flex-grow: 1;
|
|
521
284
|
}
|