@vaadin/vaadin-lumo-styles 25.0.0-alpha2 → 25.0.0-alpha20

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 (263) hide show
  1. package/all-imports.d.ts +0 -8
  2. package/all-imports.js +0 -18
  3. package/components/accordion-heading.css +14 -0
  4. package/components/accordion-panel.css +15 -0
  5. package/{user-colors.d.ts → components/accordion.css} +2 -3
  6. package/components/app-layout.css +11 -0
  7. package/components/avatar-group.css +31 -0
  8. package/components/avatar.css +17 -0
  9. package/components/button.css +11 -0
  10. package/components/card.css +50 -0
  11. package/components/charts.css +11 -0
  12. package/components/checkbox-group.css +23 -0
  13. package/components/checkbox.css +14 -0
  14. package/components/combo-box.css +47 -0
  15. package/components/confirm-dialog.css +17 -0
  16. package/components/context-menu.css +32 -0
  17. package/components/crud.css +40 -0
  18. package/components/custom-field.css +20 -0
  19. package/components/dashboard.css +34 -0
  20. package/components/date-picker.css +49 -0
  21. package/components/date-time-picker.css +28 -0
  22. package/components/details-summary.css +11 -0
  23. package/components/details.css +12 -0
  24. package/components/dialog.css +16 -0
  25. package/components/drawer-toggle.css +14 -0
  26. package/components/email-field.css +25 -0
  27. package/components/field-highlighter.css +22 -0
  28. package/components/form-item.css +11 -0
  29. package/components/form-layout.css +11 -0
  30. package/components/grid-filter-column.css +6 -0
  31. package/components/grid-filter.css +12 -0
  32. package/components/grid-pro-edit-column.css +48 -0
  33. package/components/grid-pro.css +14 -0
  34. package/components/grid-selection-column.css +6 -0
  35. package/components/grid-sort-column.css +6 -0
  36. package/components/grid-sorter.css +19 -0
  37. package/components/grid-tree-column.css +6 -0
  38. package/components/grid-tree-toggle.css +11 -0
  39. package/components/grid.css +11 -0
  40. package/components/horizontal-layout.css +11 -0
  41. package/components/icon.css +11 -0
  42. package/components/index.css +71 -0
  43. package/components/input-container.css +11 -0
  44. package/components/integer-field.css +25 -0
  45. package/components/item.css +11 -0
  46. package/components/list-box.css +11 -0
  47. package/components/login-form.css +14 -0
  48. package/components/login.css +15 -0
  49. package/components/map.css +11 -0
  50. package/components/master-detail-layout.css +19 -0
  51. package/components/menu-bar.css +47 -0
  52. package/components/message-input-button.css +11 -0
  53. package/components/message-input.css +13 -0
  54. package/components/message-list.css +6 -0
  55. package/components/message.css +12 -0
  56. package/components/multi-select-combo-box.css +61 -0
  57. package/components/notification.css +15 -0
  58. package/components/number-field.css +25 -0
  59. package/components/overlay.css +11 -0
  60. package/components/password-field.css +32 -0
  61. package/components/popover.css +14 -0
  62. package/components/progress-bar.css +11 -0
  63. package/components/radio-button.css +14 -0
  64. package/components/radio-group.css +23 -0
  65. package/components/rich-text-editor.css +26 -0
  66. package/components/scroller.css +11 -0
  67. package/components/select.css +48 -0
  68. package/components/side-nav-item.css +14 -0
  69. package/components/side-nav.css +12 -0
  70. package/components/split-layout.css +11 -0
  71. package/components/tab.css +11 -0
  72. package/components/tabs.css +12 -0
  73. package/components/tabsheet.css +19 -0
  74. package/components/text-area.css +25 -0
  75. package/components/text-field.css +23 -0
  76. package/components/time-picker.css +43 -0
  77. package/components/tooltip.css +14 -0
  78. package/components/upload.css +31 -0
  79. package/components/vertical-layout.css +11 -0
  80. package/dist/lumo.css +41 -0
  81. package/dist/presets/compact.css +1 -0
  82. package/dist/utility.css +1 -0
  83. package/{color-global.js → global.css} +3 -4
  84. package/{badge-global.js → lumo.css} +3 -4
  85. package/mixins/field-button.js +3 -4
  86. package/mixins/helper.js +3 -4
  87. package/mixins/input-field-shared.js +5 -9
  88. package/mixins/loader.js +3 -2
  89. package/mixins/menu-overlay.js +3 -4
  90. package/mixins/overlay.js +3 -4
  91. package/mixins/required-field.js +3 -4
  92. package/package.json +23 -14
  93. package/postcss.config.js +11 -0
  94. package/presets/compact.css +31 -0
  95. package/props.css +12 -0
  96. package/src/components/accordion-heading.css +42 -0
  97. package/src/components/accordion-panel.css +38 -0
  98. package/src/components/app-layout.css +193 -0
  99. package/src/components/avatar-group-menu-item.css +22 -0
  100. package/src/components/avatar-group-overlay.css +11 -0
  101. package/src/components/avatar-group.css +67 -0
  102. package/src/components/avatar.css +86 -0
  103. package/src/components/button.css +334 -0
  104. package/src/components/card.css +38 -0
  105. package/src/components/chart.css +86 -0
  106. package/src/components/checkbox-group.css +18 -0
  107. package/src/components/checkbox.css +340 -0
  108. package/src/components/combo-box-item.css +18 -0
  109. package/src/components/combo-box-overlay.css +15 -0
  110. package/src/components/combo-box.css +14 -0
  111. package/src/components/confirm-dialog-overlay.css +55 -0
  112. package/src/components/context-menu-item.css +39 -0
  113. package/src/components/context-menu-list-box.css +40 -0
  114. package/src/components/context-menu-overlay.css +62 -0
  115. package/src/components/crud-dialog-overlay.css +57 -0
  116. package/src/components/crud-edit.css +30 -0
  117. package/src/components/crud.css +157 -0
  118. package/src/components/custom-field.css +102 -0
  119. package/src/components/dashboard-layout.css +28 -0
  120. package/src/components/dashboard-section.css +85 -0
  121. package/src/components/dashboard-widget.css +140 -0
  122. package/src/components/dashboard.css +14 -0
  123. package/src/components/date-picker-month-calendar.css +192 -0
  124. package/src/components/date-picker-overlay-content.css +127 -0
  125. package/src/components/date-picker-overlay.css +48 -0
  126. package/src/components/date-picker-year.css +35 -0
  127. package/src/components/date-picker.css +41 -0
  128. package/src/components/date-time-picker.css +36 -0
  129. package/src/components/details-summary.css +131 -0
  130. package/src/components/details.css +37 -0
  131. package/src/components/dialog-overlay.css +164 -0
  132. package/src/components/drawer-toggle.css +51 -0
  133. package/src/components/email-field.css +26 -0
  134. package/src/components/field-outline.css +51 -0
  135. package/src/components/form-item.css +36 -0
  136. package/src/components/form-layout.css +12 -0
  137. package/src/components/grid-filter.css +16 -0
  138. package/src/components/grid-pro-edit-select.css +19 -0
  139. package/src/components/grid-pro.css +90 -0
  140. package/src/components/grid-sorter.css +70 -0
  141. package/src/components/grid-tree-toggle.css +104 -0
  142. package/src/components/grid.css +755 -0
  143. package/src/components/horizontal-layout.css +34 -0
  144. package/src/components/icon.css +11 -0
  145. package/src/components/input-container.css +228 -0
  146. package/src/components/item.css +94 -0
  147. package/src/components/list-box.css +31 -0
  148. package/src/components/login-form-wrapper.css +113 -0
  149. package/src/components/login-overlay-wrapper.css +189 -0
  150. package/src/components/map.css +182 -0
  151. package/src/components/menu-bar-button.css +128 -0
  152. package/src/components/menu-bar-item.css +23 -0
  153. package/{utility-global.js → src/components/menu-bar-overlay.css} +5 -4
  154. package/src/components/menu-bar.css +31 -0
  155. package/src/components/message-input.css +30 -0
  156. package/src/components/message.css +57 -0
  157. package/src/components/multi-select-combo-box-chip.css +113 -0
  158. package/src/components/multi-select-combo-box-container.css +20 -0
  159. package/src/components/multi-select-combo-box-item.css +13 -0
  160. package/src/components/multi-select-combo-box-overlay.css +18 -0
  161. package/src/components/multi-select-combo-box.css +102 -0
  162. package/src/components/notification-card.css +228 -0
  163. package/src/components/notification-container.css +60 -0
  164. package/src/components/number-field.css +53 -0
  165. package/src/components/password-field-button.css +19 -0
  166. package/src/components/password-field.css +24 -0
  167. package/src/components/popover-overlay.css +20 -0
  168. package/src/components/progress-bar.css +295 -0
  169. package/src/components/radio-button.css +156 -0
  170. package/src/components/radio-group.css +18 -0
  171. package/src/components/rich-text-editor-popup-overlay.css +27 -0
  172. package/src/components/rich-text-editor.css +383 -0
  173. package/src/components/scroller.css +21 -0
  174. package/src/components/select-overlay.css +54 -0
  175. package/src/components/select-value-button.css +57 -0
  176. package/src/components/select.css +73 -0
  177. package/src/components/side-nav-item.css +183 -0
  178. package/src/components/side-nav.css +102 -0
  179. package/src/components/split-layout.css +53 -0
  180. package/src/components/tab.css +246 -0
  181. package/src/components/tabs.css +285 -0
  182. package/src/components/tabsheet.css +63 -0
  183. package/src/components/text-area.css +116 -0
  184. package/src/components/time-picker-overlay.css +15 -0
  185. package/src/components/time-picker.css +36 -0
  186. package/src/components/tooltip-overlay.css +50 -0
  187. package/src/components/upload-file.css +99 -0
  188. package/src/components/upload-icon.css +20 -0
  189. package/src/components/upload.css +56 -0
  190. package/src/components/user-tag.css +48 -0
  191. package/src/components/user-tags-overlay.css +64 -0
  192. package/src/components/vertical-layout.css +34 -0
  193. package/src/global/badge.css +167 -0
  194. package/src/global/color-scheme.css +99 -0
  195. package/src/global/typography.css +113 -0
  196. package/src/mixins/checkable-field.css +67 -0
  197. package/src/mixins/combo-box-loader.css +14 -0
  198. package/src/mixins/combo-box-overlay.css +30 -0
  199. package/src/mixins/dashboard-item.css +121 -0
  200. package/src/mixins/field-base.css +187 -0
  201. package/src/mixins/field-button.css +46 -0
  202. package/src/mixins/field-error-message.css +36 -0
  203. package/src/mixins/field-helper.css +62 -0
  204. package/src/mixins/field-label.css +62 -0
  205. package/src/mixins/field-required.css +26 -0
  206. package/src/mixins/grid-pro-editor.css +35 -0
  207. package/src/mixins/group-field.css +58 -0
  208. package/src/mixins/loader.css +48 -0
  209. package/src/mixins/menu-overlay-core.css +36 -0
  210. package/src/mixins/menu-overlay-ext.css +63 -0
  211. package/src/mixins/overlay.css +130 -0
  212. package/src/mixins/resizable-overlay.css +100 -0
  213. package/src/props/color.css +98 -0
  214. package/src/props/icons.css +63 -0
  215. package/src/props/reset.css +11 -0
  216. package/src/props/sizing.css +19 -0
  217. package/src/props/spacing.css +27 -0
  218. package/src/props/style.css +21 -0
  219. package/src/props/typography.css +24 -0
  220. package/src/utilities/accessibility.css +17 -0
  221. package/src/utilities/background.css +189 -0
  222. package/src/utilities/border.css +173 -0
  223. package/src/utilities/filter.css +37 -0
  224. package/src/utilities/flexbox-grid.css +781 -0
  225. package/src/utilities/layout.css +629 -0
  226. package/src/utilities/shadows.css +29 -0
  227. package/src/utilities/sizing.css +142 -0
  228. package/src/utilities/spacing.css +682 -0
  229. package/src/utilities/transition.css +46 -0
  230. package/src/utilities/typography.css +424 -0
  231. package/utility.css +16 -0
  232. package/vaadin-iconset.js +4 -0
  233. package/auto-complete.css +0 -2582
  234. package/badge.d.ts +0 -3
  235. package/badge.js +0 -178
  236. package/color.d.ts +0 -5
  237. package/color.js +0 -221
  238. package/font-icons.js +0 -67
  239. package/global.js +0 -5
  240. package/presets/compact.js +0 -40
  241. package/sizing.d.ts +0 -3
  242. package/sizing.js +0 -29
  243. package/spacing.d.ts +0 -3
  244. package/spacing.js +0 -37
  245. package/style.d.ts +0 -5
  246. package/style.js +0 -119
  247. package/typography-global.js +0 -13
  248. package/typography.d.ts +0 -7
  249. package/typography.js +0 -129
  250. package/user-colors.js +0 -33
  251. package/utilities/accessibility.js +0 -21
  252. package/utilities/background.js +0 -156
  253. package/utilities/border.js +0 -147
  254. package/utilities/filter.js +0 -34
  255. package/utilities/flexbox-grid.js +0 -619
  256. package/utilities/layout.js +0 -504
  257. package/utilities/shadows.js +0 -28
  258. package/utilities/sizing.js +0 -121
  259. package/utilities/spacing.js +0 -542
  260. package/utilities/transition.js +0 -49
  261. package/utilities/typography.js +0 -344
  262. package/utility.d.ts +0 -3
  263. package/utility.js +0 -34
