@vaadin/vaadin-lumo-styles 24.8.4 → 25.0.0-alpha10

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.
Files changed (226) hide show
  1. package/auto-complete.css +3 -73
  2. package/components/accordion-heading.css +14 -0
  3. package/components/accordion-panel.css +15 -0
  4. package/components/accordion.css +7 -0
  5. package/components/app-layout.css +11 -0
  6. package/components/avatar-group.css +31 -0
  7. package/components/avatar.css +17 -0
  8. package/components/button.css +12 -0
  9. package/components/card.css +50 -0
  10. package/components/charts.css +11 -0
  11. package/components/checkbox-group.css +23 -0
  12. package/components/checkbox.css +14 -0
  13. package/components/combo-box.css +47 -0
  14. package/components/confirm-dialog.css +17 -0
  15. package/components/context-menu.css +32 -0
  16. package/components/crud.css +40 -0
  17. package/components/custom-field.css +20 -0
  18. package/components/dashboard.css +34 -0
  19. package/components/date-picker.css +49 -0
  20. package/components/date-time-picker.css +28 -0
  21. package/components/details-summary.css +11 -0
  22. package/components/details.css +12 -0
  23. package/components/dialog.css +16 -0
  24. package/components/drawer-toggle.css +14 -0
  25. package/components/email-field.css +25 -0
  26. package/components/field-highlighter.css +22 -0
  27. package/components/form-item.css +11 -0
  28. package/components/form-layout.css +11 -0
  29. package/components/grid-filter-column.css +6 -0
  30. package/components/grid-filter.css +12 -0
  31. package/components/grid-pro-edit-column.css +48 -0
  32. package/components/grid-pro.css +14 -0
  33. package/components/grid-selection-column.css +6 -0
  34. package/components/grid-sort-column.css +6 -0
  35. package/components/grid-sorter.css +19 -0
  36. package/components/grid-tree-column.css +6 -0
  37. package/components/grid-tree-toggle.css +11 -0
  38. package/components/grid.css +11 -0
  39. package/components/horizontal-layout.css +11 -0
  40. package/components/icon.css +11 -0
  41. package/components/input-container.css +11 -0
  42. package/components/integer-field.css +25 -0
  43. package/components/item.css +11 -0
  44. package/components/list-box.css +11 -0
  45. package/components/login-form.css +14 -0
  46. package/components/login.css +15 -0
  47. package/components/map.css +11 -0
  48. package/components/master-detail-layout.css +19 -0
  49. package/components/menu-bar.css +47 -0
  50. package/components/message-input.css +13 -0
  51. package/components/message-list.css +6 -0
  52. package/components/message.css +12 -0
  53. package/components/multi-select-combo-box.css +61 -0
  54. package/components/notification.css +15 -0
  55. package/components/number-field.css +25 -0
  56. package/components/overlay.css +11 -0
  57. package/components/password-field.css +32 -0
  58. package/components/popover.css +14 -0
  59. package/components/progress-bar.css +11 -0
  60. package/components/radio-button.css +14 -0
  61. package/components/radio-group.css +23 -0
  62. package/components/rich-text-editor.css +26 -0
  63. package/components/scroller.css +11 -0
  64. package/components/select.css +48 -0
  65. package/components/side-nav-item.css +14 -0
  66. package/components/side-nav.css +12 -0
  67. package/components/split-layout.css +11 -0
  68. package/components/tab.css +11 -0
  69. package/components/tabs.css +12 -0
  70. package/components/tabsheet.css +19 -0
  71. package/components/text-area.css +25 -0
  72. package/components/text-field.css +23 -0
  73. package/components/time-picker.css +43 -0
  74. package/components/tooltip.css +14 -0
  75. package/components/upload.css +28 -0
  76. package/components/vertical-layout.css +11 -0
  77. package/components.css +71 -0
  78. package/font-icons.js +28 -26
  79. package/global.css +8 -0
  80. package/lumo.css +8 -0
  81. package/mixins/input-field-shared.js +1 -2
  82. package/mixins/menu-overlay.js +0 -2
  83. package/mixins/required-field.js +0 -1
  84. package/package.json +17 -15
  85. package/props.css +12 -0
  86. package/src/components/accordion-heading.css +42 -0
  87. package/src/components/accordion-panel.css +38 -0
  88. package/src/components/app-layout.css +193 -0
  89. package/src/components/avatar-group-menu-item.css +22 -0
  90. package/src/components/avatar-group-overlay.css +15 -0
  91. package/src/components/avatar-group.css +67 -0
  92. package/src/components/avatar.css +86 -0
  93. package/src/components/button.css +334 -0
  94. package/src/components/card.css +38 -0
  95. package/src/components/chart.css +85 -0
  96. package/src/components/checkbox-group.css +18 -0
  97. package/src/components/checkbox.css +341 -0
  98. package/src/components/combo-box-item.css +18 -0
  99. package/src/components/combo-box-overlay.css +15 -0
  100. package/src/components/combo-box.css +14 -0
  101. package/src/components/confirm-dialog-overlay.css +59 -0
  102. package/src/components/context-menu-item.css +39 -0
  103. package/src/components/context-menu-list-box.css +40 -0
  104. package/src/components/context-menu-overlay.css +41 -0
  105. package/src/components/crud-dialog-overlay.css +57 -0
  106. package/src/components/crud-edit.css +30 -0
  107. package/src/components/crud.css +157 -0
  108. package/src/components/custom-field.css +102 -0
  109. package/src/components/dashboard-layout.css +94 -0
  110. package/src/components/dashboard-section.css +113 -0
  111. package/src/components/dashboard-widget.css +224 -0
  112. package/src/components/dashboard.css +23 -0
  113. package/src/components/date-picker-month-calendar.css +192 -0
  114. package/src/components/date-picker-overlay-content.css +161 -0
  115. package/src/components/date-picker-overlay.css +60 -0
  116. package/src/components/date-picker-year.css +35 -0
  117. package/src/components/date-picker.css +41 -0
  118. package/src/components/date-time-picker.css +36 -0
  119. package/src/components/details-summary.css +131 -0
  120. package/src/components/details.css +37 -0
  121. package/src/components/dialog-overlay.css +173 -0
  122. package/src/components/drawer-toggle.css +51 -0
  123. package/src/components/email-field.css +26 -0
  124. package/src/components/field-outline.css +51 -0
  125. package/src/components/form-item.css +36 -0
  126. package/src/components/form-layout.css +12 -0
  127. package/src/components/grid-filter.css +16 -0
  128. package/src/components/grid-pro-edit-select.css +19 -0
  129. package/src/components/grid-pro.css +84 -0
  130. package/src/components/grid-sorter.css +70 -0
  131. package/src/components/grid-tree-toggle.css +104 -0
  132. package/src/components/grid.css +755 -0
  133. package/src/components/horizontal-layout.css +34 -0
  134. package/src/components/icon.css +11 -0
  135. package/src/components/input-container.css +228 -0
  136. package/src/components/item.css +94 -0
  137. package/src/components/list-box.css +31 -0
  138. package/src/components/login-form-wrapper.css +113 -0
  139. package/src/components/login-overlay-wrapper.css +189 -0
  140. package/src/components/map.css +182 -0
  141. package/src/components/menu-bar-button.css +128 -0
  142. package/src/components/menu-bar-item.css +23 -0
  143. package/src/components/menu-bar-overlay.css +10 -0
  144. package/src/components/menu-bar.css +31 -0
  145. package/src/components/message-input.css +30 -0
  146. package/src/components/message.css +82 -0
  147. package/src/components/multi-select-combo-box-chip.css +113 -0
  148. package/src/components/multi-select-combo-box-container.css +20 -0
  149. package/src/components/multi-select-combo-box-item.css +13 -0
  150. package/src/components/multi-select-combo-box-overlay.css +18 -0
  151. package/src/components/multi-select-combo-box.css +102 -0
  152. package/src/components/notification-card.css +228 -0
  153. package/src/components/notification-container.css +60 -0
  154. package/src/components/number-field.css +53 -0
  155. package/src/components/password-field-button.css +19 -0
  156. package/src/components/password-field.css +24 -0
  157. package/src/components/popover-overlay.css +156 -0
  158. package/src/components/progress-bar.css +295 -0
  159. package/src/components/radio-button.css +156 -0
  160. package/src/components/radio-group.css +18 -0
  161. package/src/components/rich-text-editor-popup-overlay.css +27 -0
  162. package/src/components/rich-text-editor.css +485 -0
  163. package/src/components/scroller.css +40 -0
  164. package/src/components/select-overlay.css +54 -0
  165. package/src/components/select-value-button.css +57 -0
  166. package/src/components/select.css +60 -0
  167. package/src/components/side-nav-item.css +170 -0
  168. package/src/components/side-nav.css +102 -0
  169. package/src/components/split-layout.css +131 -0
  170. package/src/components/tab.css +246 -0
  171. package/src/components/tabs.css +285 -0
  172. package/src/components/tabsheet.css +59 -0
  173. package/src/components/text-area.css +116 -0
  174. package/src/components/time-picker-overlay.css +15 -0
  175. package/src/components/time-picker.css +36 -0
  176. package/src/components/tooltip-overlay.css +50 -0
  177. package/src/components/upload-file-list.css +24 -0
  178. package/src/components/upload-file.css +133 -0
  179. package/src/components/upload-icon.css +20 -0
  180. package/src/components/upload.css +56 -0
  181. package/src/components/user-tag.css +48 -0
  182. package/src/components/user-tags-overlay.css +64 -0
  183. package/src/components/vertical-layout.css +34 -0
  184. package/src/global/badge.css +167 -0
  185. package/src/global/color-scheme.css +99 -0
  186. package/src/global/typography.css +113 -0
  187. package/src/mixins/checkable-field.css +67 -0
  188. package/src/mixins/combo-box-loader.css +14 -0
  189. package/src/mixins/combo-box-overlay.css +30 -0
  190. package/src/mixins/dashboard-item.css +252 -0
  191. package/src/mixins/field-base.css +187 -0
  192. package/src/mixins/field-button.css +46 -0
  193. package/src/mixins/field-error-message.css +36 -0
  194. package/src/mixins/field-helper.css +62 -0
  195. package/src/mixins/field-label.css +62 -0
  196. package/src/mixins/field-required.css +26 -0
  197. package/src/mixins/grid-pro-editor.css +35 -0
  198. package/src/mixins/group-field.css +58 -0
  199. package/src/mixins/loader.css +48 -0
  200. package/src/mixins/menu-overlay-core.css +36 -0
  201. package/src/mixins/menu-overlay-ext.css +63 -0
  202. package/src/mixins/overlay.css +121 -0
  203. package/src/mixins/resizable-overlay.css +99 -0
  204. package/src/props/color.css +98 -0
  205. package/src/props/icons.css +61 -0
  206. package/src/props/reset.css +11 -0
  207. package/src/props/sizing.css +19 -0
  208. package/src/props/spacing.css +27 -0
  209. package/src/props/style.css +21 -0
  210. package/src/props/typography.css +24 -0
  211. package/src/utilities/accessibility.css +17 -0
  212. package/src/utilities/background.css +189 -0
  213. package/src/utilities/border.css +173 -0
  214. package/src/utilities/filter.css +37 -0
  215. package/src/utilities/flexbox-grid.css +781 -0
  216. package/src/utilities/layout.css +629 -0
  217. package/src/utilities/shadows.css +29 -0
  218. package/src/utilities/sizing.css +142 -0
  219. package/src/utilities/spacing.css +682 -0
  220. package/src/utilities/transition.css +46 -0
  221. package/src/utilities/typography.css +424 -0
  222. package/style.d.ts +0 -2
  223. package/style.js +1 -89
  224. package/utilities/transition.js +3 -2
  225. package/utility.css +17 -0
  226. package/vaadin-iconset.js +2 -0
