@vaadin/vaadin-lumo-styles 25.0.0-alpha5 → 25.0.0-alpha7

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