@vaadin/vaadin-lumo-styles 25.0.0-alpha7 → 25.0.0-alpha9
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/auto-complete.css +0 -71
- package/components/master-detail-layout.css +13 -5
- package/global.css +1 -7
- package/package.json +5 -5
- package/src/components/avatar-group.css +3 -3
- package/src/components/avatar.css +6 -30
- package/src/components/button.css +0 -1
- package/src/components/chart.css +1 -4
- package/src/components/form-layout.css +1 -0
- package/src/components/horizontal-layout.css +0 -4
- package/src/components/icon.css +0 -36
- package/src/components/input-container.css +1 -3
- package/src/components/login-form-wrapper.css +8 -23
- package/src/components/login-overlay-wrapper.css +14 -4
- package/src/components/map.css +23 -278
- package/src/components/menu-bar-item.css +0 -1
- package/src/components/multi-select-combo-box.css +4 -0
- package/src/components/notification-container.css +8 -1
- package/src/components/popover-overlay.css +11 -17
- package/src/components/select.css +4 -0
- package/src/components/split-layout.css +0 -1
- package/src/components/tabsheet.css +1 -1
- package/src/components/tooltip-overlay.css +5 -8
- package/src/components/upload-icon.css +6 -0
- package/src/components/user-tags-overlay.css +2 -5
- package/src/components/vertical-layout.css +0 -4
- package/src/global/{dark.css → color-scheme.css} +7 -1
- package/src/mixins/dashboard-item.css +0 -1
- package/src/mixins/overlay.css +8 -0
- package/style.d.ts +0 -2
- package/style.js +1 -89
- package/src/components/master-detail-layout.css +0 -26
- package/src/global/style.css +0 -93
package/src/components/map.css
CHANGED
|
@@ -5,11 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
@media lumo_components_map {
|
|
7
7
|
:host {
|
|
8
|
-
display: block;
|
|
9
|
-
height: 400px;
|
|
10
|
-
flex: 1 1 auto;
|
|
11
|
-
align-self: stretch;
|
|
12
|
-
overflow: hidden;
|
|
13
8
|
font-family: var(--lumo-font-family);
|
|
14
9
|
font-size: var(--lumo-font-size-m);
|
|
15
10
|
--vaadin-map-controls-inset: var(--lumo-space-xs);
|
|
@@ -24,187 +19,46 @@
|
|
|
24
19
|
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
25
20
|
}
|
|
26
21
|
|
|
27
|
-
:host([hidden]) {
|
|
28
|
-
display: none !important;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
22
|
:host(:not([theme~='no-border'])) {
|
|
32
23
|
border-radius: var(--lumo-border-radius-l);
|
|
33
|
-
position: relative;
|
|
34
24
|
}
|
|
35
25
|
|
|
36
26
|
:host(:not([theme~='no-border']))::before {
|
|
37
|
-
content: '';
|
|
38
|
-
position: absolute;
|
|
39
|
-
inset: 0;
|
|
40
27
|
border: 1px solid var(--lumo-contrast-10pct);
|
|
41
|
-
border-radius: inherit;
|
|
42
|
-
z-index: 1;
|
|
43
|
-
pointer-events: none;
|
|
44
28
|
}
|
|
45
29
|
|
|
46
30
|
:host([focus-ring]) {
|
|
47
|
-
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
#map {
|
|
51
|
-
width: 100%;
|
|
52
|
-
height: 100%;
|
|
53
31
|
outline: none;
|
|
32
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
54
33
|
}
|
|
55
34
|
|
|
56
|
-
|
|
57
|
-
.ol-
|
|
58
|
-
.ol-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
#map:-webkit-full-screen {
|
|
68
|
-
border-radius: 0;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Functional styles, copied from 'ol/ol.css' */
|
|
72
|
-
|
|
73
|
-
.ol-box {
|
|
74
|
-
box-sizing: border-box;
|
|
75
|
-
border-radius: 2px;
|
|
76
|
-
border: 1px solid rgba(0, 0, 0, 0.5);
|
|
77
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
78
|
-
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.ol-unsupported {
|
|
82
|
-
display: none;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.ol-viewport,
|
|
86
|
-
.ol-unselectable {
|
|
87
|
-
-webkit-touch-callout: none;
|
|
88
|
-
-webkit-user-select: none;
|
|
89
|
-
user-select: none;
|
|
90
|
-
-webkit-tap-highlight-color: transparent;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.ol-viewport canvas {
|
|
94
|
-
all: unset;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.ol-selectable {
|
|
98
|
-
-webkit-touch-callout: default;
|
|
99
|
-
-webkit-user-select: text;
|
|
100
|
-
user-select: text;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.ol-grabbing {
|
|
104
|
-
cursor: grabbing;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.ol-grab {
|
|
108
|
-
cursor: move;
|
|
109
|
-
cursor: grab;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/* Control positioning and styling */
|
|
113
|
-
|
|
114
|
-
.ol-overlaycontainer-stopevent {
|
|
115
|
-
/* stylelint-disable declaration-block-no-redundant-longhand-properties */
|
|
116
|
-
display: grid;
|
|
117
|
-
grid-template-columns: min-content 1fr min-content;
|
|
118
|
-
grid-template-rows: min-content 1fr min-content min-content min-content min-content;
|
|
119
|
-
padding: var(--vaadin-map-controls-inset, 0.25em);
|
|
120
|
-
box-sizing: border-box;
|
|
121
|
-
grid-template-areas:
|
|
122
|
-
'scale mouse-position fullscreen'
|
|
123
|
-
'overview-map . zoom-extent'
|
|
124
|
-
'overview-map . compass'
|
|
125
|
-
'overview-map . zoom-slider'
|
|
126
|
-
'overview-map . zoom'
|
|
127
|
-
'overview-map attribution attribution';
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.ol-mouse-position {
|
|
131
|
-
grid-area: mouse-position;
|
|
132
|
-
align-self: start;
|
|
133
|
-
text-align: center;
|
|
134
|
-
font-size: 0.625em;
|
|
135
|
-
color: #000;
|
|
136
|
-
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.ol-scale-line,
|
|
140
|
-
.ol-scale-bar {
|
|
141
|
-
grid-area: scale;
|
|
142
|
-
position: relative;
|
|
143
|
-
pointer-events: none !important;
|
|
144
|
-
color: #000;
|
|
35
|
+
.ol-overviewmap button span:empty::before,
|
|
36
|
+
.ol-zoom-in:empty::before,
|
|
37
|
+
.ol-zoom-out:empty::before,
|
|
38
|
+
.ol-compass:empty::before,
|
|
39
|
+
.ol-full-screen button:empty::before,
|
|
40
|
+
.ol-full-screen-true:empty::before {
|
|
41
|
+
background: transparent;
|
|
42
|
+
mask-image: none;
|
|
43
|
+
display: inline;
|
|
44
|
+
width: auto;
|
|
45
|
+
height: auto;
|
|
145
46
|
}
|
|
146
47
|
|
|
147
|
-
.ol-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
font-size: 0.625em;
|
|
151
|
-
text-align: center;
|
|
152
|
-
will-change: contents, width, filter;
|
|
153
|
-
transition: all 0.25s;
|
|
154
|
-
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
|
48
|
+
.ol-control:not(.ol-uncollapsible):hover {
|
|
49
|
+
box-shadow: var(--lumo-box-shadow-s);
|
|
50
|
+
background-color: var(--lumo-shade-20pct);
|
|
155
51
|
}
|
|
156
52
|
|
|
157
53
|
.ol-scale-bar-inner {
|
|
158
|
-
border: 1px solid rgba(0, 0, 0, 0.5);
|
|
159
|
-
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
|
|
160
|
-
overflow: hidden;
|
|
161
54
|
border-radius: var(--lumo-border-radius-s);
|
|
162
55
|
}
|
|
163
56
|
|
|
164
|
-
.ol-scale-step-marker {
|
|
165
|
-
display: none;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.ol-scale-step-text {
|
|
169
|
-
position: absolute;
|
|
170
|
-
top: 0.75em;
|
|
171
|
-
font-size: 0.625em;
|
|
172
|
-
color: #000;
|
|
173
|
-
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
|
174
|
-
white-space: nowrap;
|
|
175
|
-
overflow: hidden;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.ol-scale-text {
|
|
179
|
-
position: absolute;
|
|
180
|
-
font-size: 0.625em;
|
|
181
|
-
top: 2em;
|
|
182
|
-
color: #000;
|
|
183
|
-
white-space: nowrap;
|
|
184
|
-
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.ol-scale-singlebar {
|
|
188
|
-
height: 0.25em;
|
|
189
|
-
opacity: 0.5;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.ol-compass {
|
|
193
|
-
grid-area: compass;
|
|
194
|
-
display: block;
|
|
195
|
-
will-change: transform;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.ol-rotate {
|
|
199
|
-
grid-area: compass;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
57
|
.ol-compass:empty::before {
|
|
203
|
-
content: var(--vaadin-map-icon-compass
|
|
58
|
+
content: var(--vaadin-map-icon-compass);
|
|
204
59
|
}
|
|
205
60
|
|
|
206
61
|
.ol-full-screen {
|
|
207
|
-
grid-area: fullscreen;
|
|
208
62
|
height: var(--lumo-size-s);
|
|
209
63
|
}
|
|
210
64
|
|
|
@@ -216,40 +70,19 @@
|
|
|
216
70
|
content: var(--vaadin-map-icon-close, '\00D7');
|
|
217
71
|
}
|
|
218
72
|
|
|
219
|
-
.ol-overviewmap {
|
|
220
|
-
grid-area: overview-map;
|
|
221
|
-
align-self: end;
|
|
222
|
-
width: max-content;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
73
|
.ol-overviewmap button span:empty::before {
|
|
226
|
-
content: var(--vaadin-map-icon-overview-map-collapse
|
|
74
|
+
content: var(--vaadin-map-icon-overview-map-collapse);
|
|
227
75
|
}
|
|
228
76
|
|
|
229
77
|
.ol-overviewmap.ol-collapsed button span:empty::before {
|
|
230
|
-
content: var(--vaadin-map-icon-overview-map-expand
|
|
78
|
+
content: var(--vaadin-map-icon-overview-map-expand);
|
|
231
79
|
}
|
|
232
80
|
|
|
233
81
|
.ol-overviewmap-map {
|
|
234
|
-
height: 10em;
|
|
235
|
-
width: 10em;
|
|
236
82
|
margin: var(--lumo-space-xs);
|
|
237
|
-
border: 0;
|
|
238
83
|
border-radius: var(--lumo-border-radius-s);
|
|
239
84
|
}
|
|
240
85
|
|
|
241
|
-
.ol-overviewmap.ol-collapsed .ol-overviewmap-map,
|
|
242
|
-
.ol-overviewmap.ol-uncollapsible button {
|
|
243
|
-
display: none;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.ol-overviewmap-box {
|
|
247
|
-
border: 1px dashed rgba(0, 0, 0, 0.5);
|
|
248
|
-
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
|
249
|
-
will-change: filter;
|
|
250
|
-
cursor: move;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
86
|
.ol-overviewmap:not(.ol-collapsed),
|
|
254
87
|
.ol-overviewmap:not(.ol-collapsed):hover {
|
|
255
88
|
background-color: var(--lumo-base-color);
|
|
@@ -257,19 +90,11 @@
|
|
|
257
90
|
transition: 0.15s box-shadow;
|
|
258
91
|
}
|
|
259
92
|
|
|
260
|
-
.ol-overviewmap
|
|
261
|
-
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.ol-zoomslider {
|
|
265
|
-
grid-area: zoom-slider;
|
|
266
|
-
height: 8em;
|
|
93
|
+
.ol-overviewmap.ol-collapsed button {
|
|
94
|
+
rotate: none;
|
|
267
95
|
}
|
|
268
96
|
|
|
269
97
|
.ol-zoomslider button {
|
|
270
|
-
position: relative;
|
|
271
|
-
display: block;
|
|
272
|
-
border-radius: inherit;
|
|
273
98
|
height: var(--lumo-space-m);
|
|
274
99
|
}
|
|
275
100
|
|
|
@@ -277,16 +102,6 @@
|
|
|
277
102
|
box-shadow: var(--lumo-box-shadow-s);
|
|
278
103
|
}
|
|
279
104
|
|
|
280
|
-
.ol-zoomslider:not(.ol-uncollapsible):hover {
|
|
281
|
-
box-shadow: none;
|
|
282
|
-
overflow: visible;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.ol-zoom-extent {
|
|
286
|
-
grid-area: zoom-extent;
|
|
287
|
-
align-self: end;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
105
|
.ol-control,
|
|
291
106
|
.ol-scale-bar,
|
|
292
107
|
.ol-scale-line {
|
|
@@ -294,7 +109,6 @@
|
|
|
294
109
|
}
|
|
295
110
|
|
|
296
111
|
.ol-control {
|
|
297
|
-
margin: 0.25em;
|
|
298
112
|
border-radius: var(--lumo-border-radius-m);
|
|
299
113
|
transition:
|
|
300
114
|
0.15s box-shadow,
|
|
@@ -306,19 +120,7 @@
|
|
|
306
120
|
background-color: var(--lumo-base-color);
|
|
307
121
|
}
|
|
308
122
|
|
|
309
|
-
.ol-control:not(.ol-uncollapsible):hover {
|
|
310
|
-
box-shadow: var(--lumo-box-shadow-s);
|
|
311
|
-
background-color: var(--lumo-shade-20pct);
|
|
312
|
-
}
|
|
313
|
-
|
|
314
123
|
.ol-control button {
|
|
315
|
-
appearance: none;
|
|
316
|
-
border: 0;
|
|
317
|
-
margin: 0;
|
|
318
|
-
padding: 0;
|
|
319
|
-
background: #fff;
|
|
320
|
-
font: inherit;
|
|
321
|
-
color: inherit;
|
|
322
124
|
width: var(--lumo-size-s);
|
|
323
125
|
height: var(--lumo-size-s);
|
|
324
126
|
border-radius: inherit;
|
|
@@ -327,23 +129,11 @@
|
|
|
327
129
|
font-weight: 400;
|
|
328
130
|
}
|
|
329
131
|
|
|
330
|
-
.ol-control button::-moz-focus-inner {
|
|
331
|
-
border: none;
|
|
332
|
-
padding: 0;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
132
|
.ol-control button,
|
|
336
133
|
.ol-attribution:not(.ol-uncollapsible) ul {
|
|
337
|
-
|
|
134
|
+
display: block;
|
|
338
135
|
background-color: var(--lumo-base-color);
|
|
339
136
|
color: var(--lumo-body-text-color);
|
|
340
|
-
opacity: 0.65;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.ol-control:hover button,
|
|
344
|
-
.ol-control button:focus,
|
|
345
|
-
.ol-attribution:hover ul {
|
|
346
|
-
opacity: 1;
|
|
347
137
|
}
|
|
348
138
|
|
|
349
139
|
.ol-control button:hover {
|
|
@@ -359,41 +149,15 @@
|
|
|
359
149
|
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
360
150
|
}
|
|
361
151
|
|
|
362
|
-
.ol-zoom {
|
|
363
|
-
grid-area: zoom;
|
|
364
|
-
display: flex;
|
|
365
|
-
flex-direction: column;
|
|
366
|
-
gap: 2px;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
152
|
.ol-zoom-in:empty::before {
|
|
370
|
-
content: var(--vaadin-map-icon-zoom-in
|
|
153
|
+
content: var(--vaadin-map-icon-zoom-in);
|
|
371
154
|
}
|
|
372
155
|
|
|
373
156
|
.ol-zoom-out:empty::before {
|
|
374
|
-
content: var(--vaadin-map-icon-zoom-out
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
button.ol-zoom-in {
|
|
378
|
-
border-bottom-left-radius: 0;
|
|
379
|
-
border-bottom-right-radius: 0;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
button.ol-zoom-out {
|
|
383
|
-
border-top-left-radius: 0;
|
|
384
|
-
border-top-right-radius: 0;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
.ol-attribution {
|
|
388
|
-
grid-area: attribution;
|
|
389
|
-
margin-inline-start: auto !important;
|
|
390
|
-
display: flex;
|
|
391
|
-
flex-flow: row-reverse;
|
|
157
|
+
content: var(--vaadin-map-icon-zoom-out);
|
|
392
158
|
}
|
|
393
159
|
|
|
394
160
|
.ol-attribution.ol-uncollapsible {
|
|
395
|
-
margin-inline-end: calc(var(--vaadin-map-controls-inset, 0.25em) * -1);
|
|
396
|
-
margin-block-end: calc(var(--vaadin-map-controls-inset, 0.25em) * -1);
|
|
397
161
|
border-radius: var(--lumo-border-radius-m) 0 0 0;
|
|
398
162
|
}
|
|
399
163
|
|
|
@@ -406,32 +170,13 @@
|
|
|
406
170
|
}
|
|
407
171
|
|
|
408
172
|
.ol-attribution ul {
|
|
409
|
-
display: flex;
|
|
410
|
-
align-items: center;
|
|
411
|
-
gap: 1em;
|
|
412
|
-
list-style: none;
|
|
413
|
-
margin: 0;
|
|
414
|
-
font-size: 0.8em;
|
|
415
173
|
font-size: var(--lumo-font-size-xxs);
|
|
416
174
|
color: var(--lumo-secondary-text-color);
|
|
417
175
|
padding: var(--lumo-space-xs) var(--lumo-space-s);
|
|
418
176
|
cursor: default;
|
|
419
177
|
}
|
|
420
178
|
|
|
421
|
-
.ol-attribution.ol-collapsed ul {
|
|
422
|
-
display: none;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.ol-attribution.ol-uncollapsible button {
|
|
426
|
-
display: none;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
179
|
.ol-attribution:not(.ol-uncollapsible) ul {
|
|
430
180
|
background-color: var(--lumo-base-color);
|
|
431
181
|
}
|
|
432
|
-
|
|
433
|
-
.ol-attribution a {
|
|
434
|
-
color: inherit;
|
|
435
|
-
cursor: pointer;
|
|
436
|
-
}
|
|
437
182
|
}
|
|
@@ -6,13 +6,20 @@
|
|
|
6
6
|
@media lumo_components_notification-container {
|
|
7
7
|
:host {
|
|
8
8
|
position: fixed;
|
|
9
|
-
z-index: 1000;
|
|
10
9
|
inset: 0;
|
|
11
10
|
box-sizing: border-box;
|
|
12
11
|
display: flex;
|
|
13
12
|
flex-direction: column;
|
|
14
13
|
align-items: stretch;
|
|
15
14
|
pointer-events: none;
|
|
15
|
+
|
|
16
|
+
/* Override native [popover] user agent styles */
|
|
17
|
+
width: auto;
|
|
18
|
+
height: auto;
|
|
19
|
+
border: none;
|
|
20
|
+
padding: 0;
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
overflow: visible;
|
|
16
23
|
}
|
|
17
24
|
|
|
18
25
|
[region-group] {
|
|
@@ -5,14 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
@media lumo_components_popover-overlay {
|
|
7
7
|
:host {
|
|
8
|
-
--_vaadin-popover-content-width: auto;
|
|
9
|
-
--_vaadin-popover-content-height: auto;
|
|
10
|
-
--vaadin-popover-offset-top: var(--_vaadin-popover-default-offset);
|
|
11
|
-
--vaadin-popover-offset-bottom: var(--_vaadin-popover-default-offset);
|
|
12
|
-
--vaadin-popover-offset-start: var(--_vaadin-popover-default-offset);
|
|
13
|
-
--vaadin-popover-offset-end: var(--_vaadin-popover-default-offset);
|
|
14
8
|
--vaadin-popover-arrow-size: 0.5rem;
|
|
15
|
-
--
|
|
9
|
+
--_default-offset: var(--lumo-space-xs);
|
|
16
10
|
}
|
|
17
11
|
|
|
18
12
|
[part='overlay'] {
|
|
@@ -26,8 +20,6 @@
|
|
|
26
20
|
overflow: auto;
|
|
27
21
|
box-sizing: border-box;
|
|
28
22
|
max-height: 100%;
|
|
29
|
-
width: var(--_vaadin-popover-content-width);
|
|
30
|
-
height: var(--_vaadin-popover-content-height);
|
|
31
23
|
padding: var(--lumo-space-xs) var(--lumo-space-s);
|
|
32
24
|
}
|
|
33
25
|
|
|
@@ -35,14 +27,16 @@
|
|
|
35
27
|
[part='overlay']::before {
|
|
36
28
|
position: absolute;
|
|
37
29
|
content: '';
|
|
38
|
-
inset-block: calc(var(--vaadin-popover-offset-top,
|
|
39
|
-
|
|
30
|
+
inset-block: calc(var(--vaadin-popover-offset-top, var(--_default-offset)) * -1)
|
|
31
|
+
calc(var(--vaadin-popover-offset-bottom, var(--_default-offset)) * -1);
|
|
32
|
+
inset-inline: calc(var(--vaadin-popover-offset-start, var(--_default-offset)) * -1)
|
|
33
|
+
calc(var(--vaadin-popover-offset-end, var(--_default-offset)) * -1);
|
|
40
34
|
z-index: -1;
|
|
41
35
|
pointer-events: auto;
|
|
42
36
|
}
|
|
43
37
|
|
|
44
38
|
:host([theme~='no-padding']) [part='content'] {
|
|
45
|
-
padding: 0;
|
|
39
|
+
padding: 0 !important;
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
[part='arrow'] {
|
|
@@ -53,7 +47,7 @@
|
|
|
53
47
|
}
|
|
54
48
|
|
|
55
49
|
:host([theme~='arrow']) {
|
|
56
|
-
--
|
|
50
|
+
--_default-offset: calc(var(--lumo-space-s) + var(--vaadin-popover-arrow-size) / 2);
|
|
57
51
|
}
|
|
58
52
|
|
|
59
53
|
:host([theme~='arrow']) [part='arrow'] {
|
|
@@ -66,22 +60,22 @@
|
|
|
66
60
|
|
|
67
61
|
:host([position^='top'][top-aligned]) [part='overlay'],
|
|
68
62
|
:host([position^='bottom'][top-aligned]) [part='overlay'] {
|
|
69
|
-
margin-top: var(--vaadin-popover-offset-top,
|
|
63
|
+
margin-top: var(--vaadin-popover-offset-top, var(--_default-offset));
|
|
70
64
|
}
|
|
71
65
|
|
|
72
66
|
:host([position^='top'][bottom-aligned]) [part='overlay'],
|
|
73
67
|
:host([position^='bottom'][bottom-aligned]) [part='overlay'] {
|
|
74
|
-
margin-bottom: var(--vaadin-popover-offset-bottom,
|
|
68
|
+
margin-bottom: var(--vaadin-popover-offset-bottom, var(--_default-offset));
|
|
75
69
|
}
|
|
76
70
|
|
|
77
71
|
:host([position^='start'][start-aligned]) [part='overlay'],
|
|
78
72
|
:host([position^='end'][start-aligned]) [part='overlay'] {
|
|
79
|
-
margin-inline-start: var(--vaadin-popover-offset-start,
|
|
73
|
+
margin-inline-start: var(--vaadin-popover-offset-start, var(--_default-offset));
|
|
80
74
|
}
|
|
81
75
|
|
|
82
76
|
:host([position^='start'][end-aligned]) [part='overlay'],
|
|
83
77
|
:host([position^='end'][end-aligned]) [part='overlay'] {
|
|
84
|
-
margin-inline-end: var(--vaadin-popover-offset-end,
|
|
78
|
+
margin-inline-end: var(--vaadin-popover-offset-end, var(--_default-offset));
|
|
85
79
|
}
|
|
86
80
|
|
|
87
81
|
/* top / bottom position */
|
|
@@ -6,10 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
@media lumo_components_tooltip-overlay {
|
|
8
8
|
:host {
|
|
9
|
-
--
|
|
10
|
-
--vaadin-tooltip-offset-bottom: var(--lumo-space-xs);
|
|
11
|
-
--vaadin-tooltip-offset-start: var(--lumo-space-xs);
|
|
12
|
-
--vaadin-tooltip-offset-end: var(--lumo-space-xs);
|
|
9
|
+
--_vaadin-tooltip-default-offset: var(--lumo-space-xs);
|
|
13
10
|
}
|
|
14
11
|
|
|
15
12
|
[part='overlay'] {
|
|
@@ -27,22 +24,22 @@
|
|
|
27
24
|
|
|
28
25
|
:host([position^='top'][top-aligned]) [part='overlay'],
|
|
29
26
|
:host([position^='bottom'][top-aligned]) [part='overlay'] {
|
|
30
|
-
margin-top: var(--vaadin-tooltip-offset-top,
|
|
27
|
+
margin-top: var(--vaadin-tooltip-offset-top, var(--_vaadin-tooltip-default-offset));
|
|
31
28
|
}
|
|
32
29
|
|
|
33
30
|
:host([position^='top'][bottom-aligned]) [part='overlay'],
|
|
34
31
|
:host([position^='bottom'][bottom-aligned]) [part='overlay'] {
|
|
35
|
-
margin-bottom: var(--vaadin-tooltip-offset-bottom,
|
|
32
|
+
margin-bottom: var(--vaadin-tooltip-offset-bottom, var(--_vaadin-tooltip-default-offset));
|
|
36
33
|
}
|
|
37
34
|
|
|
38
35
|
:host([position^='start'][start-aligned]) [part='overlay'],
|
|
39
36
|
:host([position^='end'][start-aligned]) [part='overlay'] {
|
|
40
|
-
margin-inline-start: var(--vaadin-tooltip-offset-start,
|
|
37
|
+
margin-inline-start: var(--vaadin-tooltip-offset-start, var(--_vaadin-tooltip-default-offset));
|
|
41
38
|
}
|
|
42
39
|
|
|
43
40
|
:host([position^='start'][end-aligned]) [part='overlay'],
|
|
44
41
|
:host([position^='end'][end-aligned]) [part='overlay'] {
|
|
45
|
-
margin-inline-end: var(--vaadin-tooltip-offset-end,
|
|
42
|
+
margin-inline-end: var(--vaadin-tooltip-offset-end, var(--_vaadin-tooltip-default-offset));
|
|
46
43
|
}
|
|
47
44
|
|
|
48
45
|
@media (forced-colors: active) {
|
|
@@ -4,11 +4,17 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
@media lumo_components_upload-icon {
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
}
|
|
10
|
+
|
|
7
11
|
:host::before {
|
|
8
12
|
content: var(--lumo-icons-upload);
|
|
9
13
|
font-family: lumo-icons;
|
|
10
14
|
font-size: var(--lumo-icon-size-m);
|
|
11
15
|
line-height: 1;
|
|
12
16
|
vertical-align: -0.25em;
|
|
17
|
+
background-color: transparent;
|
|
18
|
+
mask-image: none;
|
|
13
19
|
}
|
|
14
20
|
}
|
|
@@ -15,10 +15,11 @@
|
|
|
15
15
|
will-change: opacity, transform;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
[part='content'] {
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
align-items: flex-start;
|
|
22
|
+
padding: 0;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
:host([dir='rtl']) [part='overlay'] {
|
|
@@ -26,10 +27,6 @@
|
|
|
26
27
|
right: -4px;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
[part='content'] {
|
|
30
|
-
padding: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
30
|
:host([opening]),
|
|
34
31
|
:host([closing]) {
|
|
35
32
|
animation: 0.14s user-tags-overlay-dummy-animation;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
+
:where(:root, :host) {
|
|
7
|
+
color: var(--lumo-body-text-color);
|
|
8
|
+
background-color: var(--lumo-base-color);
|
|
9
|
+
color-scheme: light;
|
|
10
|
+
}
|
|
11
|
+
|
|
6
12
|
[theme~='dark'] {
|
|
7
13
|
/* Base (background) */
|
|
8
14
|
--lumo-base-color: hsl(214, 35%, 21%);
|