@@ -0,0 +1,34 @@
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_horizontal-layout {
7
+ :host([theme~='margin']) {
8
+ margin: var(--lumo-space-m);
9
+ }
10
+
11
+ :host([theme~='padding']) {
12
+ padding: var(--lumo-space-m);
13
+ }
14
+
15
+ :host([theme~='spacing-xs']) {
16
+ gap: var(--lumo-space-xs);
17
+ }
18
+
19
+ :host([theme~='spacing-s']) {
20
+ gap: var(--lumo-space-s);
21
+ }
22
+
23
+ :host([theme~='spacing']) {
24
+ gap: var(--lumo-space-m);
25
+ }
26
+
27
+ :host([theme~='spacing-l']) {
28
+ gap: var(--lumo-space-l);
29
+ }
30
+
31
+ :host([theme~='spacing-xl']) {
32
+ gap: var(--lumo-space-xl);
33
+ }
34
+ }
@@ -0,0 +1,11 @@
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_icon {
7
+ :host {
8
+ width: var(--lumo-icon-size-m);
9
+ height: var(--lumo-icon-size-m);
10
+ }
11
+ }
@@ -0,0 +1,228 @@
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_input-container {
7
+ :host {
8
+ display: flex;
9
+ align-items: center;
10
+ flex: 0 1 auto;
11
+ --_border-radius: var(--vaadin-input-field-border-radius, 0);
12
+ --_input-border-width: var(--vaadin-input-field-border-width, 0px);
13
+ box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
14
+ background: var(--_background);
15
+ padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
16
+ font-weight: var(--vaadin-input-field-value-font-weight, 500);
17
+ line-height: 1;
18
+ position: relative;
19
+ cursor: text;
20
+ box-sizing: border-box;
21
+ border-radius:
22
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
23
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
24
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
25
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
26
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
27
+ /* Fallback */
28
+ --_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
29
+ --_input-height: var(--lumo-text-field-size, var(--lumo-size-m));
30
+ /* Default values */
31
+ --_background: var(--vaadin-input-field-background, var(--lumo-contrast-10pct));
32
+ --_hover-highlight: var(--vaadin-input-field-hover-highlight, var(--lumo-contrast-50pct));
33
+ --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
34
+ --_icon-color: var(--vaadin-input-field-icon-color, var(--lumo-contrast-60pct));
35
+ --_icon-size: var(--vaadin-input-field-icon-size, var(--lumo-icon-size-m));
36
+ --_invalid-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-10pct));
37
+ --_invalid-hover-highlight: var(--vaadin-input-field-invalid-hover-highlight, var(--lumo-error-color-50pct));
38
+ --_disabled-background: var(--vaadin-input-field-disabled-background, var(--lumo-contrast-5pct));
39
+ --_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
40
+ }
41
+
42
+ :host([dir='rtl']) {
43
+ border-radius:
44
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
45
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
46
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
47
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
48
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
49
+ }
50
+
51
+ /* Used for hover and activation effects */
52
+ :host::after {
53
+ content: '';
54
+ position: absolute;
55
+ inset: 0;
56
+ border-radius: inherit;
57
+ pointer-events: none;
58
+ background: var(--_hover-highlight);
59
+ opacity: 0;
60
+ transition:
61
+ transform 0.15s,
62
+ opacity 0.2s;
63
+ transform-origin: 100% 0;
64
+ }
65
+
66
+ :host([hidden]) {
67
+ display: none !important;
68
+ }
69
+
70
+ /* Reset the native input styles */
71
+ ::slotted(input) {
72
+ appearance: none;
73
+ flex: auto;
74
+ white-space: nowrap;
75
+ overflow: hidden;
76
+ width: 100%;
77
+ height: 100%;
78
+ outline: none;
79
+ margin: 0;
80
+ padding: 0;
81
+ border: 0;
82
+ border-radius: 0;
83
+ min-width: 0;
84
+ font: inherit;
85
+ line-height: normal;
86
+ color: inherit;
87
+ background-color: transparent;
88
+ /* Disable default invalid style in Firefox */
89
+ box-shadow: none;
90
+ }
91
+
92
+ ::slotted(*) {
93
+ flex: none;
94
+ }
95
+
96
+ ::slotted(:is(input, textarea))::placeholder {
97
+ /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
98
+ /* because ::slotted(...)::placeholder does not work in Safari. */
99
+ font: inherit;
100
+ color: inherit;
101
+ /* Override default opacity in Firefox */
102
+ opacity: 1;
103
+ }
104
+
105
+ ::slotted(:not([slot$='fix'])) {
106
+ cursor: inherit;
107
+ min-height: var(--vaadin-input-field-height, var(--_input-height));
108
+ padding: 0 0.25em;
109
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
110
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
111
+ }
112
+
113
+ /* Read-only */
114
+ :host([readonly]) {
115
+ color: var(--lumo-secondary-text-color);
116
+ background-color: transparent;
117
+ cursor: default;
118
+ }
119
+
120
+ :host([readonly])::after {
121
+ background-color: transparent;
122
+ opacity: 1;
123
+ border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-30pct));
124
+ }
125
+
126
+ /* Disabled */
127
+ :host([disabled]) {
128
+ background: var(--_disabled-background);
129
+ }
130
+
131
+ :host([disabled]) ::slotted(:not([slot$='fix'])) {
132
+ -webkit-text-fill-color: var(--_disabled-value-color);
133
+ color: var(--_disabled-value-color);
134
+ }
135
+
136
+ /* Invalid */
137
+ :host([invalid]) {
138
+ background: var(--_invalid-background);
139
+ }
140
+
141
+ :host([invalid]:not([readonly]))::after {
142
+ background: var(--_invalid-hover-highlight);
143
+ }
144
+
145
+ /* Slotted icons */
146
+ ::slotted(vaadin-icon) {
147
+ color: var(--_icon-color);
148
+ width: var(--_icon-size);
149
+ height: var(--_icon-size);
150
+ }
151
+
152
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
153
+ ::slotted(vaadin-icon[icon^='vaadin:']) {
154
+ padding: 0.25em;
155
+ box-sizing: border-box !important;
156
+ }
157
+
158
+ /* Text align */
159
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
160
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
161
+ }
162
+
163
+ @-moz-document url-prefix() {
164
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
165
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
166
+ }
167
+ }
168
+
169
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
170
+ text-align: start;
171
+ --_lumo-text-field-overflow-mask-image: none;
172
+ }
173
+
174
+ :host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
175
+ text-align: center;
176
+ --_lumo-text-field-overflow-mask-image: none;
177
+ }
178
+
179
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
180
+ text-align: end;
181
+ --_lumo-text-field-overflow-mask-image: none;
182
+ }
183
+
184
+ @-moz-document url-prefix() {
185
+ /* Firefox is smart enough to align overflowing text to right */
186
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
187
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
188
+ }
189
+ }
190
+
191
+ @-moz-document url-prefix() {
192
+ /* Firefox is smart enough to align overflowing text to right */
193
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
194
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
195
+ }
196
+ }
197
+
198
+ /* RTL specific styles */
199
+ :host([dir='rtl'])::after {
200
+ transform-origin: 0% 0;
201
+ }
202
+
203
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
204
+ --_lumo-text-field-overflow-mask-image: none;
205
+ }
206
+
207
+ :host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
208
+ --_lumo-text-field-overflow-mask-image: none;
209
+ }
210
+
211
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
212
+ --_lumo-text-field-overflow-mask-image: none;
213
+ }
214
+
215
+ @-moz-document url-prefix() {
216
+ /* Firefox is smart enough to align overflowing text to right */
217
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
218
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
219
+ }
220
+ }
221
+
222
+ @-moz-document url-prefix() {
223
+ /* Firefox is smart enough to align overflowing text to right */
224
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
225
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
226
+ }
227
+ }
228
+ }
@@ -0,0 +1,94 @@
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_item {
7
+ :host {
8
+ display: flex;
9
+ align-items: center;
10
+ box-sizing: border-box;
11
+ font-family: var(--lumo-font-family);
12
+ font-size: var(--lumo-font-size-m);
13
+ line-height: var(--lumo-line-height-xs);
14
+ padding: 0.5em calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4) 0.5em
15
+ var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
16
+ min-height: var(--lumo-size-m);
17
+ outline: none;
18
+ border-radius: var(--lumo-border-radius-m);
19
+ cursor: var(--lumo-clickable-cursor);
20
+ -webkit-font-smoothing: antialiased;
21
+ -moz-osx-font-smoothing: grayscale;
22
+ -webkit-tap-highlight-color: var(--lumo-primary-color-10pct);
23
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
24
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
25
+ --_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
26
+ }
27
+
28
+ :host([hidden]) {
29
+ display: none !important;
30
+ }
31
+
32
+ /* Checkmark */
33
+ [part='checkmark']::before {
34
+ display: var(--_lumo-item-selected-icon-display, none);
35
+ content: var(--lumo-icons-checkmark);
36
+ font-family: lumo-icons;
37
+ font-size: var(--lumo-icon-size-m);
38
+ line-height: 1;
39
+ font-weight: normal;
40
+ width: 1em;
41
+ height: 1em;
42
+ margin: calc((1 - var(--lumo-line-height-xs)) * var(--lumo-font-size-m) / 2) 0;
43
+ color: var(--_selection-color-text);
44
+ flex: none;
45
+ opacity: 0;
46
+ transition:
47
+ transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2),
48
+ opacity 0.1s;
49
+ }
50
+
51
+ :host([selected]) [part='checkmark']::before {
52
+ opacity: 1;
53
+ }
54
+
55
+ :host([active]:not([selected])) [part='checkmark']::before {
56
+ transform: scale(0.8);
57
+ opacity: 0;
58
+ transition-duration: 0s;
59
+ }
60
+
61
+ [part='content'] {
62
+ flex: auto;
63
+ }
64
+
65
+ /* Disabled */
66
+ :host([disabled]) {
67
+ color: var(--lumo-disabled-text-color);
68
+ cursor: default;
69
+ pointer-events: none;
70
+ }
71
+
72
+ /* TODO a workaround until we have "focus-follows-mouse". After that, use the hover style for focus-ring as well */
73
+ @media (any-hover: hover) {
74
+ :host(:hover:not([disabled])) {
75
+ background-color: var(--lumo-primary-color-10pct);
76
+ }
77
+ }
78
+
79
+ :host([focus-ring]:not([disabled])) {
80
+ box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
81
+ }
82
+
83
+ /* RTL specific styles */
84
+ :host([dir='rtl']) {
85
+ padding-left: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
86
+ padding-right: var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
87
+ }
88
+
89
+ /* Slotted icons */
90
+ :host ::slotted(vaadin-icon) {
91
+ width: var(--lumo-icon-size-m);
92
+ height: var(--lumo-icon-size-m);
93
+ }
94
+ }
@@ -0,0 +1,31 @@
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_list-box {
7
+ :host {
8
+ display: flex;
9
+ -webkit-tap-highlight-color: transparent;
10
+ --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
11
+ }
12
+
13
+ :host([hidden]) {
14
+ display: none !important;
15
+ }
16
+
17
+ [part='items'] {
18
+ height: 100%;
19
+ width: 100%;
20
+ overflow-y: auto;
21
+ }
22
+
23
+ /* Dividers */
24
+ [part='items'] ::slotted(hr) {
25
+ height: 1px;
26
+ border: 0;
27
+ padding: 0;
28
+ margin: var(--lumo-space-s) var(--lumo-border-radius-m);
29
+ background-color: var(--lumo-contrast-10pct);
30
+ }
31
+ }
@@ -0,0 +1,113 @@
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_login-form-wrapper {
7
+ :host {
8
+ display: flex;
9
+ flex-direction: column;
10
+ box-sizing: border-box;
11
+ padding: var(--lumo-space-l);
12
+ overflow: hidden;
13
+ font-family: var(--lumo-font-family);
14
+ font-size: var(--lumo-font-size-m);
15
+ line-height: var(--lumo-line-height-m);
16
+ -webkit-text-size-adjust: 100%;
17
+ -webkit-font-smoothing: antialiased;
18
+ -moz-osx-font-smoothing: grayscale;
19
+ width: calc(var(--lumo-size-m) * 10);
20
+ max-width: 100%;
21
+ background: var(--lumo-base-color) linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
22
+ }
23
+
24
+ :host([hidden]) {
25
+ display: none !important;
26
+ }
27
+
28
+ ::slotted(form) {
29
+ display: flex;
30
+ flex-direction: column;
31
+ }
32
+
33
+ ::slotted([slot='form-title']) {
34
+ margin: 0;
35
+ margin-top: calc(var(--lumo-font-size-xxxl) - var(--lumo-font-size-xxl));
36
+ color: var(--lumo-header-text-color);
37
+ font-size: var(--lumo-font-size-xxl);
38
+ font-weight: 600;
39
+ line-height: var(--lumo-line-height-xs);
40
+ }
41
+
42
+ [part='error-message'] {
43
+ position: relative;
44
+ background-color: var(--lumo-error-color-10pct);
45
+ padding: var(--lumo-space-m);
46
+ border-radius: var(--lumo-border-radius-m);
47
+ margin-top: var(--lumo-space-m);
48
+ margin-bottom: var(--lumo-space-s);
49
+ color: var(--lumo-error-text-color);
50
+ }
51
+
52
+ strong {
53
+ font-weight: 600;
54
+ }
55
+
56
+ ::slotted([slot='submit']) {
57
+ margin-top: var(--lumo-space-l);
58
+ margin-bottom: var(--lumo-space-s);
59
+ }
60
+
61
+ ::slotted([slot='forgot-password']) {
62
+ margin: var(--lumo-space-s) auto;
63
+ }
64
+
65
+ :host(:not([dir='rtl'])) [part='error-message'] {
66
+ padding-left: var(--lumo-size-m);
67
+ }
68
+
69
+ :host([dir='rtl']) [part='error-message'] {
70
+ padding-right: var(--lumo-size-m);
71
+ }
72
+
73
+ [part='error-message']::before {
74
+ content: var(--lumo-icons-error);
75
+ font-family: lumo-icons;
76
+ font-size: var(--lumo-icon-size-m);
77
+ position: absolute;
78
+ width: var(--lumo-size-m);
79
+ height: 1em;
80
+ line-height: 1;
81
+ text-align: center;
82
+ }
83
+
84
+ :host(:not([dir='rtl'])) [part='error-message']::before {
85
+ /* Visual centering */
86
+ margin-left: calc(var(--lumo-size-m) * -0.95);
87
+ }
88
+
89
+ :host([dir='rtl']) [part='error-message']::before {
90
+ /* Visual centering */
91
+ margin-right: calc(var(--lumo-size-m) * -0.95);
92
+ }
93
+
94
+ [part='error-message-title'] {
95
+ display: block;
96
+ margin: 0 0 0.25em;
97
+ color: inherit;
98
+ line-height: var(--lumo-line-height-xs);
99
+ }
100
+
101
+ [part='error-message-description'] {
102
+ font-size: var(--lumo-font-size-s);
103
+ line-height: var(--lumo-line-height-s);
104
+ margin: 0;
105
+ opacity: 0.9;
106
+ }
107
+
108
+ [part='footer'] {
109
+ font-size: var(--lumo-font-size-xs);
110
+ line-height: var(--lumo-line-height-s);
111
+ color: var(--lumo-secondary-text-color);
112
+ }
113
+ }
@@ -0,0 +1,189 @@
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_login-overlay-wrapper {
7
+ :host {
8
+ inset: 0;
9
+ font-family: var(--lumo-font-family);
10
+ font-size: var(--lumo-font-size-m);
11
+ line-height: var(--lumo-line-height-m);
12
+ -webkit-text-size-adjust: 100%;
13
+ -webkit-font-smoothing: antialiased;
14
+ -moz-osx-font-smoothing: grayscale;
15
+ }
16
+
17
+ [part='overlay'] {
18
+ outline: none;
19
+ background: none;
20
+ border-radius: 0;
21
+ box-shadow: none;
22
+ width: 100%;
23
+ height: 100%;
24
+ }
25
+
26
+ [part='card'] {
27
+ max-width: 100%;
28
+ box-sizing: border-box;
29
+ overflow: hidden;
30
+ display: flex;
31
+ flex-direction: column;
32
+ width: calc(var(--lumo-size-m) * 10);
33
+ background: var(--lumo-base-color) linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
34
+ border-radius: var(--lumo-border-radius-l);
35
+ box-shadow: var(--lumo-box-shadow-s);
36
+ margin: var(--lumo-space-s);
37
+ height: auto;
38
+ }
39
+
40
+ [part='brand'] {
41
+ box-sizing: border-box;
42
+ overflow: hidden;
43
+ flex-grow: 1;
44
+ flex-shrink: 0;
45
+ display: flex;
46
+ flex-direction: column;
47
+ justify-content: flex-end;
48
+ padding: var(--lumo-space-l) var(--lumo-space-xl) var(--lumo-space-l) var(--lumo-space-l);
49
+ background-color: var(--lumo-primary-color);
50
+ color: var(--lumo-primary-contrast-color);
51
+ min-height: calc(var(--lumo-size-m) * 5);
52
+ }
53
+
54
+ ::slotted([slot='title']) {
55
+ color: inherit;
56
+ margin: 0;
57
+ font-size: var(--lumo-font-size-xxxl);
58
+ font-weight: 600;
59
+ line-height: var(--lumo-line-height-xs);
60
+ }
61
+
62
+ [part='backdrop'] {
63
+ background: var(--lumo-base-color) linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
64
+ }
65
+
66
+ [part='description'] {
67
+ line-height: var(--lumo-line-height-s);
68
+ color: var(--lumo-tint-70pct);
69
+ margin: 0.5em 0 0;
70
+ }
71
+
72
+ [part='content'] {
73
+ height: 100%;
74
+ display: flex;
75
+ align-items: center;
76
+ justify-content: center;
77
+ padding: 0;
78
+ }
79
+
80
+ ::slotted(vaadin-login-form-wrapper) {
81
+ min-height: 100%;
82
+ max-width: 100%;
83
+ }
84
+
85
+ /* Small screen */
86
+ @media only screen and (max-width: 500px) {
87
+ [part='overlay'],
88
+ [part='content'] {
89
+ height: 100%;
90
+ }
91
+
92
+ [part='content'] {
93
+ min-height: 100%;
94
+ background: var(--lumo-base-color);
95
+ align-items: flex-start;
96
+ }
97
+
98
+ [part='card'],
99
+ [part='overlay'] {
100
+ width: 100%;
101
+ border-radius: 0;
102
+ box-shadow: none;
103
+ margin: 0;
104
+ }
105
+
106
+ /* RTL styles */
107
+ :host([dir='rtl']) [part='brand'] {
108
+ padding: var(--lumo-space-l) var(--lumo-space-l) var(--lumo-space-l) var(--lumo-space-xl);
109
+ }
110
+ }
111
+
112
+ /* Landscape small screen */
113
+ @media only screen and (max-height: 600px) and (min-width: 600px) and (orientation: landscape) {
114
+ [part='card'] {
115
+ flex-direction: row;
116
+ align-items: stretch;
117
+ max-width: calc(var(--lumo-size-m) * 16);
118
+ width: 100%;
119
+ }
120
+
121
+ [part='brand'],
122
+ [part='form-wrapper'] {
123
+ flex: auto;
124
+ flex-basis: 0;
125
+ box-sizing: border-box;
126
+ }
127
+
128
+ [part='brand'] {
129
+ justify-content: flex-start;
130
+ }
131
+
132
+ [part='form-wrapper'] {
133
+ padding: var(--lumo-space-l);
134
+ overflow: auto;
135
+ }
136
+
137
+ ::slotted(vaadin-login-form-wrapper) {
138
+ flex: 1;
139
+ padding: 2px;
140
+ }
141
+ }
142
+
143
+ /* Landscape really small screen */
144
+ @media only screen and (max-height: 500px) and (min-width: 600px) and (orientation: landscape),
145
+ only screen and (max-width: 600px) and (min-width: 600px) and (orientation: landscape) {
146
+ [part='content'] {
147
+ height: 100vh;
148
+ }
149
+
150
+ [part='card'] {
151
+ margin: 0;
152
+ width: 100%;
153
+ max-width: none;
154
+ height: 100%;
155
+ flex: auto;
156
+ border-radius: 0;
157
+ box-shadow: none;
158
+ }
159
+
160
+ [part='form-wrapper'] {
161
+ height: 100%;
162
+ overflow: auto;
163
+ }
164
+ }
165
+
166
+ /* Handle iPhone X notch */
167
+ @media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
168
+ [part='card'] {
169
+ padding-right: env(safe-area-inset-right);
170
+ padding-left: env(safe-area-inset-left);
171
+ }
172
+
173
+ [part='brand'] {
174
+ margin-left: calc(env(safe-area-inset-left) * -1);
175
+ padding-left: calc(var(--lumo-space-l) + env(safe-area-inset-left));
176
+ }
177
+
178
+ /* RTL styles */
179
+ :host([dir='rtl']) [part='card'] {
180
+ padding-left: env(safe-area-inset-right);
181
+ padding-right: env(safe-area-inset-left);
182
+ }
183
+
184
+ :host([dir='rtl']) [part='brand'] {
185
+ margin-right: calc(env(safe-area-inset-left) * -1);
186
+ padding-right: calc(var(--lumo-space-l) + env(safe-area-inset-left));
187
+ }
188
+ }
189
+ }