@vaadin/vaadin-lumo-styles 25.0.0-alpha6 → 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 (219) 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/global.css +14 -0
  78. package/lumo.css +8 -0
  79. package/package.json +8 -6
  80. package/props.css +12 -0
  81. package/src/components/accordion-heading.css +42 -0
  82. package/src/components/accordion-panel.css +38 -0
  83. package/src/components/app-layout.css +193 -0
  84. package/src/components/avatar-group-menu-item.css +22 -0
  85. package/src/components/avatar-group-overlay.css +15 -0
  86. package/src/components/avatar-group.css +67 -0
  87. package/src/components/avatar.css +110 -0
  88. package/src/components/button.css +335 -0
  89. package/src/components/card.css +38 -0
  90. package/src/components/chart.css +88 -0
  91. package/src/components/checkbox-group.css +18 -0
  92. package/src/components/checkbox.css +341 -0
  93. package/src/components/combo-box-item.css +18 -0
  94. package/src/components/combo-box-overlay.css +15 -0
  95. package/src/components/combo-box.css +14 -0
  96. package/src/components/confirm-dialog-overlay.css +59 -0
  97. package/src/components/context-menu-item.css +39 -0
  98. package/src/components/context-menu-list-box.css +40 -0
  99. package/src/components/context-menu-overlay.css +41 -0
  100. package/src/components/crud-dialog-overlay.css +57 -0
  101. package/src/components/crud-edit.css +30 -0
  102. package/src/components/crud.css +157 -0
  103. package/src/components/custom-field.css +102 -0
  104. package/src/components/dashboard-layout.css +94 -0
  105. package/src/components/dashboard-section.css +113 -0
  106. package/src/components/dashboard-widget.css +224 -0
  107. package/src/components/dashboard.css +23 -0
  108. package/src/components/date-picker-month-calendar.css +192 -0
  109. package/src/components/date-picker-overlay-content.css +161 -0
  110. package/src/components/date-picker-overlay.css +60 -0
  111. package/src/components/date-picker-year.css +35 -0
  112. package/src/components/date-picker.css +41 -0
  113. package/src/components/date-time-picker.css +36 -0
  114. package/src/components/details-summary.css +131 -0
  115. package/src/components/details.css +37 -0
  116. package/src/components/dialog-overlay.css +173 -0
  117. package/src/components/drawer-toggle.css +51 -0
  118. package/src/components/email-field.css +26 -0
  119. package/src/components/field-outline.css +51 -0
  120. package/src/components/form-item.css +36 -0
  121. package/src/components/form-layout.css +11 -0
  122. package/src/components/grid-filter.css +16 -0
  123. package/src/components/grid-pro-edit-select.css +19 -0
  124. package/src/components/grid-pro.css +84 -0
  125. package/src/components/grid-sorter.css +70 -0
  126. package/src/components/grid-tree-toggle.css +104 -0
  127. package/src/components/grid.css +755 -0
  128. package/src/components/horizontal-layout.css +38 -0
  129. package/src/components/icon.css +47 -0
  130. package/src/components/input-container.css +230 -0
  131. package/src/components/item.css +94 -0
  132. package/src/components/list-box.css +31 -0
  133. package/src/components/login-form-wrapper.css +128 -0
  134. package/src/components/login-overlay-wrapper.css +179 -0
  135. package/src/components/map.css +437 -0
  136. package/src/components/master-detail-layout.css +26 -0
  137. package/src/components/menu-bar-button.css +128 -0
  138. package/src/components/menu-bar-item.css +24 -0
  139. package/src/components/menu-bar-overlay.css +10 -0
  140. package/src/components/menu-bar.css +31 -0
  141. package/src/components/message-input.css +30 -0
  142. package/src/components/message.css +82 -0
  143. package/src/components/multi-select-combo-box-chip.css +113 -0
  144. package/src/components/multi-select-combo-box-container.css +20 -0
  145. package/src/components/multi-select-combo-box-item.css +13 -0
  146. package/src/components/multi-select-combo-box-overlay.css +18 -0
  147. package/src/components/multi-select-combo-box.css +98 -0
  148. package/src/components/notification-card.css +228 -0
  149. package/src/components/notification-container.css +53 -0
  150. package/src/components/number-field.css +53 -0
  151. package/src/components/password-field-button.css +19 -0
  152. package/src/components/password-field.css +24 -0
  153. package/src/components/popover-overlay.css +162 -0
  154. package/src/components/progress-bar.css +295 -0
  155. package/src/components/radio-button.css +156 -0
  156. package/src/components/radio-group.css +18 -0
  157. package/src/components/rich-text-editor-popup-overlay.css +27 -0
  158. package/src/components/rich-text-editor.css +485 -0
  159. package/src/components/scroller.css +40 -0
  160. package/src/components/select-overlay.css +54 -0
  161. package/src/components/select-value-button.css +57 -0
  162. package/src/components/select.css +56 -0
  163. package/src/components/side-nav-item.css +170 -0
  164. package/src/components/side-nav.css +102 -0
  165. package/src/components/split-layout.css +132 -0
  166. package/src/components/tab.css +246 -0
  167. package/src/components/tabs.css +285 -0
  168. package/src/components/tabsheet.css +59 -0
  169. package/src/components/text-area.css +116 -0
  170. package/src/components/time-picker-overlay.css +15 -0
  171. package/src/components/time-picker.css +36 -0
  172. package/src/components/tooltip-overlay.css +53 -0
  173. package/src/components/upload-file-list.css +24 -0
  174. package/src/components/upload-file.css +133 -0
  175. package/src/components/upload-icon.css +14 -0
  176. package/src/components/upload.css +56 -0
  177. package/src/components/user-tag.css +48 -0
  178. package/src/components/user-tags-overlay.css +67 -0
  179. package/src/components/vertical-layout.css +38 -0
  180. package/src/global/badge.css +167 -0
  181. package/src/global/dark.css +93 -0
  182. package/src/global/style.css +93 -0
  183. package/src/global/typography.css +113 -0
  184. package/src/mixins/checkable-field.css +67 -0
  185. package/src/mixins/combo-box-loader.css +14 -0
  186. package/src/mixins/combo-box-overlay.css +30 -0
  187. package/src/mixins/dashboard-item.css +253 -0
  188. package/src/mixins/field-base.css +187 -0
  189. package/src/mixins/field-button.css +46 -0
  190. package/src/mixins/field-error-message.css +36 -0
  191. package/src/mixins/field-helper.css +62 -0
  192. package/src/mixins/field-label.css +62 -0
  193. package/src/mixins/field-required.css +26 -0
  194. package/src/mixins/grid-pro-editor.css +35 -0
  195. package/src/mixins/group-field.css +58 -0
  196. package/src/mixins/loader.css +48 -0
  197. package/src/mixins/menu-overlay-core.css +36 -0
  198. package/src/mixins/menu-overlay-ext.css +63 -0
  199. package/src/mixins/overlay.css +113 -0
  200. package/src/mixins/resizable-overlay.css +99 -0
  201. package/src/props/color.css +98 -0
  202. package/src/props/icons.css +61 -0
  203. package/src/props/reset.css +11 -0
  204. package/src/props/sizing.css +19 -0
  205. package/src/props/spacing.css +27 -0
  206. package/src/props/style.css +21 -0
  207. package/src/props/typography.css +24 -0
  208. package/src/utilities/accessibility.css +17 -0
  209. package/src/utilities/background.css +189 -0
  210. package/src/utilities/border.css +173 -0
  211. package/src/utilities/filter.css +37 -0
  212. package/src/utilities/flexbox-grid.css +781 -0
  213. package/src/utilities/layout.css +629 -0
  214. package/src/utilities/shadows.css +29 -0
  215. package/src/utilities/sizing.css +142 -0
  216. package/src/utilities/spacing.css +682 -0
  217. package/src/utilities/transition.css +46 -0
  218. package/src/utilities/typography.css +424 -0
  219. package/utility.css +17 -0
