@vaadin/vaadin-lumo-styles 25.0.0-alpha5 → 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/font-icons.js +28 -26
- package/global.css +14 -0
- package/lumo.css +8 -0
- package/mixins/input-field-shared.js +1 -2
- package/mixins/menu-overlay.js +0 -2
- 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
- package/vaadin-iconset.js +2 -0
|
@@ -0,0 +1,335 @@
|
|
|
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_button {
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
position: relative;
|
|
10
|
+
outline: none;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
-webkit-user-select: none;
|
|
13
|
+
user-select: none;
|
|
14
|
+
/* Sizing */
|
|
15
|
+
--lumo-button-size: var(--lumo-size-m);
|
|
16
|
+
min-width: var(--vaadin-button-min-width, calc(var(--_button-size) * 2));
|
|
17
|
+
height: var(--_button-size);
|
|
18
|
+
padding: var(--vaadin-button-padding, 0 calc(var(--_button-size) / 3 + var(--lumo-border-radius-m) / 2));
|
|
19
|
+
margin: var(--vaadin-button-margin, var(--lumo-space-xs) 0);
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
/* Style */
|
|
22
|
+
font-family: var(--lumo-font-family);
|
|
23
|
+
font-size: var(--vaadin-button-font-size, var(--lumo-font-size-m));
|
|
24
|
+
font-weight: var(--vaadin-button-font-weight, 500);
|
|
25
|
+
color: var(--_lumo-button-text-color);
|
|
26
|
+
background: var(--_lumo-button-background);
|
|
27
|
+
border: var(--vaadin-button-border, none);
|
|
28
|
+
border-radius: var(--vaadin-button-border-radius, var(--lumo-border-radius-m));
|
|
29
|
+
cursor: var(--lumo-clickable-cursor);
|
|
30
|
+
-webkit-tap-highlight-color: transparent;
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
-moz-osx-font-smoothing: grayscale;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
--_button-size: var(--vaadin-button-height, var(--lumo-button-size));
|
|
35
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
36
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
37
|
+
/* Used by notification */
|
|
38
|
+
--_lumo-button-background: var(--vaadin-button-background, var(--lumo-contrast-5pct));
|
|
39
|
+
--_lumo-button-text-color: var(--vaadin-button-text-color, var(--lumo-primary-text-color));
|
|
40
|
+
--_lumo-button-primary-background: var(--vaadin-button-primary-background, var(--lumo-primary-color));
|
|
41
|
+
--_lumo-button-primary-text-color: var(--vaadin-button-primary-text-color, var(--lumo-primary-contrast-color));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host([hidden]) {
|
|
45
|
+
display: none !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.vaadin-button-container {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
text-align: center;
|
|
53
|
+
width: 100%;
|
|
54
|
+
height: 100%;
|
|
55
|
+
min-height: inherit;
|
|
56
|
+
text-shadow: inherit;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Aligns the button with form fields when placed on the same line.
|
|
60
|
+
Note, to make it work, the form fields should have the same "::before" pseudo-element. */
|
|
61
|
+
.vaadin-button-container::before {
|
|
62
|
+
content: '\2003';
|
|
63
|
+
display: inline-block;
|
|
64
|
+
width: 0;
|
|
65
|
+
max-height: 100%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[part='prefix'],
|
|
69
|
+
[part='suffix'] {
|
|
70
|
+
flex: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Set only for the internal parts so we don't affect the host vertical alignment */
|
|
74
|
+
[part='label'],
|
|
75
|
+
[part='prefix'],
|
|
76
|
+
[part='suffix'] {
|
|
77
|
+
line-height: var(--lumo-line-height-xs);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[part='label'] {
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
text-overflow: ellipsis;
|
|
84
|
+
padding: calc(var(--lumo-button-size) / 6) 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:host([theme~='small']) {
|
|
88
|
+
font-size: var(--lumo-font-size-s);
|
|
89
|
+
--lumo-button-size: var(--lumo-size-s);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([theme~='large']) {
|
|
93
|
+
font-size: var(--lumo-font-size-l);
|
|
94
|
+
--lumo-button-size: var(--lumo-size-l);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* For interaction states */
|
|
98
|
+
:host::before,
|
|
99
|
+
:host::after {
|
|
100
|
+
content: '';
|
|
101
|
+
/* We rely on the host always being relative */
|
|
102
|
+
position: absolute;
|
|
103
|
+
z-index: 1;
|
|
104
|
+
inset: 0;
|
|
105
|
+
background-color: currentColor;
|
|
106
|
+
border-radius: inherit;
|
|
107
|
+
opacity: 0;
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Hover */
|
|
112
|
+
|
|
113
|
+
@media (any-hover: hover) {
|
|
114
|
+
:host(:not([disabled]):hover)::before {
|
|
115
|
+
opacity: 0.02;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Active */
|
|
120
|
+
|
|
121
|
+
:host::after {
|
|
122
|
+
transition:
|
|
123
|
+
opacity 1.4s,
|
|
124
|
+
transform 0.1s;
|
|
125
|
+
filter: blur(8px);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:host([active])::before {
|
|
129
|
+
opacity: 0.05;
|
|
130
|
+
transition-duration: 0s;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:host([active])::after {
|
|
134
|
+
opacity: 0.1;
|
|
135
|
+
transition-duration: 0s, 0s;
|
|
136
|
+
transform: scale(0);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Keyboard focus */
|
|
140
|
+
|
|
141
|
+
:host([focus-ring]) {
|
|
142
|
+
box-shadow:
|
|
143
|
+
0 0 0 calc(1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-gap-color, var(--lumo-base-color)),
|
|
144
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-color);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:host([theme~='primary'][focus-ring]) {
|
|
148
|
+
--_focus-ring-gap-on: 1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* Types (primary, tertiary, tertiary-inline */
|
|
152
|
+
|
|
153
|
+
:host([theme~='tertiary']),
|
|
154
|
+
:host([theme~='tertiary-inline']) {
|
|
155
|
+
--_background: transparent !important;
|
|
156
|
+
background: var(--vaadin-button-tertiary-background, var(--_background));
|
|
157
|
+
min-width: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:host([theme~='tertiary']) {
|
|
161
|
+
border: var(--vaadin-button-tertiary-border, none);
|
|
162
|
+
color: var(--vaadin-button-tertiary-text-color, var(--lumo-primary-text-color));
|
|
163
|
+
font-weight: var(--vaadin-button-tertiary-font-weight, 500);
|
|
164
|
+
padding: var(--vaadin-button-tertiary-padding, 0 calc(var(--_button-size) / 6));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:host([theme~='tertiary-inline'])::before {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
:host([theme~='tertiary-inline']) {
|
|
172
|
+
margin: 0;
|
|
173
|
+
height: auto;
|
|
174
|
+
padding: 0;
|
|
175
|
+
line-height: inherit;
|
|
176
|
+
font-size: inherit;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
:host([theme~='tertiary-inline']) [part='label'] {
|
|
180
|
+
padding: 0;
|
|
181
|
+
overflow: visible;
|
|
182
|
+
line-height: inherit;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
:host([theme~='primary']) {
|
|
186
|
+
background: var(--_lumo-button-primary-background);
|
|
187
|
+
border: var(--vaadin-button-primary-border, none);
|
|
188
|
+
color: var(--_lumo-button-primary-text-color);
|
|
189
|
+
font-weight: var(--vaadin-button-primary-font-weight, 600);
|
|
190
|
+
min-width: calc(var(--lumo-button-size) * 2.5);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:host([theme~='primary'])::before {
|
|
194
|
+
background-color: black;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@media (any-hover: hover) {
|
|
198
|
+
:host([theme~='primary']:not([disabled]):hover)::before {
|
|
199
|
+
opacity: 0.05;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
:host([theme~='primary'][active])::before {
|
|
204
|
+
opacity: 0.1;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
:host([theme~='primary'][active])::after {
|
|
208
|
+
opacity: 0.2;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* Colors (success, warning, error, contrast) */
|
|
212
|
+
|
|
213
|
+
:host([theme~='success']) {
|
|
214
|
+
color: var(--lumo-success-text-color);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:host([theme~='success'][theme~='primary']) {
|
|
218
|
+
background-color: var(--lumo-success-color);
|
|
219
|
+
color: var(--lumo-success-contrast-color);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
:host([theme~='warning']) {
|
|
223
|
+
color: var(--lumo-warning-text-color);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
:host([theme~='warning'][theme~='primary']) {
|
|
227
|
+
background-color: var(--lumo-warning-color);
|
|
228
|
+
color: var(--lumo-warning-contrast-color);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
:host([theme~='error']) {
|
|
232
|
+
color: var(--lumo-error-text-color);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
:host([theme~='error'][theme~='primary']) {
|
|
236
|
+
background-color: var(--lumo-error-color);
|
|
237
|
+
color: var(--lumo-error-contrast-color);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
:host([theme~='contrast']) {
|
|
241
|
+
color: var(--lumo-contrast);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
:host([theme~='contrast'][theme~='primary']) {
|
|
245
|
+
background-color: var(--lumo-contrast);
|
|
246
|
+
color: var(--lumo-base-color);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* Disabled state. Keep selectors after other color variants. */
|
|
250
|
+
|
|
251
|
+
:host([disabled]) {
|
|
252
|
+
color: var(--lumo-disabled-text-color);
|
|
253
|
+
pointer-events: var(--_vaadin-button-disabled-pointer-events, none);
|
|
254
|
+
cursor: not-allowed;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
:host([theme~='primary'][disabled]) {
|
|
258
|
+
background-color: var(--lumo-contrast-30pct);
|
|
259
|
+
color: var(--lumo-base-color);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
:host([theme~='primary'][disabled]) [part] {
|
|
263
|
+
opacity: 0.7;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* Icons */
|
|
267
|
+
|
|
268
|
+
[part] ::slotted(vaadin-icon) {
|
|
269
|
+
display: inline-block;
|
|
270
|
+
width: var(--lumo-icon-size-m);
|
|
271
|
+
height: var(--lumo-icon-size-m);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
[part] ::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
275
|
+
padding: 0.25em;
|
|
276
|
+
box-sizing: border-box !important;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
[part='prefix'] {
|
|
280
|
+
margin-left: -0.25em;
|
|
281
|
+
margin-right: 0.25em;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
[part='suffix'] {
|
|
285
|
+
margin-left: 0.25em;
|
|
286
|
+
margin-right: -0.25em;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/* Icon-only */
|
|
290
|
+
|
|
291
|
+
:host([theme~='icon']:not([theme~='tertiary-inline'])) {
|
|
292
|
+
min-width: var(--lumo-button-size);
|
|
293
|
+
padding-left: calc(var(--lumo-button-size) / 4);
|
|
294
|
+
padding-right: calc(var(--lumo-button-size) / 4);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
:host([theme~='icon']) [part='prefix'],
|
|
298
|
+
:host([theme~='icon']) [part='suffix'] {
|
|
299
|
+
margin-left: 0;
|
|
300
|
+
margin-right: 0;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* RTL specific styles */
|
|
304
|
+
|
|
305
|
+
:host([dir='rtl']) [part='prefix'] {
|
|
306
|
+
margin-left: 0.25em;
|
|
307
|
+
margin-right: -0.25em;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
:host([dir='rtl']) [part='suffix'] {
|
|
311
|
+
margin-left: -0.25em;
|
|
312
|
+
margin-right: 0.25em;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
:host([dir='rtl'][theme~='icon']) [part='prefix'],
|
|
316
|
+
:host([dir='rtl'][theme~='icon']) [part='suffix'] {
|
|
317
|
+
margin-left: 0;
|
|
318
|
+
margin-right: 0;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
@media (forced-colors: active) {
|
|
322
|
+
:host {
|
|
323
|
+
outline: 1px solid;
|
|
324
|
+
outline-offset: -1px;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
:host([focused]) {
|
|
328
|
+
outline-width: 2px;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
:host([disabled]) {
|
|
332
|
+
outline-color: GrayText;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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_card {
|
|
7
|
+
:host::before {
|
|
8
|
+
inset: var(--_card-border-inset, 0);
|
|
9
|
+
border-radius: var(--_card-border-pseudo-radius, inherit);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([theme~='outlined']) {
|
|
13
|
+
--vaadin-card-border-width: 1px;
|
|
14
|
+
--vaadin-card-background: var(--lumo-base-color);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host([theme~='elevated']) {
|
|
18
|
+
--vaadin-card-background: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct)) var(--lumo-base-color);
|
|
19
|
+
--vaadin-card-shadow: var(--lumo-box-shadow-xs);
|
|
20
|
+
--vaadin-card-border-width: 1px;
|
|
21
|
+
--_card-border-inset: calc(-1 * var(--vaadin-card-border-width));
|
|
22
|
+
--_card-border-pseudo-radius: calc(var(--vaadin-card-border-radius) + var(--vaadin-card-border-width));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([theme~='elevated']:not([theme~='outlined'])) {
|
|
26
|
+
--vaadin-card-border-color: var(--lumo-contrast-10pct);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host(:where([theme~='stretch-media'])) ::slotted([slot='media']:is(img, video, svg, vaadin-icon)) {
|
|
30
|
+
border-radius: var(--lumo-border-radius-m);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([theme~='elevated'][theme~='cover-media']) ::slotted([slot='media']:is(img, video, svg, vaadin-icon)) {
|
|
34
|
+
margin-top: calc((var(--_padding) + var(--vaadin-card-border-width)) * -1);
|
|
35
|
+
margin-inline: calc((var(--_padding) + var(--vaadin-card-border-width)) * -1);
|
|
36
|
+
width: calc(100% + (var(--_padding) + var(--vaadin-card-border-width)) * 2);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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_chart {
|
|
7
|
+
:host {
|
|
8
|
+
--vaadin-charts-background: var(--lumo-base-color);
|
|
9
|
+
--vaadin-charts-title-label: var(--lumo-header-text-color);
|
|
10
|
+
--vaadin-charts-axis-title: var(--lumo-secondary-text-color);
|
|
11
|
+
--vaadin-charts-axis-label: var(--lumo-secondary-text-color);
|
|
12
|
+
--vaadin-charts-data-label: var(--lumo-body-text-color);
|
|
13
|
+
--vaadin-charts-secondary-label: var(--lumo-secondary-text-color);
|
|
14
|
+
--vaadin-charts-axis-line: var(--lumo-contrast-5pct);
|
|
15
|
+
--vaadin-charts-grid-line: var(--lumo-contrast-20pct);
|
|
16
|
+
--vaadin-charts-disabled-label: var(--lumo-disabled-text-color);
|
|
17
|
+
--vaadin-charts-contrast: var(--lumo-contrast);
|
|
18
|
+
--vaadin-charts-contrast-5pct: var(--lumo-contrast-5pct);
|
|
19
|
+
--vaadin-charts-contrast-10pct: var(--lumo-contrast-10pct);
|
|
20
|
+
--vaadin-charts-contrast-20pct: var(--lumo-contrast-20pct);
|
|
21
|
+
--vaadin-charts-contrast-60pct: var(--lumo-contrast-60pct);
|
|
22
|
+
--vaadin-charts-tooltip-background: var(--lumo-base-color);
|
|
23
|
+
--vaadin-charts-tooltip-border-color: inherit;
|
|
24
|
+
--vaadin-charts-button-label: var(--lumo-primary-text-color);
|
|
25
|
+
--vaadin-charts-button-background: var(--lumo-contrast-5pct);
|
|
26
|
+
--vaadin-charts-button-hover-background: var(--lumo-primary-color-10pct);
|
|
27
|
+
--vaadin-charts-button-active-label: var(--lumo-primary-contrast-color);
|
|
28
|
+
--vaadin-charts-button-active-background: var(--lumo-primary-color);
|
|
29
|
+
--vaadin-charts-xaxis-line-width: 0;
|
|
30
|
+
--vaadin-charts-tooltip-background-opacity: 1;
|
|
31
|
+
--vaadin-charts-color-0: #5ac2f7;
|
|
32
|
+
--vaadin-charts-color-1: #1676f3;
|
|
33
|
+
--vaadin-charts-color-2: #ff7d94;
|
|
34
|
+
--vaadin-charts-color-3: #c5164e;
|
|
35
|
+
--vaadin-charts-color-4: #15c15d;
|
|
36
|
+
--vaadin-charts-color-5: #0e8151;
|
|
37
|
+
--vaadin-charts-color-6: #c18ed2;
|
|
38
|
+
--vaadin-charts-color-7: #9233b3;
|
|
39
|
+
--vaadin-charts-color-8: #fda253;
|
|
40
|
+
--vaadin-charts-color-9: #e24932;
|
|
41
|
+
--vaadin-charts-color-positive: var(--vaadin-charts-color-4, #15c15d);
|
|
42
|
+
--vaadin-charts-color-negative: var(--vaadin-charts-color-9, #e24932);
|
|
43
|
+
font-family: var(--lumo-font-family);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([theme~='gradient']) {
|
|
47
|
+
--vaadin-charts-color-0: #1676f3;
|
|
48
|
+
--vaadin-charts-color-1: #13bbf0;
|
|
49
|
+
--vaadin-charts-color-2: #1ee;
|
|
50
|
+
--vaadin-charts-color-3: #0cd9bf;
|
|
51
|
+
--vaadin-charts-color-4: #06be81;
|
|
52
|
+
--vaadin-charts-color-5: #00a344;
|
|
53
|
+
--vaadin-charts-color-6: #41c639;
|
|
54
|
+
--vaadin-charts-color-7: #8aed2c;
|
|
55
|
+
--vaadin-charts-color-8: #c0e632;
|
|
56
|
+
--vaadin-charts-color-9: #f6db3a;
|
|
57
|
+
--vaadin-charts-color-positive: var(--vaadin-charts-color-6);
|
|
58
|
+
--vaadin-charts-color-negative: var(--vaadin-charts-color-1);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host([theme~='monotone']) {
|
|
62
|
+
--vaadin-charts-color-0: #1676f3;
|
|
63
|
+
--vaadin-charts-color-1: #4795f5;
|
|
64
|
+
--vaadin-charts-color-2: #71b0f7;
|
|
65
|
+
--vaadin-charts-color-3: #a0cef9;
|
|
66
|
+
--vaadin-charts-color-4: #bce0fa;
|
|
67
|
+
--vaadin-charts-color-5: #a8d8ed;
|
|
68
|
+
--vaadin-charts-color-6: #7fc3dd;
|
|
69
|
+
--vaadin-charts-color-7: #54adcc;
|
|
70
|
+
--vaadin-charts-color-8: #2b99bc;
|
|
71
|
+
--vaadin-charts-color-9: #0284ac;
|
|
72
|
+
--vaadin-charts-color-positive: var(--vaadin-charts-color-3);
|
|
73
|
+
--vaadin-charts-color-negative: var(--vaadin-charts-color-9);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([theme~='classic']) {
|
|
77
|
+
--vaadin-charts-color-0: #7cb5ec;
|
|
78
|
+
--vaadin-charts-color-1: #434348;
|
|
79
|
+
--vaadin-charts-color-2: #90ed7d;
|
|
80
|
+
--vaadin-charts-color-3: #f7a35c;
|
|
81
|
+
--vaadin-charts-color-4: #8085e9;
|
|
82
|
+
--vaadin-charts-color-5: #f15c80;
|
|
83
|
+
--vaadin-charts-color-6: #e4d354;
|
|
84
|
+
--vaadin-charts-color-7: #2b908f;
|
|
85
|
+
--vaadin-charts-color-8: #f45b5b;
|
|
86
|
+
--vaadin-charts-color-9: #91e8e1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -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_checkbox-group {
|
|
7
|
+
:host(:hover:not([readonly]):not([disabled]):not([focused])) [part='label'],
|
|
8
|
+
:host(:hover:not([readonly]):not([disabled]):not([focused])) [part='helper-text'] {
|
|
9
|
+
color: var(--lumo-body-text-color);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Touch device adjustment */
|
|
13
|
+
@media (pointer: coarse) {
|
|
14
|
+
:host(:hover:not([readonly]):not([disabled]):not([focused])) [part='label'] {
|
|
15
|
+
color: var(--lumo-secondary-text-color);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|