@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.
- package/components/accordion-heading.css +14 -0
- package/components/accordion-panel.css +15 -0
- package/components/accordion.css +7 -0
- package/components/app-layout.css +11 -0
- package/components/avatar-group.css +31 -0
- package/components/avatar.css +17 -0
- package/components/button.css +12 -0
- package/components/card.css +50 -0
- package/components/charts.css +11 -0
- package/components/checkbox-group.css +23 -0
- package/components/checkbox.css +14 -0
- package/components/combo-box.css +47 -0
- package/components/confirm-dialog.css +17 -0
- package/components/context-menu.css +32 -0
- package/components/crud.css +40 -0
- package/components/custom-field.css +20 -0
- package/components/dashboard.css +34 -0
- package/components/date-picker.css +49 -0
- package/components/date-time-picker.css +28 -0
- package/components/details-summary.css +11 -0
- package/components/details.css +12 -0
- package/components/dialog.css +16 -0
- package/components/drawer-toggle.css +14 -0
- package/components/email-field.css +25 -0
- package/components/field-highlighter.css +22 -0
- package/components/form-item.css +11 -0
- package/components/form-layout.css +11 -0
- package/components/grid-filter-column.css +6 -0
- package/components/grid-filter.css +12 -0
- package/components/grid-pro-edit-column.css +48 -0
- package/components/grid-pro.css +14 -0
- package/components/grid-selection-column.css +6 -0
- package/components/grid-sort-column.css +6 -0
- package/components/grid-sorter.css +19 -0
- package/components/grid-tree-column.css +6 -0
- package/components/grid-tree-toggle.css +11 -0
- package/components/grid.css +11 -0
- package/components/horizontal-layout.css +11 -0
- package/components/icon.css +11 -0
- package/components/input-container.css +11 -0
- package/components/integer-field.css +25 -0
- package/components/item.css +11 -0
- package/components/list-box.css +11 -0
- package/components/login-form.css +14 -0
- package/components/login.css +15 -0
- package/components/map.css +11 -0
- package/components/master-detail-layout.css +11 -0
- package/components/menu-bar.css +47 -0
- package/components/message-input.css +13 -0
- package/components/message-list.css +6 -0
- package/components/message.css +12 -0
- package/components/multi-select-combo-box.css +61 -0
- package/components/notification.css +15 -0
- package/components/number-field.css +25 -0
- package/components/overlay.css +11 -0
- package/components/password-field.css +32 -0
- package/components/popover.css +14 -0
- package/components/progress-bar.css +11 -0
- package/components/radio-button.css +14 -0
- package/components/radio-group.css +23 -0
- package/components/rich-text-editor.css +26 -0
- package/components/scroller.css +11 -0
- package/components/select.css +48 -0
- package/components/side-nav-item.css +14 -0
- package/components/side-nav.css +12 -0
- package/components/split-layout.css +11 -0
- package/components/tab.css +11 -0
- package/components/tabs.css +12 -0
- package/components/tabsheet.css +19 -0
- package/components/text-area.css +25 -0
- package/components/text-field.css +23 -0
- package/components/time-picker.css +43 -0
- package/components/tooltip.css +14 -0
- package/components/upload.css +28 -0
- package/components/vertical-layout.css +11 -0
- package/components.css +71 -0
- package/global.css +14 -0
- package/lumo.css +8 -0
- package/package.json +8 -6
- package/props.css +12 -0
- package/src/components/accordion-heading.css +42 -0
- package/src/components/accordion-panel.css +38 -0
- package/src/components/app-layout.css +193 -0
- package/src/components/avatar-group-menu-item.css +22 -0
- package/src/components/avatar-group-overlay.css +15 -0
- package/src/components/avatar-group.css +67 -0
- package/src/components/avatar.css +110 -0
- package/src/components/button.css +335 -0
- package/src/components/card.css +38 -0
- package/src/components/chart.css +88 -0
- package/src/components/checkbox-group.css +18 -0
- package/src/components/checkbox.css +341 -0
- package/src/components/combo-box-item.css +18 -0
- package/src/components/combo-box-overlay.css +15 -0
- package/src/components/combo-box.css +14 -0
- package/src/components/confirm-dialog-overlay.css +59 -0
- package/src/components/context-menu-item.css +39 -0
- package/src/components/context-menu-list-box.css +40 -0
- package/src/components/context-menu-overlay.css +41 -0
- package/src/components/crud-dialog-overlay.css +57 -0
- package/src/components/crud-edit.css +30 -0
- package/src/components/crud.css +157 -0
- package/src/components/custom-field.css +102 -0
- package/src/components/dashboard-layout.css +94 -0
- package/src/components/dashboard-section.css +113 -0
- package/src/components/dashboard-widget.css +224 -0
- package/src/components/dashboard.css +23 -0
- package/src/components/date-picker-month-calendar.css +192 -0
- package/src/components/date-picker-overlay-content.css +161 -0
- package/src/components/date-picker-overlay.css +60 -0
- package/src/components/date-picker-year.css +35 -0
- package/src/components/date-picker.css +41 -0
- package/src/components/date-time-picker.css +36 -0
- package/src/components/details-summary.css +131 -0
- package/src/components/details.css +37 -0
- package/src/components/dialog-overlay.css +173 -0
- package/src/components/drawer-toggle.css +51 -0
- package/src/components/email-field.css +26 -0
- package/src/components/field-outline.css +51 -0
- package/src/components/form-item.css +36 -0
- package/src/components/form-layout.css +11 -0
- package/src/components/grid-filter.css +16 -0
- package/src/components/grid-pro-edit-select.css +19 -0
- package/src/components/grid-pro.css +84 -0
- package/src/components/grid-sorter.css +70 -0
- package/src/components/grid-tree-toggle.css +104 -0
- package/src/components/grid.css +755 -0
- package/src/components/horizontal-layout.css +38 -0
- package/src/components/icon.css +47 -0
- package/src/components/input-container.css +230 -0
- package/src/components/item.css +94 -0
- package/src/components/list-box.css +31 -0
- package/src/components/login-form-wrapper.css +128 -0
- package/src/components/login-overlay-wrapper.css +179 -0
- package/src/components/map.css +437 -0
- package/src/components/master-detail-layout.css +26 -0
- package/src/components/menu-bar-button.css +128 -0
- package/src/components/menu-bar-item.css +24 -0
- package/src/components/menu-bar-overlay.css +10 -0
- package/src/components/menu-bar.css +31 -0
- package/src/components/message-input.css +30 -0
- package/src/components/message.css +82 -0
- package/src/components/multi-select-combo-box-chip.css +113 -0
- package/src/components/multi-select-combo-box-container.css +20 -0
- package/src/components/multi-select-combo-box-item.css +13 -0
- package/src/components/multi-select-combo-box-overlay.css +18 -0
- package/src/components/multi-select-combo-box.css +98 -0
- package/src/components/notification-card.css +228 -0
- package/src/components/notification-container.css +53 -0
- package/src/components/number-field.css +53 -0
- package/src/components/password-field-button.css +19 -0
- package/src/components/password-field.css +24 -0
- package/src/components/popover-overlay.css +162 -0
- package/src/components/progress-bar.css +295 -0
- package/src/components/radio-button.css +156 -0
- package/src/components/radio-group.css +18 -0
- package/src/components/rich-text-editor-popup-overlay.css +27 -0
- package/src/components/rich-text-editor.css +485 -0
- package/src/components/scroller.css +40 -0
- package/src/components/select-overlay.css +54 -0
- package/src/components/select-value-button.css +57 -0
- package/src/components/select.css +56 -0
- package/src/components/side-nav-item.css +170 -0
- package/src/components/side-nav.css +102 -0
- package/src/components/split-layout.css +132 -0
- package/src/components/tab.css +246 -0
- package/src/components/tabs.css +285 -0
- package/src/components/tabsheet.css +59 -0
- package/src/components/text-area.css +116 -0
- package/src/components/time-picker-overlay.css +15 -0
- package/src/components/time-picker.css +36 -0
- package/src/components/tooltip-overlay.css +53 -0
- package/src/components/upload-file-list.css +24 -0
- package/src/components/upload-file.css +133 -0
- package/src/components/upload-icon.css +14 -0
- package/src/components/upload.css +56 -0
- package/src/components/user-tag.css +48 -0
- package/src/components/user-tags-overlay.css +67 -0
- package/src/components/vertical-layout.css +38 -0
- package/src/global/badge.css +167 -0
- package/src/global/dark.css +93 -0
- package/src/global/style.css +93 -0
- package/src/global/typography.css +113 -0
- package/src/mixins/checkable-field.css +67 -0
- package/src/mixins/combo-box-loader.css +14 -0
- package/src/mixins/combo-box-overlay.css +30 -0
- package/src/mixins/dashboard-item.css +253 -0
- package/src/mixins/field-base.css +187 -0
- package/src/mixins/field-button.css +46 -0
- package/src/mixins/field-error-message.css +36 -0
- package/src/mixins/field-helper.css +62 -0
- package/src/mixins/field-label.css +62 -0
- package/src/mixins/field-required.css +26 -0
- package/src/mixins/grid-pro-editor.css +35 -0
- package/src/mixins/group-field.css +58 -0
- package/src/mixins/loader.css +48 -0
- package/src/mixins/menu-overlay-core.css +36 -0
- package/src/mixins/menu-overlay-ext.css +63 -0
- package/src/mixins/overlay.css +113 -0
- package/src/mixins/resizable-overlay.css +99 -0
- package/src/props/color.css +98 -0
- package/src/props/icons.css +61 -0
- package/src/props/reset.css +11 -0
- package/src/props/sizing.css +19 -0
- package/src/props/spacing.css +27 -0
- package/src/props/style.css +21 -0
- package/src/props/typography.css +24 -0
- package/src/utilities/accessibility.css +17 -0
- package/src/utilities/background.css +189 -0
- package/src/utilities/border.css +173 -0
- package/src/utilities/filter.css +37 -0
- package/src/utilities/flexbox-grid.css +781 -0
- package/src/utilities/layout.css +629 -0
- package/src/utilities/shadows.css +29 -0
- package/src/utilities/sizing.css +142 -0
- package/src/utilities/spacing.css +682 -0
- package/src/utilities/transition.css +46 -0
- package/src/utilities/typography.css +424 -0
- package/utility.css +17 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_menu-bar-button {
|
|
7
|
+
:host {
|
|
8
|
+
margin-block: calc(var(--lumo-space-xs) / 2);
|
|
9
|
+
margin-right: calc(var(--lumo-space-xs) / 2);
|
|
10
|
+
margin-left: 0;
|
|
11
|
+
border-radius: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[part='label'] {
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* NOTE(web-padawan): avoid using shorthand padding property for IE11 */
|
|
19
|
+
[part='label'] ::slotted(vaadin-menu-bar-item) {
|
|
20
|
+
justify-content: center;
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
height: var(--lumo-button-size);
|
|
23
|
+
margin: 0 calc((var(--lumo-size-m) / 3 + var(--lumo-border-radius-m) / 2) * -1);
|
|
24
|
+
padding-left: calc(var(--lumo-size-m) / 3 + var(--lumo-border-radius-m) / 2);
|
|
25
|
+
padding-right: calc(var(--lumo-size-m) / 3 + var(--lumo-border-radius-m) / 2);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host([theme~='small']) [part='label'] ::slotted(vaadin-menu-bar-item) {
|
|
29
|
+
min-height: var(--lumo-size-s);
|
|
30
|
+
margin: 0 calc((var(--lumo-size-s) / 3 + var(--lumo-border-radius-m) / 2) * -1);
|
|
31
|
+
padding-left: calc(var(--lumo-size-s) / 3 + var(--lumo-border-radius-m) / 2);
|
|
32
|
+
padding-right: calc(var(--lumo-size-s) / 3 + var(--lumo-border-radius-m) / 2);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([theme~='tertiary']) [part='label'] ::slotted(vaadin-menu-bar-item) {
|
|
36
|
+
margin: 0 calc((var(--lumo-button-size) / 6) * -1);
|
|
37
|
+
padding-left: calc(var(--lumo-button-size) / 6);
|
|
38
|
+
padding-right: calc(var(--lumo-button-size) / 6);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host([theme~='tertiary-inline']) {
|
|
42
|
+
margin-top: calc(var(--lumo-space-xs) / 2);
|
|
43
|
+
margin-bottom: calc(var(--lumo-space-xs) / 2);
|
|
44
|
+
margin-right: calc(var(--lumo-space-xs) / 2);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([theme~='tertiary-inline']) [part='label'] ::slotted(vaadin-menu-bar-item) {
|
|
48
|
+
margin: 0;
|
|
49
|
+
padding: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([first-visible]) {
|
|
53
|
+
border-radius: var(--lumo-border-radius-m) 0 0 var(--lumo-border-radius-m);
|
|
54
|
+
|
|
55
|
+
/* Needed to retain the focus-ring with border-radius */
|
|
56
|
+
margin-left: calc(var(--lumo-space-xs) / 2);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([last-visible]),
|
|
60
|
+
:host([slot='overflow']) {
|
|
61
|
+
border-radius: 0 var(--lumo-border-radius-m) var(--lumo-border-radius-m) 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host([theme~='tertiary']),
|
|
65
|
+
:host([theme~='tertiary-inline']) {
|
|
66
|
+
border-radius: var(--lumo-border-radius-m);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:host([slot='overflow']) {
|
|
70
|
+
min-width: var(--lumo-button-size);
|
|
71
|
+
margin-inline-end: 0;
|
|
72
|
+
padding-left: calc(var(--lumo-button-size) / 4);
|
|
73
|
+
padding-right: calc(var(--lumo-button-size) / 4);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([slot='overflow']) ::slotted(*) {
|
|
77
|
+
font-size: var(--lumo-font-size-xl);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host([slot='overflow']) [part='prefix'],
|
|
81
|
+
:host([slot='overflow']) [part='suffix'] {
|
|
82
|
+
margin-left: 0;
|
|
83
|
+
margin-right: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([theme~='dropdown-indicators']:not([slot='overflow']):not([theme~='icon'])[aria-haspopup]) [part='suffix'] {
|
|
87
|
+
margin-inline-start: 0;
|
|
88
|
+
width: 1em;
|
|
89
|
+
height: 1em;
|
|
90
|
+
line-height: 1;
|
|
91
|
+
font-size: var(--lumo-icon-size-s);
|
|
92
|
+
position: relative;
|
|
93
|
+
inset-inline-start: 0.15em;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* prettier-ignore */
|
|
97
|
+
:host([theme~='dropdown-indicators']:not([slot='overflow']):not([theme~='icon'])[aria-haspopup]) [part='suffix']::after {
|
|
98
|
+
font-family: lumo-icons;
|
|
99
|
+
content: var(--lumo-icons-dropdown);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* prettier-ignore */
|
|
103
|
+
:host([theme~='dropdown-indicators']:not([slot='overflow']):not([theme~='icon'])[theme~='tertiary'][aria-haspopup]) [part='suffix'] {
|
|
104
|
+
inset-inline-start: 0.05em;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* prettier-ignore */
|
|
108
|
+
:host([theme~='dropdown-indicators']:not([slot='overflow']):not([theme~='icon'])[theme~='tertiary-inline'][aria-haspopup]) [part='suffix'] {
|
|
109
|
+
inset-inline-start: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* RTL styles */
|
|
113
|
+
:host([dir='rtl']) {
|
|
114
|
+
margin-left: calc(var(--lumo-space-xs) / 2);
|
|
115
|
+
margin-right: 0;
|
|
116
|
+
border-radius: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:host([dir='rtl'][first-visible]) {
|
|
120
|
+
border-radius: 0 var(--lumo-border-radius-m) var(--lumo-border-radius-m) 0;
|
|
121
|
+
margin-right: calc(var(--lumo-space-xs) / 2);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:host([dir='rtl'][last-visible]),
|
|
125
|
+
:host([dir='rtl'][slot='overflow']) {
|
|
126
|
+
border-radius: var(--lumo-border-radius-m) 0 0 var(--lumo-border-radius-m);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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_menu-bar-item {
|
|
7
|
+
[part='content'] {
|
|
8
|
+
display: flex;
|
|
9
|
+
/* tweak to inherit centering from menu bar button */
|
|
10
|
+
align-items: inherit;
|
|
11
|
+
justify-content: inherit;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[part='content'] ::slotted(vaadin-icon) {
|
|
15
|
+
display: inline-block;
|
|
16
|
+
width: var(--lumo-icon-size-m);
|
|
17
|
+
height: var(--lumo-icon-size-m);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[part='content'] ::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
21
|
+
padding: var(--lumo-space-xs);
|
|
22
|
+
box-sizing: border-box !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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_menu-bar-overlay {
|
|
7
|
+
:host(:first-of-type) {
|
|
8
|
+
padding-top: var(--lumo-space-xs);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_menu-bar {
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([hidden]) {
|
|
12
|
+
display: none !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[part='container'] {
|
|
16
|
+
position: relative;
|
|
17
|
+
display: flex;
|
|
18
|
+
width: 100%;
|
|
19
|
+
flex-wrap: nowrap;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host([has-single-button]) ::slotted(vaadin-menu-bar-button) {
|
|
24
|
+
border-radius: var(--lumo-border-radius-m);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([theme~='end-aligned']) ::slotted(vaadin-menu-bar-button[first-visible]),
|
|
28
|
+
:host([theme~='end-aligned'][has-single-button]) ::slotted(vaadin-menu-bar-button) {
|
|
29
|
+
margin-inline-start: auto;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -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_message-input {
|
|
7
|
+
:host {
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
display: flex;
|
|
11
|
+
max-height: 50vh;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
padding: var(--lumo-space-s) var(--lumo-space-m);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host([hidden]) {
|
|
18
|
+
display: none !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
::slotted([slot='button']) {
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
::slotted([slot='textarea']) {
|
|
26
|
+
align-self: stretch;
|
|
27
|
+
flex-grow: 1;
|
|
28
|
+
margin-inline-end: var(--lumo-space-s);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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_message {
|
|
7
|
+
:host {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
outline: none;
|
|
11
|
+
color: var(--lumo-body-text-color);
|
|
12
|
+
font-family: var(--lumo-font-family);
|
|
13
|
+
font-size: var(--lumo-font-size-m);
|
|
14
|
+
line-height: var(--lumo-line-height-m);
|
|
15
|
+
padding: var(--lumo-space-s) var(--lumo-space-m);
|
|
16
|
+
-moz-osx-font-smoothing: grayscale;
|
|
17
|
+
-webkit-font-smoothing: antialiased;
|
|
18
|
+
-webkit-text-size-adjust: 100%;
|
|
19
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
20
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host([hidden]) {
|
|
24
|
+
display: none !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[part='content'] {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
flex-grow: 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[part='header'] {
|
|
34
|
+
align-items: baseline;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-flow: row wrap;
|
|
37
|
+
min-height: calc(var(--lumo-font-size-m) * var(--lumo-line-height-m));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[part='name'] {
|
|
41
|
+
font-weight: 500;
|
|
42
|
+
margin-right: var(--lumo-space-s);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[part='name']:empty {
|
|
46
|
+
margin-right: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[part='message'] {
|
|
50
|
+
white-space: pre-wrap;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[part='time'] {
|
|
54
|
+
color: var(--lumo-secondary-text-color);
|
|
55
|
+
font-size: var(--lumo-font-size-s);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
::slotted([slot='avatar']) {
|
|
59
|
+
--vaadin-avatar-outline-width: 0;
|
|
60
|
+
--vaadin-avatar-size: var(--lumo-size-m);
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
margin-top: calc(var(--lumo-space-s));
|
|
63
|
+
margin-inline-end: calc(var(--lumo-space-m));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
::slotted(vaadin-markdown) {
|
|
67
|
+
white-space: normal;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([focus-ring]) {
|
|
71
|
+
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([dir='rtl']) [part='name'] {
|
|
75
|
+
margin-left: var(--lumo-space-s);
|
|
76
|
+
margin-right: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host([dir='rtl']) [part='name']:empty {
|
|
80
|
+
margin-left: 0;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
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_multi-select-combo-box-chip {
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
align-self: center;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
font-size: var(--lumo-font-size-xxs);
|
|
14
|
+
line-height: 1;
|
|
15
|
+
color: var(--lumo-body-text-color);
|
|
16
|
+
border-radius: var(--lumo-border-radius-s);
|
|
17
|
+
background-color: var(--lumo-contrast-20pct);
|
|
18
|
+
cursor: var(--lumo-clickable-cursor);
|
|
19
|
+
-webkit-font-smoothing: antialiased;
|
|
20
|
+
-moz-osx-font-smoothing: grayscale;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host([hidden]),
|
|
24
|
+
:host(:is([readonly], [disabled], [slot='overflow'])) [part='remove-button'] {
|
|
25
|
+
display: none !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host([disabled]) {
|
|
29
|
+
background-color: var(--lumo-contrast-10pct);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host([focused]) [part='remove-button'] {
|
|
33
|
+
color: inherit;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host([slot='overflow']) {
|
|
37
|
+
position: relative;
|
|
38
|
+
min-width: var(--lumo-size-xxs);
|
|
39
|
+
margin-inline-start: var(--lumo-space-s);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host([slot='overflow'])::before,
|
|
43
|
+
:host([slot='overflow'])::after {
|
|
44
|
+
position: absolute;
|
|
45
|
+
content: '';
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100%;
|
|
48
|
+
border-left: calc(var(--lumo-space-s) / 4) solid var(--lumo-contrast-30pct);
|
|
49
|
+
border-radius: var(--lumo-border-radius-s);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([slot='overflow'])::before {
|
|
53
|
+
left: calc(-1 * var(--lumo-space-s) / 2);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([slot='overflow'])::after {
|
|
57
|
+
left: calc(-1 * var(--lumo-space-s));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([count='2']) {
|
|
61
|
+
margin-inline-start: calc(var(--lumo-space-s) / 2);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host([count='2'])::after {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host([count='1']) {
|
|
69
|
+
margin-inline-start: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([count='1'])::before,
|
|
73
|
+
:host([count='1'])::after {
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[part='label'] {
|
|
78
|
+
font-weight: 500;
|
|
79
|
+
line-height: 1.25;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
text-overflow: ellipsis;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[part='remove-button'] {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
margin-top: -0.3125em;
|
|
89
|
+
margin-bottom: -0.3125em;
|
|
90
|
+
margin-inline-start: auto;
|
|
91
|
+
width: 1.25em;
|
|
92
|
+
height: 1.25em;
|
|
93
|
+
font-size: 1.5em;
|
|
94
|
+
transition: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[part='remove-button']::before {
|
|
98
|
+
content: var(--lumo-icons-cross);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([disabled]) [part='label'] {
|
|
102
|
+
color: var(--lumo-disabled-text-color);
|
|
103
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media (forced-colors: active) {
|
|
108
|
+
:host {
|
|
109
|
+
outline: 1px solid;
|
|
110
|
+
outline-offset: -1px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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_multi-select-combo-box-container {
|
|
7
|
+
#wrapper {
|
|
8
|
+
display: flex;
|
|
9
|
+
width: 100%;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([auto-expand-vertically]) {
|
|
14
|
+
padding-block: var(--lumo-space-xs);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host([auto-expand-vertically]) #wrapper {
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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_multi-select-combo-box-item {
|
|
7
|
+
@media (any-hover: hover) {
|
|
8
|
+
:host(:hover[readonly]) {
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
cursor: default;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -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_multi-select-combo-box-overlay {
|
|
7
|
+
:host {
|
|
8
|
+
--_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
9
|
+
--_vaadin-multi-select-combo-box-items-container-border-style: solid;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
#overlay {
|
|
13
|
+
width: var(
|
|
14
|
+
--vaadin-multi-select-combo-box-overlay-width,
|
|
15
|
+
var(--_vaadin-multi-select-combo-box-overlay-default-width, auto)
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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_multi-select-combo-box {
|
|
7
|
+
:host {
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
--input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
|
|
10
|
+
--_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
|
|
11
|
+
--_wrapper-gap: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
#chips {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
::slotted(input) {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
flex: 1 0 var(--input-min-width);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
::slotted([slot='chip']),
|
|
25
|
+
::slotted([slot='overflow']) {
|
|
26
|
+
flex: 0 1 auto;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
::slotted([slot='chip']) {
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host(:is([readonly], [disabled])) ::slotted(input) {
|
|
34
|
+
flex-grow: 0;
|
|
35
|
+
flex-basis: 0;
|
|
36
|
+
padding: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host([auto-expand-vertically]) #chips {
|
|
40
|
+
display: contents;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([auto-expand-horizontally]) [class$='container'] {
|
|
44
|
+
width: auto;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([has-value]) {
|
|
48
|
+
padding-inline-start: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host([has-value]) ::slotted(input:placeholder-shown) {
|
|
52
|
+
caret-color: var(--lumo-body-text-color) !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[part='label'] {
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Override input-container styles */
|
|
60
|
+
[part='input-field'] ::slotted([slot='chip']),
|
|
61
|
+
[part='input-field'] ::slotted([slot='overflow']) {
|
|
62
|
+
min-height: auto;
|
|
63
|
+
padding: 0.3125em calc(0.5em + var(--lumo-border-radius-s) / 4);
|
|
64
|
+
color: var(--lumo-body-text-color);
|
|
65
|
+
mask-image: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host([auto-expand-vertically]) ::slotted([slot='chip']) {
|
|
69
|
+
margin-block: calc(var(--lumo-space-xs) / 2);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
::slotted([slot='chip']:not([readonly]):not([disabled])) {
|
|
73
|
+
padding-inline-end: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([auto-expand-vertically]) ::slotted([slot='input']) {
|
|
77
|
+
min-height: calc(var(--lumo-text-field-size, var(--lumo-size-m)) - 2 * var(--lumo-space-xs));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
::slotted([slot='chip']:not(:last-of-type)),
|
|
81
|
+
::slotted([slot='overflow']:not(:last-of-type)) {
|
|
82
|
+
margin-inline-end: var(--lumo-space-xs);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
::slotted([slot='chip'][focused]) {
|
|
86
|
+
background-color: var(--vaadin-selection-color, var(--lumo-primary-color));
|
|
87
|
+
color: var(--lumo-primary-contrast-color);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[part='toggle-button']::before {
|
|
91
|
+
content: var(--lumo-icons-dropdown);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:host([readonly][has-value]) [part='toggle-button'] {
|
|
95
|
+
color: var(--lumo-contrast-60pct);
|
|
96
|
+
cursor: var(--lumo-clickable-cursor);
|
|
97
|
+
}
|
|
98
|
+
}
|