@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,341 @@
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_checkbox {
7
+ :host {
8
+ color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
9
+ font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
10
+ font-family: var(--lumo-font-family);
11
+ line-height: var(--lumo-line-height-s);
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ -webkit-tap-highlight-color: transparent;
15
+ -webkit-user-select: none;
16
+ user-select: none;
17
+ cursor: default;
18
+ outline: none;
19
+ --_checkbox-size: var(--vaadin-checkbox-size, calc(var(--lumo-size-m) / 2));
20
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
21
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
22
+ --_selection-color: var(--vaadin-selection-color, var(--lumo-primary-color));
23
+ --_invalid-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-10pct));
24
+ --_disabled-checkmark-color: var(--vaadin-checkbox-disabled-checkmark-color, var(--lumo-contrast-30pct));
25
+ }
26
+
27
+ [part='label'] {
28
+ display: flex;
29
+ position: relative;
30
+ max-width: max-content;
31
+ }
32
+
33
+ :host([has-label]) ::slotted(label) {
34
+ padding: var(
35
+ --vaadin-checkbox-label-padding,
36
+ var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs)
37
+ );
38
+ }
39
+
40
+ :host([dir='rtl'][has-label]) ::slotted(label) {
41
+ padding: var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-s);
42
+ }
43
+
44
+ :host([has-label][required]) ::slotted(label) {
45
+ padding-inline-end: var(--lumo-space-m);
46
+ }
47
+
48
+ [part='checkbox'] {
49
+ --_input-size: var(--_checkbox-size);
50
+ margin: var(--lumo-space-xs);
51
+ position: relative;
52
+ border-radius: var(--vaadin-checkbox-border-radius, var(--lumo-border-radius-s));
53
+ background: var(--vaadin-checkbox-background, var(--lumo-contrast-20pct));
54
+ transition:
55
+ transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2),
56
+ background-color 0.15s;
57
+ cursor: var(--lumo-clickable-cursor);
58
+ /* Default field border color */
59
+ --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
60
+ }
61
+
62
+ :host([indeterminate]),
63
+ :host([checked]) {
64
+ --vaadin-input-field-border-color: transparent;
65
+ }
66
+
67
+ :host([indeterminate]) [part='checkbox'],
68
+ :host([checked]) [part='checkbox'] {
69
+ background-color: var(--_selection-color);
70
+ }
71
+
72
+ /* Used for activation "halo" */
73
+ [part='checkbox']::before {
74
+ pointer-events: none;
75
+ color: transparent;
76
+ width: 100%;
77
+ height: 100%;
78
+ border-radius: inherit;
79
+ background-color: inherit;
80
+ transform: scale(1.4);
81
+ opacity: 0;
82
+ transition:
83
+ transform 0.1s,
84
+ opacity 0.8s;
85
+ }
86
+
87
+ /* Checkmark */
88
+ [part='checkbox']::after {
89
+ pointer-events: none;
90
+ font-family: 'lumo-icons';
91
+ content: var(--vaadin-checkbox-checkmark-char, var(--lumo-icons-checkmark));
92
+ color: var(--vaadin-checkbox-checkmark-color, var(--lumo-primary-contrast-color));
93
+ font-size: var(--vaadin-checkbox-checkmark-size, calc(var(--_checkbox-size) + 2px));
94
+ line-height: 1;
95
+ position: absolute;
96
+ top: -1px;
97
+ left: -1px;
98
+ contain: content;
99
+ opacity: 0;
100
+ }
101
+
102
+ :host([checked]) [part='checkbox']::after {
103
+ opacity: 1;
104
+ }
105
+
106
+ :host([readonly]:not([checked]):not([indeterminate])) {
107
+ color: var(--lumo-secondary-text-color);
108
+ }
109
+
110
+ :host([readonly]:not([checked]):not([indeterminate])) [part='checkbox'] {
111
+ background: transparent;
112
+ box-shadow: none;
113
+ }
114
+
115
+ :host([readonly]:not([checked]):not([indeterminate])) [part='checkbox']::after {
116
+ content: '';
117
+ box-sizing: border-box;
118
+ width: 100%;
119
+ height: 100%;
120
+ border-radius: inherit;
121
+ top: 0;
122
+ left: 0;
123
+ opacity: 1;
124
+ border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-50pct));
125
+ }
126
+
127
+ /* Indeterminate checkmark */
128
+ :host([indeterminate]) [part='checkbox']::after {
129
+ content: var(--vaadin-checkbox-checkmark-char-indeterminate, '');
130
+ opacity: 1;
131
+ top: 45%;
132
+ height: 10%;
133
+ left: 22%;
134
+ right: 22%;
135
+ width: auto;
136
+ border: 0;
137
+ background-color: var(--lumo-primary-contrast-color);
138
+ }
139
+
140
+ /* Focus ring */
141
+ :host([focus-ring]) [part='checkbox'] {
142
+ box-shadow:
143
+ 0 0 0 1px var(--lumo-base-color),
144
+ 0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color),
145
+ inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
146
+ }
147
+
148
+ :host([focus-ring][readonly]:not([checked]):not([indeterminate])) [part='checkbox'] {
149
+ box-shadow:
150
+ 0 0 0 1px var(--lumo-base-color),
151
+ 0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color);
152
+ }
153
+
154
+ /* Disabled */
155
+ :host([disabled]) {
156
+ pointer-events: none;
157
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
158
+ }
159
+
160
+ :host([disabled]) ::slotted(label) {
161
+ color: inherit;
162
+ }
163
+
164
+ :host([disabled]) [part='checkbox'] {
165
+ background-color: var(--vaadin-checkbox-disabled-background, var(--lumo-contrast-10pct));
166
+ }
167
+
168
+ :host([disabled]) [part='checkbox']::after {
169
+ color: var(--_disabled-checkmark-color);
170
+ }
171
+
172
+ :host([disabled]) [part='label'],
173
+ :host([disabled]) [part='helper-text'] {
174
+ color: var(--lumo-disabled-text-color);
175
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
176
+ }
177
+
178
+ :host([indeterminate][disabled]) [part='checkbox']::after {
179
+ background-color: var(--_disabled-checkmark-color);
180
+ }
181
+
182
+ :host([readonly][checked]:not([disabled])) [part='checkbox'],
183
+ :host([readonly][indeterminate]:not([disabled])) [part='checkbox'] {
184
+ background-color: var(--vaadin-checkbox-readonly-checked-background, var(--lumo-contrast-70pct));
185
+ }
186
+
187
+ /* Hover */
188
+ :host(:not([checked]):not([indeterminate]):not([disabled]):not([readonly]):not([invalid]):hover) [part='checkbox'] {
189
+ background: var(--vaadin-checkbox-background-hover, var(--lumo-contrast-30pct));
190
+ }
191
+
192
+ /* Disable hover for touch devices */
193
+ @media (pointer: coarse) {
194
+ /* prettier-ignore */
195
+ :host(:not([checked]):not([indeterminate]):not([disabled]):not([readonly]):not([invalid]):hover) [part='checkbox'] {
196
+ background: var(--vaadin-checkbox-background, var(--lumo-contrast-20pct));
197
+ }
198
+ }
199
+
200
+ /* Active */
201
+ :host([active]) [part='checkbox'] {
202
+ transform: scale(0.9);
203
+ transition-duration: 0.05s;
204
+ }
205
+
206
+ :host([active][checked]) [part='checkbox'] {
207
+ transform: scale(1.1);
208
+ }
209
+
210
+ :host([active]:not([checked])) [part='checkbox']::before {
211
+ transition-duration: 0.01s, 0.01s;
212
+ transform: scale(0);
213
+ opacity: 0.4;
214
+ }
215
+
216
+ /* Required */
217
+ :host([required]) [part='required-indicator'] {
218
+ position: absolute;
219
+ top: var(--lumo-space-xs);
220
+ right: var(--lumo-space-xs);
221
+ }
222
+
223
+ :host([required][dir='rtl']) [part='required-indicator'] {
224
+ right: auto;
225
+ left: var(--lumo-space-xs);
226
+ }
227
+
228
+ :host([required]) [part='required-indicator']::after {
229
+ content: var(--lumo-required-field-indicator, '\2022');
230
+ transition: opacity 0.2s;
231
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
232
+ width: 1em;
233
+ text-align: center;
234
+ }
235
+
236
+ :host(:not([has-label])) [part='required-indicator'] {
237
+ display: none;
238
+ }
239
+
240
+ /* Invalid */
241
+ :host([invalid]) {
242
+ --vaadin-input-field-border-color: var(--lumo-error-color);
243
+ }
244
+
245
+ :host([invalid]) [part='checkbox'] {
246
+ background-color: var(--_invalid-background);
247
+ background-image: linear-gradient(var(--_invalid-background) 0%, var(--_invalid-background) 100%);
248
+ }
249
+
250
+ :host([invalid]:hover) [part='checkbox'] {
251
+ background-image:
252
+ linear-gradient(var(--_invalid-background) 0%, var(--_invalid-background) 100%),
253
+ linear-gradient(var(--_invalid-background) 0%, var(--_invalid-background) 100%);
254
+ }
255
+
256
+ :host([invalid][focus-ring]) {
257
+ --_focus-ring-color: var(--lumo-error-color-50pct);
258
+ }
259
+
260
+ :host([invalid]) [part='required-indicator']::after {
261
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
262
+ }
263
+
264
+ /* Error message */
265
+ [part='error-message'] {
266
+ font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
267
+ line-height: var(--lumo-line-height-xs);
268
+ font-weight: var(--vaadin-input-field-error-font-weight, 400);
269
+ color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
270
+ will-change: max-height;
271
+ transition: 0.4s max-height;
272
+ max-height: 5em;
273
+ padding-inline-start: var(--lumo-space-xs);
274
+ }
275
+
276
+ [part='helper-text'],
277
+ [part='error-message'] {
278
+ grid-column: 2;
279
+ }
280
+
281
+ :host(:not([has-helper])) [part='helper-text'],
282
+ :host(:not([has-error-message])) [part='error-message'] {
283
+ display: none;
284
+ }
285
+
286
+ :host([has-error-message]) [part='error-message']::after,
287
+ :host([has-helper]) [part='helper-text']::after {
288
+ content: '';
289
+ display: block;
290
+ height: 0.4em;
291
+ }
292
+
293
+ :host(:not([invalid])) [part='error-message'] {
294
+ max-height: 0;
295
+ overflow: hidden;
296
+ }
297
+
298
+ /* Helper */
299
+ [part='helper-text'] {
300
+ display: block;
301
+ color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));
302
+ font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));
303
+ line-height: var(--lumo-line-height-xs);
304
+ font-weight: var(--vaadin-input-field-helper-font-weight, 400);
305
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
306
+ transition: color 0.2s;
307
+ padding-inline-start: var(--lumo-space-xs);
308
+ }
309
+
310
+ :host(:hover:not([readonly])) [part='helper-text'] {
311
+ color: var(--lumo-body-text-color);
312
+ }
313
+
314
+ :host([has-error-message]) ::slotted(label),
315
+ :host([has-helper]) ::slotted(label) {
316
+ padding-bottom: 0;
317
+ }
318
+
319
+ @media (forced-colors: active) {
320
+ [part='checkbox'] {
321
+ outline: 1px solid;
322
+ outline-offset: -1px;
323
+ }
324
+
325
+ :host([disabled]) [part='checkbox'],
326
+ :host([disabled]) [part='checkbox']::after {
327
+ outline-color: GrayText;
328
+ }
329
+
330
+ :host(:is([checked], [indeterminate])) [part='checkbox']::after {
331
+ outline: 1px solid;
332
+ outline-offset: -1px;
333
+ border-radius: inherit;
334
+ }
335
+
336
+ :host([focused]) [part='checkbox'],
337
+ :host([focused]) [part='checkbox']::after {
338
+ outline-width: 2px;
339
+ }
340
+ }
341
+ }
@@ -0,0 +1,18 @@
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_combo-box-item {
7
+ :host {
8
+ transition: background-color 100ms;
9
+ overflow: hidden;
10
+ --_lumo-item-selected-icon-display: block;
11
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
12
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
13
+ }
14
+
15
+ :host([focused]:not([disabled])) {
16
+ box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
17
+ }
18
+ }
@@ -0,0 +1,15 @@
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_combo-box-overlay {
7
+ :host {
8
+ --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
9
+ --_vaadin-combo-box-items-container-border-style: solid;
10
+ }
11
+
12
+ #overlay {
13
+ width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
14
+ }
15
+ }
@@ -0,0 +1,14 @@
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_combo-box {
7
+ :host([opened]) {
8
+ pointer-events: auto;
9
+ }
10
+
11
+ [part='toggle-button']::before {
12
+ content: var(--lumo-icons-dropdown);
13
+ }
14
+ }
@@ -0,0 +1,59 @@
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_confirm-dialog-overlay {
7
+ #resizerContainer {
8
+ height: 100%;
9
+ }
10
+
11
+ [part='header'] {
12
+ pointer-events: auto;
13
+ margin-inline-start: calc(var(--lumo-space-l) - var(--lumo-space-m));
14
+ font-weight: 600;
15
+ line-height: var(--lumo-line-height-xs);
16
+ font-size: var(--lumo-font-size-xl);
17
+ color: var(--lumo-header-text-color);
18
+ }
19
+
20
+ ::slotted([slot='header']) {
21
+ display: contents !important;
22
+ font: inherit !important;
23
+ color: inherit !important;
24
+ }
25
+
26
+ /* Make buttons clickable */
27
+ [part='footer'] > * {
28
+ pointer-events: all;
29
+ }
30
+
31
+ [part='message'] {
32
+ width: 25em;
33
+ min-width: 100%;
34
+ max-width: 100%;
35
+ }
36
+
37
+ ::slotted([slot$='button'][theme~='tertiary']) {
38
+ padding-left: var(--lumo-space-s);
39
+ padding-right: var(--lumo-space-s);
40
+ }
41
+
42
+ [part='cancel-button'] {
43
+ flex-grow: 1;
44
+ }
45
+
46
+ @media (max-width: 360px) {
47
+ [part='footer'] {
48
+ flex-direction: column-reverse;
49
+ align-items: stretch;
50
+ padding: var(--lumo-space-s) var(--lumo-space-l);
51
+ gap: var(--lumo-space-s);
52
+ }
53
+
54
+ ::slotted([slot$='button']) {
55
+ width: 100%;
56
+ margin: 0;
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,39 @@
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_context-menu-item {
7
+ /* :hover needed to workaround https://github.com/vaadin/web-components/issues/3133 */
8
+ :host(:hover) {
9
+ user-select: none;
10
+ -webkit-user-select: none;
11
+ }
12
+
13
+ :host([role='menuitem'][menu-item-checked]) [part='checkmark']::before {
14
+ opacity: 1;
15
+ }
16
+
17
+ :host([aria-haspopup='true'])::after {
18
+ font-family: lumo-icons;
19
+ font-size: var(--lumo-icon-size-xs);
20
+ content: var(--lumo-icons-angle-right);
21
+ color: var(--lumo-tertiary-text-color);
22
+ }
23
+
24
+ :host(:not([dir='rtl'])[aria-haspopup='true'])::after {
25
+ margin-right: calc(var(--lumo-space-m) * -1);
26
+ padding-left: var(--lumo-space-m);
27
+ }
28
+
29
+ :host([expanded]) {
30
+ background-color: var(--lumo-primary-color-10pct);
31
+ }
32
+
33
+ /* RTL styles */
34
+ :host([dir='rtl'][aria-haspopup='true'])::after {
35
+ content: var(--lumo-icons-angle-left);
36
+ margin-left: calc(var(--lumo-space-m) * -1);
37
+ padding-right: var(--lumo-space-m);
38
+ }
39
+ }
@@ -0,0 +1,40 @@
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_context-menu-list-box {
7
+ :host {
8
+ --_lumo-list-box-item-selected-icon-display: block;
9
+ }
10
+
11
+ /* Normal item */
12
+ [part='items'] ::slotted([role='menuitem']) {
13
+ -webkit-tap-highlight-color: var(--lumo-primary-color-10pct);
14
+ cursor: default;
15
+ outline: none;
16
+ border-radius: var(--lumo-border-radius-m);
17
+ padding-left: calc(var(--lumo-border-radius-m) / 4);
18
+ padding-right: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
19
+ }
20
+
21
+ /* Hovered item */
22
+ /* TODO a workaround until we have "focus-follows-mouse". After that, use the hover style for focus-ring as well */
23
+ [part='items'] ::slotted([role='menuitem']:hover:not([disabled])),
24
+ [part='items'] ::slotted([role='menuitem'][expanded]:not([disabled])) {
25
+ background-color: var(--lumo-primary-color-10pct);
26
+ }
27
+
28
+ /* RTL styles */
29
+ :host([dir='rtl']) [part='items'] ::slotted([role='menuitem']) {
30
+ padding-left: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
31
+ padding-right: calc(var(--lumo-border-radius-m) / 4);
32
+ }
33
+
34
+ /* Focused item */
35
+ @media (pointer: coarse) {
36
+ [part='items'] ::slotted([role='menuitem']:hover:not([expanded]):not([disabled])) {
37
+ background-color: transparent;
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,41 @@
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_context-menu-overlay {
7
+ :host {
8
+ align-items: flex-start;
9
+ justify-content: flex-start;
10
+ /* TODO These style overrides should not be needed.
11
+ We should instead offer a way to have non-selectable items inside the context menu. */
12
+ --_lumo-list-box-item-selected-icon-display: none;
13
+ --_lumo-list-box-item-padding-left: calc(var(--lumo-space-m) + var(--lumo-border-radius-m) / 4);
14
+ }
15
+
16
+ :host([right-aligned]),
17
+ :host([end-aligned]) {
18
+ align-items: flex-end;
19
+ }
20
+
21
+ :host([bottom-aligned]) {
22
+ justify-content: flex-end;
23
+ }
24
+
25
+ [part='overlay'] {
26
+ background-color: #fff;
27
+ outline: none;
28
+ }
29
+
30
+ :host([phone]) {
31
+ inset: 0 0 var(--vaadin-overlay-viewport-bottom, 0) 0 !important;
32
+ align-items: stretch;
33
+ justify-content: flex-end;
34
+ }
35
+
36
+ @media (forced-colors: active) {
37
+ [part='overlay'] {
38
+ outline: 3px solid !important;
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,57 @@
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_crud-dialog-overlay {
7
+ [part='overlay'] {
8
+ max-width: 54em;
9
+ min-width: 20em;
10
+ display: flex;
11
+ }
12
+
13
+ .resizer-container {
14
+ display: flex;
15
+ flex-direction: column;
16
+ flex-grow: 1;
17
+ }
18
+
19
+ [part='footer'] {
20
+ justify-content: flex-start;
21
+ flex-direction: row-reverse;
22
+ }
23
+
24
+ /* Make buttons clickable */
25
+ [part='footer'] ::slotted(:not([disabled])) {
26
+ pointer-events: all;
27
+ }
28
+
29
+ :host([fullscreen]) {
30
+ inset: 0;
31
+ padding: 0;
32
+ }
33
+
34
+ :host([fullscreen]) [part='overlay'] {
35
+ height: 100vh;
36
+ width: 100vw;
37
+ border-radius: 0 !important;
38
+ }
39
+
40
+ :host([fullscreen]) [part='content'] {
41
+ flex: 1;
42
+ }
43
+
44
+ [part='header'] ::slotted(h3) {
45
+ margin-top: 0 !important;
46
+ margin-bottom: 0 !important;
47
+ margin-inline-start: var(--lumo-space-s);
48
+ }
49
+
50
+ :host(:not([dir='rtl'])) ::slotted([slot='delete-button']) {
51
+ margin-right: auto;
52
+ }
53
+
54
+ :host([dir='rtl']) ::slotted([slot='delete-button']) {
55
+ margin-left: auto;
56
+ }
57
+ }
@@ -0,0 +1,30 @@
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_crud-edit {
7
+ :host {
8
+ display: block;
9
+ min-width: auto;
10
+ margin: 0;
11
+ font-family: 'lumo-icons', var(--lumo-font-family);
12
+ font-size: var(--lumo-icon-size-m);
13
+ line-height: 1;
14
+ position: relative;
15
+ width: var(--lumo-size-s);
16
+ height: var(--lumo-size-s);
17
+ outline: none;
18
+ }
19
+
20
+ [part='icon']::before {
21
+ content: var(--lumo-icons-edit);
22
+ width: var(--lumo-size-m);
23
+ height: var(--lumo-size-m);
24
+ line-height: var(--lumo-size-m);
25
+ text-align: center;
26
+ position: absolute;
27
+ top: calc((var(--lumo-size-m) - var(--lumo-size-s)) / -2);
28
+ left: calc((var(--lumo-size-m) - var(--lumo-size-s)) / -2);
29
+ }
30
+ }