@vaadin/vaadin-lumo-styles 25.0.0-alpha16 → 25.0.0-alpha18
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/components/upload.css +6 -3
- package/package.json +5 -5
- package/src/components/context-menu-overlay.css +21 -0
- package/src/components/dashboard-layout.css +0 -66
- package/src/components/dashboard-section.css +3 -31
- package/src/components/dashboard-widget.css +1 -86
- package/src/components/dashboard.css +0 -9
- package/src/components/date-picker-overlay-content.css +6 -40
- package/src/components/message.css +7 -32
- package/src/components/popover-overlay.css +2 -138
- package/src/components/rich-text-editor.css +22 -355
- package/src/components/scroller.css +1 -20
- package/src/components/select.css +13 -0
- package/src/components/side-nav-item.css +13 -0
- package/src/components/upload-file.css +25 -59
- package/src/mixins/dashboard-item.css +10 -141
- package/src/mixins/overlay.css +1 -1
- package/utility.css +0 -1
- package/src/components/upload-file-list.css +0 -24
|
@@ -5,39 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
@media lumo_components_upload-file {
|
|
7
7
|
:host {
|
|
8
|
-
display: block;
|
|
9
8
|
padding: var(--lumo-space-s) 0;
|
|
10
|
-
|
|
9
|
+
gap: 0 var(--lumo-space-xs);
|
|
11
10
|
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
12
11
|
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
display: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[part='row'] {
|
|
20
|
-
list-style-type: none;
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: baseline;
|
|
23
|
-
justify-content: space-between;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
button {
|
|
27
|
-
background: transparent;
|
|
28
|
-
padding: 0;
|
|
29
|
-
border: none;
|
|
30
|
-
box-shadow: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host([complete]) ::slotted([slot='progress']),
|
|
34
|
-
:host([error]) ::slotted([slot='progress']) {
|
|
35
|
-
display: none !important;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host([focus-ring]) [part='row'] {
|
|
14
|
+
:host(:focus-visible) {
|
|
39
15
|
border-radius: var(--lumo-border-radius-s);
|
|
40
|
-
|
|
16
|
+
outline: var(--_focus-ring-width) solid var(--_focus-ring-color);
|
|
17
|
+
outline-offset: calc(var(--_focus-ring-width) * -1);
|
|
41
18
|
}
|
|
42
19
|
|
|
43
20
|
[part='status'],
|
|
@@ -46,57 +23,48 @@
|
|
|
46
23
|
font-size: var(--lumo-font-size-s);
|
|
47
24
|
}
|
|
48
25
|
|
|
49
|
-
[part='info'] {
|
|
50
|
-
display: flex;
|
|
51
|
-
align-items: baseline;
|
|
52
|
-
flex: auto;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
[part='meta'] {
|
|
56
|
-
width: 0.001px;
|
|
57
|
-
flex: 1 1 auto;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
26
|
[part='name'] {
|
|
27
|
+
color: var(--lumo-body-text-color);
|
|
61
28
|
white-space: nowrap;
|
|
62
|
-
overflow: hidden;
|
|
63
|
-
text-overflow: ellipsis;
|
|
64
29
|
}
|
|
65
30
|
|
|
66
31
|
[part='commands'] {
|
|
67
|
-
|
|
68
|
-
align-items: baseline;
|
|
69
|
-
flex: none;
|
|
32
|
+
align-self: start;
|
|
70
33
|
}
|
|
71
34
|
|
|
72
35
|
[part$='icon'] {
|
|
73
|
-
margin-right: var(--lumo-space-xs);
|
|
74
36
|
font-size: var(--lumo-icon-size-m);
|
|
75
37
|
font-family: 'lumo-icons';
|
|
76
38
|
line-height: 1;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
/* When both icons are hidden, let us keep space for one */
|
|
80
|
-
[part='done-icon'][hidden] + [part='warning-icon'][hidden] {
|
|
81
|
-
display: block !important;
|
|
82
|
-
visibility: hidden;
|
|
39
|
+
align-self: start;
|
|
83
40
|
}
|
|
84
41
|
|
|
85
42
|
[part$='button'] {
|
|
86
|
-
|
|
87
|
-
|
|
43
|
+
border: none;
|
|
44
|
+
box-shadow: none;
|
|
45
|
+
outline: none;
|
|
46
|
+
padding: 0;
|
|
47
|
+
border-radius: var(--lumo-border-radius-s);
|
|
88
48
|
cursor: var(--lumo-clickable-cursor);
|
|
89
49
|
}
|
|
90
50
|
|
|
91
51
|
[part$='button']:focus {
|
|
92
|
-
outline:
|
|
93
|
-
|
|
94
|
-
|
|
52
|
+
outline: var(--_focus-ring-width) solid var(--_focus-ring-color);
|
|
53
|
+
outline-offset: calc(var(--_focus-ring-width) * -1);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Vertically align icons / buttons with the first line of text */
|
|
57
|
+
[part$='icon'],
|
|
58
|
+
[part$='button'] {
|
|
59
|
+
margin-top: calc((1em * var(--lumo-line-height-m) - var(--lumo-icon-size-m)) / 2);
|
|
95
60
|
}
|
|
96
61
|
|
|
97
62
|
[part$='icon']::before,
|
|
98
63
|
[part$='button']::before {
|
|
99
|
-
|
|
64
|
+
background: transparent;
|
|
65
|
+
mask-image: none;
|
|
66
|
+
width: auto;
|
|
67
|
+
height: auto;
|
|
100
68
|
}
|
|
101
69
|
|
|
102
70
|
[part='done-icon']::before {
|
|
@@ -126,8 +94,6 @@
|
|
|
126
94
|
}
|
|
127
95
|
|
|
128
96
|
::slotted([slot='progress']) {
|
|
129
|
-
|
|
130
|
-
margin-left: calc(var(--lumo-icon-size-m) + var(--lumo-space-xs));
|
|
131
|
-
margin-right: calc(var(--lumo-icon-size-m) + var(--lumo-space-xs));
|
|
97
|
+
margin-inline-end: calc(var(--lumo-icon-size-m) + var(--lumo-space-xs));
|
|
132
98
|
}
|
|
133
99
|
}
|
|
@@ -6,12 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
@media lumo_mixins_dashboard-item {
|
|
8
8
|
:host {
|
|
9
|
-
box-sizing: border-box;
|
|
10
9
|
--_widget-background: var(--vaadin-dashboard-widget-background, var(--lumo-base-color));
|
|
11
10
|
--_widget-border-radius: var(--vaadin-dashboard-widget-border-radius, var(--lumo-border-radius-l));
|
|
12
|
-
--_widget-border-width: var(--vaadin-dashboard-widget-border-width, 1px);
|
|
13
11
|
--_widget-border-color: var(--vaadin-dashboard-widget-border-color, var(--lumo-contrast-20pct));
|
|
14
|
-
--_widget-shadow: var(--vaadin-dashboard-widget-shadow, 0 0 0 0 transparent);
|
|
15
12
|
--_widget-editable-shadow: var(--lumo-box-shadow-s);
|
|
16
13
|
--_widget-selected-shadow:
|
|
17
14
|
0 2px 4px -1px var(--lumo-primary-color-10pct), 0 3px 12px -1px var(--lumo-primary-color-50pct);
|
|
@@ -32,166 +29,40 @@
|
|
|
32
29
|
filter: var(--_widget-filter);
|
|
33
30
|
}
|
|
34
31
|
|
|
35
|
-
:host([dragging]) * {
|
|
36
|
-
visibility: hidden;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
:host(:not([editable])) [part~='move-button'],
|
|
40
|
-
:host(:not([editable])) [part~='remove-button'],
|
|
41
|
-
:host(:not([editable])) #focus-button,
|
|
42
|
-
:host(:not([editable])) #focus-button-wrapper,
|
|
43
|
-
:host(:not([editable])) .mode-controls {
|
|
44
|
-
display: none;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
#focustrap {
|
|
48
|
-
display: contents;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
#focus-button-wrapper,
|
|
52
|
-
#focus-button {
|
|
53
|
-
position: absolute;
|
|
54
|
-
inset: 0;
|
|
55
|
-
opacity: 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
#focus-button {
|
|
59
|
-
pointer-events: none;
|
|
60
|
-
padding: 0;
|
|
61
|
-
border: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.mode-controls {
|
|
65
|
-
position: absolute;
|
|
66
|
-
inset: 0;
|
|
67
|
-
z-index: 2;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.mode-controls[hidden] {
|
|
71
|
-
display: none;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/* Move-mode buttons */
|
|
75
|
-
[part~='move-backward-button'],
|
|
76
|
-
[part~='move-forward-button'],
|
|
77
32
|
[part~='move-apply-button'] {
|
|
78
|
-
position: absolute;
|
|
79
|
-
top: 50%;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
[part~='move-backward-button'] {
|
|
83
|
-
inset-inline-start: 0;
|
|
84
|
-
transform: translateY(-50%);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
[part~='move-forward-button'] {
|
|
88
|
-
inset-inline-end: 0;
|
|
89
|
-
transform: translateY(-50%);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
[part~='move-apply-button'] {
|
|
93
|
-
left: 50%;
|
|
94
|
-
transform: translate(-50%, -50%);
|
|
95
33
|
--icon: var(--lumo-icons-checkmark);
|
|
96
34
|
font-size: var(--lumo-icon-size-m);
|
|
97
35
|
}
|
|
98
36
|
|
|
99
|
-
:host([first-child]) [part~='move-backward-button'],
|
|
100
|
-
:host([last-child]) [part~='move-forward-button'] {
|
|
101
|
-
display: none;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/* Resize-mode buttons */
|
|
105
|
-
[part~='resize-shrink-width-button'],
|
|
106
|
-
[part~='resize-shrink-height-button'],
|
|
107
|
-
[part~='resize-grow-width-button'],
|
|
108
|
-
[part~='resize-grow-height-button'],
|
|
109
|
-
[part~='resize-apply-button'] {
|
|
110
|
-
position: absolute;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
[part~='resize-shrink-width-button'] {
|
|
114
|
-
inset-inline-end: 0;
|
|
115
|
-
top: 50%;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
:host(:not([dir='rtl'])) [part~='resize-shrink-width-button'] {
|
|
119
|
-
transform: translateY(-50%) translateX(-100%);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
:host([dir='rtl']) [part~='resize-shrink-width-button'] {
|
|
123
|
-
transform: translateY(-50%) translateX(100%);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.mode-controls:has([part~='resize-grow-width-button'][hidden]) [part~='resize-shrink-width-button'] {
|
|
127
|
-
transform: translateY(-50%);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
[part~='resize-grow-width-button'] {
|
|
131
|
-
inset-inline-start: 100%;
|
|
132
|
-
top: 50%;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
:host(:not([dir='rtl'])) [part~='resize-grow-width-button'] {
|
|
136
|
-
transform: translateY(-50%) translateX(-100%);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
:host([dir='rtl']) [part~='resize-grow-width-button'] {
|
|
140
|
-
transform: translateY(-50%) translateX(100%);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
[part~='resize-shrink-height-button'] {
|
|
144
|
-
bottom: 0;
|
|
145
|
-
left: 50%;
|
|
146
|
-
transform: translateX(-50%) translateY(-100%);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
[part~='resize-grow-height-button'] {
|
|
150
|
-
top: 100%;
|
|
151
|
-
left: 50%;
|
|
152
|
-
transform: translateX(-50%) translateY(-100%);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
[part~='resize-apply-button'] {
|
|
156
|
-
left: 50%;
|
|
157
|
-
top: 50%;
|
|
158
|
-
|
|
159
|
-
transform: translate(-50%, -50%);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
37
|
:host([focused]) {
|
|
163
|
-
|
|
38
|
+
outline: none;
|
|
164
39
|
}
|
|
165
40
|
|
|
166
41
|
header {
|
|
167
42
|
overflow: hidden;
|
|
168
|
-
display: flex;
|
|
169
43
|
align-items: start;
|
|
170
|
-
|
|
171
|
-
justify-content: space-between;
|
|
44
|
+
gap: 0;
|
|
172
45
|
}
|
|
173
46
|
|
|
174
47
|
[part='title'] {
|
|
175
|
-
flex: 1;
|
|
176
48
|
color: var(--lumo-header-text-color);
|
|
177
|
-
white-space: var(--vaadin-dashboard-widget-title-wrap, wrap);
|
|
178
|
-
text-overflow: ellipsis;
|
|
179
|
-
overflow: hidden;
|
|
180
49
|
line-height: var(--lumo-line-height-s);
|
|
181
50
|
margin: 0 0 1px;
|
|
182
|
-
align-self: safe center;
|
|
183
51
|
}
|
|
184
52
|
|
|
185
53
|
vaadin-dashboard-button {
|
|
186
54
|
font-family: 'lumo-icons';
|
|
187
55
|
font-size: var(--lumo-icon-size-m);
|
|
188
56
|
margin: 0;
|
|
189
|
-
z-index: 1;
|
|
190
57
|
}
|
|
191
58
|
|
|
192
59
|
vaadin-dashboard-button .icon::before {
|
|
193
60
|
display: block;
|
|
194
61
|
content: var(--icon);
|
|
62
|
+
background: transparent;
|
|
63
|
+
mask-image: none;
|
|
64
|
+
width: auto;
|
|
65
|
+
height: auto;
|
|
195
66
|
}
|
|
196
67
|
|
|
197
68
|
/* Common styles for non-mode edit buttons */
|
|
@@ -218,13 +89,11 @@
|
|
|
218
89
|
|
|
219
90
|
/* Drag handle */
|
|
220
91
|
[part~='move-button'] {
|
|
221
|
-
cursor: move;
|
|
222
92
|
--icon: var(--lumo-icons-drag-handle);
|
|
223
93
|
}
|
|
224
94
|
|
|
225
95
|
/* Remove button */
|
|
226
96
|
[part~='remove-button'] {
|
|
227
|
-
cursor: pointer;
|
|
228
97
|
--icon: var(--lumo-icons-cross);
|
|
229
98
|
margin-inline-start: var(--lumo-space-xs);
|
|
230
99
|
}
|
|
@@ -236,17 +105,17 @@
|
|
|
236
105
|
|
|
237
106
|
/* Move mode */
|
|
238
107
|
|
|
108
|
+
:host([move-mode]) :is([part~='move-forward-button'], [part~='move-backward-button']) .icon {
|
|
109
|
+
rotate: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
239
112
|
:host(:not([dir='rtl'])) [part~='move-backward-button'],
|
|
240
113
|
:host([dir='rtl']) [part~='move-forward-button'] {
|
|
241
|
-
border-top-left-radius: 0;
|
|
242
|
-
border-bottom-left-radius: 0;
|
|
243
114
|
--icon: var(--lumo-icons-angle-left);
|
|
244
115
|
}
|
|
245
116
|
|
|
246
117
|
:host(:not([dir='rtl'])) [part~='move-forward-button'],
|
|
247
118
|
:host([dir='rtl']) [part~='move-backward-button'] {
|
|
248
|
-
border-top-right-radius: 0;
|
|
249
|
-
border-bottom-right-radius: 0;
|
|
250
119
|
--icon: var(--lumo-icons-angle-right);
|
|
251
120
|
}
|
|
252
121
|
}
|
package/src/mixins/overlay.css
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
/* CSS API for host */
|
|
39
39
|
--vaadin-overlay-viewport-bottom: 0;
|
|
40
40
|
|
|
41
|
-
inset: var(--
|
|
41
|
+
inset: var(--vaadin-overlay-viewport-inset, var(--lumo-space-m));
|
|
42
42
|
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
43
43
|
/* stylelint-disable-next-line */
|
|
44
44
|
outline: 0px solid transparent;
|
package/utility.css
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
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
|
-
@import './props.css';
|
|
7
6
|
@import './src/utilities/accessibility.css';
|
|
8
7
|
@import './src/utilities/background.css';
|
|
9
8
|
@import './src/utilities/border.css';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/
|
|
6
|
-
@media lumo_components_upload-file-list {
|
|
7
|
-
:host {
|
|
8
|
-
display: block;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:host([hidden]) {
|
|
12
|
-
display: none !important;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
[part='list'] {
|
|
16
|
-
padding: 0;
|
|
17
|
-
margin: 0;
|
|
18
|
-
list-style-type: none;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
::slotted(li:not(:first-of-type)) {
|
|
22
|
-
border-top: 1px solid var(--lumo-contrast-10pct);
|
|
23
|
-
}
|
|
24
|
-
}
|