@@ -0,0 +1,183 @@
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_side-nav-item {
7
+ :host {
8
+ display: block;
9
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
10
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
11
+ }
12
+
13
+ :host([hidden]),
14
+ [hidden] {
15
+ display: none !important;
16
+ }
17
+
18
+ :host([disabled]) {
19
+ pointer-events: none;
20
+ }
21
+
22
+ [part='content'] {
23
+ display: flex;
24
+ align-items: center;
25
+ }
26
+
27
+ [part='link'] {
28
+ flex: auto;
29
+ min-width: 0;
30
+ display: flex;
31
+ align-items: center;
32
+ text-decoration: none;
33
+ color: inherit;
34
+ font: inherit;
35
+ width: 100%;
36
+ gap: var(--lumo-space-xs);
37
+ padding: var(--lumo-space-s);
38
+ padding-inline-start: calc(var(--lumo-space-s) + var(--_child-indent, 0px));
39
+ border-radius: var(--lumo-border-radius-m);
40
+ transition:
41
+ background-color 140ms,
42
+ color 140ms;
43
+ cursor: var(--lumo-clickable-cursor, default);
44
+ min-height: var(--lumo-icon-size-m);
45
+ }
46
+
47
+ button {
48
+ appearance: none;
49
+ flex: none;
50
+ position: relative;
51
+ margin: 0;
52
+ padding: 0;
53
+ border: 0;
54
+ background: transparent;
55
+ }
56
+
57
+ [part='children'] {
58
+ padding: 0;
59
+ margin: 0;
60
+ list-style-type: none;
61
+ }
62
+
63
+ :host(:not([has-children])) button {
64
+ display: none !important;
65
+ }
66
+
67
+ slot[name='prefix'],
68
+ slot[name='suffix'] {
69
+ flex: none;
70
+ }
71
+
72
+ slot:not([name]) {
73
+ display: block;
74
+ flex: auto;
75
+ min-width: 0;
76
+ overflow: hidden;
77
+ text-overflow: ellipsis;
78
+ white-space: nowrap;
79
+ margin: 0 var(--lumo-space-s);
80
+ }
81
+
82
+ [part='link'][href] {
83
+ cursor: pointer;
84
+ }
85
+
86
+ :host([disabled]) [part='link'] {
87
+ color: var(--lumo-disabled-text-color);
88
+ }
89
+
90
+ [part='toggle-button'] {
91
+ margin-inline-end: calc(var(--lumo-space-xs) * -1);
92
+ width: var(--lumo-size-s);
93
+ height: var(--lumo-size-s);
94
+ }
95
+
96
+ :host([has-children]) [part='content'] {
97
+ padding-inline-end: var(--lumo-space-s);
98
+ }
99
+
100
+ @media (any-hover: hover) {
101
+ [part='link']:hover {
102
+ color: var(--lumo-header-text-color);
103
+ }
104
+
105
+ [part='toggle-button']:hover {
106
+ color: var(--lumo-body-text-color);
107
+ }
108
+ }
109
+
110
+ [part='link']:active:focus {
111
+ background-color: var(--lumo-contrast-5pct);
112
+ }
113
+
114
+ [part='toggle-button']::before {
115
+ content: var(--lumo-icons-dropdown);
116
+ transform: rotate(-90deg);
117
+ transition: transform 140ms;
118
+ }
119
+
120
+ :host([dir='rtl']) [part='toggle-button']::before {
121
+ transform: rotate(90deg);
122
+ }
123
+
124
+ :host([expanded]) [part='toggle-button']::before {
125
+ transform: none;
126
+ }
127
+
128
+ [part='link'],
129
+ [part='toggle-button'] {
130
+ outline: none;
131
+ }
132
+
133
+ [part='link']:focus-visible,
134
+ [part='toggle-button']:focus-visible {
135
+ border-radius: var(--lumo-border-radius-m);
136
+ box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
137
+ }
138
+
139
+ [part='link']:active {
140
+ color: var(--lumo-header-text-color);
141
+ }
142
+
143
+ slot[name='prefix']::slotted(:is(vaadin-icon, [class*='icon'])) {
144
+ padding: 0.1em;
145
+ flex-shrink: 0;
146
+ color: var(--lumo-contrast-60pct);
147
+ }
148
+
149
+ :host([disabled]) slot[name='prefix']::slotted(:is(vaadin-icon, [class*='icon'])) {
150
+ color: var(--lumo-disabled-text-color);
151
+ }
152
+
153
+ :host([current]) slot[name='prefix']::slotted(:is(vaadin-icon, [class*='icon'])) {
154
+ color: inherit;
155
+ }
156
+
157
+ slot[name='children'] {
158
+ --_child-indent: calc(var(--_child-indent-2, 0px) + var(--vaadin-side-nav-child-indent, var(--lumo-space-l)));
159
+ }
160
+
161
+ slot[name='children']::slotted(*) {
162
+ --_child-indent-2: var(--_child-indent);
163
+ }
164
+
165
+ :host([current]) [part='content'] {
166
+ background-color: var(--lumo-primary-color-10pct);
167
+ color: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
168
+ border-radius: var(--lumo-border-radius-m);
169
+ }
170
+
171
+ .sr-only {
172
+ border: 0 !important;
173
+ clip: rect(1px, 1px, 1px, 1px) !important;
174
+ clip-path: inset(50%) !important;
175
+ height: 1px !important;
176
+ margin: -1px !important;
177
+ overflow: hidden !important;
178
+ padding: 0 !important;
179
+ position: absolute !important;
180
+ width: 1px !important;
181
+ white-space: nowrap !important;
182
+ }
183
+ }
@@ -0,0 +1,102 @@
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_side-nav {
7
+ :host {
8
+ display: block;
9
+ font-family: var(--lumo-font-family);
10
+ font-size: var(--lumo-font-size-m);
11
+ font-weight: 500;
12
+ line-height: var(--lumo-line-height-xs);
13
+ color: var(--lumo-body-text-color);
14
+ -webkit-tap-highlight-color: transparent;
15
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
16
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
17
+ }
18
+
19
+ :host([hidden]) {
20
+ display: none !important;
21
+ }
22
+
23
+ button {
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: inherit;
27
+ width: 100%;
28
+ margin: 0;
29
+ padding: 0;
30
+ background-color: initial;
31
+ color: inherit;
32
+ border: initial;
33
+ outline: none;
34
+ font: inherit;
35
+ text-align: inherit;
36
+ }
37
+
38
+ [part='children'] {
39
+ padding: 0;
40
+ margin: 0;
41
+ list-style-type: none;
42
+ }
43
+
44
+ [part='label'] {
45
+ display: flex;
46
+ align-items: center;
47
+ width: 100%;
48
+ outline: none;
49
+ box-sizing: border-box;
50
+ border-radius: var(--lumo-border-radius-m);
51
+ font-family: var(--lumo-font-family);
52
+ font-size: var(--lumo-font-size-s);
53
+ font-weight: 500;
54
+ line-height: var(--lumo-line-height-xs);
55
+ }
56
+
57
+ [part='label'] ::slotted([slot='label']) {
58
+ color: var(--lumo-secondary-text-color);
59
+ margin: var(--lumo-space-s);
60
+ }
61
+
62
+ :host([focus-ring]) [part='label'] {
63
+ box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
64
+ }
65
+
66
+ [part='toggle-button'] {
67
+ display: inline-flex;
68
+ align-items: center;
69
+ justify-content: center;
70
+ width: var(--lumo-size-s);
71
+ height: var(--lumo-size-s);
72
+ margin-inline: auto var(--lumo-space-xs);
73
+ font-size: var(--lumo-icon-size-m);
74
+ line-height: 1;
75
+ color: var(--lumo-contrast-60pct);
76
+ font-family: 'lumo-icons';
77
+ cursor: var(--lumo-clickable-cursor);
78
+ }
79
+
80
+ [part='toggle-button']::before {
81
+ content: var(--lumo-icons-angle-right);
82
+ transition: transform 140ms;
83
+ }
84
+
85
+ :host(:not([collapsible])) [part='toggle-button'] {
86
+ display: none !important;
87
+ }
88
+
89
+ :host(:not([collapsed])) [part='toggle-button']::before {
90
+ transform: rotate(90deg);
91
+ }
92
+
93
+ :host([collapsed][dir='rtl']) [part='toggle-button']::before {
94
+ transform: rotate(180deg);
95
+ }
96
+
97
+ @media (any-hover: hover) {
98
+ [part='label']:hover [part='toggle-button'] {
99
+ color: var(--lumo-body-text-color);
100
+ }
101
+ }
102
+ }
@@ -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
+ @media lumo_components_split-layout {
7
+ [part='splitter'] {
8
+ --_splitter-size: var(--vaadin-split-layout-splitter-size, var(--lumo-space-s));
9
+ --_splitter-target-size: var(--vaadin-split-layout-splitter-target-size, var(--lumo-space-s));
10
+ --_handle-size: var(--vaadin-split-layout-handle-size, var(--lumo-space-xs));
11
+ --_handle-target-size: var(--vaadin-split-layout-handle-target-size, var(--lumo-size-m));
12
+ background: var(--vaadin-split-layout-splitter-background, var(--lumo-contrast-5pct));
13
+ transition: 0.1s background-color;
14
+ }
15
+
16
+ [part='handle'] {
17
+ background: var(--vaadin-split-layout-handle-background, var(--lumo-contrast-30pct));
18
+ border-radius: var(--lumo-border-radius-s);
19
+ }
20
+
21
+ /* Active style */
22
+ [part='splitter']:active [part='handle'] {
23
+ background: var(--lumo-contrast-50pct);
24
+ }
25
+
26
+ /* Small overrides */
27
+ :host([theme~='small']) > [part='splitter'] {
28
+ --vaadin-split-layout-handle-size: 5px;
29
+ background: var(--lumo-contrast-10pct);
30
+ }
31
+
32
+ /* Minimal */
33
+ :host([theme~='minimal']) > [part='splitter'] {
34
+ --vaadin-split-layout-splitter-size: 0px;
35
+ --vaadin-split-layout-handle-size: 5px;
36
+ --vaadin-split-layout-splitter-target-size: 5px;
37
+ }
38
+
39
+ :host([theme~='minimal']) > [part='splitter'] > [part='handle'] {
40
+ opacity: 0;
41
+ }
42
+
43
+ :host([theme~='minimal']) > [part='splitter']:is(:hover, :active) > [part='handle'] {
44
+ opacity: 1;
45
+ }
46
+
47
+ /* Hover style */
48
+ @media (any-hover: hover) {
49
+ [part='splitter']:hover [part='handle'] {
50
+ background-color: var(--lumo-contrast-40pct);
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,246 @@
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_tab {
7
+ :host {
8
+ box-sizing: border-box;
9
+ padding: 0.5rem 0.75rem;
10
+ font-family: var(--lumo-font-family);
11
+ font-size: var(--lumo-font-size-m);
12
+ line-height: var(--lumo-line-height-xs);
13
+ font-weight: 500;
14
+ opacity: 1;
15
+ color: var(--lumo-secondary-text-color);
16
+ transition:
17
+ 0.15s color,
18
+ 0.2s transform;
19
+ flex-shrink: 0;
20
+ display: flex;
21
+ align-items: center;
22
+ position: relative;
23
+ cursor: var(--lumo-clickable-cursor);
24
+ transform-origin: 50% 100%;
25
+ outline: none;
26
+ -webkit-font-smoothing: antialiased;
27
+ -moz-osx-font-smoothing: grayscale;
28
+ overflow: hidden;
29
+ min-width: var(--lumo-size-m);
30
+ -webkit-user-select: none;
31
+ user-select: none;
32
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
33
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
34
+ --_selection-color: var(--vaadin-selection-color, var(--lumo-primary-color));
35
+ --_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
36
+ }
37
+
38
+ :host([hidden]) {
39
+ display: none !important;
40
+ }
41
+
42
+ :host(:not([orientation='vertical'])) {
43
+ text-align: center;
44
+ }
45
+
46
+ :host([orientation='vertical']) {
47
+ transform-origin: 0% 50%;
48
+ padding: 0.25rem 1rem;
49
+ min-height: var(--lumo-size-m);
50
+ min-width: 0;
51
+ }
52
+
53
+ :host(:hover),
54
+ :host([focus-ring]) {
55
+ color: var(--lumo-body-text-color);
56
+ }
57
+
58
+ :host([selected]) {
59
+ color: var(--_selection-color-text);
60
+ transition: 0.6s color;
61
+ }
62
+
63
+ :host([active]:not([selected])) {
64
+ color: var(--_selection-color-text);
65
+ transition-duration: 0.1s;
66
+ }
67
+
68
+ :host::before,
69
+ :host::after {
70
+ content: '';
71
+ position: absolute;
72
+ display: var(--_lumo-tab-marker-display, block);
73
+ bottom: 0;
74
+ left: 50%;
75
+ width: var(--lumo-size-s);
76
+ height: 2px;
77
+ background-color: var(--lumo-contrast-60pct);
78
+ border-radius: var(--lumo-border-radius-s) var(--lumo-border-radius-s) 0 0;
79
+ transform: translateX(-50%) scale(0);
80
+ transform-origin: 50% 100%;
81
+ transition: 0.14s transform cubic-bezier(0.12, 0.32, 0.54, 1);
82
+ will-change: transform;
83
+ }
84
+
85
+ :host([orientation='vertical'])::before,
86
+ :host([orientation='vertical'])::after {
87
+ left: 0;
88
+ bottom: 50%;
89
+ transform: translateY(50%) scale(0);
90
+ width: 2px;
91
+ height: var(--lumo-size-xs);
92
+ border-radius: 0 var(--lumo-border-radius-s) var(--lumo-border-radius-s) 0;
93
+ transform-origin: 100% 50%;
94
+ }
95
+
96
+ :host::after {
97
+ box-shadow: 0 0 0 4px var(--_selection-color);
98
+ opacity: 0.15;
99
+ transition:
100
+ 0.15s 0.02s transform,
101
+ 0.8s 0.17s opacity;
102
+ }
103
+
104
+ :host([selected])::before,
105
+ :host([selected])::after {
106
+ background-color: var(--_selection-color);
107
+ transform: translateX(-50%) scale(1);
108
+ transition-timing-function: cubic-bezier(0.12, 0.32, 0.54, 1.5);
109
+ }
110
+
111
+ :host([orientation='vertical'][selected])::before,
112
+ :host([orientation='vertical'][selected])::after {
113
+ transform: translateY(50%) scale(1);
114
+ }
115
+
116
+ :host([selected]:not([active]))::after {
117
+ opacity: 0;
118
+ }
119
+
120
+ :host(:not([orientation='vertical'])) ::slotted(a[href]) {
121
+ justify-content: center;
122
+ }
123
+
124
+ :host ::slotted(a) {
125
+ display: flex;
126
+ width: 100%;
127
+ align-items: center;
128
+ height: 100%;
129
+ margin: -0.5rem -0.75rem;
130
+ padding: 0.5rem 0.75rem;
131
+ outline: none;
132
+
133
+ /*
134
+ Override the CSS inherited from `lumo-color` and `lumo-typography`.
135
+ Note: `!important` is needed because of the `:slotted` specificity.
136
+ */
137
+ text-decoration: none !important;
138
+ color: inherit !important;
139
+ }
140
+
141
+ :host ::slotted(vaadin-icon) {
142
+ margin: 0 4px;
143
+ width: var(--lumo-icon-size-m);
144
+ height: var(--lumo-icon-size-m);
145
+ }
146
+
147
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
148
+ :host ::slotted(vaadin-icon[icon^='vaadin:']) {
149
+ padding: 0.25rem;
150
+ box-sizing: border-box !important;
151
+ }
152
+
153
+ :host(:not([dir='rtl'])) ::slotted(vaadin-icon:first-child) {
154
+ margin-left: 0;
155
+ }
156
+
157
+ :host(:not([dir='rtl'])) ::slotted(vaadin-icon:last-child) {
158
+ margin-right: 0;
159
+ }
160
+
161
+ :host([theme~='icon-on-top']) {
162
+ display: flex;
163
+ flex-direction: column;
164
+ align-items: center;
165
+ justify-content: space-around;
166
+ text-align: center;
167
+ padding-bottom: 0.5rem;
168
+ padding-top: 0.25rem;
169
+ }
170
+
171
+ :host([theme~='icon-on-top']) ::slotted(a) {
172
+ flex-direction: column;
173
+ align-items: center;
174
+ margin-top: -0.25rem;
175
+ padding-top: 0.25rem;
176
+ }
177
+
178
+ :host([theme~='icon-on-top']) ::slotted(vaadin-icon) {
179
+ margin: 0;
180
+ }
181
+
182
+ /* Disabled */
183
+
184
+ :host([disabled]) {
185
+ pointer-events: none;
186
+ opacity: 1;
187
+ color: var(--lumo-disabled-text-color);
188
+ }
189
+
190
+ /* Focus-ring */
191
+
192
+ :host([focus-ring]) {
193
+ box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
194
+ border-radius: var(--lumo-border-radius-m);
195
+ }
196
+
197
+ /* RTL specific styles */
198
+
199
+ :host([dir='rtl'])::before,
200
+ :host([dir='rtl'])::after {
201
+ left: auto;
202
+ right: 50%;
203
+ transform: translateX(50%) scale(0);
204
+ }
205
+
206
+ :host([dir='rtl'][selected]:not([orientation='vertical']))::before,
207
+ :host([dir='rtl'][selected]:not([orientation='vertical']))::after {
208
+ transform: translateX(50%) scale(1);
209
+ }
210
+
211
+ :host([dir='rtl']) ::slotted(vaadin-icon:first-child) {
212
+ margin-right: 0;
213
+ }
214
+
215
+ :host([dir='rtl']) ::slotted(vaadin-icon:last-child) {
216
+ margin-left: 0;
217
+ }
218
+
219
+ :host([orientation='vertical'][dir='rtl']) {
220
+ transform-origin: 100% 50%;
221
+ }
222
+
223
+ :host([dir='rtl'][orientation='vertical'])::before,
224
+ :host([dir='rtl'][orientation='vertical'])::after {
225
+ left: auto;
226
+ right: 0;
227
+ border-radius: var(--lumo-border-radius-s) 0 0 var(--lumo-border-radius-s);
228
+ transform-origin: 0% 50%;
229
+ }
230
+
231
+ @media (forced-colors: active) {
232
+ :host([focused]) {
233
+ outline: 1px solid;
234
+ outline-offset: -1px;
235
+ }
236
+
237
+ :host([selected]) {
238
+ border-bottom: 2px solid;
239
+ }
240
+
241
+ :host([orientation='vertical'][selected]) {
242
+ border-bottom: none;
243
+ border-left: 2px solid;
244
+ }
245
+ }
246
+ }