@vaadin/vaadin-lumo-styles 25.0.0-alpha6 → 25.0.0-alpha8

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 (221) hide show
  1. package/auto-complete.css +0 -71
  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 +11 -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/global.css +8 -0
  79. package/lumo.css +8 -0
  80. package/package.json +8 -6
  81. package/props.css +12 -0
  82. package/src/components/accordion-heading.css +42 -0
  83. package/src/components/accordion-panel.css +38 -0
  84. package/src/components/app-layout.css +193 -0
  85. package/src/components/avatar-group-menu-item.css +22 -0
  86. package/src/components/avatar-group-overlay.css +15 -0
  87. package/src/components/avatar-group.css +67 -0
  88. package/src/components/avatar.css +86 -0
  89. package/src/components/button.css +334 -0
  90. package/src/components/card.css +38 -0
  91. package/src/components/chart.css +88 -0
  92. package/src/components/checkbox-group.css +18 -0
  93. package/src/components/checkbox.css +341 -0
  94. package/src/components/combo-box-item.css +18 -0
  95. package/src/components/combo-box-overlay.css +15 -0
  96. package/src/components/combo-box.css +14 -0
  97. package/src/components/confirm-dialog-overlay.css +59 -0
  98. package/src/components/context-menu-item.css +39 -0
  99. package/src/components/context-menu-list-box.css +40 -0
  100. package/src/components/context-menu-overlay.css +41 -0
  101. package/src/components/crud-dialog-overlay.css +57 -0
  102. package/src/components/crud-edit.css +30 -0
  103. package/src/components/crud.css +157 -0
  104. package/src/components/custom-field.css +102 -0
  105. package/src/components/dashboard-layout.css +94 -0
  106. package/src/components/dashboard-section.css +113 -0
  107. package/src/components/dashboard-widget.css +224 -0
  108. package/src/components/dashboard.css +23 -0
  109. package/src/components/date-picker-month-calendar.css +192 -0
  110. package/src/components/date-picker-overlay-content.css +161 -0
  111. package/src/components/date-picker-overlay.css +60 -0
  112. package/src/components/date-picker-year.css +35 -0
  113. package/src/components/date-picker.css +41 -0
  114. package/src/components/date-time-picker.css +36 -0
  115. package/src/components/details-summary.css +131 -0
  116. package/src/components/details.css +37 -0
  117. package/src/components/dialog-overlay.css +173 -0
  118. package/src/components/drawer-toggle.css +51 -0
  119. package/src/components/email-field.css +26 -0
  120. package/src/components/field-outline.css +51 -0
  121. package/src/components/form-item.css +36 -0
  122. package/src/components/form-layout.css +11 -0
  123. package/src/components/grid-filter.css +16 -0
  124. package/src/components/grid-pro-edit-select.css +19 -0
  125. package/src/components/grid-pro.css +84 -0
  126. package/src/components/grid-sorter.css +70 -0
  127. package/src/components/grid-tree-toggle.css +104 -0
  128. package/src/components/grid.css +755 -0
  129. package/src/components/horizontal-layout.css +38 -0
  130. package/src/components/icon.css +11 -0
  131. package/src/components/input-container.css +230 -0
  132. package/src/components/item.css +94 -0
  133. package/src/components/list-box.css +31 -0
  134. package/src/components/login-form-wrapper.css +134 -0
  135. package/src/components/login-overlay-wrapper.css +179 -0
  136. package/src/components/map.css +182 -0
  137. package/src/components/master-detail-layout.css +21 -0
  138. package/src/components/menu-bar-button.css +128 -0
  139. package/src/components/menu-bar-item.css +23 -0
  140. package/src/components/menu-bar-overlay.css +10 -0
  141. package/src/components/menu-bar.css +31 -0
  142. package/src/components/message-input.css +30 -0
  143. package/src/components/message.css +82 -0
  144. package/src/components/multi-select-combo-box-chip.css +113 -0
  145. package/src/components/multi-select-combo-box-container.css +20 -0
  146. package/src/components/multi-select-combo-box-item.css +13 -0
  147. package/src/components/multi-select-combo-box-overlay.css +18 -0
  148. package/src/components/multi-select-combo-box.css +98 -0
  149. package/src/components/notification-card.css +228 -0
  150. package/src/components/notification-container.css +53 -0
  151. package/src/components/number-field.css +53 -0
  152. package/src/components/password-field-button.css +19 -0
  153. package/src/components/password-field.css +24 -0
  154. package/src/components/popover-overlay.css +156 -0
  155. package/src/components/progress-bar.css +295 -0
  156. package/src/components/radio-button.css +156 -0
  157. package/src/components/radio-group.css +18 -0
  158. package/src/components/rich-text-editor-popup-overlay.css +27 -0
  159. package/src/components/rich-text-editor.css +485 -0
  160. package/src/components/scroller.css +40 -0
  161. package/src/components/select-overlay.css +54 -0
  162. package/src/components/select-value-button.css +57 -0
  163. package/src/components/select.css +60 -0
  164. package/src/components/side-nav-item.css +170 -0
  165. package/src/components/side-nav.css +102 -0
  166. package/src/components/split-layout.css +131 -0
  167. package/src/components/tab.css +246 -0
  168. package/src/components/tabs.css +285 -0
  169. package/src/components/tabsheet.css +59 -0
  170. package/src/components/text-area.css +116 -0
  171. package/src/components/time-picker-overlay.css +15 -0
  172. package/src/components/time-picker.css +36 -0
  173. package/src/components/tooltip-overlay.css +50 -0
  174. package/src/components/upload-file-list.css +24 -0
  175. package/src/components/upload-file.css +133 -0
  176. package/src/components/upload-icon.css +14 -0
  177. package/src/components/upload.css +56 -0
  178. package/src/components/user-tag.css +48 -0
  179. package/src/components/user-tags-overlay.css +67 -0
  180. package/src/components/vertical-layout.css +38 -0
  181. package/src/global/badge.css +167 -0
  182. package/src/global/color-scheme.css +99 -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 +121 -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/style.d.ts +0 -2
  220. package/style.js +1 -89
  221. package/utility.css +17 -0