@@ -0,0 +1,285 @@
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_tabs {
7
+ :host {
8
+ display: flex;
9
+ align-items: center;
10
+ -webkit-tap-highlight-color: transparent;
11
+ }
12
+
13
+ :host([hidden]) {
14
+ display: none !important;
15
+ }
16
+
17
+ :host([orientation='vertical']) {
18
+ display: block;
19
+ box-shadow: -1px 0 0 0 var(--lumo-contrast-10pct);
20
+ }
21
+
22
+ :host([orientation='vertical']) [part='tabs'] {
23
+ height: 100%;
24
+ overflow-y: auto;
25
+ width: 100%;
26
+ margin: 0.5rem 0;
27
+ }
28
+
29
+ :host(:not([orientation='vertical'])) {
30
+ box-shadow: inset 0 -1px 0 0 var(--lumo-contrast-10pct);
31
+ position: relative;
32
+ min-height: var(--lumo-size-l);
33
+ }
34
+
35
+ :host([orientation='horizontal']) [part='tabs'] {
36
+ flex-grow: 1;
37
+ display: flex;
38
+ align-self: stretch;
39
+ overflow-x: auto;
40
+ margin: 0 0.75rem;
41
+ }
42
+
43
+ :host([orientation='horizontal']) [part='tabs'] ::slotted(vaadin-tab:not([theme~='icon-on-top'])) {
44
+ justify-content: center;
45
+ }
46
+
47
+ /*
48
+ This seems more future-proof than `overflow: -moz-scrollbars-none` which is marked obsolete
49
+ and is no longer guaranteed to work:
50
+ https://developer.mozilla.org/en-US/docs/Web/CSS/overflow#Mozilla_Extensions
51
+ */
52
+ @-moz-document url-prefix() {
53
+ :host([orientation='horizontal']) [part='tabs'] {
54
+ overflow: hidden;
55
+ }
56
+ }
57
+
58
+ :host([orientation='horizontal']) [part='tabs']::-webkit-scrollbar {
59
+ display: none;
60
+ }
61
+
62
+ [part='back-button'],
63
+ [part='forward-button'] {
64
+ pointer-events: none;
65
+ opacity: 0;
66
+ cursor: default;
67
+ position: absolute;
68
+ z-index: 1;
69
+ font-family: lumo-icons;
70
+ color: var(--lumo-tertiary-text-color);
71
+ font-size: var(--lumo-icon-size-m);
72
+ display: flex;
73
+ align-items: center;
74
+ justify-content: center;
75
+ width: 1.5em;
76
+ height: 100%;
77
+ transition: 0.2s opacity;
78
+ top: 0;
79
+ }
80
+
81
+ [part='forward-button']:hover,
82
+ [part='back-button']:hover {
83
+ color: inherit;
84
+ }
85
+
86
+ :host([overflow~='start']) [part='back-button'],
87
+ :host([overflow~='end']) [part='forward-button'] {
88
+ pointer-events: auto;
89
+ opacity: 1;
90
+ }
91
+
92
+ [part='back-button']::after {
93
+ content: var(--lumo-icons-angle-left);
94
+ }
95
+
96
+ [part='forward-button']::after {
97
+ content: var(--lumo-icons-angle-right);
98
+ }
99
+
100
+ :host([orientation='vertical']) [part='back-button'],
101
+ :host([orientation='vertical']) [part='forward-button'] {
102
+ display: none;
103
+ }
104
+
105
+ /* Tabs overflow */
106
+
107
+ [part='tabs'] {
108
+ --_lumo-tabs-overflow-mask-image: none;
109
+ mask-image: var(--_lumo-tabs-overflow-mask-image);
110
+ }
111
+
112
+ /* Horizontal tabs overflow */
113
+
114
+ /* Both ends overflowing */
115
+ :host([overflow~='start'][overflow~='end']:not([orientation='vertical'])) [part='tabs'] {
116
+ --_lumo-tabs-overflow-mask-image: linear-gradient(
117
+ 90deg,
118
+ transparent 2em,
119
+ #000 4em,
120
+ #000 calc(100% - 4em),
121
+ transparent calc(100% - 2em)
122
+ );
123
+ }
124
+
125
+ /* End overflowing */
126
+ :host([overflow~='end']:not([orientation='vertical'])) [part='tabs'] {
127
+ --_lumo-tabs-overflow-mask-image: linear-gradient(90deg, #000 calc(100% - 4em), transparent calc(100% - 2em));
128
+ }
129
+
130
+ /* Start overflowing */
131
+ :host([overflow~='start']:not([orientation='vertical'])) [part='tabs'] {
132
+ --_lumo-tabs-overflow-mask-image: linear-gradient(90deg, transparent 2em, #000 4em);
133
+ }
134
+
135
+ /* Vertical tabs overflow */
136
+
137
+ /* Both ends overflowing */
138
+ :host([overflow~='start'][overflow~='end'][orientation='vertical']) [part='tabs'] {
139
+ --_lumo-tabs-overflow-mask-image: linear-gradient(transparent, #000 2em, #000 calc(100% - 2em), transparent);
140
+ }
141
+
142
+ /* End overflowing */
143
+ :host([overflow~='end'][orientation='vertical']) [part='tabs'] {
144
+ --_lumo-tabs-overflow-mask-image: linear-gradient(#000 calc(100% - 2em), transparent);
145
+ }
146
+
147
+ /* Start overflowing */
148
+ :host([overflow~='start'][orientation='vertical']) [part='tabs'] {
149
+ --_lumo-tabs-overflow-mask-image: linear-gradient(transparent, #000 2em);
150
+ }
151
+
152
+ :host [part='tabs'] ::slotted(:not(vaadin-tab)) {
153
+ margin-left: var(--lumo-space-m);
154
+ }
155
+
156
+ /* Centered */
157
+
158
+ :host([theme~='centered'][orientation='horizontal']) ::slotted(vaadin-tab:first-of-type) {
159
+ margin-inline-start: auto;
160
+ }
161
+
162
+ :host([theme~='centered'][orientation='horizontal']) ::slotted(vaadin-tab:last-of-type) {
163
+ margin-inline-end: auto;
164
+ }
165
+
166
+ /* Small */
167
+
168
+ :host([theme~='small']),
169
+ :host([theme~='small']) [part='tabs'] {
170
+ min-height: var(--lumo-size-m);
171
+ }
172
+
173
+ :host([theme~='small']) [part='tabs'] ::slotted(vaadin-tab) {
174
+ font-size: var(--lumo-font-size-s);
175
+ }
176
+
177
+ /* Minimal */
178
+
179
+ :host([theme~='minimal']) {
180
+ box-shadow: none;
181
+ --_lumo-tab-marker-display: none;
182
+ }
183
+
184
+ /* Hide-scroll-buttons */
185
+
186
+ :host([theme~='hide-scroll-buttons']) [part='back-button'],
187
+ :host([theme~='hide-scroll-buttons']) [part='forward-button'] {
188
+ display: none;
189
+ }
190
+
191
+ :host([theme~='hide-scroll-buttons'][overflow~='start'][overflow~='end']:not([orientation='vertical']))
192
+ [part='tabs'] {
193
+ --_lumo-tabs-overflow-mask-image: linear-gradient(
194
+ 90deg,
195
+ transparent,
196
+ #000 2em,
197
+ #000 calc(100% - 2em),
198
+ transparent 100%
199
+ );
200
+ }
201
+
202
+ :host([theme~='hide-scroll-buttons'][overflow~='end']:not([orientation='vertical'])) [part='tabs'] {
203
+ --_lumo-tabs-overflow-mask-image: linear-gradient(90deg, #000 calc(100% - 2em), transparent 100%);
204
+ }
205
+
206
+ :host([theme~='hide-scroll-buttons'][overflow~='start']:not([orientation='vertical'])) [part='tabs'] {
207
+ --_lumo-tabs-overflow-mask-image: linear-gradient(90deg, transparent, #000 2em);
208
+ }
209
+
210
+ /* Equal-width tabs */
211
+ :host([theme~='equal-width-tabs']) {
212
+ flex: auto;
213
+ }
214
+
215
+ :host([theme~='equal-width-tabs']) [part='tabs'] ::slotted(vaadin-tab) {
216
+ flex: 1 0 0%;
217
+ }
218
+
219
+ /* RTL specific styles */
220
+
221
+ :host(:not([dir='rtl'])) [part='forward-button'] {
222
+ right: 0;
223
+ }
224
+
225
+ :host([dir='rtl']) [part='back-button']::after {
226
+ content: var(--lumo-icons-angle-right);
227
+ }
228
+
229
+ :host([dir='rtl']) [part='forward-button']::after {
230
+ content: var(--lumo-icons-angle-left);
231
+ }
232
+
233
+ :host([dir='rtl'][orientation='vertical']) {
234
+ box-shadow: 1px 0 0 0 var(--lumo-contrast-10pct);
235
+ }
236
+
237
+ :host([dir='rtl']) [part='forward-button'] {
238
+ left: 0;
239
+ }
240
+
241
+ :host([dir='rtl']) [part='tabs'] ::slotted(:not(vaadin-tab)) {
242
+ margin-left: 0;
243
+ margin-right: var(--lumo-space-m);
244
+ }
245
+
246
+ /* Both ends overflowing */
247
+ :host([dir='rtl'][overflow~='start'][overflow~='end']:not([orientation='vertical'])) [part='tabs'] {
248
+ --_lumo-tabs-overflow-mask-image: linear-gradient(
249
+ -90deg,
250
+ transparent 2em,
251
+ #000 4em,
252
+ #000 calc(100% - 4em),
253
+ transparent calc(100% - 2em)
254
+ );
255
+ }
256
+
257
+ /* End overflowing */
258
+ :host([dir='rtl'][overflow~='end']:not([orientation='vertical'])) [part='tabs'] {
259
+ --_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, #000 calc(100% - 4em), transparent calc(100% - 2em));
260
+ }
261
+
262
+ /* Start overflowing */
263
+ :host([dir='rtl'][overflow~='start']:not([orientation='vertical'])) [part='tabs'] {
264
+ --_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, transparent 2em, #000 4em);
265
+ }
266
+
267
+ :host([dir='rtl'][theme~='hide-scroll-buttons'][overflow~='start'][overflow~='end']:not([orientation='vertical']))
268
+ [part='tabs'] {
269
+ --_lumo-tabs-overflow-mask-image: linear-gradient(
270
+ -90deg,
271
+ transparent,
272
+ #000 2em,
273
+ #000 calc(100% - 2em),
274
+ transparent 100%
275
+ );
276
+ }
277
+
278
+ :host([dir='rtl'][theme~='hide-scroll-buttons'][overflow~='end']:not([orientation='vertical'])) [part='tabs'] {
279
+ --_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, #000 calc(100% - 2em), transparent 100%);
280
+ }
281
+
282
+ :host([dir='rtl'][theme~='hide-scroll-buttons'][overflow~='start']:not([orientation='vertical'])) [part='tabs'] {
283
+ --_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, transparent, #000 2em);
284
+ }
285
+ }
@@ -0,0 +1,59 @@
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_tabsheet {
7
+ :host {
8
+ display: flex;
9
+ flex-direction: column;
10
+ font-size: var(--lumo-font-size-m);
11
+ line-height: var(--lumo-line-height-m);
12
+ font-family: var(--lumo-font-family);
13
+ }
14
+
15
+ :host([hidden]) {
16
+ display: none !important;
17
+ }
18
+
19
+ [part='tabs-container'] {
20
+ position: relative;
21
+ display: flex;
22
+ align-items: center;
23
+ box-shadow: inset 0 -1px 0 0 var(--lumo-contrast-10pct);
24
+ padding: var(--lumo-space-xs) var(--lumo-space-s);
25
+ gap: var(--lumo-space-s);
26
+ }
27
+
28
+ ::slotted([slot='tabs']) {
29
+ flex: 1;
30
+ align-self: stretch;
31
+ min-width: 8em;
32
+ box-shadow: initial;
33
+ margin: calc(var(--lumo-space-xs) * -1) calc(var(--lumo-space-s) * -1);
34
+ }
35
+
36
+ [part='content'] {
37
+ position: relative;
38
+ flex: 1;
39
+ box-sizing: border-box;
40
+ padding: var(--lumo-space-s) var(--lumo-space-m);
41
+ border-bottom-left-radius: inherit;
42
+ border-bottom-right-radius: inherit;
43
+ }
44
+
45
+ :host([theme~='bordered']) {
46
+ border: 1px solid var(--lumo-contrast-20pct);
47
+ border-radius: var(--lumo-border-radius-l);
48
+ }
49
+
50
+ :host([loading]) [part='content'] {
51
+ display: flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ }
55
+
56
+ :host([theme~='no-padding']) [part='content'] {
57
+ padding: 0;
58
+ }
59
+ }
@@ -0,0 +1,116 @@
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_text-area {
7
+ .vaadin-text-area-container {
8
+ flex: auto;
9
+ }
10
+
11
+ /* The label, helper text and the error message should neither grow nor shrink. */
12
+ [part='label'],
13
+ [part='helper-text'],
14
+ [part='error-message'] {
15
+ flex: none;
16
+ }
17
+
18
+ ::slotted(textarea) {
19
+ appearance: none;
20
+ flex: auto;
21
+ overflow: hidden;
22
+ width: 100%;
23
+ height: 100%;
24
+ outline: none;
25
+ resize: none;
26
+ margin: 0;
27
+ padding: 0 0.25em;
28
+ border: 0;
29
+ border-radius: 0;
30
+ min-width: 0;
31
+ font: inherit;
32
+ font-size: 1em;
33
+ line-height: normal;
34
+ color: inherit;
35
+ background-color: transparent;
36
+ /* Disable default invalid style in Firefox */
37
+ box-shadow: none;
38
+ }
39
+
40
+ /* Override styles from <vaadin-input-container> */
41
+ [part='input-field'] ::slotted(textarea) {
42
+ align-self: stretch;
43
+ white-space: pre-wrap;
44
+ line-height: inherit;
45
+ --_lumo-text-field-overflow-mask-image: none;
46
+ }
47
+
48
+ [part='input-field'] ::slotted(:not(textarea)) {
49
+ align-self: flex-start;
50
+ }
51
+
52
+ /* Workaround https://bugzilla.mozilla.org/show_bug.cgi?id=1739079 */
53
+ :host([disabled]) ::slotted(textarea) {
54
+ user-select: none;
55
+ }
56
+
57
+ [part='input-field'],
58
+ [part='input-field'] ::slotted(textarea) {
59
+ height: auto;
60
+ box-sizing: border-box;
61
+ min-height: 0;
62
+ }
63
+
64
+ [part='input-field'] {
65
+ flex: auto;
66
+ overflow: auto;
67
+ /* Equal to the implicit padding in vaadin-text-field */
68
+ padding-top: calc((var(--lumo-text-field-size) - 1em * var(--lumo-line-height-s)) / 2);
69
+ padding-bottom: calc((var(--lumo-text-field-size) - 1em * var(--lumo-line-height-s)) / 2);
70
+ transition: background-color 0.1s;
71
+ line-height: var(--lumo-line-height-s);
72
+ }
73
+
74
+ :host(:not([readonly])) [part='input-field']::after {
75
+ display: none;
76
+ }
77
+
78
+ :host([readonly]) [part='input-field'] {
79
+ border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-30pct));
80
+ }
81
+
82
+ :host([readonly]) [part='input-field']::after {
83
+ border: none;
84
+ }
85
+
86
+ :host(:hover:not([readonly]):not([focused]):not([invalid])) [part='input-field'] {
87
+ background-color: var(--lumo-contrast-20pct);
88
+ }
89
+
90
+ @media (pointer: coarse) {
91
+ :host(:hover:not([readonly]):not([focused]):not([invalid])) [part='input-field'] {
92
+ background-color: var(--lumo-contrast-10pct);
93
+ }
94
+
95
+ :host(:active:not([readonly]):not([focused])) [part='input-field'] {
96
+ background-color: var(--lumo-contrast-20pct);
97
+ }
98
+ }
99
+
100
+ /* Use sticky positioning to keep prefix/suffix/clear button visible when scrolling textarea container */
101
+ [part='input-field'] ::slotted([slot$='fix']),
102
+ [part='clear-button'] {
103
+ position: sticky;
104
+ top: 0;
105
+ align-self: flex-start;
106
+ }
107
+
108
+ [part='input-field'] ::slotted(vaadin-icon[slot$='fix']),
109
+ [part='clear-button'] {
110
+ /* Vertically align icon prefix/suffix/clear button with the first line of text */
111
+ top: calc((var(--lumo-icon-size-m) - 1em * var(--lumo-line-height-s)) / -2);
112
+ margin-top: calc((var(--lumo-icon-size-m) - 1em * var(--lumo-line-height-s)) / -2);
113
+ /* Reduce effective height to match line height of native textarea, so icons don't increase component size when using single row */
114
+ margin-bottom: calc((var(--lumo-icon-size-m) - 1em * var(--lumo-line-height-s)) / -2);
115
+ }
116
+ }
@@ -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_time-picker-overlay {
7
+ :host {
8
+ --_vaadin-time-picker-items-container-border-width: var(--lumo-space-xs);
9
+ --_vaadin-time-picker-items-container-border-style: solid;
10
+ }
11
+
12
+ #overlay {
13
+ width: var(--vaadin-time-picker-overlay-width, var(--_vaadin-time-picker-overlay-default-width, auto));
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ @media lumo_components_time-picker {
7
+ :host([opened]) {
8
+ pointer-events: auto;
9
+ }
10
+
11
+ [part~='toggle-button'] {
12
+ cursor: pointer;
13
+ }
14
+
15
+ [part='toggle-button']::before {
16
+ content: var(--lumo-icons-clock);
17
+ }
18
+
19
+ /* See https://github.com/vaadin/vaadin-time-picker/issues/145 */
20
+ :host([dir='rtl']) [part='input-field'] {
21
+ direction: ltr;
22
+ }
23
+
24
+ :host([dir='rtl']) [part='input-field'] ::slotted(input) {
25
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
26
+ }
27
+
28
+ :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
29
+ --_lumo-text-field-overflow-mask-image: none;
30
+ }
31
+
32
+ :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
33
+ direction: rtl;
34
+ text-align: left;
35
+ }
36
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+
7
+ @media lumo_components_tooltip-overlay {
8
+ :host {
9
+ --vaadin-tooltip-offset-top: var(--lumo-space-xs);
10
+ --vaadin-tooltip-offset-bottom: var(--lumo-space-xs);
11
+ --vaadin-tooltip-offset-start: var(--lumo-space-xs);
12
+ --vaadin-tooltip-offset-end: var(--lumo-space-xs);
13
+ }
14
+
15
+ [part='overlay'] {
16
+ max-width: 40ch;
17
+ background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
18
+ color: var(--lumo-body-text-color);
19
+ font-size: var(--lumo-font-size-xs);
20
+ line-height: var(--lumo-line-height-s);
21
+ }
22
+
23
+ [part='content'] {
24
+ white-space: pre-wrap;
25
+ padding: var(--lumo-space-xs) var(--lumo-space-s);
26
+ }
27
+
28
+ :host([position^='top'][top-aligned]) [part='overlay'],
29
+ :host([position^='bottom'][top-aligned]) [part='overlay'] {
30
+ margin-top: var(--vaadin-tooltip-offset-top, 0);
31
+ }
32
+
33
+ :host([position^='top'][bottom-aligned]) [part='overlay'],
34
+ :host([position^='bottom'][bottom-aligned]) [part='overlay'] {
35
+ margin-bottom: var(--vaadin-tooltip-offset-bottom, 0);
36
+ }
37
+
38
+ :host([position^='start'][start-aligned]) [part='overlay'],
39
+ :host([position^='end'][start-aligned]) [part='overlay'] {
40
+ margin-inline-start: var(--vaadin-tooltip-offset-start, 0);
41
+ }
42
+
43
+ :host([position^='start'][end-aligned]) [part='overlay'],
44
+ :host([position^='end'][end-aligned]) [part='overlay'] {
45
+ margin-inline-end: var(--vaadin-tooltip-offset-end, 0);
46
+ }
47
+
48
+ @media (forced-colors: active) {
49
+ [part='overlay'] {
50
+ outline: 1px dashed;
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,24 @@
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_upload-file-list {
7
+ :host {
8
+ display: block;
9
+ }
10
+
11
+ :host([hidden]) {
12
+ display: none !important;
13
+ }
14
+
15
+ [part='list'] {
16
+ padding: 0;
17
+ margin: 0;
18
+ list-style-type: none;
19
+ }
20
+
21
+ ::slotted(li:not(:first-of-type)) {
22
+ border-top: 1px solid var(--lumo-contrast-10pct);
23
+ }
24
+ }