@vaadin/vaadin-lumo-styles 25.0.0-alpha15 → 25.0.0-alpha17
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/package.json +5 -5
- package/src/components/dashboard-layout.css +0 -66
- package/src/components/dashboard-section.css +3 -31
- package/src/components/dashboard-widget.css +1 -85
- 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 +22 -57
- package/src/mixins/dashboard-item.css +10 -141
- package/src/mixins/overlay.css +1 -1
|
@@ -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;
|