@vaadin/vaadin-lumo-styles 25.0.0-alpha8 → 25.0.0-beta1
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/all-imports.d.ts +0 -8
- package/all-imports.js +0 -18
- package/components/accordion-heading.css +4 -3
- package/components/accordion-panel.css +4 -3
- package/components/app-layout.css +4 -3
- package/components/avatar-group.css +10 -9
- package/components/avatar.css +6 -4
- package/components/button.css +4 -4
- package/components/card.css +6 -4
- package/components/charts.css +4 -3
- package/components/checkbox-group.css +4 -3
- package/components/checkbox.css +4 -3
- package/components/combo-box.css +8 -7
- package/components/confirm-dialog.css +4 -3
- package/components/context-menu.css +8 -7
- package/components/crud.css +13 -12
- package/components/custom-field.css +4 -3
- package/components/dashboard.css +12 -11
- package/components/date-picker.css +12 -11
- package/components/date-time-picker.css +4 -3
- package/components/details-summary.css +4 -3
- package/components/details.css +4 -3
- package/components/dialog.css +4 -3
- package/components/drawer-toggle.css +4 -3
- package/components/email-field.css +4 -3
- package/components/field-highlighter.css +8 -7
- package/components/form-item.css +4 -3
- package/components/form-layout.css +8 -5
- package/components/grid-filter.css +4 -3
- package/components/grid-pro-edit-column.css +8 -7
- package/components/grid-pro.css +4 -3
- package/components/grid-sorter.css +4 -3
- package/components/grid-tree-toggle.css +4 -3
- package/components/grid.css +4 -3
- package/components/horizontal-layout.css +4 -3
- package/components/icon.css +4 -3
- package/components/index.css +71 -0
- package/components/input-container.css +4 -3
- package/components/integer-field.css +4 -3
- package/components/item.css +4 -3
- package/components/list-box.css +4 -3
- package/components/login-form.css +4 -3
- package/components/login.css +4 -3
- package/components/map.css +4 -3
- package/components/master-detail-layout.css +14 -5
- package/components/menu-bar.css +12 -11
- package/components/message-input-button.css +12 -0
- package/components/message-input.css +5 -4
- package/components/message.css +4 -3
- package/components/multi-select-combo-box.css +12 -11
- package/components/notification.css +6 -5
- package/components/number-field.css +4 -3
- package/components/overlay.css +4 -3
- package/components/password-field.css +6 -5
- package/components/popover.css +4 -3
- package/components/progress-bar.css +4 -3
- package/components/radio-button.css +4 -3
- package/components/radio-group.css +4 -3
- package/components/rich-text-editor.css +6 -5
- package/components/scroller.css +4 -3
- package/components/select.css +12 -11
- package/components/side-nav-item.css +4 -3
- package/components/side-nav.css +4 -3
- package/components/split-layout.css +4 -3
- package/components/tab.css +4 -3
- package/components/tabs.css +4 -3
- package/components/tabsheet.css +6 -5
- package/components/text-area.css +4 -3
- package/components/text-field.css +4 -3
- package/components/time-picker.css +8 -7
- package/components/tooltip.css +4 -3
- package/components/upload.css +15 -10
- package/components/vertical-layout.css +4 -3
- package/dist/lumo.css +43 -0
- package/dist/presets/compact.css +1 -0
- package/dist/utility.css +1 -0
- package/lumo.css +3 -3
- package/mixins/field-button.js +3 -4
- package/mixins/helper.js +3 -4
- package/mixins/input-field-shared.js +4 -7
- package/mixins/loader.js +3 -2
- package/mixins/menu-overlay.js +3 -2
- package/mixins/overlay.js +3 -4
- package/mixins/required-field.js +3 -4
- package/package.json +15 -9
- package/presets/compact.css +32 -0
- package/src/components/app-layout.css +5 -5
- package/src/components/avatar-group-overlay.css +0 -4
- package/src/components/chart.css +3 -5
- package/src/components/checkbox.css +2 -3
- package/src/components/combo-box.css +1 -1
- package/src/components/confirm-dialog-overlay.css +0 -4
- package/src/components/context-menu-overlay.css +21 -1
- 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/date-picker-overlay.css +2 -14
- package/src/components/date-picker.css +2 -2
- package/src/components/dialog-overlay.css +10 -19
- package/src/components/grid-pro-edit-select.css +1 -1
- package/src/components/grid-pro.css +14 -8
- package/src/components/grid.css +0 -7
- package/src/components/horizontal-layout.css +0 -4
- package/src/components/icon.css +2 -2
- package/src/components/input-container.css +1 -3
- package/src/components/login-form-wrapper.css +5 -26
- package/src/components/login-overlay-wrapper.css +14 -4
- package/src/components/menu-bar-button.css +7 -7
- package/src/components/message.css +7 -32
- package/src/components/multi-select-combo-box.css +6 -2
- package/src/components/notification-container.css +8 -1
- package/src/components/number-field.css +6 -6
- package/src/components/password-field.css +4 -4
- package/src/components/popover-overlay.css +2 -138
- package/src/components/radio-button.css +1 -1
- package/src/components/rich-text-editor.css +40 -142
- package/src/components/scroller.css +3 -22
- package/src/components/select.css +15 -2
- package/src/components/side-nav-item.css +13 -0
- package/src/components/split-layout.css +19 -97
- package/src/components/tabsheet.css +5 -1
- package/src/components/text-area.css +2 -2
- package/src/components/time-picker.css +1 -1
- package/src/components/tooltip-overlay.css +4 -1
- package/src/components/upload-file.css +27 -61
- 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/color-scheme.css +2 -1
- package/{user-colors.d.ts → src/global/index.css} +3 -3
- package/src/global/typography.css +2 -1
- package/src/mixins/dashboard-item.css +10 -142
- package/src/mixins/field-base.css +1 -1
- package/src/mixins/field-button.css +3 -3
- package/src/mixins/overlay.css +11 -1
- package/src/mixins/resizable-overlay.css +2 -1
- package/src/props/color.css +4 -2
- package/src/props/icons.css +21 -18
- package/src/props/index.css +12 -0
- package/src/props/reset.css +2 -1
- package/src/props/sizing.css +2 -1
- package/src/props/spacing.css +2 -1
- package/src/props/style.css +2 -1
- package/src/props/typography.css +2 -1
- package/utility.css +0 -1
- package/vaadin-iconset.js +2 -0
- package/auto-complete.css +0 -2512
- package/badge-global.js +0 -9
- package/badge.d.ts +0 -3
- package/badge.js +0 -178
- package/color-global.js +0 -9
- package/color.d.ts +0 -5
- package/color.js +0 -221
- package/components.css +0 -71
- package/font-icons.js +0 -69
- package/global.css +0 -8
- package/global.js +0 -5
- package/presets/compact.js +0 -40
- package/props.css +0 -12
- package/sizing.d.ts +0 -3
- package/sizing.js +0 -29
- package/spacing.d.ts +0 -3
- package/spacing.js +0 -37
- package/src/components/form-layout.css +0 -11
- package/src/components/master-detail-layout.css +0 -21
- package/src/components/upload-file-list.css +0 -24
- package/style.d.ts +0 -3
- package/style.js +0 -31
- package/typography-global.js +0 -13
- package/typography.d.ts +0 -7
- package/typography.js +0 -129
- package/user-colors.js +0 -33
- package/utilities/accessibility.js +0 -21
- package/utilities/background.js +0 -156
- package/utilities/border.js +0 -147
- package/utilities/filter.js +0 -34
- package/utilities/flexbox-grid.js +0 -619
- package/utilities/layout.js +0 -504
- package/utilities/shadows.js +0 -28
- package/utilities/sizing.js +0 -121
- package/utilities/spacing.js +0 -542
- package/utilities/transition.js +0 -50
- package/utilities/typography.js +0 -344
- package/utility-global.js +0 -9
- package/utility.d.ts +0 -3
- package/utility.js +0 -34
|
@@ -4,43 +4,15 @@
|
|
|
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_dashboard-widget {
|
|
7
|
-
:host {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
grid-column: var(--_item-column);
|
|
11
|
-
grid-row: var(--_item-row);
|
|
12
|
-
background: var(--_widget-background);
|
|
13
|
-
border-radius: var(--_widget-border-radius);
|
|
14
|
-
box-shadow: var(--_widget-shadow);
|
|
15
|
-
position: relative;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
7
|
:host::before {
|
|
19
|
-
content: '';
|
|
20
|
-
position: absolute;
|
|
21
8
|
inset: calc(-1 * var(--_widget-border-width));
|
|
22
9
|
border: var(--_widget-border-width) solid var(--_widget-border-color);
|
|
23
10
|
border-radius: calc(var(--_widget-border-radius) + var(--_widget-border-width));
|
|
24
|
-
pointer-events: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
:host([hidden]) {
|
|
28
|
-
display: none !important;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
:host(:not([editable])) [part~='resize-button'] {
|
|
32
|
-
display: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
[part~='content'] {
|
|
36
|
-
flex: 1;
|
|
37
|
-
overflow: hidden;
|
|
38
11
|
}
|
|
39
12
|
|
|
40
13
|
/* Widget states */
|
|
41
14
|
|
|
42
15
|
:host([editable]) {
|
|
43
|
-
--vaadin-dashboard-widget-shadow: var(--_widget-editable-shadow);
|
|
44
16
|
--_widget-border-color: var(--lumo-contrast-20pct);
|
|
45
17
|
--_widget-border-width: 1px;
|
|
46
18
|
}
|
|
@@ -51,7 +23,6 @@
|
|
|
51
23
|
}
|
|
52
24
|
|
|
53
25
|
:host([selected]) {
|
|
54
|
-
--vaadin-dashboard-widget-shadow: var(--_widget-selected-shadow);
|
|
55
26
|
background: var(--lumo-primary-color-10pct);
|
|
56
27
|
}
|
|
57
28
|
|
|
@@ -62,13 +33,7 @@
|
|
|
62
33
|
}
|
|
63
34
|
|
|
64
35
|
:host([resizing])::after {
|
|
65
|
-
content: '';
|
|
66
|
-
z-index: 2;
|
|
67
|
-
position: absolute;
|
|
68
36
|
top: -1px;
|
|
69
|
-
width: var(--_widget-resizer-width, 0);
|
|
70
|
-
height: var(--_widget-resizer-height, 0);
|
|
71
|
-
border-radius: inherit;
|
|
72
37
|
background: var(--_drop-target-background-color);
|
|
73
38
|
border: var(--_drop-target-border);
|
|
74
39
|
}
|
|
@@ -81,7 +46,7 @@
|
|
|
81
46
|
}
|
|
82
47
|
|
|
83
48
|
:host([editable]) header {
|
|
84
|
-
padding
|
|
49
|
+
padding: var(--lumo-space-xs);
|
|
85
50
|
}
|
|
86
51
|
|
|
87
52
|
[part='title'] {
|
|
@@ -113,24 +78,12 @@
|
|
|
113
78
|
/* Resize handle */
|
|
114
79
|
|
|
115
80
|
[part~='resize-button'] {
|
|
116
|
-
z-index: 1;
|
|
117
|
-
overflow: hidden;
|
|
118
81
|
--_resize-button-offset: min(var(--_gap), var(--_padding), var(--lumo-space-xs));
|
|
119
|
-
position: absolute;
|
|
120
82
|
bottom: calc(-1 * var(--_resize-button-offset));
|
|
121
83
|
inset-inline-end: calc(-1 * var(--_resize-button-offset));
|
|
122
|
-
cursor: nwse-resize;
|
|
123
84
|
--icon: var(--lumo-icons-resize-handle);
|
|
124
85
|
}
|
|
125
86
|
|
|
126
|
-
:host([dir='rtl']) [part~='resize-button'] {
|
|
127
|
-
cursor: sw-resize;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
:host([dir='rtl']) [part~='resize-button'] .icon::before {
|
|
131
|
-
transform: scaleX(-1);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
87
|
/* Accessible resize mode controls */
|
|
135
88
|
|
|
136
89
|
[part~='resize-apply-button'] {
|
|
@@ -145,48 +98,11 @@
|
|
|
145
98
|
min-width: var(--lumo-size-s);
|
|
146
99
|
}
|
|
147
100
|
|
|
148
|
-
[part~='resize-shrink-width-button'] + [part~='resize-grow-width-button'] {
|
|
149
|
-
margin-left: 1px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
101
|
[part~='resize-grow-height-button'],
|
|
153
102
|
[part~='resize-shrink-height-button'] {
|
|
154
103
|
height: var(--lumo-size-s);
|
|
155
104
|
padding-right: 0;
|
|
156
105
|
padding-left: 0;
|
|
157
|
-
border-bottom-left-radius: 0;
|
|
158
|
-
border-bottom-right-radius: 0;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
[part~='resize-shrink-height-button']:not([hidden]) + [part~='resize-grow-height-button'] {
|
|
162
|
-
border-top-left-radius: 0;
|
|
163
|
-
border-top-right-radius: 0;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
[part~='resize-shrink-height-button'] + [part~='resize-grow-height-button'] {
|
|
167
|
-
margin-top: 1px;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
:host(:not([dir='rtl'])) [part~='resize-grow-width-button'],
|
|
171
|
-
:host(:not([dir='rtl'])) [part~='resize-shrink-width-button'] {
|
|
172
|
-
border-top-right-radius: 0;
|
|
173
|
-
border-bottom-right-radius: 0;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
:host([dir='rtl']) [part~='resize-grow-width-button'],
|
|
177
|
-
:host([dir='rtl']) [part~='resize-shrink-width-button'] {
|
|
178
|
-
border-top-left-radius: 0;
|
|
179
|
-
border-bottom-left-radius: 0;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
:host(:not([dir='rtl'])) [part~='resize-shrink-width-button']:not([hidden]) + [part~='resize-grow-width-button'] {
|
|
183
|
-
border-top-left-radius: 0;
|
|
184
|
-
border-bottom-left-radius: 0;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
:host([dir='rtl']) [part~='resize-shrink-width-button']:not([hidden]) + [part~='resize-grow-width-button'] {
|
|
188
|
-
border-top-right-radius: 0;
|
|
189
|
-
border-bottom-right-radius: 0;
|
|
190
106
|
}
|
|
191
107
|
|
|
192
108
|
[part~='resize-grow-height-button'],
|
|
@@ -4,15 +4,6 @@
|
|
|
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_dashboard {
|
|
7
|
-
#grid[item-resizing] {
|
|
8
|
-
-webkit-user-select: none;
|
|
9
|
-
user-select: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
::slotted(vaadin-dashboard-widget-wrapper) {
|
|
13
|
-
display: contents;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
7
|
:host {
|
|
17
8
|
--_widget-opacity: 1;
|
|
18
9
|
}
|
|
@@ -5,15 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
@media lumo_components_date-picker-overlay-content {
|
|
7
7
|
:host {
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-template-areas:
|
|
10
|
-
'header header'
|
|
11
|
-
'months years'
|
|
12
|
-
'toolbar years';
|
|
13
|
-
grid-template-columns: minmax(0, 1fr) 0;
|
|
14
|
-
height: 100%;
|
|
15
|
-
outline: none;
|
|
16
|
-
position: relative;
|
|
17
8
|
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
18
9
|
background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
|
|
19
10
|
background-size: 57px 100%;
|
|
@@ -26,18 +17,6 @@
|
|
|
26
17
|
background-position: top left;
|
|
27
18
|
}
|
|
28
19
|
|
|
29
|
-
:host([desktop]) {
|
|
30
|
-
grid-template-columns: minmax(0, 1fr) auto;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host([fullscreen][years-visible]) {
|
|
34
|
-
grid-template-columns: minmax(0, 1fr) auto;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
[hidden] {
|
|
38
|
-
display: none !important;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
20
|
::slotted([slot='months']) {
|
|
42
21
|
/* Month calendar height:
|
|
43
22
|
header height + margin-bottom
|
|
@@ -55,17 +34,15 @@
|
|
|
55
34
|
);
|
|
56
35
|
--vaadin-infinite-scroller-buffer-offset: 10%;
|
|
57
36
|
mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
58
|
-
position: relative;
|
|
59
37
|
}
|
|
60
38
|
|
|
61
39
|
::slotted([slot='years']) {
|
|
62
40
|
/* TODO get rid of fixed magic number */
|
|
63
41
|
--vaadin-infinite-scroller-buffer-width: 57px;
|
|
64
42
|
width: 57px;
|
|
65
|
-
height: auto;
|
|
66
|
-
top: 0;
|
|
67
|
-
bottom: 0;
|
|
68
43
|
font-size: var(--lumo-font-size-s);
|
|
44
|
+
border: none;
|
|
45
|
+
background: transparent;
|
|
69
46
|
box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
|
|
70
47
|
mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
71
48
|
cursor: var(--lumo-clickable-cursor);
|
|
@@ -79,11 +56,6 @@
|
|
|
79
56
|
--_lumo-date-picker-year-opacity: 1;
|
|
80
57
|
}
|
|
81
58
|
|
|
82
|
-
:host([desktop]) ::slotted([slot='years']),
|
|
83
|
-
:host([years-visible]) ::slotted([slot='years']) {
|
|
84
|
-
visibility: visible;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
59
|
/* Year scroller position indicator */
|
|
88
60
|
::slotted([slot='years'])::before {
|
|
89
61
|
border: none;
|
|
@@ -91,21 +63,17 @@
|
|
|
91
63
|
height: 1em;
|
|
92
64
|
background-color: var(--lumo-base-color);
|
|
93
65
|
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
94
|
-
transform: translate(-75%, -50%) rotate(45deg);
|
|
95
66
|
border-top-right-radius: var(--lumo-border-radius-s);
|
|
96
67
|
box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
|
|
97
|
-
|
|
68
|
+
translate: -75% -50%;
|
|
98
69
|
}
|
|
99
70
|
|
|
100
71
|
:host([dir='rtl']) ::slotted([slot='years'])::before {
|
|
101
|
-
|
|
102
|
-
|
|
72
|
+
border-bottom-left-radius: var(--lumo-border-radius-s);
|
|
73
|
+
translate: 75% -50%;
|
|
103
74
|
}
|
|
104
75
|
|
|
105
76
|
[part='toolbar'] {
|
|
106
|
-
display: flex;
|
|
107
|
-
grid-area: toolbar;
|
|
108
|
-
justify-content: space-between;
|
|
109
77
|
padding: var(--lumo-space-s);
|
|
110
78
|
border-bottom-left-radius: var(--lumo-border-radius-l);
|
|
111
79
|
}
|
|
@@ -113,9 +81,9 @@
|
|
|
113
81
|
/* Narrow viewport mode (fullscreen) */
|
|
114
82
|
|
|
115
83
|
:host([fullscreen]) [part='toolbar'] {
|
|
116
|
-
grid-area: header;
|
|
117
84
|
margin-inline-end: 57px;
|
|
118
85
|
background-color: var(--lumo-base-color);
|
|
86
|
+
border: none;
|
|
119
87
|
}
|
|
120
88
|
|
|
121
89
|
[part='toolbar'] ::slotted(vaadin-button) {
|
|
@@ -125,8 +93,6 @@
|
|
|
125
93
|
/* Very narrow screen (year scroller initially hidden) */
|
|
126
94
|
|
|
127
95
|
[part='years-toggle-button'] {
|
|
128
|
-
display: flex;
|
|
129
|
-
align-items: center;
|
|
130
96
|
height: var(--lumo-size-m);
|
|
131
97
|
padding: 0 0.5em;
|
|
132
98
|
border-radius: var(--lumo-border-radius-m);
|
|
@@ -7,20 +7,8 @@
|
|
|
7
7
|
[part='overlay'] {
|
|
8
8
|
display: flex;
|
|
9
9
|
flex: auto;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Width:
|
|
13
|
-
date cell widths
|
|
14
|
-
+ month calendar side padding
|
|
15
|
-
+ year scroller width
|
|
16
|
-
*/
|
|
17
|
-
/* prettier-ignore */
|
|
18
|
-
width:
|
|
19
|
-
calc(
|
|
20
|
-
var(--lumo-size-m) * 7
|
|
21
|
-
+ var(--lumo-space-xs) * 2
|
|
22
|
-
+ 57px
|
|
23
|
-
);
|
|
10
|
+
/* Width: date cell widths + month calendar side padding + year scroller width */
|
|
11
|
+
width: calc(var(--lumo-size-m) * 7 + var(--lumo-space-xs) * 2 + 57px);
|
|
24
12
|
height: 100%;
|
|
25
13
|
max-height: calc(var(--lumo-size-m) * 14);
|
|
26
14
|
overflow: hidden;
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
text-align: left;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
[part
|
|
20
|
+
[part~='toggle-button']::before {
|
|
21
21
|
content: var(--lumo-icons-calendar);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
[part
|
|
24
|
+
[part~='clear-button']::before {
|
|
25
25
|
content: var(--lumo-icons-cross);
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -69,19 +69,6 @@
|
|
|
69
69
|
height: auto;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
@media (min-height: 320px) {
|
|
73
|
-
:host(:is([has-title], [has-header], [has-footer])) .resizer-container {
|
|
74
|
-
overflow: hidden;
|
|
75
|
-
display: flex;
|
|
76
|
-
flex-direction: column;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
:host(:is([has-title], [has-header], [has-footer])) [part='content'] {
|
|
80
|
-
flex: 1;
|
|
81
|
-
overflow: auto;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
72
|
/*
|
|
86
73
|
NOTE(platosha): Make some min-width to prevent collapsing of the content
|
|
87
74
|
taking the parent width, e. g., <vaadin-grid> and such.
|
|
@@ -89,6 +76,16 @@
|
|
|
89
76
|
[part='content'] {
|
|
90
77
|
min-width: 12em; /* matches the default <vaadin-text-field> width */
|
|
91
78
|
padding: var(--lumo-space-l);
|
|
79
|
+
flex: 1;
|
|
80
|
+
min-height: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host([overflow]) [part='content'] {
|
|
84
|
+
overflow: auto;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:host([overflow~='top']) [part='header'] {
|
|
88
|
+
box-shadow: 0 1px 0 0 var(--lumo-contrast-10pct);
|
|
92
89
|
}
|
|
93
90
|
|
|
94
91
|
:host([has-bounds-set]) [part='overlay'] {
|
|
@@ -126,12 +123,6 @@
|
|
|
126
123
|
padding: 0 !important;
|
|
127
124
|
}
|
|
128
125
|
|
|
129
|
-
@media (min-height: 320px) {
|
|
130
|
-
:host([overflow~='top']) [part='header'] {
|
|
131
|
-
box-shadow: 0 1px 0 0 var(--lumo-contrast-10pct);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
126
|
/* Animations */
|
|
136
127
|
|
|
137
128
|
:host([opening]),
|
|
@@ -4,7 +4,7 @@
|
|
|
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_grid-pro-edit-select {
|
|
7
|
-
:host([theme~='grid-pro-editor']) [part
|
|
7
|
+
:host([theme~='grid-pro-editor']) [part~='toggle-button'] {
|
|
8
8
|
margin-right: var(--lumo-space-xs);
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
|
|
38
38
|
/* prettier-ignore */
|
|
39
39
|
:host([theme~='highlight-read-only-cells']) [tabindex]:not([part~='editable-cell']):not([part~='header-cell']):not([part~='footer-cell']) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
background-image: repeating-linear-gradient(
|
|
41
|
+
135deg,
|
|
42
|
+
transparent,
|
|
43
|
+
transparent 6px,
|
|
44
|
+
var(--lumo-contrast-5pct) 6px,
|
|
45
|
+
var(--lumo-contrast-5pct) 14px
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
48
|
|
|
49
49
|
/* Loading editor cell styles are used by Flow GridPro */
|
|
50
50
|
:host([loading-editor]) [part~='focused-cell']::before {
|
|
@@ -81,4 +81,10 @@
|
|
|
81
81
|
background-position: max(300%, 8em) 0;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
|
|
85
|
+
:host([loading-editor]) [part~='focused-cell'] ::slotted(vaadin-grid-cell-content),
|
|
86
|
+
[part~='updating-cell'] ::slotted(vaadin-grid-cell-content) {
|
|
87
|
+
opacity: 0;
|
|
88
|
+
pointer-events: none;
|
|
89
|
+
}
|
|
84
90
|
}
|
package/src/components/grid.css
CHANGED
|
@@ -4,16 +4,9 @@
|
|
|
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_grid {
|
|
7
|
-
@keyframes vaadin-grid-appear {
|
|
8
|
-
to {
|
|
9
|
-
opacity: 1;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
7
|
:host {
|
|
14
8
|
display: flex;
|
|
15
9
|
flex-direction: column;
|
|
16
|
-
animation: 1ms vaadin-grid-appear;
|
|
17
10
|
height: 400px;
|
|
18
11
|
min-height: var(--_grid-min-height, 0);
|
|
19
12
|
flex: 1 1 auto;
|
package/src/components/icon.css
CHANGED
|
@@ -9,10 +9,8 @@
|
|
|
9
9
|
align-items: center;
|
|
10
10
|
flex: 0 1 auto;
|
|
11
11
|
--_border-radius: var(--vaadin-input-field-border-radius, 0);
|
|
12
|
-
/* stylelint-disable-next-line length-zero-no-unit */
|
|
13
12
|
--_input-border-width: var(--vaadin-input-field-border-width, 0px);
|
|
14
|
-
|
|
15
|
-
box-shadow: inset 0 0 0 var(--_input-border-width, 0px) var(--_input-border-color);
|
|
13
|
+
box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
16
14
|
background: var(--_background);
|
|
17
15
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
18
16
|
font-weight: var(--vaadin-input-field-value-font-weight, 500);
|
|
@@ -5,8 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
@media lumo_components_login-form-wrapper {
|
|
7
7
|
:host {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
padding: var(--lumo-space-l);
|
|
8
12
|
overflow: hidden;
|
|
9
|
-
display: inline-block;
|
|
10
13
|
font-family: var(--lumo-font-family);
|
|
11
14
|
font-size: var(--lumo-font-size-m);
|
|
12
15
|
line-height: var(--lumo-line-height-m);
|
|
@@ -22,20 +25,12 @@
|
|
|
22
25
|
display: none !important;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
|
-
[part='form'] {
|
|
26
|
-
flex: 1;
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
padding: var(--lumo-space-l);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
28
|
::slotted(form) {
|
|
34
29
|
display: flex;
|
|
35
30
|
flex-direction: column;
|
|
36
31
|
}
|
|
37
32
|
|
|
38
|
-
[
|
|
33
|
+
::slotted([slot='form-title']) {
|
|
39
34
|
margin: 0;
|
|
40
35
|
margin-top: calc(var(--lumo-font-size-xxxl) - var(--lumo-font-size-xxl));
|
|
41
36
|
color: var(--lumo-header-text-color);
|
|
@@ -115,20 +110,4 @@
|
|
|
115
110
|
line-height: var(--lumo-line-height-s);
|
|
116
111
|
color: var(--lumo-secondary-text-color);
|
|
117
112
|
}
|
|
118
|
-
|
|
119
|
-
:host([theme~='with-overlay']) {
|
|
120
|
-
min-height: 100%;
|
|
121
|
-
display: flex;
|
|
122
|
-
justify-content: center;
|
|
123
|
-
max-width: 100%;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/* Landscape small screen */
|
|
127
|
-
@media only screen and (max-height: 600px) and (min-width: 600px) and (orientation: landscape) {
|
|
128
|
-
:host([theme~='with-overlay']) [part='form'] {
|
|
129
|
-
height: 100%;
|
|
130
|
-
flex: 1;
|
|
131
|
-
padding: 2px;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
113
|
}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
min-height: calc(var(--lumo-size-m) * 5);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
[
|
|
54
|
+
::slotted([slot='title']) {
|
|
55
55
|
color: inherit;
|
|
56
56
|
margin: 0;
|
|
57
57
|
font-size: var(--lumo-font-size-xxxl);
|
|
@@ -77,6 +77,11 @@
|
|
|
77
77
|
padding: 0;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
::slotted(vaadin-login-form-wrapper) {
|
|
81
|
+
min-height: 100%;
|
|
82
|
+
max-width: 100%;
|
|
83
|
+
}
|
|
84
|
+
|
|
80
85
|
/* Small screen */
|
|
81
86
|
@media only screen and (max-width: 500px) {
|
|
82
87
|
[part='overlay'],
|
|
@@ -114,7 +119,7 @@
|
|
|
114
119
|
}
|
|
115
120
|
|
|
116
121
|
[part='brand'],
|
|
117
|
-
[part='form'] {
|
|
122
|
+
[part='form-wrapper'] {
|
|
118
123
|
flex: auto;
|
|
119
124
|
flex-basis: 0;
|
|
120
125
|
box-sizing: border-box;
|
|
@@ -124,10 +129,15 @@
|
|
|
124
129
|
justify-content: flex-start;
|
|
125
130
|
}
|
|
126
131
|
|
|
127
|
-
[part='form'] {
|
|
132
|
+
[part='form-wrapper'] {
|
|
128
133
|
padding: var(--lumo-space-l);
|
|
129
134
|
overflow: auto;
|
|
130
135
|
}
|
|
136
|
+
|
|
137
|
+
::slotted(vaadin-login-form-wrapper) {
|
|
138
|
+
flex: 1;
|
|
139
|
+
padding: 2px;
|
|
140
|
+
}
|
|
131
141
|
}
|
|
132
142
|
|
|
133
143
|
/* Landscape really small screen */
|
|
@@ -147,7 +157,7 @@
|
|
|
147
157
|
box-shadow: none;
|
|
148
158
|
}
|
|
149
159
|
|
|
150
|
-
[part='form'] {
|
|
160
|
+
[part='form-wrapper'] {
|
|
151
161
|
height: 100%;
|
|
152
162
|
overflow: auto;
|
|
153
163
|
}
|
|
@@ -95,19 +95,19 @@
|
|
|
95
95
|
|
|
96
96
|
/* prettier-ignore */
|
|
97
97
|
:host([theme~='dropdown-indicators']:not([slot='overflow']):not([theme~='icon'])[aria-haspopup]) [part='suffix']::after {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
98
|
+
font-family: lumo-icons;
|
|
99
|
+
content: var(--lumo-icons-dropdown);
|
|
100
|
+
}
|
|
101
101
|
|
|
102
102
|
/* prettier-ignore */
|
|
103
103
|
:host([theme~='dropdown-indicators']:not([slot='overflow']):not([theme~='icon'])[theme~='tertiary'][aria-haspopup]) [part='suffix'] {
|
|
104
|
-
|
|
105
|
-
}
|
|
104
|
+
inset-inline-start: 0.05em;
|
|
105
|
+
}
|
|
106
106
|
|
|
107
107
|
/* prettier-ignore */
|
|
108
108
|
:host([theme~='dropdown-indicators']:not([slot='overflow']):not([theme~='icon'])[theme~='tertiary-inline'][aria-haspopup]) [part='suffix'] {
|
|
109
|
-
|
|
110
|
-
}
|
|
109
|
+
inset-inline-start: 0;
|
|
110
|
+
}
|
|
111
111
|
|
|
112
112
|
/* RTL styles */
|
|
113
113
|
:host([dir='rtl']) {
|
|
@@ -5,14 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
@media lumo_components_message {
|
|
7
7
|
:host {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: row;
|
|
10
|
-
outline: none;
|
|
11
8
|
color: var(--lumo-body-text-color);
|
|
12
9
|
font-family: var(--lumo-font-family);
|
|
13
10
|
font-size: var(--lumo-font-size-m);
|
|
14
11
|
line-height: var(--lumo-line-height-m);
|
|
15
12
|
padding: var(--lumo-space-s) var(--lumo-space-m);
|
|
13
|
+
gap: 0;
|
|
16
14
|
-moz-osx-font-smoothing: grayscale;
|
|
17
15
|
-webkit-font-smoothing: antialiased;
|
|
18
16
|
-webkit-text-size-adjust: 100%;
|
|
@@ -20,34 +18,25 @@
|
|
|
20
18
|
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
:host([
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
[part='content'] {
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
flex-grow: 1;
|
|
21
|
+
:host(:is(:focus-visible, [focus-ring])) {
|
|
22
|
+
outline: none;
|
|
31
23
|
}
|
|
32
24
|
|
|
33
25
|
[part='header'] {
|
|
34
|
-
align-items: baseline;
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-flow: row wrap;
|
|
37
26
|
min-height: calc(var(--lumo-font-size-m) * var(--lumo-line-height-m));
|
|
38
27
|
}
|
|
39
28
|
|
|
40
29
|
[part='name'] {
|
|
41
|
-
|
|
42
|
-
margin-
|
|
30
|
+
color: inherit;
|
|
31
|
+
margin-inline-end: var(--lumo-space-s);
|
|
43
32
|
}
|
|
44
33
|
|
|
45
34
|
[part='name']:empty {
|
|
46
|
-
margin-
|
|
35
|
+
margin-inline-end: 0;
|
|
47
36
|
}
|
|
48
37
|
|
|
49
38
|
[part='message'] {
|
|
50
|
-
|
|
39
|
+
color: inherit;
|
|
51
40
|
}
|
|
52
41
|
|
|
53
42
|
[part='time'] {
|
|
@@ -58,25 +47,11 @@
|
|
|
58
47
|
::slotted([slot='avatar']) {
|
|
59
48
|
--vaadin-avatar-outline-width: 0;
|
|
60
49
|
--vaadin-avatar-size: var(--lumo-size-m);
|
|
61
|
-
flex-shrink: 0;
|
|
62
50
|
margin-top: calc(var(--lumo-space-s));
|
|
63
51
|
margin-inline-end: calc(var(--lumo-space-m));
|
|
64
52
|
}
|
|
65
53
|
|
|
66
|
-
::slotted(vaadin-markdown) {
|
|
67
|
-
white-space: normal;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
54
|
:host([focus-ring]) {
|
|
71
55
|
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
72
56
|
}
|
|
73
|
-
|
|
74
|
-
:host([dir='rtl']) [part='name'] {
|
|
75
|
-
margin-left: var(--lumo-space-s);
|
|
76
|
-
margin-right: 0;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
:host([dir='rtl']) [part='name']:empty {
|
|
80
|
-
margin-left: 0;
|
|
81
|
-
}
|
|
82
57
|
}
|