@@ -0,0 +1,192 @@
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_date-picker-month-calendar {
7
+ :host {
8
+ display: block;
9
+ -webkit-user-select: none;
10
+ -webkit-tap-highlight-color: transparent;
11
+ user-select: none;
12
+ font-size: var(--lumo-font-size-m);
13
+ color: var(--lumo-body-text-color);
14
+ text-align: center;
15
+ padding: 0 var(--lumo-space-xs);
16
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
17
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
18
+ --_selection-color: var(--vaadin-selection-color, var(--lumo-primary-color));
19
+ --_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
20
+ }
21
+
22
+ #monthGrid {
23
+ width: 100%;
24
+ border-collapse: collapse;
25
+ }
26
+
27
+ #days-container tr,
28
+ #weekdays-container tr {
29
+ display: flex;
30
+ }
31
+
32
+ [part~='disabled'] {
33
+ pointer-events: none;
34
+ }
35
+
36
+ /* Month header */
37
+
38
+ [part='month-header'] {
39
+ color: var(--lumo-header-text-color);
40
+ font-size: var(--lumo-font-size-l);
41
+ line-height: 1;
42
+ font-weight: 500;
43
+ margin-bottom: var(--lumo-space-m);
44
+ }
45
+
46
+ /* Week days and numbers */
47
+
48
+ [part='weekdays'],
49
+ [part='weekday'],
50
+ [part='week-number'] {
51
+ font-size: var(--lumo-font-size-xxs);
52
+ line-height: 1;
53
+ color: var(--lumo-secondary-text-color);
54
+ }
55
+
56
+ [part='weekdays'] {
57
+ margin-bottom: var(--lumo-space-s);
58
+ }
59
+
60
+ [part='weekday']:empty,
61
+ [part='week-number'] {
62
+ flex-shrink: 0;
63
+ padding: 0;
64
+ width: var(--lumo-size-xs);
65
+ }
66
+
67
+ [part='week-number'][hidden],
68
+ [part='weekday'][hidden] {
69
+ display: none;
70
+ }
71
+
72
+ /* Date and week number cells */
73
+
74
+ [part~='date'],
75
+ [part='week-number'] {
76
+ box-sizing: border-box;
77
+ display: inline-flex;
78
+ align-items: center;
79
+ justify-content: center;
80
+ height: var(--lumo-size-m);
81
+ position: relative;
82
+ }
83
+
84
+ [part~='date'] {
85
+ outline: none;
86
+ transition: color 0.1s;
87
+ }
88
+
89
+ [part~='date']:not(:empty) {
90
+ cursor: var(--lumo-clickable-cursor);
91
+ }
92
+
93
+ [part='weekday'],
94
+ [part~='date'] {
95
+ width: calc(100% / 7);
96
+ padding: 0;
97
+ font-weight: normal;
98
+ }
99
+
100
+ :host([week-numbers]) [part='weekday']:not(:empty),
101
+ :host([week-numbers]) [part~='date'] {
102
+ width: calc((100% - var(--lumo-size-xs)) / 7);
103
+ }
104
+
105
+ /* Today date */
106
+
107
+ [part~='date'][part~='today'] {
108
+ color: var(--_selection-color-text);
109
+ }
110
+
111
+ /* Focused date */
112
+
113
+ [part~='date']::before {
114
+ content: '';
115
+ position: absolute;
116
+ z-index: -1;
117
+ top: 50%;
118
+ left: 50%;
119
+ transform: translate(-50%, -50%);
120
+ min-width: 2em;
121
+ min-height: 2em;
122
+ width: 80%;
123
+ height: 80%;
124
+ max-height: 100%;
125
+ max-width: 100%;
126
+ border-radius: var(--lumo-border-radius-m);
127
+ }
128
+
129
+ [part~='date'][part~='focused']::before {
130
+ box-shadow:
131
+ 0 0 0 1px var(--lumo-base-color),
132
+ 0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color);
133
+ }
134
+
135
+ :host(:not([focused])) [part~='date'][part~='focused']::before {
136
+ animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
137
+ }
138
+
139
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
140
+ 50% {
141
+ box-shadow:
142
+ 0 0 0 1px var(--lumo-base-color),
143
+ 0 0 0 calc(var(--_focus-ring-width) + 1px) transparent;
144
+ }
145
+ }
146
+
147
+ [part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
148
+ background-color: var(--lumo-primary-color-10pct);
149
+ }
150
+
151
+ [part~='date'][part~='selected'] {
152
+ color: var(--lumo-primary-contrast-color);
153
+ }
154
+
155
+ [part~='date'][part~='selected']::before {
156
+ background-color: var(--_selection-color);
157
+ }
158
+
159
+ [part~='date'][part~='disabled'] {
160
+ color: var(--lumo-disabled-text-color);
161
+ }
162
+
163
+ @media (pointer: coarse) {
164
+ [part~='date']:hover:not([part~='selected'])::before,
165
+ :host(:not([focus-ring])) [part~='focused']:not([part~='selected'])::before {
166
+ display: none;
167
+ }
168
+
169
+ [part~='date']:not(:empty):not([part~='disabled']):active::before {
170
+ display: block;
171
+ }
172
+
173
+ :host(:not([focus-ring])) [part~='date'][part~='selected']::before {
174
+ box-shadow: none;
175
+ }
176
+ }
177
+ /* Disabled */
178
+
179
+ :host([disabled]) * {
180
+ color: var(--lumo-disabled-text-color) !important;
181
+ }
182
+
183
+ @media (forced-colors: active) {
184
+ [part~='date'][part~='focused'] {
185
+ outline: 1px solid;
186
+ }
187
+
188
+ [part~='date'][part~='selected'] {
189
+ outline: 3px solid;
190
+ }
191
+ }
192
+ }
@@ -0,0 +1,161 @@
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_date-picker-overlay-content {
7
+ :host {
8
+ display: grid;
9
+ grid-template-areas:
10
+ 'header header'
11
+ 'months years'
12
+ 'toolbar years';
13
+ grid-template-columns: minmax(0, 1fr) 0;
14
+ height: 100%;
15
+ outline: none;
16
+ position: relative;
17
+ /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
18
+ background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
19
+ background-size: 57px 100%;
20
+ background-position: top right;
21
+ background-repeat: no-repeat;
22
+ cursor: default;
23
+ }
24
+
25
+ :host([dir='rtl']) {
26
+ background-position: top left;
27
+ }
28
+
29
+ :host([desktop]) {
30
+ grid-template-columns: minmax(0, 1fr) auto;
31
+ }
32
+
33
+ :host([fullscreen][years-visible]) {
34
+ grid-template-columns: minmax(0, 1fr) auto;
35
+ }
36
+
37
+ [hidden] {
38
+ display: none !important;
39
+ }
40
+
41
+ ::slotted([slot='months']) {
42
+ /* Month calendar height:
43
+ header height + margin-bottom
44
+ + weekdays height + margin-bottom
45
+ + date cell heights
46
+ + small margin between month calendars
47
+ */
48
+ /* prettier-ignore */
49
+ --vaadin-infinite-scroller-item-height:
50
+ calc(
51
+ var(--lumo-font-size-l) + var(--lumo-space-m)
52
+ + var(--lumo-font-size-xs) + var(--lumo-space-s)
53
+ + var(--lumo-size-m) * 6
54
+ + var(--lumo-space-s)
55
+ );
56
+ --vaadin-infinite-scroller-buffer-offset: 10%;
57
+ mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
58
+ position: relative;
59
+ }
60
+
61
+ ::slotted([slot='years']) {
62
+ /* TODO get rid of fixed magic number */
63
+ --vaadin-infinite-scroller-buffer-width: 57px;
64
+ width: 57px;
65
+ height: auto;
66
+ top: 0;
67
+ bottom: 0;
68
+ font-size: var(--lumo-font-size-s);
69
+ box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
70
+ mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
71
+ cursor: var(--lumo-clickable-cursor);
72
+ }
73
+
74
+ :host([dir='rtl']) ::slotted([slot='years']) {
75
+ box-shadow: inset -2px 0 4px 0 var(--lumo-shade-5pct);
76
+ }
77
+
78
+ ::slotted([slot='years']:hover) {
79
+ --_lumo-date-picker-year-opacity: 1;
80
+ }
81
+
82
+ :host([desktop]) ::slotted([slot='years']),
83
+ :host([years-visible]) ::slotted([slot='years']) {
84
+ visibility: visible;
85
+ }
86
+
87
+ /* Year scroller position indicator */
88
+ ::slotted([slot='years'])::before {
89
+ border: none;
90
+ width: 1em;
91
+ height: 1em;
92
+ background-color: var(--lumo-base-color);
93
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
94
+ transform: translate(-75%, -50%) rotate(45deg);
95
+ border-top-right-radius: var(--lumo-border-radius-s);
96
+ box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
97
+ z-index: 1;
98
+ }
99
+
100
+ :host([dir='rtl']) ::slotted([slot='years'])::before {
101
+ right: 0;
102
+ transform: translate(75%, -50%) rotate(45deg);
103
+ }
104
+
105
+ [part='toolbar'] {
106
+ display: flex;
107
+ grid-area: toolbar;
108
+ justify-content: space-between;
109
+ padding: var(--lumo-space-s);
110
+ border-bottom-left-radius: var(--lumo-border-radius-l);
111
+ }
112
+
113
+ /* Narrow viewport mode (fullscreen) */
114
+
115
+ :host([fullscreen]) [part='toolbar'] {
116
+ grid-area: header;
117
+ margin-inline-end: 57px;
118
+ background-color: var(--lumo-base-color);
119
+ }
120
+
121
+ [part='toolbar'] ::slotted(vaadin-button) {
122
+ margin: 0;
123
+ }
124
+
125
+ /* Very narrow screen (year scroller initially hidden) */
126
+
127
+ [part='years-toggle-button'] {
128
+ display: flex;
129
+ align-items: center;
130
+ height: var(--lumo-size-m);
131
+ padding: 0 0.5em;
132
+ border-radius: var(--lumo-border-radius-m);
133
+ color: var(--lumo-primary-text-color);
134
+ font-weight: 500;
135
+ -webkit-font-smoothing: antialiased;
136
+ -moz-osx-font-smoothing: grayscale;
137
+ }
138
+
139
+ :host([years-visible]) [part='years-toggle-button'] {
140
+ background-color: var(--lumo-primary-color);
141
+ color: var(--lumo-primary-contrast-color);
142
+ }
143
+
144
+ /* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
145
+ @media screen and (max-width: 374px) {
146
+ :host {
147
+ background-image: none;
148
+ }
149
+
150
+ :host([fullscreen]) [part='toolbar'] {
151
+ margin-inline-end: 0;
152
+ }
153
+
154
+ /* TODO make date-picker adapt to the width of the years part */
155
+ ::slotted([slot='years']) {
156
+ --vaadin-infinite-scroller-buffer-width: 50px;
157
+ width: 50px;
158
+ background-color: var(--lumo-shade-5pct);
159
+ }
160
+ }
161
+ }
@@ -0,0 +1,60 @@
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_date-picker-overlay {
7
+ [part='overlay'] {
8
+ display: flex;
9
+ flex: auto;
10
+
11
+ /*
12
+ Width:
13
+ date cell widths
14
+ + month calendar side padding
15
+ + year scroller width
16
+ */
17
+ /* prettier-ignore */
18
+ width:
19
+ calc(
20
+ var(--lumo-size-m) * 7
21
+ + var(--lumo-space-xs) * 2
22
+ + 57px
23
+ );
24
+ height: 100%;
25
+ max-height: calc(var(--lumo-size-m) * 14);
26
+ overflow: hidden;
27
+ -webkit-tap-highlight-color: transparent;
28
+ flex-direction: column;
29
+ }
30
+
31
+ [part='content'] {
32
+ flex: auto;
33
+ padding: 0;
34
+ height: 100%;
35
+ overflow: hidden;
36
+ mask-image: none;
37
+ }
38
+
39
+ :host([top-aligned]) [part='overlay'] {
40
+ margin-top: var(--lumo-space-xs);
41
+ }
42
+
43
+ :host([bottom-aligned]) [part='overlay'] {
44
+ margin-bottom: var(--lumo-space-xs);
45
+ }
46
+
47
+ @media (max-width: 450px), (max-height: 450px) {
48
+ [part='overlay'] {
49
+ width: 100vw;
50
+ height: 70vh;
51
+ max-height: 70vh;
52
+ }
53
+ }
54
+
55
+ @media (forced-colors: active) {
56
+ [part='overlay'] {
57
+ outline: 3px solid;
58
+ }
59
+ }
60
+ }
@@ -0,0 +1,35 @@
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_date-picker-year {
7
+ :host {
8
+ display: block;
9
+ height: 100%;
10
+ }
11
+
12
+ :host([current]) [part='year-number'] {
13
+ color: var(--lumo-primary-text-color);
14
+ }
15
+
16
+ :host(:not([current])) [part='year-number'],
17
+ [part='year-separator'] {
18
+ opacity: var(--_lumo-date-picker-year-opacity, 0.7);
19
+ transition: 0.2s opacity;
20
+ }
21
+
22
+ [part='year-number'],
23
+ [part='year-separator'] {
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ height: 50%;
28
+ transform: translateY(-50%);
29
+ }
30
+
31
+ [part='year-separator']::after {
32
+ color: var(--lumo-disabled-text-color);
33
+ content: '\2022';
34
+ }
35
+ }
@@ -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_date-picker {
7
+ :host([opened]) {
8
+ pointer-events: auto;
9
+ }
10
+
11
+ :host([dir='rtl']) [part='input-field'] {
12
+ direction: ltr;
13
+ }
14
+
15
+ :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
16
+ direction: rtl;
17
+ text-align: left;
18
+ }
19
+
20
+ [part='toggle-button']::before {
21
+ content: var(--lumo-icons-calendar);
22
+ }
23
+
24
+ [part='clear-button']::before {
25
+ content: var(--lumo-icons-cross);
26
+ }
27
+
28
+ @media (max-width: 450px), (max-height: 450px) {
29
+ [part='overlay-content'] {
30
+ height: 70vh;
31
+ }
32
+ }
33
+
34
+ :host([dir='rtl']) [part='input-field'] ::slotted(input) {
35
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
36
+ }
37
+
38
+ :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
39
+ --_lumo-text-field-overflow-mask-image: none;
40
+ }
41
+ }
@@ -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_date-time-picker {
7
+ .vaadin-date-time-picker-container {
8
+ --vaadin-field-default-width: auto;
9
+ }
10
+
11
+ .slots {
12
+ display: flex;
13
+ --vaadin-field-default-width: 12em;
14
+ }
15
+
16
+ .slots ::slotted([slot='date-picker']) {
17
+ min-width: 0;
18
+ flex: 1 1 auto;
19
+ }
20
+
21
+ .slots ::slotted([slot='time-picker']) {
22
+ min-width: 0;
23
+ flex: 1 1.65 auto;
24
+ }
25
+
26
+ ::slotted([slot='date-picker']) {
27
+ margin-inline-end: 2px;
28
+ --vaadin-input-field-top-end-radius: 0;
29
+ --vaadin-input-field-bottom-end-radius: 0;
30
+ }
31
+
32
+ ::slotted([slot='time-picker']) {
33
+ --vaadin-input-field-top-start-radius: 0;
34
+ --vaadin-input-field-bottom-start-radius: 0;
35
+ }
36
+ }
@@ -0,0 +1,131 @@
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_details-summary {
7
+ :host {
8
+ white-space: nowrap;
9
+ -webkit-user-select: none;
10
+ user-select: none;
11
+ display: flex;
12
+ align-items: center;
13
+ width: 100%;
14
+ outline: none;
15
+ padding: var(--lumo-space-s) 0;
16
+ box-sizing: border-box;
17
+ font-family: var(--lumo-font-family);
18
+ font-size: var(--lumo-font-size-m);
19
+ font-weight: 500;
20
+ line-height: var(--lumo-line-height-xs);
21
+ color: var(--lumo-secondary-text-color);
22
+ background-color: inherit;
23
+ border-radius: var(--lumo-border-radius-m);
24
+ cursor: var(--lumo-clickable-cursor);
25
+ -webkit-tap-highlight-color: transparent;
26
+ -webkit-font-smoothing: antialiased;
27
+ -moz-osx-font-smoothing: grayscale;
28
+ }
29
+
30
+ :host([hidden]) {
31
+ display: none !important;
32
+ }
33
+
34
+ :host([disabled]) {
35
+ pointer-events: none;
36
+ }
37
+
38
+ :host([disabled]),
39
+ :host([disabled]) [part='toggle'] {
40
+ color: var(--lumo-disabled-text-color);
41
+ cursor: default;
42
+ }
43
+
44
+ @media (hover: hover) {
45
+ :host(:hover:not([disabled])),
46
+ :host(:hover:not([disabled])) [part='toggle'] {
47
+ color: var(--lumo-contrast-80pct);
48
+ }
49
+ }
50
+
51
+ [part='toggle'] {
52
+ display: block;
53
+ width: 1em;
54
+ height: 1em;
55
+ margin-left: calc(var(--lumo-space-xs) * -1);
56
+ margin-right: var(--lumo-space-xs);
57
+ font-size: var(--lumo-icon-size-s);
58
+ line-height: 1;
59
+ color: var(--lumo-contrast-60pct);
60
+ font-family: 'lumo-icons';
61
+ cursor: var(--lumo-clickable-cursor);
62
+ }
63
+
64
+ [part='toggle']::before {
65
+ content: var(--lumo-icons-angle-right);
66
+ }
67
+
68
+ :host([opened]) [part='toggle'] {
69
+ transform: rotate(90deg);
70
+ }
71
+
72
+ [part='content'] {
73
+ flex-grow: 1;
74
+ }
75
+
76
+ /* RTL styles */
77
+ :host([dir='rtl']) [part='toggle'] {
78
+ margin-left: var(--lumo-space-xs);
79
+ margin-right: calc(var(--lumo-space-xs) * -1);
80
+ }
81
+
82
+ :host([dir='rtl']) [part='toggle']::before {
83
+ content: var(--lumo-icons-angle-left);
84
+ }
85
+
86
+ :host([opened][dir='rtl']) [part='toggle'] {
87
+ transform: rotate(-90deg);
88
+ }
89
+
90
+ /* Small */
91
+ :host([theme~='small']) {
92
+ padding-top: var(--lumo-space-xs);
93
+ padding-bottom: var(--lumo-space-xs);
94
+ }
95
+
96
+ :host([theme~='small']) [part='toggle'] {
97
+ margin-right: calc(var(--lumo-space-xs) / 2);
98
+ }
99
+
100
+ :host([theme~='small'][dir='rtl']) [part='toggle'] {
101
+ margin-left: calc(var(--lumo-space-xs) / 2);
102
+ }
103
+
104
+ /* Filled */
105
+ :host([theme~='filled']) {
106
+ padding: var(--lumo-space-s) calc(var(--lumo-space-s) + var(--lumo-space-xs) / 2);
107
+ }
108
+
109
+ /* Reverse */
110
+ :host([theme~='reverse']) {
111
+ justify-content: space-between;
112
+ }
113
+
114
+ :host([theme~='reverse']) [part='toggle'] {
115
+ order: 1;
116
+ margin-right: 0;
117
+ }
118
+
119
+ :host([theme~='reverse'][dir='rtl']) [part='toggle'] {
120
+ margin-left: 0;
121
+ }
122
+
123
+ /* Filled reverse */
124
+ :host([theme~='reverse'][theme~='filled']) {
125
+ padding-left: var(--lumo-space-m);
126
+ }
127
+
128
+ :host([theme~='reverse'][theme~='filled'][dir='rtl']) {
129
+ padding-right: var(--lumo-space-m);
130
+ }
131
+ }
@@ -0,0 +1,37 @@
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_details {
7
+ :host {
8
+ margin: var(--lumo-space-xs) 0;
9
+ outline: none;
10
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
11
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
12
+ }
13
+
14
+ :host([focus-ring]) ::slotted([slot='summary']) {
15
+ box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
16
+ }
17
+
18
+ [part='content'] {
19
+ padding: var(--lumo-space-xs) 0 var(--lumo-space-s);
20
+ font-size: var(--lumo-font-size-m);
21
+ line-height: var(--lumo-line-height-m);
22
+ }
23
+
24
+ :host([theme~='filled']) {
25
+ background-color: var(--lumo-contrast-5pct);
26
+ border-radius: var(--lumo-border-radius-m);
27
+ }
28
+
29
+ :host([theme~='filled']) [part='content'] {
30
+ padding-left: var(--lumo-space-m);
31
+ padding-right: var(--lumo-space-m);
32
+ }
33
+
34
+ :host([theme~='small']) [part$='content'] {
35
+ font-size: var(--lumo-font-size-s);
36
+ }
37
+ }