@vaadin/vaadin-lumo-styles 25.0.0-alpha1 → 25.0.0-alpha10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auto-complete.css +3 -73
- 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 +19 -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/font-icons.js +28 -26
- package/global.css +8 -0
- package/lumo.css +8 -0
- package/mixins/input-field-shared.js +1 -2
- package/mixins/menu-overlay.js +0 -2
- package/mixins/required-field.js +0 -1
- package/package.json +16 -12
- 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 +86 -0
- package/src/components/button.css +334 -0
- package/src/components/card.css +38 -0
- package/src/components/chart.css +85 -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 +12 -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 +34 -0
- package/src/components/icon.css +11 -0
- package/src/components/input-container.css +228 -0
- package/src/components/item.css +94 -0
- package/src/components/list-box.css +31 -0
- package/src/components/login-form-wrapper.css +113 -0
- package/src/components/login-overlay-wrapper.css +189 -0
- package/src/components/map.css +182 -0
- package/src/components/menu-bar-button.css +128 -0
- package/src/components/menu-bar-item.css +23 -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 +102 -0
- package/src/components/notification-card.css +228 -0
- package/src/components/notification-container.css +60 -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 +156 -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 +60 -0
- package/src/components/side-nav-item.css +170 -0
- package/src/components/side-nav.css +102 -0
- package/src/components/split-layout.css +131 -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 +50 -0
- package/src/components/upload-file-list.css +24 -0
- package/src/components/upload-file.css +133 -0
- package/src/components/upload-icon.css +20 -0
- package/src/components/upload.css +56 -0
- package/src/components/user-tag.css +48 -0
- package/src/components/user-tags-overlay.css +64 -0
- package/src/components/vertical-layout.css +34 -0
- package/src/global/badge.css +167 -0
- package/src/global/color-scheme.css +99 -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 +252 -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 +121 -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/style.d.ts +0 -2
- package/style.js +1 -89
- package/utilities/transition.js +3 -2
- package/utility.css +17 -0
- package/vaadin-iconset.js +2 -0
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
:host([opened]) {
|
|
15
|
+
pointer-events: auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#chips {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
::slotted(input) {
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
flex: 1 0 var(--input-min-width);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
::slotted([slot='chip']),
|
|
29
|
+
::slotted([slot='overflow']) {
|
|
30
|
+
flex: 0 1 auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
::slotted([slot='chip']) {
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host(:is([readonly], [disabled])) ::slotted(input) {
|
|
38
|
+
flex-grow: 0;
|
|
39
|
+
flex-basis: 0;
|
|
40
|
+
padding: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([auto-expand-vertically]) #chips {
|
|
44
|
+
display: contents;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([auto-expand-horizontally]) [class$='container'] {
|
|
48
|
+
width: auto;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host([has-value]) {
|
|
52
|
+
padding-inline-start: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host([has-value]) ::slotted(input:placeholder-shown) {
|
|
56
|
+
caret-color: var(--lumo-body-text-color) !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[part='label'] {
|
|
60
|
+
flex-shrink: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Override input-container styles */
|
|
64
|
+
[part='input-field'] ::slotted([slot='chip']),
|
|
65
|
+
[part='input-field'] ::slotted([slot='overflow']) {
|
|
66
|
+
min-height: auto;
|
|
67
|
+
padding: 0.3125em calc(0.5em + var(--lumo-border-radius-s) / 4);
|
|
68
|
+
color: var(--lumo-body-text-color);
|
|
69
|
+
mask-image: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([auto-expand-vertically]) ::slotted([slot='chip']) {
|
|
73
|
+
margin-block: calc(var(--lumo-space-xs) / 2);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
::slotted([slot='chip']:not([readonly]):not([disabled])) {
|
|
77
|
+
padding-inline-end: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host([auto-expand-vertically]) ::slotted([slot='input']) {
|
|
81
|
+
min-height: calc(var(--lumo-text-field-size, var(--lumo-size-m)) - 2 * var(--lumo-space-xs));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
::slotted([slot='chip']:not(:last-of-type)),
|
|
85
|
+
::slotted([slot='overflow']:not(:last-of-type)) {
|
|
86
|
+
margin-inline-end: var(--lumo-space-xs);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
::slotted([slot='chip'][focused]) {
|
|
90
|
+
background-color: var(--vaadin-selection-color, var(--lumo-primary-color));
|
|
91
|
+
color: var(--lumo-primary-contrast-color);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[part='toggle-button']::before {
|
|
95
|
+
content: var(--lumo-icons-dropdown);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:host([readonly][has-value]) [part='toggle-button'] {
|
|
99
|
+
color: var(--lumo-contrast-60pct);
|
|
100
|
+
cursor: var(--lumo-clickable-cursor);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
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_notification-card {
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
position: relative;
|
|
10
|
+
margin: var(--lumo-space-s);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[part='overlay'] {
|
|
14
|
+
pointer-events: auto;
|
|
15
|
+
background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
|
|
16
|
+
border-radius: var(--lumo-border-radius-l);
|
|
17
|
+
box-shadow:
|
|
18
|
+
0 0 0 1px var(--lumo-contrast-10pct),
|
|
19
|
+
var(--lumo-box-shadow-l);
|
|
20
|
+
font-family: var(--lumo-font-family);
|
|
21
|
+
font-size: var(--lumo-font-size-m);
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
line-height: var(--lumo-line-height-s);
|
|
24
|
+
letter-spacing: 0;
|
|
25
|
+
text-transform: none;
|
|
26
|
+
-webkit-text-size-adjust: 100%;
|
|
27
|
+
-webkit-font-smoothing: antialiased;
|
|
28
|
+
-moz-osx-font-smoothing: grayscale;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[part='content'] {
|
|
32
|
+
padding: var(--lumo-space-wide-l);
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[part='content'] ::slotted(vaadin-button) {
|
|
39
|
+
flex: none;
|
|
40
|
+
margin: 0 calc(var(--lumo-space-s) * -1) 0 var(--lumo-space-m);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([slot^='middle']) {
|
|
44
|
+
max-width: 80vw;
|
|
45
|
+
margin: var(--lumo-space-s) auto;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([slot$='stretch']) {
|
|
49
|
+
margin: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([slot$='stretch']) [part='overlay'] {
|
|
53
|
+
border-radius: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (min-width: 421px) {
|
|
57
|
+
:host(:not([slot$='stretch'])) {
|
|
58
|
+
display: flex;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host([slot$='end']) {
|
|
62
|
+
justify-content: flex-end;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:host([slot^='middle']),
|
|
66
|
+
:host([slot$='center']) {
|
|
67
|
+
display: flex;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@keyframes lumo-notification-exit-fade-out {
|
|
73
|
+
100% {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@keyframes lumo-notification-enter-fade-in {
|
|
79
|
+
0% {
|
|
80
|
+
opacity: 0;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@keyframes lumo-notification-enter-slide-down {
|
|
85
|
+
0% {
|
|
86
|
+
transform: translateY(-200%);
|
|
87
|
+
opacity: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@keyframes lumo-notification-exit-slide-up {
|
|
92
|
+
100% {
|
|
93
|
+
transform: translateY(-200%);
|
|
94
|
+
opacity: 0;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@keyframes lumo-notification-enter-slide-up {
|
|
99
|
+
0% {
|
|
100
|
+
transform: translateY(200%);
|
|
101
|
+
opacity: 0;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@keyframes lumo-notification-exit-slide-down {
|
|
106
|
+
100% {
|
|
107
|
+
transform: translateY(200%);
|
|
108
|
+
opacity: 0;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host([slot='middle'][opening]) {
|
|
113
|
+
animation: lumo-notification-enter-fade-in 300ms;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host([slot='middle'][closing]) {
|
|
117
|
+
animation: lumo-notification-exit-fade-out 300ms;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host([slot^='top'][opening]) {
|
|
121
|
+
animation: lumo-notification-enter-slide-down 300ms;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:host([slot^='top'][closing]) {
|
|
125
|
+
animation: lumo-notification-exit-slide-up 300ms;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:host([slot^='bottom'][opening]) {
|
|
129
|
+
animation: lumo-notification-enter-slide-up 300ms;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:host([slot^='bottom'][closing]) {
|
|
133
|
+
animation: lumo-notification-exit-slide-down 300ms;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
:host([theme='success']) {
|
|
137
|
+
--_focus-ring-gap-color: var(--lumo-success-color);
|
|
138
|
+
--vaadin-focus-ring-color: var(--lumo-success-contrast-color);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:host([theme='warning']) {
|
|
142
|
+
--_focus-ring-gap-color: var(--lumo-warning-color);
|
|
143
|
+
--vaadin-focus-ring-color: var(--lumo-warning-contrast-color);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host([theme='error']) {
|
|
147
|
+
--_focus-ring-gap-color: var(--lumo-error-color);
|
|
148
|
+
--vaadin-focus-ring-color: var(--lumo-error-contrast-color);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:host([theme='primary']) {
|
|
152
|
+
--_focus-ring-gap-color: var(--lumo-primary-color);
|
|
153
|
+
--vaadin-focus-ring-color: var(--lumo-primary-contrast-color);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
:host([theme~='primary']) [part='overlay'] {
|
|
157
|
+
background: var(--lumo-primary-color);
|
|
158
|
+
color: var(--lumo-primary-contrast-color);
|
|
159
|
+
box-shadow: var(--lumo-box-shadow-l);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
:host([theme~='primary']) {
|
|
163
|
+
--vaadin-button-background: var(--lumo-shade-20pct);
|
|
164
|
+
--vaadin-button-text-color: var(--lumo-primary-contrast-color);
|
|
165
|
+
--vaadin-button-primary-background: var(--lumo-primary-contrast-color);
|
|
166
|
+
--vaadin-button-primary-text-color: var(--lumo-primary-text-color);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:host([theme~='contrast']) [part='overlay'] {
|
|
170
|
+
background: var(--lumo-contrast);
|
|
171
|
+
color: var(--lumo-base-color);
|
|
172
|
+
box-shadow: var(--lumo-box-shadow-l);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
:host([theme~='contrast']) {
|
|
176
|
+
--vaadin-button-background: var(--lumo-contrast-20pct);
|
|
177
|
+
--vaadin-button-text-color: var(--lumo-base-color);
|
|
178
|
+
--vaadin-button-primary-background: var(--lumo-base-color);
|
|
179
|
+
--vaadin-button-primary-text-color: var(--lumo-contrast);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
:host([theme~='success']) [part='overlay'] {
|
|
183
|
+
background: var(--lumo-success-color);
|
|
184
|
+
color: var(--lumo-success-contrast-color);
|
|
185
|
+
box-shadow: var(--lumo-box-shadow-l);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
:host([theme~='success']) {
|
|
189
|
+
--vaadin-button-background: var(--lumo-shade-20pct);
|
|
190
|
+
--vaadin-button-text-color: var(--lumo-success-contrast-color);
|
|
191
|
+
--vaadin-button-primary-background: var(--lumo-success-contrast-color);
|
|
192
|
+
--vaadin-button-primary-text-color: var(--lumo-success-text-color);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
:host([theme~='error']) [part='overlay'] {
|
|
196
|
+
background: var(--lumo-error-color);
|
|
197
|
+
color: var(--lumo-error-contrast-color);
|
|
198
|
+
box-shadow: var(--lumo-box-shadow-l);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
:host([theme~='error']) {
|
|
202
|
+
--vaadin-button-background: var(--lumo-shade-20pct);
|
|
203
|
+
--vaadin-button-text-color: var(--lumo-error-contrast-color);
|
|
204
|
+
--vaadin-button-primary-background: var(--lumo-error-contrast-color);
|
|
205
|
+
--vaadin-button-primary-text-color: var(--lumo-error-text-color);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:host([theme~='warning']) [part='overlay'] {
|
|
209
|
+
background: var(--lumo-warning-color);
|
|
210
|
+
color: var(--lumo-warning-contrast-color);
|
|
211
|
+
box-shadow:
|
|
212
|
+
inset 0 0 0 1px var(--lumo-contrast-20pct),
|
|
213
|
+
var(--lumo-box-shadow-l);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
:host([theme~='warning']) {
|
|
217
|
+
--vaadin-button-background: var(--lumo-shade-20pct);
|
|
218
|
+
--vaadin-button-text-color: var(--lumo-warning-contrast-color);
|
|
219
|
+
--vaadin-button-primary-background: var(--lumo-shade-50pct);
|
|
220
|
+
--vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@media (forced-colors: active) {
|
|
224
|
+
[part='overlay'] {
|
|
225
|
+
outline: 3px solid;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
@@ -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_notification-container {
|
|
7
|
+
:host {
|
|
8
|
+
position: fixed;
|
|
9
|
+
inset: 0;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: stretch;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
|
|
16
|
+
/* Override native [popover] user agent styles */
|
|
17
|
+
width: auto;
|
|
18
|
+
height: auto;
|
|
19
|
+
border: none;
|
|
20
|
+
padding: 0;
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
overflow: visible;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[region-group] {
|
|
26
|
+
flex: 1 1 0%;
|
|
27
|
+
display: flex;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[region-group='top'] {
|
|
31
|
+
align-items: flex-start;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[region-group='bottom'] {
|
|
35
|
+
align-items: flex-end;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[region-group] > [region] {
|
|
39
|
+
flex: 1 1 0%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (max-width: 420px) {
|
|
43
|
+
[region-group] {
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
align-items: stretch;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[region-group='top'] {
|
|
49
|
+
justify-content: flex-start;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[region-group='bottom'] {
|
|
53
|
+
justify-content: flex-end;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[region-group] > [region] {
|
|
57
|
+
flex: initial;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -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_number-field {
|
|
7
|
+
:host([readonly]) [part$='button'] {
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([step-buttons-visible]:not([theme~='align-right'])) ::slotted(input) {
|
|
12
|
+
text-align: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host(:not([disabled])) [part$='button'][disabled] {
|
|
16
|
+
opacity: 0.2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host([step-buttons-visible]) [part='input-field'] {
|
|
20
|
+
padding: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[part='decrease-button'],
|
|
24
|
+
[part='increase-button'] {
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
width: 1.5em;
|
|
27
|
+
height: 1.5em;
|
|
28
|
+
-webkit-user-select: none;
|
|
29
|
+
user-select: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[part='decrease-button']::before,
|
|
33
|
+
[part='increase-button']::before {
|
|
34
|
+
margin-top: 0.25em;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[part='decrease-button']::before {
|
|
38
|
+
content: var(--lumo-icons-minus);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[part='increase-button']::before {
|
|
42
|
+
content: var(--lumo-icons-plus);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* RTL specific styles */
|
|
46
|
+
:host([dir='rtl']) [part='input-field'] {
|
|
47
|
+
direction: ltr;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([dir='rtl']:not([theme~='align-right'])) ::slotted(input) {
|
|
51
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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_password-field-button {
|
|
7
|
+
:host {
|
|
8
|
+
position: absolute;
|
|
9
|
+
right: 0;
|
|
10
|
+
top: 0;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
min-width: auto;
|
|
16
|
+
background: transparent;
|
|
17
|
+
outline: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -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_password-field {
|
|
7
|
+
[part='reveal-button']::before {
|
|
8
|
+
content: var(--lumo-icons-eye);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([password-visible]) [part='reveal-button']::before {
|
|
12
|
+
content: var(--lumo-icons-eye-disabled);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Make it easy to hide the button across the whole app */
|
|
16
|
+
[part='reveal-button'] {
|
|
17
|
+
position: relative;
|
|
18
|
+
display: var(--lumo-password-field-reveal-button-display, block);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[part='reveal-button'][hidden] {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
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_popover-overlay {
|
|
7
|
+
:host {
|
|
8
|
+
--vaadin-popover-arrow-size: 0.5rem;
|
|
9
|
+
--_default-offset: var(--lumo-space-xs);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[part='overlay'] {
|
|
13
|
+
position: relative;
|
|
14
|
+
overflow: visible;
|
|
15
|
+
max-height: 100%;
|
|
16
|
+
outline: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[part='content'] {
|
|
20
|
+
overflow: auto;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
max-height: 100%;
|
|
23
|
+
padding: var(--lumo-space-xs) var(--lumo-space-s);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Increase the area of the popover so the pointer can go from the target directly to it. */
|
|
27
|
+
[part='overlay']::before {
|
|
28
|
+
position: absolute;
|
|
29
|
+
content: '';
|
|
30
|
+
inset-block: calc(var(--vaadin-popover-offset-top, var(--_default-offset)) * -1)
|
|
31
|
+
calc(var(--vaadin-popover-offset-bottom, var(--_default-offset)) * -1);
|
|
32
|
+
inset-inline: calc(var(--vaadin-popover-offset-start, var(--_default-offset)) * -1)
|
|
33
|
+
calc(var(--vaadin-popover-offset-end, var(--_default-offset)) * -1);
|
|
34
|
+
z-index: -1;
|
|
35
|
+
pointer-events: auto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host([theme~='no-padding']) [part='content'] {
|
|
39
|
+
padding: 0 !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[part='arrow'] {
|
|
43
|
+
display: none;
|
|
44
|
+
position: absolute;
|
|
45
|
+
height: 0;
|
|
46
|
+
width: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host([theme~='arrow']) {
|
|
50
|
+
--_default-offset: calc(var(--lumo-space-s) + var(--vaadin-popover-arrow-size) / 2);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([theme~='arrow']) [part='arrow'] {
|
|
54
|
+
display: block;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([modeless][with-backdrop]) [part='backdrop'] {
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host([position^='top'][top-aligned]) [part='overlay'],
|
|
62
|
+
:host([position^='bottom'][top-aligned]) [part='overlay'] {
|
|
63
|
+
margin-top: var(--vaadin-popover-offset-top, var(--_default-offset));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host([position^='top'][bottom-aligned]) [part='overlay'],
|
|
67
|
+
:host([position^='bottom'][bottom-aligned]) [part='overlay'] {
|
|
68
|
+
margin-bottom: var(--vaadin-popover-offset-bottom, var(--_default-offset));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host([position^='start'][start-aligned]) [part='overlay'],
|
|
72
|
+
:host([position^='end'][start-aligned]) [part='overlay'] {
|
|
73
|
+
margin-inline-start: var(--vaadin-popover-offset-start, var(--_default-offset));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([position^='start'][end-aligned]) [part='overlay'],
|
|
77
|
+
:host([position^='end'][end-aligned]) [part='overlay'] {
|
|
78
|
+
margin-inline-end: var(--vaadin-popover-offset-end, var(--_default-offset));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* top / bottom position */
|
|
82
|
+
:host([theme~='arrow'][position^='top']) [part='arrow'],
|
|
83
|
+
:host([theme~='arrow'][position^='bottom']) [part='arrow'] {
|
|
84
|
+
border-left: var(--vaadin-popover-arrow-size) solid transparent;
|
|
85
|
+
border-right: var(--vaadin-popover-arrow-size) solid transparent;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:host([theme~='arrow'][position^='bottom'][bottom-aligned]) [part='arrow'],
|
|
89
|
+
:host([theme~='arrow'][position^='top'][bottom-aligned]) [part='arrow'] {
|
|
90
|
+
bottom: calc(var(--vaadin-popover-arrow-size) * -1);
|
|
91
|
+
border-top: var(--vaadin-popover-arrow-size) solid var(--lumo-base-color);
|
|
92
|
+
filter: drop-shadow(0 2px 1px var(--lumo-shade-10pct));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:host([theme~='arrow'][position^='bottom'][top-aligned]) [part='arrow'],
|
|
96
|
+
:host([theme~='arrow'][position^='top'][top-aligned]) [part='arrow'] {
|
|
97
|
+
top: calc(var(--vaadin-popover-arrow-size) * -1);
|
|
98
|
+
border-bottom: var(--vaadin-popover-arrow-size) solid var(--lumo-base-color);
|
|
99
|
+
filter: drop-shadow(0 -2px 1px var(--lumo-shade-10pct));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([theme~='arrow'][position^='bottom'][start-aligned]) [part='arrow'],
|
|
103
|
+
:host([theme~='arrow'][position^='top'][start-aligned]) [part='arrow'] {
|
|
104
|
+
transform: translateX(-50%);
|
|
105
|
+
inset-inline-start: 1.5rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:host([theme~='arrow'][position^='bottom'][end-aligned]) [part='arrow'],
|
|
109
|
+
:host([theme~='arrow'][position^='top'][end-aligned]) [part='arrow'] {
|
|
110
|
+
transform: translateX(50%);
|
|
111
|
+
inset-inline-end: 1.5rem;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([theme~='arrow'][position^='bottom'][arrow-centered]) [part='arrow'],
|
|
115
|
+
:host([theme~='arrow'][position^='top'][arrow-centered]) [part='arrow'] {
|
|
116
|
+
transform: translateX(-50%);
|
|
117
|
+
inset-inline-start: 50%;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* start / end position */
|
|
121
|
+
:host([theme~='arrow'][position^='start']) [part='arrow'],
|
|
122
|
+
:host([theme~='arrow'][position^='end']) [part='arrow'] {
|
|
123
|
+
border-top: var(--vaadin-popover-arrow-size) solid transparent;
|
|
124
|
+
border-bottom: var(--vaadin-popover-arrow-size) solid transparent;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host([theme~='arrow'][position^='start'][start-aligned]) [part='arrow'],
|
|
128
|
+
:host([theme~='arrow'][position^='end'][start-aligned]) [part='arrow'] {
|
|
129
|
+
inset-inline-start: calc(var(--vaadin-popover-arrow-size) * -1);
|
|
130
|
+
border-right: var(--vaadin-popover-arrow-size) solid var(--lumo-base-color);
|
|
131
|
+
filter: drop-shadow(-2px 0 1px var(--lumo-shade-10pct));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:host([theme~='arrow'][position^='start'][end-aligned]) [part='arrow'],
|
|
135
|
+
:host([theme~='arrow'][position^='end'][end-aligned]) [part='arrow'] {
|
|
136
|
+
inset-inline-end: calc(var(--vaadin-popover-arrow-size) * -1);
|
|
137
|
+
border-left: var(--vaadin-popover-arrow-size) solid var(--lumo-base-color);
|
|
138
|
+
filter: drop-shadow(2px 0 1px var(--lumo-shade-10pct));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:host([theme~='arrow'][position^='start'][top-aligned]) [part='arrow'],
|
|
142
|
+
:host([theme~='arrow'][position^='end'][top-aligned]) [part='arrow'] {
|
|
143
|
+
top: 0.5rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host([theme~='arrow'][position='start'][top-aligned]) [part='arrow'],
|
|
147
|
+
:host([theme~='arrow'][position='end'][top-aligned]) [part='arrow'] {
|
|
148
|
+
top: 50%;
|
|
149
|
+
transform: translateY(-50%);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:host([theme~='arrow'][position^='start'][bottom-aligned]) [part='arrow'],
|
|
153
|
+
:host([theme~='arrow'][position^='end'][bottom-aligned]) [part='arrow'] {
|
|
154
|
+
bottom: 0.5rem;
|
|
155
|
+
}
|
|
156
|
+
}
|