@vaadin/vaadin-lumo-styles 25.0.0-alpha1 → 25.0.0-alpha11
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 +3 -73
- package/components/accordion-heading.css +14 -0
- package/components/accordion-panel.css +15 -0
- package/components/accordion.css +7 -0
- package/components/app-layout.css +11 -0
- package/components/avatar-group.css +31 -0
- package/components/avatar.css +17 -0
- package/components/button.css +11 -0
- package/components/card.css +50 -0
- package/components/charts.css +11 -0
- package/components/checkbox-group.css +23 -0
- package/components/checkbox.css +14 -0
- package/components/combo-box.css +47 -0
- package/components/confirm-dialog.css +17 -0
- package/components/context-menu.css +32 -0
- package/components/crud.css +40 -0
- package/components/custom-field.css +20 -0
- package/components/dashboard.css +34 -0
- package/components/date-picker.css +49 -0
- package/components/date-time-picker.css +28 -0
- package/components/details-summary.css +11 -0
- package/components/details.css +12 -0
- package/components/dialog.css +16 -0
- package/components/drawer-toggle.css +14 -0
- package/components/email-field.css +25 -0
- package/components/field-highlighter.css +22 -0
- package/components/form-item.css +11 -0
- package/components/form-layout.css +11 -0
- package/components/grid-filter-column.css +6 -0
- package/components/grid-filter.css +12 -0
- package/components/grid-pro-edit-column.css +48 -0
- package/components/grid-pro.css +14 -0
- package/components/grid-selection-column.css +6 -0
- package/components/grid-sort-column.css +6 -0
- package/components/grid-sorter.css +19 -0
- package/components/grid-tree-column.css +6 -0
- package/components/grid-tree-toggle.css +11 -0
- package/components/grid.css +11 -0
- package/components/horizontal-layout.css +11 -0
- package/components/icon.css +11 -0
- package/components/input-container.css +11 -0
- package/components/integer-field.css +25 -0
- package/components/item.css +11 -0
- package/components/list-box.css +11 -0
- package/components/login-form.css +14 -0
- package/components/login.css +15 -0
- package/components/map.css +11 -0
- package/components/master-detail-layout.css +19 -0
- package/components/menu-bar.css +47 -0
- package/components/message-input.css +13 -0
- package/components/message-list.css +6 -0
- package/components/message.css +12 -0
- package/components/multi-select-combo-box.css +61 -0
- package/components/notification.css +15 -0
- package/components/number-field.css +25 -0
- package/components/overlay.css +11 -0
- package/components/password-field.css +32 -0
- package/components/popover.css +14 -0
- package/components/progress-bar.css +11 -0
- package/components/radio-button.css +14 -0
- package/components/radio-group.css +23 -0
- package/components/rich-text-editor.css +26 -0
- package/components/scroller.css +11 -0
- package/components/select.css +48 -0
- package/components/side-nav-item.css +14 -0
- package/components/side-nav.css +12 -0
- package/components/split-layout.css +11 -0
- package/components/tab.css +11 -0
- package/components/tabs.css +12 -0
- package/components/tabsheet.css +19 -0
- package/components/text-area.css +25 -0
- package/components/text-field.css +23 -0
- package/components/time-picker.css +43 -0
- package/components/tooltip.css +14 -0
- package/components/upload.css +28 -0
- package/components/vertical-layout.css +11 -0
- package/components.css +71 -0
- package/font-icons.js +28 -26
- package/global.css +8 -0
- package/lumo.css +8 -0
- package/mixins/input-field-shared.js +1 -2
- package/mixins/menu-overlay.js +0 -2
- package/mixins/required-field.js +0 -1
- package/package.json +16 -12
- package/props.css +12 -0
- package/src/components/accordion-heading.css +42 -0
- package/src/components/accordion-panel.css +38 -0
- package/src/components/app-layout.css +193 -0
- package/src/components/avatar-group-menu-item.css +22 -0
- package/src/components/avatar-group-overlay.css +11 -0
- package/src/components/avatar-group.css +67 -0
- package/src/components/avatar.css +86 -0
- package/src/components/button.css +334 -0
- package/src/components/card.css +38 -0
- package/src/components/chart.css +85 -0
- package/src/components/checkbox-group.css +18 -0
- package/src/components/checkbox.css +341 -0
- package/src/components/combo-box-item.css +18 -0
- package/src/components/combo-box-overlay.css +15 -0
- package/src/components/combo-box.css +14 -0
- package/src/components/confirm-dialog-overlay.css +59 -0
- package/src/components/context-menu-item.css +39 -0
- package/src/components/context-menu-list-box.css +40 -0
- package/src/components/context-menu-overlay.css +41 -0
- package/src/components/crud-dialog-overlay.css +57 -0
- package/src/components/crud-edit.css +30 -0
- package/src/components/crud.css +157 -0
- package/src/components/custom-field.css +102 -0
- package/src/components/dashboard-layout.css +94 -0
- package/src/components/dashboard-section.css +113 -0
- package/src/components/dashboard-widget.css +224 -0
- package/src/components/dashboard.css +23 -0
- package/src/components/date-picker-month-calendar.css +192 -0
- package/src/components/date-picker-overlay-content.css +161 -0
- package/src/components/date-picker-overlay.css +60 -0
- package/src/components/date-picker-year.css +35 -0
- package/src/components/date-picker.css +41 -0
- package/src/components/date-time-picker.css +36 -0
- package/src/components/details-summary.css +131 -0
- package/src/components/details.css +37 -0
- package/src/components/dialog-overlay.css +163 -0
- package/src/components/drawer-toggle.css +51 -0
- package/src/components/email-field.css +26 -0
- package/src/components/field-outline.css +51 -0
- package/src/components/form-item.css +36 -0
- package/src/components/form-layout.css +12 -0
- package/src/components/grid-filter.css +16 -0
- package/src/components/grid-pro-edit-select.css +19 -0
- package/src/components/grid-pro.css +84 -0
- package/src/components/grid-sorter.css +70 -0
- package/src/components/grid-tree-toggle.css +104 -0
- package/src/components/grid.css +755 -0
- package/src/components/horizontal-layout.css +34 -0
- package/src/components/icon.css +11 -0
- package/src/components/input-container.css +228 -0
- package/src/components/item.css +94 -0
- package/src/components/list-box.css +31 -0
- package/src/components/login-form-wrapper.css +113 -0
- package/src/components/login-overlay-wrapper.css +189 -0
- package/src/components/map.css +182 -0
- package/src/components/menu-bar-button.css +128 -0
- package/src/components/menu-bar-item.css +23 -0
- package/src/components/menu-bar-overlay.css +10 -0
- package/src/components/menu-bar.css +31 -0
- package/src/components/message-input.css +30 -0
- package/src/components/message.css +82 -0
- package/src/components/multi-select-combo-box-chip.css +113 -0
- package/src/components/multi-select-combo-box-container.css +20 -0
- package/src/components/multi-select-combo-box-item.css +13 -0
- package/src/components/multi-select-combo-box-overlay.css +18 -0
- package/src/components/multi-select-combo-box.css +102 -0
- package/src/components/notification-card.css +228 -0
- package/src/components/notification-container.css +60 -0
- package/src/components/number-field.css +53 -0
- package/src/components/password-field-button.css +19 -0
- package/src/components/password-field.css +24 -0
- package/src/components/popover-overlay.css +156 -0
- package/src/components/progress-bar.css +295 -0
- package/src/components/radio-button.css +156 -0
- package/src/components/radio-group.css +18 -0
- package/src/components/rich-text-editor-popup-overlay.css +27 -0
- package/src/components/rich-text-editor.css +485 -0
- package/src/components/scroller.css +40 -0
- package/src/components/select-overlay.css +54 -0
- package/src/components/select-value-button.css +57 -0
- package/src/components/select.css +60 -0
- package/src/components/side-nav-item.css +170 -0
- package/src/components/side-nav.css +102 -0
- package/src/components/split-layout.css +131 -0
- package/src/components/tab.css +246 -0
- package/src/components/tabs.css +285 -0
- package/src/components/tabsheet.css +59 -0
- package/src/components/text-area.css +116 -0
- package/src/components/time-picker-overlay.css +15 -0
- package/src/components/time-picker.css +36 -0
- package/src/components/tooltip-overlay.css +50 -0
- package/src/components/upload-file-list.css +24 -0
- package/src/components/upload-file.css +133 -0
- package/src/components/upload-icon.css +20 -0
- package/src/components/upload.css +56 -0
- package/src/components/user-tag.css +48 -0
- package/src/components/user-tags-overlay.css +64 -0
- package/src/components/vertical-layout.css +34 -0
- package/src/global/badge.css +167 -0
- package/src/global/color-scheme.css +99 -0
- package/src/global/typography.css +113 -0
- package/src/mixins/checkable-field.css +67 -0
- package/src/mixins/combo-box-loader.css +14 -0
- package/src/mixins/combo-box-overlay.css +30 -0
- package/src/mixins/dashboard-item.css +252 -0
- package/src/mixins/field-base.css +187 -0
- package/src/mixins/field-button.css +46 -0
- package/src/mixins/field-error-message.css +36 -0
- package/src/mixins/field-helper.css +62 -0
- package/src/mixins/field-label.css +62 -0
- package/src/mixins/field-required.css +26 -0
- package/src/mixins/grid-pro-editor.css +35 -0
- package/src/mixins/group-field.css +58 -0
- package/src/mixins/loader.css +48 -0
- package/src/mixins/menu-overlay-core.css +36 -0
- package/src/mixins/menu-overlay-ext.css +63 -0
- package/src/mixins/overlay.css +121 -0
- package/src/mixins/resizable-overlay.css +100 -0
- package/src/props/color.css +98 -0
- package/src/props/icons.css +61 -0
- package/src/props/reset.css +11 -0
- package/src/props/sizing.css +19 -0
- package/src/props/spacing.css +27 -0
- package/src/props/style.css +21 -0
- package/src/props/typography.css +24 -0
- package/src/utilities/accessibility.css +17 -0
- package/src/utilities/background.css +189 -0
- package/src/utilities/border.css +173 -0
- package/src/utilities/filter.css +37 -0
- package/src/utilities/flexbox-grid.css +781 -0
- package/src/utilities/layout.css +629 -0
- package/src/utilities/shadows.css +29 -0
- package/src/utilities/sizing.css +142 -0
- package/src/utilities/spacing.css +682 -0
- package/src/utilities/transition.css +46 -0
- package/src/utilities/typography.css +424 -0
- package/style.d.ts +0 -2
- package/style.js +1 -89
- package/utilities/transition.js +3 -2
- package/utility.css +17 -0
- package/vaadin-iconset.js +2 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 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_dialog-overlay {
|
|
7
|
+
[part='header'],
|
|
8
|
+
[part='header-content'],
|
|
9
|
+
[part='footer'] {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
flex: none;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
z-index: 1;
|
|
16
|
+
gap: var(--lumo-space-xs) var(--lumo-space-s);
|
|
17
|
+
line-height: var(--lumo-line-height-s);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[part='header'] {
|
|
21
|
+
flex-wrap: nowrap;
|
|
22
|
+
padding: var(--lumo-space-m);
|
|
23
|
+
background-color: var(--lumo-base-color);
|
|
24
|
+
border-radius: var(--lumo-border-radius-l) var(--lumo-border-radius-l) 0 0; /* Needed for Safari */
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[part='footer'] {
|
|
28
|
+
padding: var(--lumo-space-s) var(--lumo-space-m);
|
|
29
|
+
background-color: var(--lumo-contrast-5pct);
|
|
30
|
+
border-radius: 0 0 var(--lumo-border-radius-l) var(--lumo-border-radius-l); /* Needed for Safari */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[part='title'] {
|
|
34
|
+
font-size: var(--lumo-font-size-xl);
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
color: var(--lumo-header-text-color);
|
|
37
|
+
margin-inline-start: calc(var(--lumo-space-l) - var(--lumo-space-m));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
::slotted([slot='header-content']),
|
|
41
|
+
::slotted([slot='title']),
|
|
42
|
+
::slotted([slot='footer']) {
|
|
43
|
+
display: contents;
|
|
44
|
+
pointer-events: auto;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
::slotted([slot='title']) {
|
|
48
|
+
font: inherit !important;
|
|
49
|
+
overflow-wrap: anywhere;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[part='header-content'] {
|
|
53
|
+
flex: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([has-title]) [part='header-content'],
|
|
57
|
+
[part='footer'] {
|
|
58
|
+
justify-content: flex-end;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host(:not([has-title]):not([has-header])) [part='header'],
|
|
62
|
+
:host(:not([has-header])) [part='header-content'],
|
|
63
|
+
:host(:not([has-title])) [part='title'],
|
|
64
|
+
:host(:not([has-footer])) [part='footer'] {
|
|
65
|
+
display: none !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host(:is([has-title], [has-header], [has-footer])) [part='content'] {
|
|
69
|
+
height: auto;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/*
|
|
73
|
+
NOTE(platosha): Make some min-width to prevent collapsing of the content
|
|
74
|
+
taking the parent width, e. g., <vaadin-grid> and such.
|
|
75
|
+
*/
|
|
76
|
+
[part='content'] {
|
|
77
|
+
min-width: 12em; /* matches the default <vaadin-text-field> width */
|
|
78
|
+
padding: var(--lumo-space-l);
|
|
79
|
+
flex: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host([overflow]) [part='content'] {
|
|
83
|
+
overflow: auto;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([overflow~='top']) [part='header'] {
|
|
87
|
+
box-shadow: 0 1px 0 0 var(--lumo-contrast-10pct);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host([has-bounds-set]) [part='overlay'] {
|
|
91
|
+
max-width: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Optical centering */
|
|
95
|
+
:host::before,
|
|
96
|
+
:host::after {
|
|
97
|
+
content: '';
|
|
98
|
+
flex-basis: 0;
|
|
99
|
+
flex-grow: 1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host::after {
|
|
103
|
+
flex-grow: 1.1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[part='overlay'] {
|
|
107
|
+
border-radius: var(--lumo-border-radius-l);
|
|
108
|
+
box-shadow:
|
|
109
|
+
0 0 0 1px var(--lumo-shade-5pct),
|
|
110
|
+
var(--lumo-box-shadow-xl);
|
|
111
|
+
background-image: none;
|
|
112
|
+
outline: none;
|
|
113
|
+
-webkit-tap-highlight-color: transparent;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host(:is([has-header], [has-title])) [part='header'] + [part='content'] {
|
|
117
|
+
padding-top: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* No padding */
|
|
121
|
+
:host([theme~='no-padding']) [part='content'] {
|
|
122
|
+
padding: 0 !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Animations */
|
|
126
|
+
|
|
127
|
+
:host([opening]),
|
|
128
|
+
:host([closing]) {
|
|
129
|
+
animation: 0.25s lumo-overlay-dummy-animation;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:host([opening]) [part='overlay'] {
|
|
133
|
+
animation: 0.12s 0.05s vaadin-dialog-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@keyframes vaadin-dialog-enter {
|
|
137
|
+
0% {
|
|
138
|
+
opacity: 0;
|
|
139
|
+
transform: scale(0.95);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:host([closing]) [part='overlay'] {
|
|
144
|
+
animation: 0.1s 0.03s vaadin-dialog-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:host([closing]) [part='backdrop'] {
|
|
148
|
+
animation-delay: 0.05s;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@keyframes vaadin-dialog-exit {
|
|
152
|
+
100% {
|
|
153
|
+
opacity: 0;
|
|
154
|
+
transform: scale(1.02);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@media (forced-colors: active) {
|
|
159
|
+
[part='overlay'] {
|
|
160
|
+
outline: 3px solid !important;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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_drawer-toggle {
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
cursor: default;
|
|
12
|
+
position: relative;
|
|
13
|
+
outline: none;
|
|
14
|
+
width: var(--lumo-size-l);
|
|
15
|
+
height: var(--lumo-size-l);
|
|
16
|
+
min-width: auto;
|
|
17
|
+
margin: 0 var(--lumo-space-s);
|
|
18
|
+
padding: 0;
|
|
19
|
+
background: transparent;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[part='icon'],
|
|
23
|
+
[part='icon']::after,
|
|
24
|
+
[part='icon']::before {
|
|
25
|
+
position: inherit;
|
|
26
|
+
height: auto;
|
|
27
|
+
width: auto;
|
|
28
|
+
background: transparent;
|
|
29
|
+
top: auto;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[part='icon']::after,
|
|
33
|
+
[part='icon']::before {
|
|
34
|
+
content: '';
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[part='icon']::after {
|
|
38
|
+
top: 6px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[part='icon']::before {
|
|
42
|
+
top: 12px;
|
|
43
|
+
font-family: lumo-icons;
|
|
44
|
+
font-size: var(--lumo-icon-size-m);
|
|
45
|
+
content: var(--lumo-icons-menu);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([slot~='navbar']) {
|
|
49
|
+
color: var(--lumo-secondary-text-color);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@media lumo_components_email-field {
|
|
8
|
+
/* See https://github.com/vaadin/vaadin-text-field/issues/466 */
|
|
9
|
+
|
|
10
|
+
:host([dir='rtl']) [part='input-field'] {
|
|
11
|
+
direction: ltr;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input) {
|
|
15
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
|
|
19
|
+
direction: rtl;
|
|
20
|
+
text-align: left;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
24
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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_field-outline {
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
position: absolute;
|
|
11
|
+
inset: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
user-select: none;
|
|
16
|
+
opacity: 0;
|
|
17
|
+
--_active-user-color: transparent;
|
|
18
|
+
transition: opacity 0.3s;
|
|
19
|
+
mask-image: none !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host([has-active-user]) {
|
|
23
|
+
opacity: 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host::before {
|
|
27
|
+
content: '';
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset: 0;
|
|
30
|
+
box-shadow: 0 0 0 2px var(--_active-user-color);
|
|
31
|
+
border-radius: var(--lumo-border-radius-s);
|
|
32
|
+
transition: box-shadow 0.3s;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([context$='checkbox'])::before {
|
|
36
|
+
box-shadow:
|
|
37
|
+
0 0 0 2px var(--lumo-base-color),
|
|
38
|
+
0 0 0 4px var(--_active-user-color);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host([context$='radio-button'])::before {
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
box-shadow:
|
|
44
|
+
0 0 0 3px var(--lumo-base-color),
|
|
45
|
+
0 0 0 5px var(--_active-user-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([context$='item'])::before {
|
|
49
|
+
box-shadow: inset 0 0 0 2px var(--_active-user-color);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 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_form-item {
|
|
7
|
+
[part='label'] {
|
|
8
|
+
/* font-weight, margin-bottom, transition and line-height same as for part label in text-field */
|
|
9
|
+
color: var(--lumo-secondary-text-color);
|
|
10
|
+
font-family: var(--lumo-font-family);
|
|
11
|
+
font-size: var(--lumo-font-size-s);
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
margin-top: var(--lumo-space-m);
|
|
14
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
15
|
+
margin-bottom: var(--lumo-space-xs);
|
|
16
|
+
line-height: 1.333;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[part='required-indicator']::after {
|
|
20
|
+
content: var(--lumo-required-field-indicator, '\2022');
|
|
21
|
+
transition: opacity 0.2s;
|
|
22
|
+
opacity: 0;
|
|
23
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
|
|
24
|
+
position: relative;
|
|
25
|
+
width: 1em;
|
|
26
|
+
text-align: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([required]) [part='required-indicator']::after {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([invalid]) [part='required-indicator']::after {
|
|
34
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 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_form-layout {
|
|
7
|
+
:host {
|
|
8
|
+
--vaadin-form-layout-column-spacing: var(--lumo-space-l);
|
|
9
|
+
--vaadin-form-layout-row-spacing: 0;
|
|
10
|
+
--vaadin-form-layout-label-spacing: 1em;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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_grid-filter {
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
::slotted(*) {
|
|
13
|
+
width: 100%;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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_grid-pro-edit-select {
|
|
7
|
+
:host([theme~='grid-pro-editor']) [part='toggle-button'] {
|
|
8
|
+
margin-right: var(--lumo-space-xs);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([theme~='grid-pro-editor']) [part='input-field'] ::slotted([slot='value']) {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
padding: 0 var(--lumo-space-m);
|
|
14
|
+
font-size: var(--lumo-font-size-m);
|
|
15
|
+
/* prevent selection on editor focus */
|
|
16
|
+
-webkit-user-select: none;
|
|
17
|
+
user-select: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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_grid-pro {
|
|
7
|
+
:host([navigating]) [part~='cell']:active::before {
|
|
8
|
+
content: '';
|
|
9
|
+
position: absolute;
|
|
10
|
+
inset: 0;
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[part~='editable-cell'],
|
|
16
|
+
[part~='editable-cell'] ::slotted(vaadin-grid-cell-content) {
|
|
17
|
+
cursor: var(--lumo-clickable-cursor);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[part~='editable-cell']:hover,
|
|
21
|
+
[part~='editable-cell']:focus {
|
|
22
|
+
background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Indicate editable cells */
|
|
26
|
+
|
|
27
|
+
:host([theme~='highlight-editable-cells']) [part~='editable-cell'] {
|
|
28
|
+
background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([theme~='highlight-editable-cells']) [part~='editable-cell']:hover,
|
|
32
|
+
:host([theme~='highlight-editable-cells']) [part~='editable-cell']:focus {
|
|
33
|
+
background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-10pct), var(--lumo-contrast-10pct));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Indicate read-only cells */
|
|
37
|
+
|
|
38
|
+
/* prettier-ignore */
|
|
39
|
+
:host([theme~='highlight-read-only-cells']) [tabindex]:not([part~='editable-cell']):not([part~='header-cell']):not([part~='footer-cell']) {
|
|
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
|
+
|
|
49
|
+
/* Loading editor cell styles are used by Flow GridPro */
|
|
50
|
+
:host([loading-editor]) [part~='focused-cell']::before {
|
|
51
|
+
content: '';
|
|
52
|
+
position: absolute;
|
|
53
|
+
inset: 0;
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
56
|
+
animation: vaadin-grid-pro-loading-editor 1.4s infinite;
|
|
57
|
+
opacity: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@keyframes vaadin-grid-pro-loading-editor {
|
|
61
|
+
50% {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[part~='updating-cell']::after {
|
|
67
|
+
content: '';
|
|
68
|
+
position: absolute;
|
|
69
|
+
inset: var(--_cell-padding);
|
|
70
|
+
margin: var(--_focus-ring-width);
|
|
71
|
+
border-radius: 4px;
|
|
72
|
+
background-size: max(4em, 50%);
|
|
73
|
+
background-repeat: no-repeat;
|
|
74
|
+
background-position: min(-200%, -4em) 0;
|
|
75
|
+
background-image: linear-gradient(90deg, transparent, var(--lumo-contrast-10pct), transparent);
|
|
76
|
+
animation: vaadin-grid-pro-updating-cell 1.3s ease-out infinite;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@keyframes vaadin-grid-pro-updating-cell {
|
|
80
|
+
100% {
|
|
81
|
+
background-position: max(300%, 8em) 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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_grid-sorter {
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
justify-content: flex-start;
|
|
11
|
+
align-items: baseline;
|
|
12
|
+
-webkit-user-select: none;
|
|
13
|
+
user-select: none;
|
|
14
|
+
cursor: var(--lumo-clickable-cursor);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[part='content'] {
|
|
18
|
+
flex: 1 1 auto;
|
|
19
|
+
display: inline-block;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
text-overflow: ellipsis;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[part='indicators'] {
|
|
25
|
+
position: relative;
|
|
26
|
+
align-self: center;
|
|
27
|
+
flex: none;
|
|
28
|
+
margin-left: var(--lumo-space-s);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[part='order'] {
|
|
32
|
+
display: inline;
|
|
33
|
+
vertical-align: super;
|
|
34
|
+
font-size: var(--lumo-font-size-xxs);
|
|
35
|
+
line-height: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[part='indicators']::before {
|
|
39
|
+
font-family: 'vaadin-grid-sorter-icons';
|
|
40
|
+
display: inline-block;
|
|
41
|
+
transform: scale(0.8);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host(:not([direction])) [part='indicators']::before {
|
|
45
|
+
content: '\e901';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([direction='asc']) [part='indicators']::before {
|
|
49
|
+
content: '\e900';
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([direction='desc']) [part='indicators']::before {
|
|
53
|
+
content: '\e902';
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host(:not([direction]):not(:hover)) [part='indicators'] {
|
|
57
|
+
color: var(--lumo-tertiary-text-color);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([direction]) {
|
|
61
|
+
color: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* RTL specific styles */
|
|
65
|
+
|
|
66
|
+
:host([dir='rtl']) [part='indicators'] {
|
|
67
|
+
margin-right: var(--lumo-space-s);
|
|
68
|
+
margin-left: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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_grid-tree-toggle {
|
|
7
|
+
:host {
|
|
8
|
+
--vaadin-grid-tree-toggle-level-offset: 2em;
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
align-items: center;
|
|
12
|
+
vertical-align: middle;
|
|
13
|
+
transform: translateX(calc(var(--lumo-space-s) * -1));
|
|
14
|
+
-webkit-tap-highlight-color: transparent;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host([hidden]) {
|
|
18
|
+
display: none !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host(:not([leaf])) {
|
|
22
|
+
cursor: default;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
#level-spacer,
|
|
26
|
+
[part='toggle'] {
|
|
27
|
+
flex: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#level-spacer {
|
|
31
|
+
display: inline-block;
|
|
32
|
+
width: calc(var(--_level, '0') * var(--vaadin-grid-tree-toggle-level-offset));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[part='toggle']::before {
|
|
36
|
+
line-height: 1em; /* make icon font metrics not affect baseline */
|
|
37
|
+
font-family: 'lumo-icons';
|
|
38
|
+
display: inline-block;
|
|
39
|
+
height: 100%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host(:not([expanded])) [part='toggle']::before {
|
|
43
|
+
content: var(--lumo-icons-angle-right);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([expanded]) [part='toggle']::before {
|
|
47
|
+
content: var(--lumo-icons-angle-right);
|
|
48
|
+
transform: rotate(90deg);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host([leaf]) [part='toggle'] {
|
|
52
|
+
visibility: hidden;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
slot {
|
|
56
|
+
display: block;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[part='toggle'] {
|
|
62
|
+
display: inline-block;
|
|
63
|
+
font-size: 1.5em;
|
|
64
|
+
line-height: 1;
|
|
65
|
+
width: 1em;
|
|
66
|
+
height: 1em;
|
|
67
|
+
text-align: center;
|
|
68
|
+
color: var(--lumo-contrast-50pct);
|
|
69
|
+
cursor: var(--lumo-clickable-cursor);
|
|
70
|
+
/* Increase touch target area */
|
|
71
|
+
padding: calc(1em / 3);
|
|
72
|
+
margin: calc(1em / -3);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host(:not([dir='rtl'])) [part='toggle'] {
|
|
76
|
+
margin-right: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (hover: hover) {
|
|
80
|
+
:host(:hover) [part='toggle'] {
|
|
81
|
+
color: var(--lumo-contrast-80pct);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* RTL specific styles */
|
|
86
|
+
|
|
87
|
+
:host([dir='rtl']) {
|
|
88
|
+
margin-left: 0;
|
|
89
|
+
margin-right: calc(var(--lumo-space-s) * -1);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([dir='rtl']) [part='toggle'] {
|
|
93
|
+
margin-left: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host([dir='rtl'][expanded]) [part='toggle']::before {
|
|
97
|
+
transform: rotate(-90deg);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:host([dir='rtl']:not([expanded])) [part='toggle']::before,
|
|
101
|
+
:host([dir='rtl'][expanded]) [part='toggle']::before {
|
|
102
|
+
content: var(--lumo-icons-angle-left);
|
|
103
|
+
}
|
|
104
|
+
}
|