@vaadin/vaadin-lumo-styles 25.0.0-alpha6 → 25.0.0-alpha8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auto-complete.css +0 -71
- 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 +8 -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 +86 -0
- package/src/components/button.css +334 -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 +11 -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 +134 -0
- package/src/components/login-overlay-wrapper.css +179 -0
- package/src/components/map.css +182 -0
- package/src/components/master-detail-layout.css +21 -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 +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 +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 +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/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 +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 +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/utility.css +17 -0
|
@@ -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;
|
|
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
|
+
}
|
|
@@ -0,0 +1,295 @@
|
|
|
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_progress-bar {
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
width: 100%; /* prevent collapsing inside non-stretching column flex */
|
|
10
|
+
height: calc(var(--lumo-size-l) / 10);
|
|
11
|
+
margin: var(--lumo-space-s) 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host([hidden]) {
|
|
15
|
+
display: none !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[part='bar'] {
|
|
19
|
+
height: 100%;
|
|
20
|
+
border-radius: var(--lumo-border-radius-m);
|
|
21
|
+
background-color: var(--lumo-contrast-10pct);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[part='value'] {
|
|
25
|
+
height: 100%;
|
|
26
|
+
transform-origin: 0 50%;
|
|
27
|
+
border-radius: var(--lumo-border-radius-m);
|
|
28
|
+
background-color: var(--lumo-primary-color);
|
|
29
|
+
/* Use width instead of transform to preserve border radius */
|
|
30
|
+
transform: none;
|
|
31
|
+
width: calc(var(--vaadin-progress-value) * 100%);
|
|
32
|
+
will-change: width;
|
|
33
|
+
transition: 0.1s width linear;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host([dir='rtl']) [part='value'] {
|
|
37
|
+
transform-origin: 100% 50%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (forced-colors: active) {
|
|
41
|
+
[part='bar'] {
|
|
42
|
+
outline: 1px solid;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[part='value'] {
|
|
46
|
+
background-color: AccentColor !important;
|
|
47
|
+
forced-color-adjust: none;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Indeterminate mode */
|
|
52
|
+
:host([indeterminate]) [part='value'] {
|
|
53
|
+
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
54
|
+
to right,
|
|
55
|
+
var(--lumo-primary-color-10pct) 10%,
|
|
56
|
+
var(--lumo-primary-color)
|
|
57
|
+
);
|
|
58
|
+
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
59
|
+
to left,
|
|
60
|
+
var(--lumo-primary-color-10pct) 10%,
|
|
61
|
+
var(--lumo-primary-color)
|
|
62
|
+
);
|
|
63
|
+
width: 100%;
|
|
64
|
+
background-color: transparent !important;
|
|
65
|
+
background-image: var(--lumo-progress-indeterminate-progress-bar-background);
|
|
66
|
+
opacity: 0.75;
|
|
67
|
+
will-change: transform;
|
|
68
|
+
animation: vaadin-progress-indeterminate 1.6s infinite cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@keyframes vaadin-progress-indeterminate {
|
|
72
|
+
0% {
|
|
73
|
+
transform: scaleX(0.015);
|
|
74
|
+
transform-origin: 0% 0%;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
25% {
|
|
78
|
+
transform: scaleX(0.4);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
50% {
|
|
82
|
+
transform: scaleX(0.015);
|
|
83
|
+
transform-origin: 100% 0%;
|
|
84
|
+
background-image: var(--lumo-progress-indeterminate-progress-bar-background);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
50.1% {
|
|
88
|
+
transform: scaleX(0.015);
|
|
89
|
+
transform-origin: 100% 0%;
|
|
90
|
+
background-image: var(--lumo-progress-indeterminate-progress-bar-background-reverse);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
75% {
|
|
94
|
+
transform: scaleX(0.4);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
100% {
|
|
98
|
+
transform: scaleX(0.015);
|
|
99
|
+
transform-origin: 0% 0%;
|
|
100
|
+
background-image: var(--lumo-progress-indeterminate-progress-bar-background-reverse);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:host(:not([aria-valuenow])) [part='value']::before,
|
|
105
|
+
:host([indeterminate]) [part='value']::before {
|
|
106
|
+
content: '';
|
|
107
|
+
display: block;
|
|
108
|
+
width: 100%;
|
|
109
|
+
height: 100%;
|
|
110
|
+
border-radius: inherit;
|
|
111
|
+
background-color: var(--lumo-primary-color);
|
|
112
|
+
will-change: opacity;
|
|
113
|
+
animation: vaadin-progress-pulse3 1.6s infinite cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@keyframes vaadin-progress-pulse3 {
|
|
117
|
+
0% {
|
|
118
|
+
opacity: 1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
10% {
|
|
122
|
+
opacity: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
40% {
|
|
126
|
+
opacity: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
50% {
|
|
130
|
+
opacity: 1;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
50.1% {
|
|
134
|
+
opacity: 1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
60% {
|
|
138
|
+
opacity: 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
90% {
|
|
142
|
+
opacity: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
100% {
|
|
146
|
+
opacity: 1;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Contrast color */
|
|
151
|
+
:host([theme~='contrast']) [part='value'],
|
|
152
|
+
:host([theme~='contrast']) [part='value']::before {
|
|
153
|
+
background-color: var(--lumo-contrast-80pct);
|
|
154
|
+
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
155
|
+
to right,
|
|
156
|
+
var(--lumo-contrast-5pct) 10%,
|
|
157
|
+
var(--lumo-contrast-80pct)
|
|
158
|
+
);
|
|
159
|
+
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
160
|
+
to left,
|
|
161
|
+
var(--lumo-contrast-5pct) 10%,
|
|
162
|
+
var(--lumo-contrast-60pct)
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* Error color */
|
|
167
|
+
:host([theme~='error']) [part='value'],
|
|
168
|
+
:host([theme~='error']) [part='value']::before {
|
|
169
|
+
background-color: var(--lumo-error-color);
|
|
170
|
+
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
171
|
+
to right,
|
|
172
|
+
var(--lumo-error-color-10pct) 10%,
|
|
173
|
+
var(--lumo-error-color)
|
|
174
|
+
);
|
|
175
|
+
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
176
|
+
to left,
|
|
177
|
+
var(--lumo-error-color-10pct) 10%,
|
|
178
|
+
var(--lumo-error-color)
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Primary color */
|
|
183
|
+
:host([theme~='success']) [part='value'],
|
|
184
|
+
:host([theme~='success']) [part='value']::before {
|
|
185
|
+
background-color: var(--lumo-success-color);
|
|
186
|
+
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
187
|
+
to right,
|
|
188
|
+
var(--lumo-success-color-10pct) 10%,
|
|
189
|
+
var(--lumo-success-color)
|
|
190
|
+
);
|
|
191
|
+
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
192
|
+
to left,
|
|
193
|
+
var(--lumo-success-color-10pct) 10%,
|
|
194
|
+
var(--lumo-success-color)
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* RTL specific styles */
|
|
199
|
+
:host([indeterminate][dir='rtl']) [part='value'] {
|
|
200
|
+
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
201
|
+
to left,
|
|
202
|
+
var(--lumo-primary-color-10pct) 10%,
|
|
203
|
+
var(--lumo-primary-color)
|
|
204
|
+
);
|
|
205
|
+
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
206
|
+
to right,
|
|
207
|
+
var(--lumo-primary-color-10pct) 10%,
|
|
208
|
+
var(--lumo-primary-color)
|
|
209
|
+
);
|
|
210
|
+
animation: vaadin-progress-indeterminate-rtl 1.6s infinite cubic-bezier(0.355, 0.045, 0.645, 1);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:host(:not([aria-valuenow])[dir='rtl']) [part='value']::before,
|
|
214
|
+
:host([indeterminate][dir='rtl']) [part='value']::before {
|
|
215
|
+
animation: vaadin-progress-pulse3 1.6s infinite cubic-bezier(0.355, 0.045, 0.645, 1);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@keyframes vaadin-progress-indeterminate-rtl {
|
|
219
|
+
0% {
|
|
220
|
+
transform: scaleX(0.015);
|
|
221
|
+
transform-origin: 100% 0%;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
25% {
|
|
225
|
+
transform: scaleX(0.4);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
50% {
|
|
229
|
+
transform: scaleX(0.015);
|
|
230
|
+
transform-origin: 0% 0%;
|
|
231
|
+
background-image: var(--lumo-progress-indeterminate-progress-bar-background);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
50.1% {
|
|
235
|
+
transform: scaleX(0.015);
|
|
236
|
+
transform-origin: 0% 0%;
|
|
237
|
+
background-image: var(--lumo-progress-indeterminate-progress-bar-background-reverse);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
75% {
|
|
241
|
+
transform: scaleX(0.4);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
100% {
|
|
245
|
+
transform: scaleX(0.015);
|
|
246
|
+
transform-origin: 100% 0%;
|
|
247
|
+
background-image: var(--lumo-progress-indeterminate-progress-bar-background-reverse);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* Contrast color */
|
|
252
|
+
:host([theme~='contrast'][dir='rtl']) [part='value'],
|
|
253
|
+
:host([theme~='contrast'][dir='rtl']) [part='value']::before {
|
|
254
|
+
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
255
|
+
to left,
|
|
256
|
+
var(--lumo-contrast-5pct) 10%,
|
|
257
|
+
var(--lumo-contrast-80pct)
|
|
258
|
+
);
|
|
259
|
+
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
260
|
+
to right,
|
|
261
|
+
var(--lumo-contrast-5pct) 10%,
|
|
262
|
+
var(--lumo-contrast-60pct)
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* Error color */
|
|
267
|
+
:host([theme~='error'][dir='rtl']) [part='value'],
|
|
268
|
+
:host([theme~='error'][dir='rtl']) [part='value']::before {
|
|
269
|
+
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
270
|
+
to left,
|
|
271
|
+
var(--lumo-error-color-10pct) 10%,
|
|
272
|
+
var(--lumo-error-color)
|
|
273
|
+
);
|
|
274
|
+
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
275
|
+
to right,
|
|
276
|
+
var(--lumo-error-color-10pct) 10%,
|
|
277
|
+
var(--lumo-error-color)
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/* Primary color */
|
|
282
|
+
:host([theme~='success'][dir='rtl']) [part='value'],
|
|
283
|
+
:host([theme~='success'][dir='rtl']) [part='value']::before {
|
|
284
|
+
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
285
|
+
to left,
|
|
286
|
+
var(--lumo-success-color-10pct) 10%,
|
|
287
|
+
var(--lumo-success-color)
|
|
288
|
+
);
|
|
289
|
+
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
290
|
+
to right,
|
|
291
|
+
var(--lumo-success-color-10pct) 10%,
|
|
292
|
+
var(--lumo-success-color)
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
@@ -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_radio-button {
|
|
7
|
+
:host {
|
|
8
|
+
color: var(--vaadin-radio-button-label-color, var(--lumo-body-text-color));
|
|
9
|
+
font-size: var(--vaadin-radio-button-label-font-size, var(--lumo-font-size-m));
|
|
10
|
+
font-family: var(--lumo-font-family);
|
|
11
|
+
line-height: var(--lumo-line-height-s);
|
|
12
|
+
-webkit-font-smoothing: antialiased;
|
|
13
|
+
-moz-osx-font-smoothing: grayscale;
|
|
14
|
+
-webkit-tap-highlight-color: transparent;
|
|
15
|
+
-webkit-user-select: none;
|
|
16
|
+
user-select: none;
|
|
17
|
+
cursor: default;
|
|
18
|
+
outline: none;
|
|
19
|
+
--_radio-button-size: var(--vaadin-radio-button-size, calc(var(--lumo-size-m) / 2));
|
|
20
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
21
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
22
|
+
--_selection-color: var(--vaadin-selection-color, var(--lumo-primary-color));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([has-label]) ::slotted(label) {
|
|
26
|
+
padding: var(
|
|
27
|
+
--vaadin-radio-button-label-padding,
|
|
28
|
+
var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs)
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[part='radio'] {
|
|
33
|
+
--_input-size: var(--_radio-button-size);
|
|
34
|
+
margin: var(--lumo-space-xs);
|
|
35
|
+
position: relative;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
background: var(--vaadin-radio-button-background, var(--lumo-contrast-20pct));
|
|
38
|
+
transition:
|
|
39
|
+
transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2),
|
|
40
|
+
background-color 0.15s;
|
|
41
|
+
will-change: transform;
|
|
42
|
+
cursor: var(--lumo-clickable-cursor);
|
|
43
|
+
/* Default field border color */
|
|
44
|
+
--_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Used for activation "halo" */
|
|
48
|
+
[part='radio']::before {
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
color: transparent;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
border-radius: inherit;
|
|
54
|
+
background-color: inherit;
|
|
55
|
+
transform: scale(1.4);
|
|
56
|
+
opacity: 0;
|
|
57
|
+
transition:
|
|
58
|
+
transform 0.1s,
|
|
59
|
+
opacity 0.8s;
|
|
60
|
+
will-change: transform, opacity;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Used for the dot */
|
|
64
|
+
[part='radio']::after {
|
|
65
|
+
content: '';
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
width: 0;
|
|
68
|
+
height: 0;
|
|
69
|
+
border: var(--vaadin-radio-button-dot-size, 3px) solid
|
|
70
|
+
var(--vaadin-radio-button-dot-color, var(--lumo-primary-contrast-color));
|
|
71
|
+
border-radius: 50%;
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: 50%;
|
|
74
|
+
left: 50%;
|
|
75
|
+
transform: translate(-50%, -50%) scale(0);
|
|
76
|
+
transition: 0.25s transform;
|
|
77
|
+
will-change: transform;
|
|
78
|
+
background-clip: content-box;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:host([checked]) {
|
|
82
|
+
--vaadin-input-field-border-color: transparent;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([checked]) [part='radio'] {
|
|
86
|
+
background-color: var(--_selection-color);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:host([checked]) [part='radio']::after {
|
|
90
|
+
transform: translate(-50%, -50%) scale(1);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host(:not([checked]):not([disabled]):hover) [part='radio'] {
|
|
94
|
+
background: var(--vaadin-radio-button-background-hover, var(--lumo-contrast-30pct));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:host([active]) [part='radio'] {
|
|
98
|
+
transform: scale(0.9);
|
|
99
|
+
transition-duration: 0.05s;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([active][checked]) [part='radio'] {
|
|
103
|
+
transform: scale(1.1);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([active]:not([checked])) [part='radio']::before {
|
|
107
|
+
transition-duration: 0.01s, 0.01s;
|
|
108
|
+
transform: scale(0);
|
|
109
|
+
opacity: 0.4;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host([focus-ring]) [part='radio'] {
|
|
113
|
+
box-shadow:
|
|
114
|
+
0 0 0 1px var(--lumo-base-color),
|
|
115
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color),
|
|
116
|
+
inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:host([disabled]) {
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
color: var(--lumo-disabled-text-color);
|
|
122
|
+
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:host([disabled]) ::slotted(label) {
|
|
126
|
+
color: inherit;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:host([disabled]) [part='radio'] {
|
|
130
|
+
background-color: var(--vaadin-radio-button-disabled-background, var(--lumo-contrast-10pct));
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:host([disabled]) [part='radio']::after {
|
|
134
|
+
border-color: var(--vaadin-radio-button-disabled-dot-color, var(--lumo-contrast-30pct));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* RTL specific styles */
|
|
138
|
+
:host([dir='rtl'][has-label]) ::slotted(label) {
|
|
139
|
+
padding: var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-s);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@media (forced-colors: active) {
|
|
143
|
+
[part='radio'] {
|
|
144
|
+
outline: 1px solid;
|
|
145
|
+
outline-offset: -1px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:host([focused]) [part='radio'] {
|
|
149
|
+
outline-width: 2px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:host([disabled]) [part='radio'] {
|
|
153
|
+
outline-color: GrayText;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -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_radio-group {
|
|
7
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'],
|
|
8
|
+
:host(:hover:not([readonly])) [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([focused])) [part='label'] {
|
|
15
|
+
color: var(--lumo-secondary-text-color);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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_rich-text-editor-popup-overlay {
|
|
7
|
+
[part='overlay'] {
|
|
8
|
+
margin: var(--lumo-space-xs) 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[part='content'] {
|
|
12
|
+
padding: var(--lumo-space-xs);
|
|
13
|
+
max-width: calc(7 * (var(--_button-size) + var(--_button-margin) * 2));
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
--_button-size: 1.25rem;
|
|
18
|
+
--_button-margin: 3px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[part='content'] ::slotted(button) {
|
|
22
|
+
border: none;
|
|
23
|
+
width: var(--_button-size);
|
|
24
|
+
height: var(--_button-size);
|
|
25
|
+
margin: var(--_button-margin);
|
|
26
|
+
}
|
|
27
|
+
}
|